-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtestScript.sh
55 lines (38 loc) · 2.89 KB
/
testScript.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
## Parallel Counter
source .env && forge script script/parallel-counter/deployOffchain.s.sol --broadcast --skip-simulation
## set limits for the app gateway using API
source .env && cast send $DEPLOYER "deployMultiChainContracts(uint32[])" '[421614, 11155420]' --rpc-url $ETH_RPC_URL --private-key $PRIVATE_KEY
source .env && forge script script/parallel-counter/checkCounters.s.sol --broadcast --skip-simulation
## Counter
source .env && forge script script/counter/DeployCounterOffchain.s.sol --broadcast --skip-simulation
## set limits for the app gateway using API
source .env && cast send $DEPLOYER "deployContracts(uint32)" 421614 --rpc-url $ETH_RPC_URL --private-key $PRIVATE_KEY
source .env && cast send $APP_GATEWAY "incrementCounters(address[])" '[0x4507f726d8ca980e3a1800a8d972792d7ff46f65]' --rpc-url $ETH_RPC_URL --private-key $PRIVATE_KEY
forge script script/counter/incrementCounters.s.sol --broadcast --skip-simulation
forge script script/counter/checkCounters.s.sol --broadcast --skip-simulation
## Cron
source .env && forge script script/cron/DeployGateway.s.sol:DeployGateway --broadcast --skip-simulation
source .env && forge script script/cron/SetTimeout.s.sol:SetTimeoutScript --broadcast --skip-simulation
## Super Token Lockable
forge script script/super-token-lockable/DeployGateway.s.sol --broadcast --skip-simulation
source .env && cast send $DEPLOYER "deployContracts(uint32)" 421614 --private-key $PRIVATE_KEY
source .env && cast send $DEPLOYER "deployContracts(uint32)" 11155420 --private-key $PRIVATE_KEY
forge script script/super-token-lockable/Bridge.s.sol --broadcast --skip-simulation
source .env && cast send $APP_GATEWAY $data --private-key $PRIVATE_KEY
## Counter Inbox
forge script script/counter-inbox/DeployCounterAndGateway.s.sol --broadcast --skip-simulation
source .env && cast send $COUNTER_INBOX "connectSocket(address,address,address)" $APP_GATEWAY $SOCKET $SWITCHBOARD --rpc-url $ARBITRUM_SEPOLIA_RPC --private-key $SPONSOR_KEY
source .env && cast send $COUNTER_INBOX "increaseOnGateway(uint256)" 100 --rpc-url $ARBITRUM_SEPOLIA_RPC --private-key $SPONSOR_KEY
forge script script/counter-inbox/CheckGatewayCounter.s.sol --broadcast --skip-simulation
## Mock Testing
forge script script/mock/DeployVM.s.sol --broadcast --skip-simulation
forge script script/mock/DeploySocket.s.sol --broadcast --skip-simulation
forge script script/mock/Timeout.s.sol --broadcast --skip-simulation
forge script script/mock/Query.s.sol --broadcast --skip-simulation
forge script script/mock/Inbox.s.sol --broadcast --skip-simulation
forge script script/mock/FinalizeAndExecution.s.sol --broadcast --skip-simulation
## Check Limits
forge script script/admin/checkLimits.s.sol --broadcast --skip-simulation
forge script script/admin/UpdateLimits.s.sol --broadcast --skip-simulation
# add fees
source .env && forge script script/DepositFees.s.sol --broadcast --skip-simulation --private-key $PRIVATE_KEY