Skip to content Skip to sidebar Skip to footer

12162 | SDK v0.50.X Upgrade by Antier Solutions

5 min read 803 words 250 views

Source from:

SDK v0.50.X Upgrade by Antier Solutions

Following orbit labs unfork we propose a chain upgrade to most recent SDK

https://common.xyz/terra-luna-classic-lunc/discussion/26630

By cookie FrgValidator and Luncvers3

SDK 0.50.x upgrade Final

Document Updated Proposal:

Terra Classic SDK & Wasm Upgrade Executive Summary This proposal outlines a secure, backward-compatible upgrade of Terra Classicโ€™s core infrastructure toย Cosmos SDK v0.50.9ย andย Wasm Module v0.53.2, addressing unresolved issues from the v0.47 upgrade, enhancing security, and ensuring long-term sustainability. The upgrade is contingent on Orbit Labsโ€™ unforking completion and includes fixes for technical debt, mitigation of breaking changes, and developer-focused improvements. The proposal ensures full backward compatibility for existing dApps. Technical Specifications & Implications

  1. Cosmos SDK Upgrade Current:ย v0.47.14 Proposed:ย v0.50.9 Rationale:ย The current version contains some security vulnerabilities. Upgrading to v0.50.9 addresses these issues comprehensively. Changes: x/params module updates (requires migration to new governance-driven parameters). x/authz and x/feegrant updates (impacts dApps using delegation/allowances). Custom module adjustments (e.g., Oracle, Market, Staking) due to SDK refactoring. Terra Classic Considerations: Ensures full backward compatibilityย with existing chain features and functionalities.
  2. Wasm Module & Virtual Machine Current:ย v0.46.0 / wasmvm v1.5.8 Proposed:ย v0.53.2 / wasmvm v2.1.4 dApp Impact: Existing CosmWasm contracts remain functional. Contracts will adhere to the latest standards while maintaining backward compatibility with existing constraints. Terra Classic Custom Wasm Bindings Compatibility: Custom bindings forย oracle, tax, and market modulesย will be maintained.
  3. IBC-GO IBC-GO:ย v7.4.0 โ†’ v8.4.0 Preserves cross-chain compatibility without introducing IBC-breaking changes. Performance enhancements, optimizing relayer performance and reducing transaction latency. Future-proofing, ensuring compatibility with upcoming Cosmos chains adopting IBC v8.4.0. Security Enhancements in IBC-GO v8.4.0:ย Fixes a critical reentrancy attack vulnerability in IBC hooks, ensuring secure packet lifecycle management to prevent fund loss or unintended token minting. Upgrading mitigates these risks, strengthening Terra Classicโ€™s cross-chain security
  4. Terra Classic Custom Modules & Upgrade Plan Terra Classicโ€™s custom modules require careful handling during this upgrade: Oracle Module:ย Manages exchange rate feeds for stablecoins. Requiresย compatibility testingย with the new SDK structure to ensure validator price submissions remain accurate. Market Module:ย Facilitates stablecoin swaps. Needsย parameter validationย and optimization for performance under the new SDK execution model. Treasury Module:ย Governs economic policies, including tax rates. Must beย preserved with no loss of functionalityย and tested under new governance-driven parameters. All the other customization that has been done in different modules like staking, slashing, mint etc., will also be upgraded. Upgrade Strategy: Detailed Unit Testing & Refactoring: Conductย unit testsย on Oracle, Market, and Treasury modules to verify proper functionality under the new SDK. Identify areas needingย refactoringย to align with SDK v0.50.9. Backward Compatibility Layer Implementation: Developย temporary compatibility shimsย for x/treasury and x/market modules to avoid dApp disruptions. Ensure thatย existing governance parametersย remain unchanged during the upgrade. Why This Upgrade?
  5. Terra Classic-Specific Research Unforking Synergy: Orbit Labsโ€™ unforking removes Terra-original patches, allowing seamless SDK v0.50 integration.
  6. Risk Mitigation Backward Compatibility Layer: Temporaryย shimsย for deprecated modules to prevent dApp disruption. Security Measures: Audit by Oak Securityย (focusing on v0.47 โ†’ v0.50 migration). Workflow & Timeline Phase 1: Pre-Upgrade Preparation (2 Weeks) Tasks:ย Code audit (post-unforking), legacy issue fixes, backward compatibility documentation, testnet setup. Phase 2: Core Upgrade Execution (5 Weeks) Tasks: SDK v0.50.9 integration. Wasm Module v0.53.2 update. Custom module migration for Terra Classicโ€™s unique features. Ensuring CosmWasm 1.0-1.5 contracts remain functional. Phase 3: Progressive Upgrades, Testing & Validation (9 Weeks) Tasks:ย  Setup the chain on version that supports 0.16 contracts,instantiate those contracts and then upgrade the chain progressively to v0.50.9 followed by mock testing.progressive upgrades to the chain till v0.50.9 followed by mock testing Security audits, validator dry runs, dApp migration tests, bug bounties. Phase 4: Testnet Deployment (2 Weeks) Tasks:ย Public testnet launch, validator/dApp onboarding, monitoring. Phase 5: Mainnet Deployment (2 Weeks) Tasks:ย Governance vote, CEX coordination, mainnet upgrade, post-launch monitoring. Total Timeline: 20 Weeks (~5 Months) Phase Duration Key Activities Cost

Phases

  • Pre-Upgrade : 2 Weeks Audit code post-unforking, fix SDK v0.47 bugs, document breaking changes, testnet setup. $6,000
  • Core Upgrade : 5 Weeks Integrate SDK v0.50.9, Wasm v0.53.2, CometBFT v0.38.11, backward compatibility layers. $25,000
  • Testing & Validation : 9 Weeks Security audits, validator dry runs, dApp migration tests, bug bounties. $12,000
  • Testnet Deployment : 2 Weeks Public testnet launch, validator/dApp onboarding, monitoring. $8,000
  • Mainnet Deployment : 2 Weeks Governance vote, CEX coordination, mainnet upgrade, post-launch monitoring. $6,000

Following this 48h discussion this proposal will go to voting.

This proposal is being proposed by #Cookie #FRGValidator and #LUNCVERS3 team for luna classic

Upgrade being implemented by Antier Solutions

Important consideration: The wasmd upgrade can only start after the Orbit Labs โ€œwasmd unforkโ€ has been conducted, or alternatively in coordination with Orbit labs as part of a joint effort in combining the wasmd unfork with the sdk and wasmd upgrade.

A new Spend proposal will be submitted following Each Milestone

Was this article helpful?
YesNo
E-mail
Password
Confirm Password
QuoraTelegram