-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 2.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
build:
cargo wasm
optimize:
docker run --rm -v "$$(pwd)":/code \
--mount type=volume,source="$$(basename "$$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.14.0
test:
cargo unit-test
upload-testnet:
seid tx wasm store ./artifacts/pierprotocol_sei.wasm -y --from=hk --chain-id=atlantic-2 --node https://rpc.atlantic-2.seinetwork.io --gas=10000000 --fees=1000000usei --broadcast-mode=block
instantiate-testnet:
seid tx wasm instantiate ${id} '{}' --chain-id atlantic-2 --from hk --gas=4000000 --fees=1000000usei --broadcast-mode=block --label pierprotocol --no-admin --node https://rpc.atlantic-2.seinetwork.io
balance-hk-testnet:
seid q bank balances sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7 --node https://rpc.atlantic-2.seinetwork.io --chain-id atlantic-2
launch-token:
seid tx tokenfactory create-denom ${name} --from sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7 --node https://rpc.atlantic-2.seinetwork.io --chain-id atlantic-2 --gas=200000 --fees=2000000usei -b block -y
mint-token:
seid tx tokenfactory mint ${amount} --from sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7 --chain-id atlantic-2 -b block -y --node https://rpc.atlantic-2.seinetwork.io --gas=200000 --fees=2000000usei
# 1000factory/sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7/sdasdf
burn-token:
seid tx tokenfactory burn ${amount} --from hk --chain-id atlantic-2
list-token:
seid q tokenfactory denoms-from-creator sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7 --chain-id atlantic-2 --node https://rpc.atlantic-2.seinetwork.io
send-token:
seid tx bank send sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7 sei1g0g6kr73egtysamh6zp6cleqzdafcreyxapgklgnwg49qnveh6rst08jst 100factory/sei1cz56s8l9yz92jgstv9y4pyxj8vkdnw7acug8n7/ktg --chain-id=atlantic-2 -b block -y --node https://rpc.atlantic-2.seinetwork.io --gas=200000 --fees=2000000usei
balance-testnet:
seid q bank balances ${address} --node https://rpc.atlantic-2.seinetwork.io --chain-id atlantic-2
prepare:
export GOPATH=~/go && export PATH=$PATH:$GOPATH/bin