-
Notifications
You must be signed in to change notification settings - Fork 2
/
commands.txt
42 lines (32 loc) · 4.38 KB
/
commands.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
name Pokemon Cards Cairo 459203999911522248581602073328953722971521969952
symbol POKECAIRO 1481453262604174185039
owner 0x0660cC8805f88E40c4e685ABf35B279DC05C02db063f719074A4Fd2c0bfe725a
base_token_uri_len 3
base_token_uri [184555836509371486644298270517380613565396767415278678887948391494588524912,181013377130064688661411406138404341063418323567133733169729396828954903143,2280891740126193902125748331913350068063057967]
base_token_uri_metadata 186294699441980128189385975247430378186545212032027732704128602017491346550 5501956574572051326717711538939620780874553431040686383
export STARKNET_NETWORK=alpha-goerli
export STARKNET_WALLET=starkware.starknet.wallets.open_zeppelin.OpenZeppelinAccount
starknet-compile ./src/main.cairo --output ./build/main.json --abi ./build/main_abi.json
starknet declare --contract ./build/main.json --account=dub
starknet deploy --class_hash 0x2f6b797a9ca5b75fcc71f50430d9e86871cd2d003e2047399c6da0727b72c12 --account=dub --inputs 459203999911522248581602073328953722971521969952 1481453262604174185039 0x0660cC8805f88E40c4e685ABf35B279DC05C02db063f719074A4Fd2c0bfe725a 2 186294699441980128189385975247430378186545212032027732704128602017491346550 5501956574572051326717711538939620780874553431040686383 2 186294699441980128189385897752809221117368769340261348754518288977273377846 11327334022376614279043157809714529878339825288885646639
// PROXY
starknet-compile ./src/upgrades/presets/proxy.cairo --output ./build/proxy.json
starknet declare --contract ./build/proxy.json --account=dub
proxy hash (my imple): 0x6fbebe249798b93ca0e2d3c7884e85a81bdb78f6d66c7d9f4ece12c532ed28
LAST CLASS HASH (implementation):
0x51fa838ced3fad6dd2885801184570dcfdd87d710c72b6b42caaba013d49b0e
PROXY CLASS HASH:
0x6fbebe249798b93ca0e2d3c7884e85a81bdb78f6d66c7d9f4ece12c532ed28
starknet deploy --class_hash 0x51fa838ced3fad6dd2885801184570dcfdd87d710c72b6b42caaba013d49b0e --account=dub --inputs 459203999911522248581602073328953722971521969952 1481453262604174185039 0x0660cC8805f88E40c4e685ABf35B279DC05C02db063f719074A4Fd2c0bfe725a 2 186294699441980128189385975247430378186545212032027732704128602017491346550 5501956574572051326717711538939620780874553431040686383 2 186294699441980128189385897752809221117368769340261348754518288977273377846 11327334022376614279043157809714529878339825288885646639
starknet invoke --account=dub --address 0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf --abi ./build/deployer.json --function deployContract --inputs 0x6fbebe249798b93ca0e2d3c7884e85a81bdb78f6d66c7d9f4ece12c532ed28 0 0 0
/////
selector 1295919550572838631247819983596733806859788957403169325509326258146877103642
imple hash 0x51fa838ced3fad6dd2885801184570dcfdd87d710c72b6b42caaba013d49b0e
proxy classhash: 0x006fbebe249798b93ca0e2d3c7884e85a81bdb78f6d66c7d9f4ece12c532ed28
protostar -p testnet declare ./build/main.json --max-fee auto
func initializer{syscall_ptr: felt*, pedersen_ptr: HashBuiltin*, range_check_ptr} (proxy_admin: felt, name: felt, symbol: felt, owner: felt, base_token_uri_len: felt, base_token_uri: felt*, contract_uri_len: felt, contract_uri: felt*) {
transaction_hash: 0x51fa838ced3fad6dd2885801184570dcfdd87d710c72b6b42caaba013d49b0e
selector: 1295919550572838631247819983596733806859788957403169325509326258146877103642
calldata_len: 17
calldata: 459203999911522248581602073328953722971521969952 1481453262604174185039 0x0660cC8805f88E40c4e685ABf35B279DC05C02db063f719074A4Fd2c0bfe725a 6 497921898345756739333477 266485432222827060410482 558649427401720118929748 257189355253337985273419 265899025610365708104537 1364276527 6 497921898345756739333475 379860922797832380966249 562911206504221755201091 464420651810301960414061 549605914511587130172515 1900427311
protostar -p testnet deploy 0x6fbebe249798b93ca0e2d3c7884e85a81bdb78f6d66c7d9f4ece12c532ed28 --max-fee auto --inputs 0x51fa838ced3fad6dd2885801184570dcfdd87d710c72b6b42caaba013d49b0e 1295919550572838631247819983596733806859788957403169325509326258146877103642 18 0x0660cC8805f88E40c4e685ABf35B279DC05C02db063f719074A4Fd2c0bfe725a 459203999911522248581602073328953722971521969952 1481453262604174185039 0x0660cC8805f88E40c4e685ABf35B279DC05C02db063f719074A4Fd2c0bfe725a 6 497921898345756739333477 266485432222827060410482 558649427401720118929748 257189355253337985273419 265899025610365708104537 1364276527 6 497921898345756739333475 379860922797832380966249 562911206504221755201091 464420651810301960414061 549605914511587130172515 1900427311