Pancake Periphery contracts
Aptos CLI
- Initialize your aptos account
$ aptos init
you will get a ".aptos" folder in your current folder.
config.yaml
profiles:
default:
private_key: "0x0000000000000000000000000000000000000000000000000000000000000000"
public_key: "0x0000000000000000000000000000000000000000000000000000000000000000"
account: 0000000000000000000000000000000000000000000000000000000000000000 # your_original_account
rest_url: "https://fullnode.devnet.aptoslabs.com/v1"
faucet_url: "https://faucet.devnet.aptoslabs.com/"
- Get test APT
$ aptos account fund-with-faucet --account your_original_account --amount 100000000
- Create your resource account
$ aptos move run --function-id '0x1::resource_account::create_resource_account_and_fund' --args 'string:any string you want' 'hex:your_original_account' 'u64:10000000'
- Get your resourc eaccount
$ aptos account list --account your_original_account
Or find it on explorer: https://explorer.devnet.aptos.dev/account/your_original_account
TYPE:
0x1::resource_account::Container
DATA:
{
"store": {
"data": [
{
"key": "0x....",
"value": {
"account": "0x...." # your_resource_account
}
}
]
}
}
-
Replace your_original_account with your_resource_account in config.yaml
-
Edit Move.toml file
[package]
name = "PancakePeriphery"
version = "0.0.1"
[dependencies]
...
[addresses]
pancake_periphery = "...." //repalce this with your_resource_account
periphery_origin = "....." // repalce this with your_original_account which you created the resource account
- Compile code
$ aptos move compile
- Publish package
$ aptos move publish