-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcli_command.txt
50 lines (28 loc) · 2.45 KB
/
cli_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
47
48
49
forge test --fork-url https://goerli.infura.io/v3/083de4ff46a746c2b1e37ce1c6a305ed
anvil -a 5 --fork-url https://goerli.infura.io/v3/083de4ff46a746c2b1e37ce1c6a305ed --chain-id 33535
# --state ./testnet-state
// DEPLOYING TOKENS:
forge create --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 invisible_solidity/src/TestToken.sol:TestToken --constructor-args "Test Usdc" "USDC"
forge create --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 invisible_solidity/src/TestToken.sol:TestToken --constructor-args "Test Wrapped BTC" "WBTC"
// DEPLOYING MAIN CONTRACTS:
forge create --rpc-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 invisible_solidity/src/InvisibleL1.sol:InvisibleL1 --constructor-args 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
USDC
Deployer: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Deployed to: 0x1754C78DD11F6B07DFC9e529BD19d912EAEfA1c8
Transaction hash: 0xadb6d6d860fddbc04529bdb078a4777af1d97999b9d87f18d18ce20f84e6dd7a
WBTC
Deployer: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Deployed to: 0xBF52caf40b7612bEd0814A09842c14BAB217BaD5
Transaction hash: 0xed934c98ac5a0c4f599335bd1796516924d4121b3345469bd97dd9a80012c73c
Deployer: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Deployed to: 0xFa62E2E9B7A3F1Aa1773e165c42fEabc52d748bB
Transaction hash: 0x50e81e923cef3bdacd312df32062cd2b1138344746f00074d22192a34c811375
REGISTER TOKENS:
cast send --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--rpc-url http://127.0.0.1:8545/ 0xFa62E2E9B7A3F1Aa1773e165c42fEabc52d748bB "registerToken(address,uint32,uint8)" \
0x1754C78DD11F6B07DFC9e529BD19d912EAEfA1c8 55555 6
cast send --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--rpc-url http://127.0.0.1:8545/ 0xFa62E2E9B7A3F1Aa1773e165c42fEabc52d748bB "registerToken(address,uint32,uint8)" \
0xBF52caf40b7612bEd0814A09842c14BAB217BaD5 12345 8
cast call --rpc-url http://127.0.0.1:8545/ 0xFa62E2E9B7A3F1Aa1773e165c42fEabc52d748bB "getWithdrawableAmount(address,address)" 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 0x1754C78DD11F6B07DFC9e529BD19d912EAEfA1c8
cast call --rpc-url http://127.0.0.1:8545/ 0xFa62E2E9B7A3F1Aa1773e165c42fEabc52d748bB "getETHWithdrawableAmount(address)" 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266