Skip to content

Commit

Permalink
Merge branch 'main' into export-prepare-fn-data
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc authored Feb 14, 2025
2 parents fe43699 + e9a1a93 commit 10ecc04
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 42 deletions.
8 changes: 7 additions & 1 deletion audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@
// from: @arbitrum/nitro-contracts>patch-package>cross-spawn
// from: @arbitrum/token-bridge-contracts>@arbitrum/nitro-contracts>patch-package>cross-spawn
// from: @offchainlabs/l1-l3-teleport-contracts>@arbitrum/token-bridge-contracts>@arbitrum/nitro-contracts>patch-package>cross-spawn
"GHSA-3xgq-45jj-v275"
"GHSA-3xgq-45jj-v275",
// https://github.com/advisories/GHSA-vg6x-rcgg-rjx6
// Websites were able to send any requests to the development server and read the response in vite
// vitest is only used in testing
// from: vitest>vite
// from: vitest>vite-node>vite
"GHSA-vg6x-rcgg-rjx6"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"prettier": "^2.8.3",
"ts-morph": "^21.0.1",
"typescript": "^5.2.2",
"vitest": "^1.6.0"
"vitest": "^1.6.1"
},
"resolutions": {
"**/@wagmi/cli/viem/ws": "8.17.1",
Expand Down
2 changes: 1 addition & 1 deletion src/createRollupGetRetryablesFees.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createRollupGetRetryablesFees } from './createRollupGetRetryablesFees';

const sepoliaClient = createPublicClient({
chain: sepolia,
transport: http(),
transport: http('https://gateway.tenderly.co/public/sepolia'),
});

it('successfully fetches retryable fees for an eth-based chain', async () => {
Expand Down
15 changes: 14 additions & 1 deletion src/getValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,23 @@ export async function getValidators<TChain extends Chain>(
abi: [execTransactionABI],
data: tx.input,
});

const execTransactionCalldataData = execTransactionCalldata[2];
const execTransactionCalldataDataFnSelector = execTransactionCalldataData.slice(0, 10);

if (execTransactionCalldataDataFnSelector !== upgradeExecutorExecuteCallFunctionSelector) {
console.warn(
`[getValidators] unable to decode "execTransaction" calldata, tx id: ${tx.hash}`,
);
isAccurate = false;
return acc;
}

const { args: executeCallCalldata } = decodeFunctionData({
abi: [executeCallABI],
data: execTransactionCalldata[2],
data: execTransactionCalldataData,
});

return updateAccumulator(acc, executeCallCalldata[1]);
}
default: {
Expand Down
2 changes: 1 addition & 1 deletion src/getValidators.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ it('getValidators return all validators (Xai)', async () => {
rollup: '0xc47dacfbaa80bd9d8112f4e8069482c2a3221336',
});
expect(validators).toEqual(['0x25EA41f0bDa921a0eBf48291961B1F10b59BC6b8']);
expect(isAccurate).toBeTruthy();
expect(isAccurate).toBeFalsy();
});

// https://sepolia.arbiscan.io/tx/0x5b0b49e0259289fc89949a55a5ad35a8939440a55065d29b14e5e7ef7494efff
Expand Down
74 changes: 37 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -922,44 +922,44 @@
dependencies:
"@types/yargs-parser" "*"

"@vitest/[email protected].0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-1.6.0.tgz#0b3ba0914f738508464983f4d811bc122b51fb30"
integrity sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==
"@vitest/[email protected].1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-1.6.1.tgz#b90c213f587514a99ac0bf84f88cff9042b0f14d"
integrity sha512-jXL+9+ZNIJKruofqXuuTClf44eSpcHlgj3CiuNihUF3Ioujtmc0zIa3UJOW5RjDK1YLBJZnWBlPuqhYycLioog==
dependencies:
"@vitest/spy" "1.6.0"
"@vitest/utils" "1.6.0"
"@vitest/spy" "1.6.1"
"@vitest/utils" "1.6.1"
chai "^4.3.10"

