-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.sh
61 lines (48 loc) · 26.9 KB
/
deploy.sh
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
set -e
tos=./tonos-cli
if test -f "$tos"; then
echo "$tos exists."
else
echo "$tos not found in current directory. Please, copy it here and rerun script."
exit
fi
DEBOT_NAME=RootTokenContractNF
giver=0:653b9a6452c7a982c6dc92b2da9eba832ade1c467699ebb3b43dca6d77b780dd
#giver=0:841288ed3b55d9cdafa806807f02a0ae0c169aa5edfe88a789a6482429756a94
function giver {
./tonos-cli --url $NETWORK call --abi ./grant.abi.json $giver grant "{\"addr\":\"0:e5b72985b237f6dc2602e4b470d3e6e856340c6c9baa4c235299553e045e33ed\"}"
#./tonos-cli --url $NETWORK call --abi ./local_giver.abi.json $giver sendGrams "{\"dest\":\"$1\",\"amount\":10000000000}"
}
function get_address {
echo $(cat log.log | grep "Raw address:" | cut -d ' ' -f 3)
}
function genaddr {
./tonos-cli genaddr $1.tvc $1.abi.json > log.log
}
LOCALNET=http://127.0.0.1
DEVNET=https://net.ton.dev
MAINNET=https://main.ton.dev
NETWORK=$DEVNET
CODE=te6ccgECdQEAGAEAAij/ACDBAfSkIFiS9KDgXwKKIO1T2QkBAQr0pCD0oQIB4qAAAAABINdLgQIHIgG8IcICjlvtQAPT/yDXSyHBLI4vXwP6QCDXS8AA8tBDMNTRBe1QVQEwVQEwVQYwVQYwVQYwVQYwVQYwVQYwVQYwVQEgWQFVAeFxErry4EMBwADy4EIB1SJwVREBVREBVQPZUSGwAwE6joDhMAPU1NMH0/8ncF9QVRtVFgFVJVVIVRtVDdkEAVqBAQckAbyOIlvT/yDXS4EBACIBuSvhcbry4EPAAPLgQtUpcFURAVURAdlRErAFATqOgOEF1NTTByhwXzBVGlUaAVUWAVUH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AVUD4QPAAI5HAfLQQIEAgFNZVQH0fG+hb6FRd1njBHEpAbyOFwLAAAalIXBVAVUVVRUBVQRVB1UHVQfZVQIwVQMwJVUCVQRVBlUFVQZVJOIg2XMB+Mh2IQHPCwNwIgHPCwHJ0AHOgB1h0wDTANMA+kAwUATOUMTLHxjLf3AT+gICyQ3AAIAeYVUC9ABw+gJw+gJxzwthHczJgED7AMhwIQHPCwCAGmEhyz+AFGEjzoAUYQHMgBlhVQHMgBhhAcyAF2EByweAFmEBy/+AFWEBy/90ALiOKzBQ4ssfHPQAyVAMzMlQCszJ7VSAHTExMTExMTExMTExMTExMTExVQEwAdlWECHgcRXPCwCAEmEBzoARYQHLfyRwcFUecoARY1VrgBFhVRtVDlUfgBJhgBJh2Q==
echo GENADDR DEBOT
genaddr $DEBOT_NAME
DEBOT_ADDRESS=$(get_address)
echo ASK GIVER
#giver $DEBOT_ADDRESS
DEBOT_ABI=$(cat $DEBOT_NAME.abi.json | xxd -ps -c 20000)
echo DEPLOY DEBOT $DEBOT_ADDRESS
#'{"Jurrors": ["0xf66a20b278b2064684b56c99baa5e2703ff7724617148a7a380fbd2133d866a4","0xf66a20b278b2064684b56c99baa5e2703ff7724617148a7a380fbd2133d866a3"], "TimeFinish": 1617942836}'
./tonos-cli --url $NETWORK deploy $DEBOT_NAME.tvc "{\"name\":\"5423\",\"symbol\":\"5423\",\"decimals\":0,\"root_public_key\":\"0x0b515a2379fc1ff94b3928b4f4ce0ec275315adb8c917bf502bafcc002d61102\",\"wallet_code\":\"$CODE\",\"tokenURI\":\"542323\"}" --sign $DEBOT_NAME.keys.json --abi $DEBOT_NAME.abi.json
./tonos-cli --url $NETWORK call $DEBOT_ADDRESS createNFTWallet "{\"root_token\":\"Some Addr\"}" --sign $DEBOT_NAME.keys.json --abi $DEBOT_NAME.abi.json
./tonos-cli --url $NETWORK call 0:e5b72985b237f6dc2602e4b470d3e6e856340c6c9baa4c235299553e045e33ed mint "{\"tokenId\":\"1\",\"name\":\"5423\",\"data\":\"542361647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b61647361647569686173696b6a646861736b6a64686b\",\"type\":0}" --sign $DEBOT_NAME.keys.json --abi $DEBOT_NAME.abi.json
for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
BYTES=$(hexdump -n 29700 -e '"%08x"' /dev/random )
echo $BYTES
DATA="{\"tokenId\":\"1\",\"data\":\"${BYTES:28000}\"}"
./tonos-cli --url $NETWORK call 0:e5b72985b237f6dc2602e4b470d3e6e856340c6c9baa4c235299553e045e33ed addBytes $DATA --abi $DEBOT_NAME.abi.json --sign $DEBOT_NAME.keys.json
done
echo DONE
echo $DEBOT_ADDRESS > address.log
echo debot $DEBOT_ADDRESS