@infinex/evm-sdk
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -45,2 +45,8 @@ import { prodLegacyAddresses } from '@infinex/manifest/archive/addresses'; | ||
// Blast TODO | ||
BLAST_MULTICALL_3_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
BLAST_ACCOUNT_FACTORY_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
BLAST_FORWARDER_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
BLAST_CARDRUN_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
// Ethereum | ||
@@ -102,2 +108,3 @@ ETHEREUM_ACCOUNT_FACTORY_ADDRESS: | ||
BASE_CHAIN_ID: 8453, | ||
BLAST_CHAIN_ID: 81457, | ||
ETHEREUM_CHAIN_ID: 1, | ||
@@ -110,2 +117,3 @@ OPTIMISM_CHAIN_ID: 10, | ||
BASE_WORMHOLE_CHAIN_ID: 30, | ||
BLAST_WORMHOLE_CHAIN_ID: 36, | ||
ETHEREUM_WORMHOLE_CHAIN_ID: 2, | ||
@@ -118,2 +126,3 @@ OPTIMISM_WORMHOLE_CHAIN_ID: 24, | ||
BASE_RPC_URL: 'https://mainnet.base.org', | ||
BLAST_RPC_URL: 'https://blast.drpc.org', | ||
ETHEREUM_RPC_URL: 'https://eth.llamarpc.com', | ||
@@ -120,0 +129,0 @@ OPTIMISM_RPC_URL: 'https://mainnet.optimism.io', |
@@ -51,2 +51,8 @@ import { stagingLegacyAddresses } from '@infinex/manifest/archive/addresses'; | ||
// Blast TODO | ||
BLAST_MULTICALL_3_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
BLAST_ACCOUNT_FACTORY_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
BLAST_FORWARDER_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
BLAST_CARDRUN_ADDRESS: '0x0000000000000000000000000000000000000000', | ||
// Ethereum | ||
@@ -116,2 +122,3 @@ ETHEREUM_ACCOUNT_FACTORY_ADDRESS: | ||
BASE_CHAIN_ID: 8453, | ||
BLAST_CHAIN_ID: 81457, | ||
ETHEREUM_CHAIN_ID: 1, | ||
@@ -124,2 +131,3 @@ OPTIMISM_CHAIN_ID: 10, | ||
BASE_WORMHOLE_CHAIN_ID: 30, | ||
BLAST_WORMHOLE_CHAIN_ID: 36, | ||
ETHEREUM_WORMHOLE_CHAIN_ID: 2, | ||
@@ -132,2 +140,3 @@ OPTIMISM_WORMHOLE_CHAIN_ID: 24, | ||
BASE_RPC_URL: 'https://mainnet.base.org', | ||
BLAST_RPC_URL: 'https://blast.drpc.org', | ||
ETHEREUM_RPC_URL: 'https://cloudflare-eth.com', | ||
@@ -134,0 +143,0 @@ OPTIMISM_RPC_URL: 'https://mainnet.optimism.io', |
@@ -49,2 +49,8 @@ import { testLegacyAddresses } from '@infinex/manifest/archive/addresses'; | ||
// Blast | ||
BLAST_MULTICALL_3_ADDRESS: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
BLAST_ACCOUNT_FACTORY_ADDRESS: '0x628cF9F21731E56E63768Ce993cBAF70A7C52cA4', | ||
BLAST_FORWARDER_ADDRESS: '0x6fD2C4DC0C2dC8b31b1067c024F6D60C89e7b42A', | ||
BLAST_CARDRUN_ADDRESS: '0xfCC42ee962e32382D63FF9baF9eD45EA45d2Ae24', | ||
// Ethereum | ||
@@ -111,2 +117,3 @@ ETHEREUM_ACCOUNT_FACTORY_ADDRESS: | ||
BASE_CHAIN_ID: 84532, | ||
BLAST_CHAIN_ID: 168587773, | ||
ETHEREUM_CHAIN_ID: 11155111, | ||
@@ -119,2 +126,3 @@ OPTIMISM_CHAIN_ID: 11155420, | ||
BASE_WORMHOLE_CHAIN_ID: 10004, | ||
BLAST_WORMHOLE_CHAIN_ID: 36, | ||
ETHEREUM_WORMHOLE_CHAIN_ID: 10002, | ||
@@ -127,2 +135,3 @@ OPTIMISM_WORMHOLE_CHAIN_ID: 10005, | ||
BASE_RPC_URL: 'https://sepolia.base.org', | ||
BLAST_RPC_URL: 'https://sepolia.blast.io', | ||
ETHEREUM_RPC_URL: 'https://rpc.sepolia.org', | ||
@@ -129,0 +138,0 @@ OPTIMISM_RPC_URL: 'https://sepolia.optimism.io', |
{ | ||
"name": "@infinex/evm-sdk", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "env", |
@@ -15,3 +15,3 @@ import { | ||
args: EncodeFunctionDataParameters<TAbi, TFunctionName>['args'], | ||
// @ts-expect-error | ||
// @ts-expect-error This is a hack to make the type system happy | ||
) => encodeFunctionData({ abi, functionName, args }), | ||
@@ -18,0 +18,0 @@ parseEventLogs: (logs: ParseEventLogsParameters<TAbi>['logs']) => |
@@ -27,2 +27,3 @@ import * as chains from 'viem/chains'; | ||
polygon: 137n, | ||
blast: 81457n, | ||
} as const; | ||
@@ -36,2 +37,3 @@ | ||
polygon: 80002n, | ||
blast: 168587773n, | ||
} as const; |
@@ -8,2 +8,3 @@ import { createAbiObjects } from './abis'; | ||
'base', | ||
'blast', | ||
'ethereum', | ||
@@ -21,2 +22,3 @@ 'optimism', | ||
base: createChainObject(manifest.abis, manifest.chains.base), | ||
blast: createChainObject(manifest.abis, manifest.chains.blast), | ||
ethereum: createChainObject(manifest.abis, manifest.chains.ethereum), | ||
@@ -23,0 +25,0 @@ optimism: createChainObject(manifest.abis, manifest.chains.optimism), |
@@ -17,2 +17,3 @@ // @YINGLI Remove these once the platform updates its code to use routerV1, V2 | ||
AppModule, | ||
CardRun, | ||
CrateOpener, | ||
@@ -42,4 +43,4 @@ CratePoints, | ||
import { type Abi } from 'abitype'; | ||
import { type Address, erc20Abi } from 'viem'; | ||
import { arbitrum, base, mainnet, optimism, polygon } from 'viem/chains'; | ||
import { type Address, erc20Abi, zeroAddress } from 'viem'; | ||
import { arbitrum, base, mainnet, optimism, polygon, blast } from 'viem/chains'; | ||
@@ -54,2 +55,3 @@ import { circleChainIds } from './chainIds'; | ||
accountUtilsModule: AccountUtilsModule, | ||
cardRun: CardRun, | ||
ctpStakingRewards: CtPStakingRewards, | ||
@@ -126,2 +128,11 @@ crateOpener: CrateOpener, | ||
// blast | ||
BLAST_CHAIN_ID: number; | ||
BLAST_RPC_URL: string; | ||
BLAST_MULTICALL_3_ADDRESS: Address; | ||
BLAST_ACCOUNT_FACTORY_ADDRESS: Address; | ||
BLAST_CARDRUN_ADDRESS: Address; | ||
BLAST_FORWARDER_ADDRESS: Address; | ||
BLAST_WORMHOLE_CHAIN_ID: number; | ||
// ethereum | ||
@@ -282,2 +293,20 @@ ETHEREUM_CHAIN_ID: number; | ||
}, | ||
blast: { | ||
id: env.BLAST_CHAIN_ID, | ||
name: 'blast', | ||
nativeCurrency: blast.nativeCurrency, | ||
rpcUrl: env.BLAST_RPC_URL, | ||
multicall3Address: env.BLAST_MULTICALL_3_ADDRESS, | ||
accountsRouters: [], | ||
infinexProtocolConfigBeacons: [], | ||
deprecatedCurveStableSwapAppBeacon: zeroAddress, | ||
contracts: { | ||
infinexErc2771Forwarder: env.BLAST_FORWARDER_ADDRESS, | ||
accountFactory: env.BLAST_ACCOUNT_FACTORY_ADDRESS, | ||
cardRun: env.BLAST_CARDRUN_ADDRESS, | ||
}, | ||
wormholeChainId: env.BLAST_WORMHOLE_CHAIN_ID, | ||
// not supported | ||
circeChainId: -1, | ||
}, | ||
ethereum: { | ||
@@ -284,0 +313,0 @@ id: env.ETHEREUM_CHAIN_ID, |
49957
1216