"@vitest/[email protected].0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-1.6.0.tgz#a6de49a96cb33b0e3ba0d9064a3e8d6ce2f08825"
integrity sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==
"@vitest/[email protected].1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@vitest/runner/-/runner-1.6.1.tgz#10f5857c3e376218d58c2bfacfea1161e27e117f"
integrity sha512-3nSnYXkVkf3mXFfE7vVyPmi3Sazhb/2cfZGGs0JRzFsPFvAMBEcrweV1V1GsrstdXeKCTXlJbvnQwGWgEIHmOA==
dependencies:
"@vitest/utils" "1.6.0"
"@vitest/utils" "1.6.1"
p-limit "^5.0.0"
pathe "^1.1.1"

"@vitest/[email protected].0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-1.6.0.tgz#deb7e4498a5299c1198136f56e6e0f692e6af470"
integrity sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==
"@vitest/[email protected].1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@vitest/snapshot/-/snapshot-1.6.1.tgz#90414451a634bb36cd539ccb29ae0d048a8c0479"
integrity sha512-WvidQuWAzU2p95u8GAKlRMqMyN1yOJkGHnx3M1PL9Raf7AQ1kwLKg04ADlCa3+OXUZE7BceOhVZiuWAbzCKcUQ==
dependencies:
magic-string "^0.30.5"
pathe "^1.1.1"
pretty-format "^29.7.0"

"@vitest/[email protected].0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-1.6.0.tgz#362cbd42ccdb03f1613798fde99799649516906d"
integrity sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==
"@vitest/[email protected].1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@vitest/spy/-/spy-1.6.1.tgz#33376be38a5ed1ecd829eb986edaecc3e798c95d"
integrity sha512-MGcMmpGkZebsMZhbQKkAf9CX5zGvjkBTqf8Zx3ApYWXr3wG+QvEu2eXWfnIIWYSJExIp4V9FCKDEeygzkYrXMw==
dependencies:
tinyspy "^2.2.0"

"@vitest/[email protected].0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-1.6.0.tgz#5c5675ca7d6f546a7b4337de9ae882e6c57896a1"
integrity sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==
"@vitest/[email protected].1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@vitest/utils/-/utils-1.6.1.tgz#6d2f36cb6d866f2bbf59da854a324d6bf8040f17"
integrity sha512-jOrrUvXM4Av9ZWiG1EajNto0u96kWAhJ1LmPmJhXXQx/32MecEKd10pOLYgS2BQx1TgkGhloPU1ArDW2vvaY6g==
dependencies:
diff-sequences "^29.6.3"
estree-walker "^3.0.3"
Expand Down Expand Up @@ -3585,10 +3585,10 @@ viem@^1.0.0:
isows "1.0.3"
ws "8.13.0"

[email protected].0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-1.6.0.tgz#2c7e61129bfecc759478fa592754fd9704aaba7f"
integrity sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==
[email protected].1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-1.6.1.tgz#fff3ef309296ea03ceaa6ca4bb660922f5416c57"
integrity sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==
dependencies:
cac "^6.7.14"
debug "^4.3.4"
Expand All @@ -3607,16 +3607,16 @@ vite@^5.0.0:
optionalDependencies:
fsevents "~2.3.3"

vitest@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/vitest/-/vitest-1.6.0.tgz#9d5ad4752a3c451be919e412c597126cffb9892f"
integrity sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==
vitest@^1.6.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/vitest/-/vitest-1.6.1.tgz#b4a3097adf8f79ac18bc2e2e0024c534a7a78d2f"
integrity sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==
dependencies:
"@vitest/expect" "1.6.0"
"@vitest/runner" "1.6.0"
"@vitest/snapshot" "1.6.0"
"@vitest/spy" "1.6.0"
"@vitest/utils" "1.6.0"
"@vitest/expect" "1.6.1"
"@vitest/runner" "1.6.1"
"@vitest/snapshot" "1.6.1"
"@vitest/spy" "1.6.1"
"@vitest/utils" "1.6.1"
acorn-walk "^8.3.2"
chai "^4.3.10"
debug "^4.3.4"
Expand All @@ -3630,7 +3630,7 @@ vitest@^1.6.0:
tinybench "^2.5.1"
tinypool "^0.8.3"
vite "^5.0.0"
vite-node "1.6.0"
vite-node "1.6.1"
why-is-node-running "^2.2.2"

wcwidth@^1.0.1:
Expand Down

0 comments on commit 10ecc04

Please sign in to comment.