-
Notifications
You must be signed in to change notification settings - Fork 0
/
command.txt
46 lines (41 loc) · 2.59 KB
/
command.txt
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
43
44
45
46
**************BEGIN**********************
cd ido
------------------------------------------
*************END*************************
**************BEGIN**********************
pwd
------------------------------------------
/root/Sei-IDO-Tier-Contract/ido
*************END*************************
**************BEGIN**********************
RUSTFLAGS='-C link-arg=-s' cargo wasm
------------------------------------------
*************END*************************
**************BEGIN**********************
cp ./target/wasm32-unknown-unknown/release/ido.wasm ../release/
------------------------------------------
*************END*************************
**************BEGIN**********************
cd ..
------------------------------------------
*************END*************************
**************BEGIN**********************
seid tx wasm store release/ido.wasm --from lucas --node https://rpc.atlantic-2.seinetwork.io:443 --chain-id atlantic-2 --gas=3000000 --fees=3000000usei --broadcast-mode block --keyring-backend test -y --output json | jq -r '.txhash'
------------------------------------------
B313A96FBA2DED2E5F62BF5708EDA4FCA625AE23F2B4F4312E5BE90FF200E551
*************END*************************
**************BEGIN**********************
seid query tx B313A96FBA2DED2E5F62BF5708EDA4FCA625AE23F2B4F4312E5BE90FF200E551 --node https://rpc.atlantic-2.seinetwork.io:443 --chain-id atlantic-2 --output json | jq -r '.logs[0].events[-1].attributes[-1].value'
------------------------------------------
2239
*************END*************************
**************BEGIN**********************
seid tx wasm instantiate 2239 '{"tier_contract":"'sei1hse0m60gkw04uzf7w2e6xkzvgwn965k07ux3e6aru8mpdpdy225qyd5v55'", "nft_contract":"'sei16ywc9472e0e5838cujqpnezhmcpdc0jw4wqjlgr9xes2h77ezfpqfq3dfl'", "lock_periods":[1,2,3,4,5,6]}' --admin sei1zwlmtugzr5wk5rxcmrchj2aeu8s8unktlqzmat --from lucas --node https://rpc.atlantic-2.seinetwork.io:443 --chain-id atlantic-2 --gas=250000 --fees=250000usei --broadcast-mode block --keyring-backend test -y --label "IDOContract" --output json | jq -r '.txhash'
------------------------------------------
8916025C336B6625E61E4787DF1543DD704ECA8B024690C3047CFEBECB324B5D
*************END*************************
**************BEGIN**********************
seid query tx 8916025C336B6625E61E4787DF1543DD704ECA8B024690C3047CFEBECB324B5D --node https://rpc.atlantic-2.seinetwork.io:443 --chain-id atlantic-2 --output json | jq -r '.logs[0].events[0].attributes[0].value'
------------------------------------------
sei1j3nzvu5gywy4wt2e3q5vf5k438m0wv5x6fw5fk593e76hkedut3q4umhe4
*************END*************************