Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.66 KB

MIGRATING.md

File metadata and controls

60 lines (43 loc) · 1.66 KB

Migrating

This guide explains what is needed to upgrade contracts when migrating over releases ofneutron-sdk. Note that you can also view the complete CHANGELOG to understand the differences.

0.10.0 -> 0.11.0

  • Updateneutron-sdkdependencies in Cargo.toml:
[dependencies]
neutron-sdk = "0.11.0"
# ...

0.9.0 -> 0.10.0

  • Updateneutron-sdkdependencies in Cargo.toml:
[dependencies]
neutron-sdk = "0.10.0"
# ...

0.8.0 -> 0.9.0

  • Updateneutron-sdkdependencies in Cargo.toml:
[dependencies]
neutron-sdk = "0.9.0"
# ...
  • If you want to use ICQ helpers compatible with Cosmos SDK 0.47, you must use helpers from v047 package now (you don't need to change the code otherwise):
-use neutron_sdk::interchain_queries::v045::queries::{...}
+use neutron_sdk::interchain_queries::v047::queries::{...}

-use neutron_sdk::interchain_queries::v045::register_queries::{...}
+use neutron_sdk::interchain_queries::v047::register_queries::{...}

-use neutron_sdk::interchain_queries::v045::types::{...};
+use neutron_sdk::interchain_queries::v047::types::{...};
  • Helper for Interchain transactions module decode_acknowledgement_response has been moved from neutron_sdk::interchain_txs::helpers package to respective packages for different Cosmos SDK version (v045 and v047 respectively):
-use neutron_sdk::interchain_txs::helpers::decode_acknowledgement_response;
+use neutron_sdk::interchain_txs::v047::helpers::decode_acknowledgement_response;