Skip to content

Commit 8628c65

Browse files
authored
Merge pull request #7 from SocketDotTech/devnet-update
Devnet update
2 parents 99e6b98 + 4af6eac commit 8628c65

6 files changed

Lines changed: 41 additions & 26 deletions

File tree

.env.sample

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# RPCs
22
EVMX_RPC="https://rpc-evmx-devnet.socket.tech/"
3-
SEPOLIA_RPC="https://rpc.ankr.com/eth_sepolia/"
4-
ARBITRUM_SEPOLIA_RPC="https://rpc.ankr.com/arbitrum_sepolia"
5-
OPTIMISM_SEPOLIA_RPC="https://rpc.ankr.com/optimism_sepolia"
6-
BASE_SEPOLIA_RPC="https://rpc.ankr.com/base_sepolia"
3+
SEPOLIA_RPC="https://ethereum-sepolia-rpc.publicnode.com"
4+
ARBITRUM_SEPOLIA_RPC="https://sepolia-rollup.arbitrum.io/rpc"
5+
OPTIMISM_SEPOLIA_RPC="https://sepolia.optimism.io"
6+
BASE_SEPOLIA_RPC="https://sepolia.base.org"
77

88
# EVMx key addresses
99
# Find the most up to date addresses at:
1010
# https://github.com/SocketDotTech/socket-protocol/blob/master/deployments/stage_addresses.json
11-
ADDRESS_RESOLVER="0xf3046B22F98C25305E8040286fB1b33378BA10a1"
12-
FEES_MANAGER="0x603723100172D30171B7Fd9870ba80F8baf6FaD4"
13-
ARBITRUM_FEES_PLUG="0x89324F93d852cB4fcDC4Ee202456be466ce096bb"
11+
ADDRESS_RESOLVER="0x4846430BB142385e581C894AE92a4CF0722aEC21"
12+
FEES_MANAGER="0x9745623Aaa299500F93d2B1B4Efb7b3EC5e60FFc"
13+
ARBITRUM_FEES_PLUG="0x9E263f6c7C199d9c147E30764A8cae1175184CB8"
1414

1515
# Add your deployer private key here
1616
# or remove it from this file if it is already an env var

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ jobs:
3131
3232
- name: Run Forge build
3333
run: |
34-
forge build --sizes
34+
forge build
3535
id: build
3636

37+
- name: Check contract sizes (non-blocking)
38+
run: |
39+
forge build --sizes || true
40+
id: size_check
41+
3742
- name: Run Forge tests
3843
run: |
3944
forge test -vvv

lib/socket-protocol

script/helpers/CheckAppEVMxLimits.s.sol

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ contract CheckLimitsScript is Script {
1818
console.log("AppGateway address:", appGateway);
1919
WatcherPrecompile watcherContract = WatcherPrecompile(watcherPrecompile);
2020

21-
LimitParams memory scheduleLimit = watcherContract.getLimitParams(SCHEDULE, appGateway);
22-
LimitParams memory queryLimit = watcherContract.getLimitParams(QUERY, appGateway);
23-
LimitParams memory finalizeLimit = watcherContract.getLimitParams(FINALIZE, appGateway);
24-
25-
uint256 scheduleCurrentLimit = watcherContract.getCurrentLimit(SCHEDULE, appGateway);
26-
uint256 queryCurrentLimit = watcherContract.getCurrentLimit(QUERY, appGateway);
27-
uint256 finalizeCurrentLimit = watcherContract.getCurrentLimit(FINALIZE, appGateway);
21+
LimitParams memory scheduleLimit =
22+
watcherContract.watcherPrecompileLimits__().getLimitParams(SCHEDULE, appGateway);
23+
LimitParams memory queryLimit = watcherContract.watcherPrecompileLimits__().getLimitParams(QUERY, appGateway);
24+
LimitParams memory finalizeLimit =
25+
watcherContract.watcherPrecompileLimits__().getLimitParams(FINALIZE, appGateway);
26+
27+
uint256 scheduleCurrentLimit = watcherContract.watcherPrecompileLimits__().getCurrentLimit(SCHEDULE, appGateway);
28+
uint256 queryCurrentLimit = watcherContract.watcherPrecompileLimits__().getCurrentLimit(QUERY, appGateway);
29+
uint256 finalizeCurrentLimit = watcherContract.watcherPrecompileLimits__().getCurrentLimit(FINALIZE, appGateway);
2830

2931
console.log("Schedule max limit:");
3032
console.log(scheduleLimit.maxLimit);
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
#!/bin/bash
22

3+
# Check if branch name is provided
4+
if [ -z "$1" ]; then
5+
echo "Error: No branch name specified."
6+
echo "Usage: $0 <branch_name>"
7+
exit 1
8+
fi
9+
10+
BRANCH_NAME=$1
11+
312
# Check for modified or staged files, but ignore untracked files
4-
if [[ -n $(git status --porcelain | grep '^[ MRAUCD]') ]]; then
13+
if git status --porcelain | grep -q '^[ MRAUCD]'; then
514
echo "Error: You have modified or staged files. Commit or stash them before running this script."
615
exit 1
716
fi
@@ -11,11 +20,10 @@ git submodule deinit -f lib/socket-protocol
1120
rm -rf .git/modules/lib/socket-protocol
1221
git rm -rf lib/socket-protocol
1322

14-
# Re-add the submodule
15-
git submodule add -b master https://github.com/SocketDotTech/socket-protocol.git lib/socket-protocol
23+
# Re-add the submodule with the specified branch
24+
git submodule add -b "$BRANCH_NAME" https://github.com/SocketDotTech/socket-protocol.git lib/socket-protocol
1625
git submodule update --init --recursive
1726

1827
# Commit the update
19-
git commit -m "Update socket-protocol submodule"
20-
21-
echo "SOCKET Protocol submodule updated successfully!"
28+
git commit -m "Update socket-protocol submodule to latest $BRANCH_NAME"
29+
echo "SOCKET Protocol submodule updated successfully to branch $BRANCH_NAME!"

test/apps/Counter.t.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ contract CounterTest is DeliveryHelperTest {
2323
contractIds[0] = counterId;
2424
}
2525

26-
function deployCounterApp(uint32 chainSlug) internal returns (bytes32 asyncId) {
27-
asyncId = _deploy(contractIds, chainSlug, 1, IAppGateway(counterGateway));
26+
function deployCounterApp(uint32 chainSlug) internal returns (uint40 requestCount) {
27+
requestCount = _deploy(chainSlug, IAppGateway(counterGateway), contractIds);
2828
}
2929

3030
function testCounterDeployment() external {
@@ -49,8 +49,8 @@ contract CounterTest is DeliveryHelperTest {
4949
address[] memory instances = new address[](1);
5050
instances[0] = arbCounterForwarder;
5151
counterGateway.incrementCounters(instances);
52+
executeRequest(new bytes[](0));
5253

53-
_executeWriteBatchSingleChain(arbChainSlug, 1);
5454
assertEq(Counter(arbCounter).counter(), arbCounterBefore + 1);
5555
}
5656

@@ -75,8 +75,8 @@ contract CounterTest is DeliveryHelperTest {
7575
uint32[] memory chains = new uint32[](2);
7676
chains[0] = arbChainSlug;
7777
chains[1] = optChainSlug;
78-
_executeWriteBatchMultiChain(chains);
7978

79+
executeRequest(new bytes[](0));
8080
assertEq(Counter(arbCounter).counter(), arbCounterBefore + 1);
8181
assertEq(Counter(optCounter).counter(), optCounterBefore + 1);
8282
}

0 commit comments

Comments
 (0)