drink
drink copied to clipboard
feat: uplift dependencies and update to support `ink-v6.0.0-alpha`
The PR uplift all dependencies to use latest version of ink! crate (v6.0.0) and migrate all code logic to support pallet-revive. Key critical changes made:
- With the removal of
type DebuginChainExtension, the feature to mock contract calls fail completely and requires alternative approach using tracing API to support the feature. - Migrate
examples/quick-start-with-drinkto test with tracing API instead of decodingdebug_message(which is removed in revive). - Expected failed test
examples/chain-extensiondue to the privateMemorytrait in a privatewasmmodule.
Environment Setup
Required rustc version:
stable-aarch64-apple-darwin
rustc 1.86.0 (05f9846f8 2025-03-31)
Examples Tracking
- [x]
examples/contract-events - [x]
examples/cross-contract-call-tracing - [x]
examples/dry-running - [x]
examples/flipper - [ ]
examples/mocking: Need to implement alternative approach withouttype DebuginChainExtension - [ ]
examples/quick-start-with-drink: Need to migrate to tracing API. - [x]
examples/runtime-interaction - [x]
examples/multiple-contracts
TO BE FIXED
- [ ] Issue: https://github.com/use-ink/drink/issues/140 |
examples/chain-extension: Current issue is theMemorytrait inpallet-reviveis required for the implementation of the chain extension but theMemorytrait is inwasmmodule which is not exported as public. In the chain extension implementation of Pop Network, we forked thepallet-reviveand modified it. Probably deprecated in the future with the introduction of precompiles.