Skip to content

idle-planet/idle-planet-smc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish module

  1. Faucet
aptos account fund-with-faucet --profile default
  1. Calculate resource account address
ADDRESS=0xa23e4cf349015e4ed268e470b49ac52a96b276cdc2a21eb96457e8e24943de5b
SEED=idleplanet

aptos account derive-resource-account-address --address $ADDRESS --seed $SEED

# 0xb341640e53e3c8630129b2a1378e0060cf410be5622906f213b9b37941806320
  1. Fund (if there is not enough gas) and Publish module to resource account
aptos move create-resource-account-and-publish-package --address-name $ADDRESS --seed $SEED --included-artifacts none

Compile module

aptos move compile

Upgrade module

  1. Generate the inputs for metadata_serialized and code
aptos move build-publish-payload --json-output-file upgrade.json
  1. Update upgrade json function id to upgrade function of deployed module
0x1::code::publish_package_txn
-> 0xb341640e53e3c8630129b2a1378e0060cf410be5622906f213b9b37941806320::idle_planet_access::upgrade
  1. Deploy modified contract
aptos move run --json-file upgrade.json

Call function

aptos move run \
    --json-file ./entries/call.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages