# CONTRACT_WASM_BINARY=artifacts/simple_nft.wasm # ACCOUNT_ADDRESS="sei1mvs8rlphvegtztsxj3qqxjm4yd3hx4x0arlp06" # CHAIN_ID="atlantic-2" # ENDPOINT="https://rpc.wallet.pacific-1.sei.io" # LABEL="nft" # CONTRACT_ID=6621 # seid tx wasm instantiate $CONTRACT_ID '{"name":"TestNFT","symbol":"TNFT"}' --chain-id sei-chain --from $ACCOUNT_NAME --gas=4000000 --fees=1000000usei --broadcast-mode=block --label $LABEL --no-admin # seid tx wasm instantiate 6621 '{"name":"TestNFT","symbol":"TNFT"}' --chain-id sei-chain --from "sei1mvs8rlphvegtztsxj3qqxjm4yd3hx4x0arlp06" --gas=4000000 --fees=1000000usei --broadcast-mode=block --label "label" --node=https://rpc.atlantic-2.seinetwork.io/ --admin sei1mvs8rlphvegtztsxj3qqxjm4yd3hx4x0arlp06 # seid tx wasm instantiate 6625 '{"name":"TestNFT","symbol":"TNFT"}' --chain-id atlantic-2 --from account1 --gas=4000000 --fees=1000000usei --broadcast-mode=block --label "label" --node=https://rpc.atlantic-2.seinetwork.io/ --admin sei1mvs8rlphvegtztsxj3qqxjm4yd3hx4x0arlp06 # sei1gdfyl0j2klfaglk26zqhtjdcnxxt4esna0udvgc020wc6en98fpq3fse4m # sei1gdfyl0j2klfaglk26zqhtjdcnxxt4esna0udvgc020wc6en98fpq3fse4m # seid tx wasm store artifacts/simple_nft.wasm -y --from=account1 --chain-id=atlantic-2 --node "https://rpc.atlantic-2.seinetwork.io/" --gas=10000000 --fees=1000000usei --broadcast-mode=block if [ -z "${contract}" ]; then contract=artifacts/simple_nft.wasm fi if [ -z "${keyname}" ]; then keyname=admin fi if [ -z "${password}" ]; then password="12345678\n" fi seid=~/go/bin/seid code=$(printf $password | $seid tx wasm store $contract -y --from=$keyname --chain-id=atlantic-2 --node "https://rpc.atlantic-2.seinetwork.io/" --gas=10000000 --fees=10000000usei --broadcast-mode=block | grep -A 1 "code_id" | sed -n 's/.*value: "//p' | sed -n 's/"//p') printf "Code id is %s\n" $code admin_addr=$(printf $password |$seid keys show $keyname | grep -A 1 "address" | sed -n 's/.*address: //p') printf "Admin addr id is %s\n" $admin_addr addr=$(printf $password |$seid tx wasm instantiate $code '{"name":"NAMNTF","symbol":"NK"}' --from $keyname --broadcast-mode=block --label "nft" --chain-id sei-chain --gas=30000000 --fees=3000000usei --admin=$admin_addr -y | grep -A 1 -m 1 "key: _contract_address" | sed -n 's/.*value: //p' | xargs) printf "Deployed counter address is %s\n" $addr # 6663 # seid tx wasm instantiate 6662 '{"name":"NAMNTF","symbol":"NK"}' -y --from=account1 --chain-id=atlantic-2 --node "https://rpc.atlantic-2.seinetwork.io/" --gas=1000000 --fees=1000000usei --broadcast-mode=block # seid tx wasm instantiate 6662 '{"name":"NAMNTF","symbol":"NK"}' -y --from=account1 --chain-id=atlantic-2 --node "https://rpc.atlantic-2.seinetwork.io/" --gas=1000000 --fees=1000000usei --broadcast-mode=block --label="cw721" --admin="sei1mvs8rlphvegtztsxj3qqxjm4yd3hx4x0arlp06" seid tx wasm instantiate 6663 '{"marketplace_fee": 5}' -y --from=account1 --chain-id=atlantic-2 --node "https://rpc.atlantic-2.seinetwork.io/" --gas=1000000 --fees=1000000usei --broadcast-mode=block --label="nft" --admin="sei1mvs8rlphvegtztsxj3qqxjm4yd3hx4x0arlp06" # sei1206d5sn05fdlksv4xavs99l7hv76e0nyy7ug558r37cux3d9jhcq8zrd04 seid tx wasm execute "sei1206d5sn05fdlksv4xavs99l7hv76e0nyy7ug558r37cux3d9jhcq8zrd04" '{"list_nft":{"token_id":"1"}}' -y --from=account1 --chain-id=atlantic-2 --node "https://rpc.atlantic-2.seinetwork.io/" --gas=1000000 --fees=1000000usei --broadcast-mode=block