Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .yarn/patches/viem-npm-2.37.1-7013552341
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000000000000000000000000000000000000..070e604515969065ffd11b45b3e71784582e4933
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,7 @@
+{
+ "workbench.colorCustomizations": {
+ "activityBar.background": "#4C2112",
+ "titleBar.activeBackground": "#6B2E19",
+ "titleBar.activeForeground": "#FDF9F7"
+ }
+}
\ No newline at end of file
diff --git a/_types/types/misc.d.ts b/_types/types/misc.d.ts
index 2fa2d166d6e708ad2adea724a2e20f40b0b9ac88..032498f54ab08dfba43dd125637f0c70b19a93ae 100644
--- a/_types/types/misc.d.ts
+++ b/_types/types/misc.d.ts
@@ -1,6 +1,6 @@
import type { OneOf } from './utils.js';
export type ByteArray = Uint8Array;
-export type Hex = `0x${string}`;
+export type Hex = string
export type Hash = `0x${string}`;
export type LogTopic = Hex | Hex[] | null;
export type SignableMessage = string | {
diff --git a/types/misc.ts b/types/misc.ts
index 625ba085cc64d197faff2f981ff06e706c2898a0..59e49bec00ac4a7a2f351c1406a356760f4a7e47 100644
--- a/types/misc.ts
+++ b/types/misc.ts
@@ -1,7 +1,7 @@
import type { OneOf } from './utils.js'

export type ByteArray = Uint8Array
-export type Hex = `0x${string}`
+export type Hex = string
export type Hash = `0x${string}`
export type LogTopic = Hex | Hex[] | null
export type SignableMessage =
2 changes: 1 addition & 1 deletion landing/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
}
},
"references": [{ "path": "../sdk" }],
"include": ["src", "../sdk", "../src"]
"include": ["src", "../sdk", "../src", "../viem-override.d.ts"]
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
"ts:clean": "tsc --build --clean && tsc --build",
"tscheck": "yarn ts:clean && tsc -p tsconfig.json --noEmit",
"prettier": "prettier --write src/**/*.{js,ts,jsx,tsx,css,scss}",
"typechain": "typechain --target ethers-v6 --out-dir ./src/typechain-types './sdk/src/abis/*.json'",
"typechain:stargate": "typechain --target ethers-v6 --out-dir ./src/typechain-types-stargate './node_modules/@stargatefinance/stg-evm-sdk-v2/artifacts/src/interfaces/IStargate.sol/IStargate.json'",
"postinstall": "yarn typechain && cd ./sdk && echo \"Building SDK\" && yarn && yarn build",
"postinstall": "cd ./sdk && echo \"Building SDK\" && yarn && yarn build",
"prebuild": "cd ./sdk && yarn tsx scripts/prebuild"
},
"dependencies": {
Expand Down Expand Up @@ -110,7 +109,8 @@
"react-error-overlay": "6.0.9",
"@coinbase/wallet-sdk": "4.3.0",
"[email protected]": "patch:ethers@npm:6.12.1#.yarn/patches/ethers-npm-6.12.1-7d4a09a25c",
"jest-runner": "patch:jest-runner@npm:27.5.1#.yarn/patches/jest-runner-npm-27.5.1-2ed2c1cda8"
"jest-runner": "patch:jest-runner@npm:27.5.1#.yarn/patches/jest-runner-npm-27.5.1-2ed2c1cda8",
"[email protected]": "patch:viem@npm:2.37.1#.yarn/patches/viem-npm-2.37.1-7013552341"
},
"eslintConfig": {
"extends": [
Expand Down
1 change: 0 additions & 1 deletion sdk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/.pnp
.pnp.js
.vscode
.yarn

# lingui
/src/locales/**/*.js
Expand Down
6 changes: 5 additions & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,14 @@
"ts-patch": "3.2.1",
"tsx": "4.19.0",
"typescript-transform-paths": "3.5.1",
"viem": "2.37.1",
"vitest": "3.0.4"
},
"files": [
"build"
],
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"resolutions": {
"[email protected]": "patch:viem@npm:2.37.1#../.yarn/patches/viem-npm-2.37.1-7013552341"
}
}
105 changes: 0 additions & 105 deletions sdk/src/abis/ArbitrumNodeInterface.json

This file was deleted.

103 changes: 103 additions & 0 deletions sdk/src/abis/ArbitrumNodeInterface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
export default [
{
inputs: [
{ internalType: "uint64", name: "size", type: "uint64" },
{ internalType: "uint64", name: "leaf", type: "uint64" },
],
name: "constructOutboxProof",
outputs: [
{ internalType: "bytes32", name: "send", type: "bytes32" },
{ internalType: "bytes32", name: "root", type: "bytes32" },
{ internalType: "bytes32[]", name: "proof", type: "bytes32[]" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "sender", type: "address" },
{ internalType: "uint256", name: "deposit", type: "uint256" },
{ internalType: "address", name: "to", type: "address" },
{ internalType: "uint256", name: "l2CallValue", type: "uint256" },
{ internalType: "address", name: "excessFeeRefundAddress", type: "address" },
{ internalType: "address", name: "callValueRefundAddress", type: "address" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "estimateRetryableTicket",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "uint64", name: "blockNum", type: "uint64" }],
name: "findBatchContainingBlock",
outputs: [{ internalType: "uint64", name: "batch", type: "uint64" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "to", type: "address" },
{ internalType: "bool", name: "contractCreation", type: "bool" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "gasEstimateComponents",
outputs: [
{ internalType: "uint64", name: "gasEstimate", type: "uint64" },
{ internalType: "uint64", name: "gasEstimateForL1", type: "uint64" },
{ internalType: "uint256", name: "baseFee", type: "uint256" },
{ internalType: "uint256", name: "l1BaseFeeEstimate", type: "uint256" },
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "to", type: "address" },
{ internalType: "bool", name: "contractCreation", type: "bool" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "gasEstimateL1Component",
outputs: [
{ internalType: "uint64", name: "gasEstimateForL1", type: "uint64" },
{ internalType: "uint256", name: "baseFee", type: "uint256" },
{ internalType: "uint256", name: "l1BaseFeeEstimate", type: "uint256" },
],
stateMutability: "payable",
type: "function",
},
{
inputs: [{ internalType: "bytes32", name: "blockHash", type: "bytes32" }],
name: "getL1Confirmations",
outputs: [{ internalType: "uint64", name: "confirmations", type: "uint64" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "uint256", name: "batchNum", type: "uint256" },
{ internalType: "uint64", name: "index", type: "uint64" },
],
name: "legacyLookupMessageBatchProof",
outputs: [
{ internalType: "bytes32[]", name: "proof", type: "bytes32[]" },
{ internalType: "uint256", name: "path", type: "uint256" },
{ internalType: "address", name: "l2Sender", type: "address" },
{ internalType: "address", name: "l1Dest", type: "address" },
{ internalType: "uint256", name: "l2Block", type: "uint256" },
{ internalType: "uint256", name: "l1Block", type: "uint256" },
{ internalType: "uint256", name: "timestamp", type: "uint256" },
{ internalType: "uint256", name: "amount", type: "uint256" },
{ internalType: "bytes", name: "calldataForL1", type: "bytes" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "nitroGenesisBlock",
outputs: [{ internalType: "uint256", name: "number", type: "uint256" }],
stateMutability: "pure",
type: "function",
},
] as const;
Loading