Skip to content

Latest commit

 

History

History

pancake-periphery

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

pancake-periphery

Pancake Periphery contracts

Dependence

Aptos CLI

How to use

  1. 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/"
  1. Get test APT
$ aptos account  fund-with-faucet --account your_original_account --amount 100000000
  1. 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'
  1. 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
        }
      }
    ]
  }
}
  1. Replace your_original_account with your_resource_account in config.yaml

  2. 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 
  1. Compile code
$ aptos move compile
  1. Publish package
$ aptos move publish