kubiklabs / wasmkit

Cosmwasm dev tooling framework
https://wasmkit.kubiklabs.xyz/
MIT License
6 stars 2 forks source link

Add support for migration #8

Open udit-gulati opened 11 months ago

udit-gulati commented 11 months ago
  1. Contract migration flow needs a new flow with user scripts.
  2. Migration info needs to be updated in checkpoints.
  3. If contract.migrate() is called in user script, atutomatically handle using the new codeId and updating the contract address with new codeId.
  4. Store the migration history with codeId and codeHash in the checkpoints .yaml files.