Skip to content

Commit

Permalink
docs: Update MIGRATING.md for 0.10 and 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikthebird committed May 8, 2024
1 parent 741b358 commit 22faa5f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,55 @@ ignored in the further process.
+}
```

## 0.10.0 -> 1.0.0
### Update deps to 2.0.0
In Cargo.toml:
```diff
-cosmwasm-schema = "1.5.0"
-cosmwasm-std = "1.5.0"
-cw-multi-test = "0.20.0"
-cw-storage-plus = "1.2.0"
-cw-utils = "1.0.2"
-cw2 = "1.1.2"
+cosmwasm-schema = "2.0.0"
+cosmwasm-std = "2.0.0"
+cw-multi-test = "2.0.0"
+cw-storage-plus = "2.0.0"
+cw-utils = "2.0.0"
+cw2 = "2.0.0"
```

In a multi-test code:
```diff
-let addr = Addr::unchecked("addr0001");
+use cw_multi_test::IntoBech32;
+let addr = "addr0001".into_bech32();
let contract = code_id
.instantiate(vec![owner.to_owned()], false)
.with_label("Sublist contract")
- .call(addr)
+ .call(&addr)
.unwrap();
```

In the contract's code:
```diff
struct Contract<'a> {
- data: Item<'static, ContractData>,
- admins: Map<'static, &'a Addr, Empty>,
+ data: Item<ContractData>,
+ admins: Map<&'a Addr, Empty>,
}
```


## 0.9.3 -> 0.10.0

__TODO: tkulik__




## Multitest proxy

Since `0.10.0` Sylvia won't generate multitest Proxy types for the `Interface` macro call. Instead, all the methods from interfaces are directly implemented on the contract's multitest proxy.
Expand Down

0 comments on commit 22faa5f

Please sign in to comment.