@infinex/evm-sdk
Advanced tools
Comparing version 0.0.6 to 0.0.8
@@ -1,6 +0,5 @@ | ||
import { default as dev } from './dev'; | ||
import { default as fork } from './fork'; | ||
import { default as prod } from './prod'; | ||
import { default as staging } from './staging'; | ||
import { default as dev } from './test'; | ||
export const env = { dev, staging, prod, fork }; | ||
export const env = { dev, staging, prod }; |
@@ -1,2 +0,4 @@ | ||
export default { | ||
import { prodLegacyAddresses } from '@infinex/manifest/archive/addresses'; | ||
const env = Object.assign(prodLegacyAddresses, { | ||
// Arbitrum | ||
@@ -95,3 +97,3 @@ ARBITRUM_ACCOUNT_FACTORY_ADDRESS: | ||
BASE_RPC_URL: 'https://mainnet.base.org', | ||
ETHEREUM_RPC_URL: 'https://cloudflare-eth.com', | ||
ETHEREUM_RPC_URL: 'https://eth.llamarpc.com', | ||
OPTIMISM_RPC_URL: 'https://mainnet.optimism.io', | ||
@@ -111,2 +113,64 @@ POLYGON_RPC_URL: 'https://polygon-rpc.com', | ||
'0xF3be9355363857F3e001be68856A2f96b4C39Ba9', | ||
} as const; | ||
// Arbitrum | ||
ARBITRUM_ACCOUNTS_ROUTER_V1: '0x1c420ecf3b4bc800395f35f3d989900781f3ad0f', | ||
ARBITRUM_ACCOUNTS_ROUTER_V2: '0x75efaa85c149a9043aaf236cdc6054589761e009', | ||
ARBITRUM_ACCOUNTS_ROUTER_LATEST: '0x75efaa85c149a9043aaf236cdc6054589761e009', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x2b8587b08bB3DB1fA969792A255b2dC6385266A9', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x5EA88AD0Bfdf59e96792686d964183fD14ae1f22', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x5EA88AD0Bfdf59e96792686d964183fD14ae1f22', | ||
// Base | ||
BASE_ACCOUNTS_ROUTER_V1: '0x1c420ecf3b4bc800395f35f3d989900781f3ad0f', | ||
BASE_ACCOUNTS_ROUTER_V2: '0xfbe4746294a7e465713134224c445c8ca2e420e5', | ||
BASE_ACCOUNTS_ROUTER_LATEST: '0xfbe4746294a7e465713134224c445c8ca2e420e5', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0xB9e52326efb5312171Dad2D91155D08E61C8953f', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x7810Ac631B2fED557499bc6e1e7bC10e9B54A3e2', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x7810Ac631B2fED557499bc6e1e7bC10e9B54A3e2', | ||
// Ethereum | ||
ETHEREUM_ACCOUNTS_ROUTER_V1: '0x0df88d1a1b60eec6edd518260f7c2ce855140b32', | ||
ETHEREUM_ACCOUNTS_ROUTER_V2: '0xf65dc71ac1861cc4d6f00d9f53d567b03742fe84', | ||
ETHEREUM_ACCOUNTS_ROUTER_LATEST: '0xf65dc71ac1861cc4d6f00d9f53d567b03742fe84', | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x8cD9a36dC2536b872a1ced868e19f425d516008C', | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0xB366911b55Cc5F19D06c6b30909F8768e0bE0a3F', | ||
ETHERUEM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0xB366911b55Cc5F19D06c6b30909F8768e0bE0a3F', | ||
// Optimism | ||
OPTIMISM_ACCOUNTS_ROUTER_V1: '0x1c420ecf3b4bc800395f35f3d989900781f3ad0f', | ||
OPTIMISM_ACCOUNTS_ROUTER_V2: '0x0690cc3a16097c3f704b42767662942efbd92a59', | ||
OPTIMISM_ACCOUNTS_ROUTER_LATEST: '0x0690cc3a16097c3f704b42767662942efbd92a59', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x642A19B23a5C5240fb6E1b055332c79e15c43c24', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x36A00B1b809Ff7CAd106AEBe84418E91dBAd3571', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x36A00B1b809Ff7CAd106AEBe84418E91dBAd3571', | ||
// Polygon | ||
POLYGON_ACCOUNTS_ROUTER_V1: '0xf103ded984c30b6741f2cdbd28c9c1100143dc25', | ||
POLYGON_ACCOUNTS_ROUTER_V2: '0xe829299f60a9f59dbf95f5fb121f3853407e0678', | ||
POLYGON_ACCOUNTS_ROUTER_LATEST: '0xe829299f60a9f59dbf95f5fb121f3853407e0678', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x2873678A76494B19F1cE01e73810496491AC326E', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x737f3E8dFb35f85eF7c05EBf25AEd0267aaf3fe6', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x737f3E8dFb35f85eF7c05EBf25AEd0267aaf3fe6', | ||
} as const); | ||
export default env; |
@@ -1,2 +0,4 @@ | ||
export default { | ||
import { stagingLegacyAddresses } from '@infinex/manifest/archive/addresses'; | ||
const env = Object.assign(stagingLegacyAddresses, { | ||
// Arbitrum | ||
@@ -110,2 +112,78 @@ ARBITRUM_ACCOUNT_FACTORY_ADDRESS: | ||
'0xF3be9355363857F3e001be68856A2f96b4C39Ba9', | ||
} as const; | ||
// Arbitrum | ||
ARBITRUM_ACCOUNTS_ROUTER_V1: '0xcf135e4aabecfc649c4bead4a4cb7b7330b4daeb', | ||
ARBITRUM_ACCOUNTS_ROUTER_V2: '0x5292671389292a590ec3eb5cc4dbfca837dd6170', | ||
ARBITRUM_ACCOUNTS_ROUTER_LATEST: '0x5292671389292a590ec3eb5cc4dbfca837dd6170', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x2b8587b08bB3DB1fA969792A255b2dC6385266A9', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x5EA88AD0Bfdf59e96792686d964183fD14ae1f22', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V3: | ||
'0x5EA88AD0Bfdf59e96792686d964183fD14ae1f22', | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x5EA88AD0Bfdf59e96792686d964183fD14ae1f22', | ||
// Base | ||
BASE_ACCOUNTS_ROUTER_V1: '0xbff1bff163e97604915cf2632cf161db9abe6e07', | ||
BASE_ACCOUNTS_ROUTER_V2: '0x2506da5b977f21b9c0e94d48786f0598a73ceaf8', | ||
BASE_ACCOUNTS_ROUTER_V3: '0x2506da5b977f21b9c0e94d48786f0598a73ceaf8', | ||
BASE_ACCOUNTS_ROUTER_LATEST: '0x2506da5b977f21b9c0e94d48786f0598a73ceaf8', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0xB9e52326efb5312171Dad2D91155D08E61C8953f', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x7810Ac631B2fED557499bc6e1e7bC10e9B54A3e2', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V3: | ||
'0x7810Ac631B2fED557499bc6e1e7bC10e9B54A3e2', | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x7810Ac631B2fED557499bc6e1e7bC10e9B54A3e2', | ||
// Ethereum | ||
ETHEREUM_ACCOUNTS_ROUTER_V1: '0x132c592dacc4ad2ae821fa0457119243522deb74', | ||
ETHEREUM_ACCOUNTS_ROUTER_V2: '0x2338d2857eed5913c6b660f889291fb04f76fff2', | ||
ETHEREUM_ACCOUNTS_ROUTER_V3: '0x2338d2857eed5913c6b660f889291fb04f76fff2', | ||
ETHEREUM_ACCOUNTS_ROUTER_LATEST: '0x2338d2857eed5913c6b660f889291fb04f76fff2', | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x8cD9a36dC2536b872a1ced868e19f425d516008C', | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0xB366911b55Cc5F19D06c6B30909F8768e0bE0a3F', | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V3: | ||
'0xB366911b55Cc5F19D06c6B30909F8768e0bE0a3F', | ||
ETHERUEM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0xB366911b55Cc5F19D06c6B30909F8768e0bE0a3F', | ||
// Optimism | ||
OPTIMISM_ACCOUNTS_ROUTER_V1: '0xcf135e4aabecfc649c4bead4a4cb7b7330b4daeb', | ||
OPTIMISM_ACCOUNTS_ROUTER_V2: '0xa89e855ca2be25ef7c364f1c6b3bd02c8552747e', | ||
OPTIMISM_ACCOUNTS_ROUTER_V3: '0xa89e855ca2be25ef7c364f1c6b3bd02c8552747e', | ||
OPTIMISM_ACCOUNTS_ROUTER_LATEST: '0xa89e855ca2be25ef7c364f1c6b3bd02c8552747e', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x642A19B23a5C5240fb6E1b055332c79e15c43c24', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x36A00B1b809Ff7CAd106AEBe84418E91dBAd3571', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V3: | ||
'0x36A00B1b809Ff7CAd106AEBe84418E91dBAd3571', | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x36A00B1b809Ff7CAd106AEBe84418E91dBAd3571', | ||
// Polygon | ||
POLYGON_ACCOUNTS_ROUTER_V1: '0x13621f30ae84571c1e8c43df36a638aaa5004464', | ||
POLYGON_ACCOUNTS_ROUTER_V2: '0x483e651b70010f8fe4841b11d4013de59edcffe7', | ||
POLYGON_ACCOUNTS_ROUTER_V3: '0x483e651b70010f8fe4841b11d4013de59edcffe7', | ||
POLYGON_ACCOUNTS_ROUTER_LATEST: '0x483e651b70010f8fe4841b11d4013de59edcffe7', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V1: | ||
'0x2873678A76494B19F1cE01e73810496491AC326E', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V2: | ||
'0x737f3E8dFb35f85eF7c05EBf25AEd0267aaf3fe6', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V3: | ||
'0x737f3E8dFb35f85eF7c05EBf25AEd0267aaf3fe6', | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: | ||
'0x737f3E8dFb35f85eF7c05EBf25AEd0267aaf3fe6', | ||
} as const); | ||
export default env; |
{ | ||
"name": "@infinex/evm-sdk", | ||
"version": "0.0.6", | ||
"version": "0.0.8", | ||
"files": [ | ||
@@ -16,3 +16,4 @@ "env", | ||
"fix:format": "prettier . --write", | ||
"fix:lint": "eslint . --fix" | ||
"fix:lint": "eslint . --fix", | ||
"prepublish": "pnpm --filter @infinex/sdk-test run test" | ||
}, | ||
@@ -25,2 +26,3 @@ "dependencies": { | ||
"@infinex/infinex-sdk": "workspace:*", | ||
"@infinex/manifest": "workspace:*", | ||
"@infinex/typescript-config": "workspace:*", | ||
@@ -27,0 +29,0 @@ "@types/node": "^22.0.0", |
@@ -52,2 +52,3 @@ import { | ||
getBalance: PublicClient['getBalance']; | ||
getBlock: PublicClient['getBlock']; | ||
} { | ||
@@ -93,3 +94,4 @@ const chain = defineChain({ | ||
getBalance: publicClient.getBalance, | ||
getBlock: publicClient.getBlock, | ||
}; | ||
} |
@@ -9,1 +9,10 @@ export const circleChainIds = { | ||
} as const; | ||
export const infinexChainIds = { | ||
arbitrum: 0n, | ||
base: 1n, | ||
ethereum: 2n, | ||
optimism: 3n, | ||
polygon: 4n, | ||
solana: 5n, | ||
} as const; |
@@ -0,26 +1,38 @@ | ||
// @YINGLI Remove these once the platform updates its code to use routerV1, V2 | ||
import { | ||
AccountFactoryAbi as accountFactoryAbi, | ||
AccountUtilsModuleAbi as accountUtilsModuleAbi, | ||
AppModuleAbi as appModuleAbi, | ||
BaseModuleAbi as baseModuleAbi, | ||
BridgingModuleAbi as bridgingModuleAbi, | ||
CrateOpenerAbi as crateOpenerAbi, | ||
CratePointsAbi as cratePointsAbi, | ||
CtPStakingRewardsAbi as ctpStakingRewardsAbi, | ||
CurveStableSwapAppAbi as curveStableSwapAppAbi, | ||
CurveStableSwapAppBeaconAbi as curveStableSwapAppBeaconAbi, | ||
GovernancePointsAbi as governancePointsAbi, | ||
IMessageTransmitterAbi as messageTransmitterAbi, | ||
InfinexERC2771ForwarderAbi as infinexErc2771ForwarderAbi, | ||
InfinexProtocolConfigBeaconAbi as infinexProtocolConfigBeaconAbi, | ||
IUUPSImplementationAbi as iuupsImplementationAbi, | ||
OLD_RecoveryModuleAbi as oldRecoveryModuleAbi, | ||
OLD_StWStakingRewardsAbi as stwStakingRewardsAbi, | ||
RecoveryModuleAbi as recoveryModuleAbi, | ||
BaseModuleAbi as baseModule, | ||
BridgingModuleAbi as bridgingModule, | ||
OLD_RecoveryModuleAbi as oldRecoveryModule, | ||
RecoveryModuleAbi as recoveryModule, | ||
WithdrawModuleAbi as withdrawModuleAbi, | ||
} from '@infinex/infinex-sdk/src/abis'; | ||
import { | ||
CurveStableSwapFactoryNGAbi as curveStableSwapNGFactoryAbi, | ||
CurveStableSwapNGAbi as curveStableSwagNGAbi, | ||
CurveStableSwapFactoryNGAbi as curveStableSwapNGFactory, | ||
CurveStableSwapNGAbi as curveStableSwagNG, | ||
} from '@infinex/infinex-sdk/src/custom-abis'; | ||
import { | ||
AccountFactory, | ||
AccountsRouter, | ||
AccountUtilsModule, | ||
AppModule, | ||
CurveStableSwapApp, | ||
CurveStableSwapAppBeacon, | ||
CurveStableSwapNgFactory, | ||
CurveStableSwapNgPlainAmm, | ||
GovernancePoints, | ||
InfinexERC2771Forwarder, | ||
InfinexProtocolConfigBeacon, | ||
MessageTransmitter, | ||
PatronPointOfPurchase, | ||
PatronPurchaseApp, | ||
PatronPurchaseAppBeacon, | ||
PatronPurchaseVault, | ||
UUPSImplementation, | ||
} from '@infinex/manifest/abis'; | ||
import { | ||
AccountsRouterV1, | ||
AccountsRouterV2, | ||
InfinexProtocolConfigBeaconV1, | ||
InfinexProtocolConfigBeaconV2, | ||
} from '@infinex/manifest/archive/abis'; | ||
import { type Abi } from 'abitype'; | ||
@@ -33,33 +45,38 @@ import { type Address, erc20Abi } from 'viem'; | ||
const abis = { | ||
accountFactory: accountFactoryAbi, | ||
accountUtilsModule: accountUtilsModuleAbi, | ||
appModule: appModuleAbi, | ||
baseModule: baseModuleAbi, | ||
bridgingModule: bridgingModuleAbi, | ||
crateOpener: crateOpenerAbi, | ||
cratePoints: cratePointsAbi, | ||
ctpStakingRewards: ctpStakingRewardsAbi, | ||
curveStableSwagNG: curveStableSwagNGAbi, | ||
curveStableSwapApp: curveStableSwapAppAbi, | ||
curveStableSwapAppBeacon: curveStableSwapAppBeaconAbi, | ||
curveStableSwapNGFactory: curveStableSwapNGFactoryAbi, | ||
governancePoints: governancePointsAbi, | ||
infinexErc2771Forwarder: infinexErc2771ForwarderAbi, | ||
infinexProtocolConfigBeacon: infinexProtocolConfigBeaconAbi, | ||
iuupsImplementation: iuupsImplementationAbi, | ||
messageTransmitter: messageTransmitterAbi, | ||
oldRecoveryModule: oldRecoveryModuleAbi, | ||
recoveryModule: recoveryModuleAbi, | ||
stwStakingRewards: stwStakingRewardsAbi, | ||
accountFactory: AccountFactory, | ||
accountsRouter: AccountsRouter, | ||
accountsRouterV2: AccountsRouterV2, | ||
accountsRouterV1: AccountsRouterV1, | ||
accountUtilsModule: AccountUtilsModule, | ||
appModule: AppModule, | ||
baseModule, | ||
bridgingModule, | ||
curveStableSwagNG, | ||
curveStableSwapApp: CurveStableSwapApp, | ||
curveStableSwapAppBeacon: CurveStableSwapAppBeacon, | ||
curveStableSwapNGFactory, | ||
curveStableSwapNgFactory: CurveStableSwapNgFactory, | ||
curveStableSwapNgPlainAmm: CurveStableSwapNgPlainAmm, | ||
erc20: erc20Abi, | ||
withdrawModule: withdrawModuleAbi, | ||
governancePoints: GovernancePoints, | ||
infinexErc2771Forwarder: InfinexERC2771Forwarder, | ||
infinexProtocolConfigBeacon: InfinexProtocolConfigBeacon, | ||
infinexProtocolConfigBeaconV1: InfinexProtocolConfigBeaconV1, | ||
infinexProtocolConfigBeaconV2: InfinexProtocolConfigBeaconV2, | ||
messageTransmitter: MessageTransmitter, | ||
oldRecoveryModule, | ||
patronPointOfPurchase: PatronPointOfPurchase, | ||
patronPurchaseApp: PatronPurchaseApp, | ||
patronPurchaseAppBeacon: PatronPurchaseAppBeacon, | ||
patronPurchaseVault: PatronPurchaseVault, | ||
recoveryModule, | ||
uupsImplementation: UUPSImplementation, | ||
withdrawModuleAbi, | ||
} as const satisfies Record<string, Abi>; | ||
export function createManifest(env: { | ||
// arbitrum | ||
// Arbitrum | ||
ARBITRUM_CHAIN_ID: number; | ||
ARBITRUM_RPC_URL: string; | ||
ARBITRUM_MULTICALL_3_ADDRESS: Address; | ||
ARBITRUM_LATEST_ACCOUNTS_ROUTER_ADDRESS: Address; | ||
ARBITRUM_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS: Address; | ||
ARBITRUM_ACCOUNT_FACTORY_ADDRESS: Address; | ||
@@ -72,8 +89,16 @@ ARBITRUM_CCTP_MESSAGE_TRANSMITTER_ADDRESS: Address; | ||
// base | ||
ARBITRUM_ACCOUNTS_ROUTER_V1: Address; | ||
ARBITRUM_ACCOUNTS_ROUTER_V2: Address; | ||
ARBITRUM_ACCOUNTS_ROUTER_V3: Address; | ||
ARBITRUM_ACCOUNTS_ROUTER_LATEST: Address; | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: Address; | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: Address; | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V3: Address; | ||
ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: Address; | ||
// Base | ||
BASE_CHAIN_ID: number; | ||
BASE_RPC_URL: string; | ||
BASE_MULTICALL_3_ADDRESS: Address; | ||
BASE_LATEST_ACCOUNTS_ROUTER_ADDRESS: Address; | ||
BASE_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS: Address; | ||
BASE_ACCOUNT_FACTORY_ADDRESS: Address; | ||
@@ -91,8 +116,16 @@ BASE_CCTP_MESSAGE_TRANSMITTER_ADDRESS: Address; | ||
// ethereum | ||
BASE_ACCOUNTS_ROUTER_V1: Address; | ||
BASE_ACCOUNTS_ROUTER_V2: Address; | ||
BASE_ACCOUNTS_ROUTER_V3: Address; | ||
BASE_ACCOUNTS_ROUTER_LATEST: Address; | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V1: Address; | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V2: Address; | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V3: Address; | ||
BASE_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: Address; | ||
// Ethereum | ||
ETHEREUM_CHAIN_ID: number; | ||
ETHEREUM_RPC_URL: string; | ||
ETHEREUM_MULTICALL_3_ADDRESS: Address; | ||
ETHEREUM_LATEST_ACCOUNTS_ROUTER_ADDRESS: Address; | ||
ETHEREUM_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS: Address; | ||
ETHEREUM_ACCOUNT_FACTORY_ADDRESS: Address; | ||
@@ -105,8 +138,16 @@ ETHEREUM_CCTP_MESSAGE_TRANSMITTER_ADDRESS: Address; | ||
// optimism | ||
ETHEREUM_ACCOUNTS_ROUTER_V1: Address; | ||
ETHEREUM_ACCOUNTS_ROUTER_V2: Address; | ||
ETHEREUM_ACCOUNTS_ROUTER_V3: Address; | ||
ETHEREUM_ACCOUNTS_ROUTER_LATEST: Address; | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: Address; | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: Address; | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V3: Address; | ||
ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: Address; | ||
// Optimism | ||
OPTIMISM_CHAIN_ID: number; | ||
OPTIMISM_RPC_URL: string; | ||
OPTIMISM_MULTICALL_3_ADDRESS: Address; | ||
OPTIMISM_LATEST_ACCOUNTS_ROUTER_ADDRESS: Address; | ||
OPTIMISM_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS: Address; | ||
OPTIMISM_ACCOUNT_FACTORY_ADDRESS: Address; | ||
@@ -119,8 +160,16 @@ OPTIMISM_CCTP_MESSAGE_TRANSMITTER_ADDRESS: Address; | ||
// polygon | ||
OPTIMISM_ACCOUNTS_ROUTER_V1: Address; | ||
OPTIMISM_ACCOUNTS_ROUTER_V2: Address; | ||
OPTIMISM_ACCOUNTS_ROUTER_V3: Address; | ||
OPTIMISM_ACCOUNTS_ROUTER_LATEST: Address; | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V1: Address; | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V2: Address; | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V3: Address; | ||
OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: Address; | ||
// Polygon | ||
POLYGON_CHAIN_ID: number; | ||
POLYGON_RPC_URL: string; | ||
POLYGON_MULTICALL_3_ADDRESS: Address; | ||
POLYGON_LATEST_ACCOUNTS_ROUTER_ADDRESS: Address; | ||
POLYGON_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS: Address; | ||
POLYGON_ACCOUNT_FACTORY_ADDRESS: Address; | ||
@@ -132,2 +181,12 @@ POLYGON_CCTP_MESSAGE_TRANSMITTER_ADDRESS: Address; | ||
POLYGON_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS: Address; | ||
POLYGON_ACCOUNTS_ROUTER_V1: Address; | ||
POLYGON_ACCOUNTS_ROUTER_V2: Address; | ||
POLYGON_ACCOUNTS_ROUTER_V3: Address; | ||
POLYGON_ACCOUNTS_ROUTER_LATEST: Address; | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V1: Address; | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V2: Address; | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V3: Address; | ||
POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_LATEST: Address; | ||
}) { | ||
@@ -143,17 +202,30 @@ return { | ||
multicall3Address: env.ARBITRUM_MULTICALL_3_ADDRESS, | ||
latestAccountsRouterAddress: | ||
env.ARBITRUM_LATEST_ACCOUNTS_ROUTER_ADDRESS, | ||
latestInfinexProtocolConfigBeaconAddress: | ||
env.ARBITRUM_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS, | ||
accountsRouters: [ | ||
env.ARBITRUM_ACCOUNTS_ROUTER_V1, | ||
env.ARBITRUM_ACCOUNTS_ROUTER_V2, | ||
env.ARBITRUM_ACCOUNTS_ROUTER_V3, | ||
], | ||
infinexProtocolConfigBeacons: [ | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V3, | ||
], | ||
contracts: { | ||
accountsRouter: true, | ||
accountsRouterV1: true, | ||
accountsRouterV2: true, | ||
accountFactory: env.ARBITRUM_ACCOUNT_FACTORY_ADDRESS, | ||
accountUtilsModule: true, | ||
baseModule: true, | ||
recoveryModule: true, | ||
bridgingModule: true, | ||
erc20: true, | ||
infinexErc2771Forwarder: env.ARBITRUM_FORWARDER_ADDRESS, | ||
infinexProtocolConfigBeacon: true, | ||
iuupsImplementation: true, | ||
infinexProtocolConfigBeaconV1: | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
infinexProtocolConfigBeaconV2: | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
uupsImplementation: true, | ||
messageTransmitter: env.ARBITRUM_CCTP_MESSAGE_TRANSMITTER_ADDRESS, | ||
recoveryModule: true, | ||
appModule: true, | ||
curveStableSwapApp: true, | ||
@@ -164,5 +236,10 @@ curveStableSwapAppBeacon: | ||
env.ARBITRUM_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgFactory: | ||
env.ARBITRUM_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgPlainAmm: true, | ||
curveStableSwagNG: true, | ||
erc20: true, | ||
withdrawModule: true, | ||
patronPointOfPurchase: true, | ||
patronPurchaseApp: true, | ||
patronPurchaseAppBeacon: true, | ||
patronPurchaseVault: true, | ||
}, | ||
@@ -178,21 +255,28 @@ circeChainId: circleChainIds.arbitrum, | ||
multicall3Address: env.BASE_MULTICALL_3_ADDRESS, | ||
latestAccountsRouterAddress: env.BASE_LATEST_ACCOUNTS_ROUTER_ADDRESS, | ||
latestInfinexProtocolConfigBeaconAddress: | ||
env.BASE_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS, | ||
accountsRouters: [ | ||
env.BASE_ACCOUNTS_ROUTER_V1, | ||
env.BASE_ACCOUNTS_ROUTER_V2, | ||
env.BASE_ACCOUNTS_ROUTER_V3, | ||
], | ||
infinexProtocolConfigBeacons: [ | ||
env.BASE_ACCOUNTS_ROUTER_V1, | ||
env.BASE_ACCOUNTS_ROUTER_V2, | ||
env.BASE_ACCOUNTS_ROUTER_V3, | ||
], | ||
contracts: { | ||
accountsRouter: true, | ||
accountsRouterV1: true, | ||
accountsRouterV2: true, | ||
baseModule: true, | ||
recoveryModule: true, | ||
accountFactory: env.BASE_ACCOUNT_FACTORY_ADDRESS, | ||
accountUtilsModule: true, | ||
baseModule: true, | ||
bridgingModule: true, | ||
crateOpener: env.BASE_CRATE_OPENER_ADDRESS, | ||
cratePoints: env.BASE_CRATE_POINTS_PROXY_ADDRESS, | ||
ctpStakingRewards: env.BASE_CTP_STAKING_REWARDS_ADDRESS, | ||
governancePoints: env.BASE_GOVERNANCE_POINTS_PROXY_ADDRESS, | ||
infinexErc2771Forwarder: env.BASE_FORWARDER_ADDRESS, | ||
infinexProtocolConfigBeacon: true, | ||
iuupsImplementation: true, | ||
infinexProtocolConfigBeaconV1: | ||
env.BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
infinexProtocolConfigBeaconV2: | ||
env.BASE_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
uupsImplementation: true, | ||
messageTransmitter: env.BASE_CCTP_MESSAGE_TRANSMITTER_ADDRESS, | ||
recoveryModule: true, | ||
stwStakingRewards: env.BASE_STW_STAKING_REWARDS_ADDRESS, | ||
appModule: true, | ||
curveStableSwapApp: true, | ||
@@ -203,5 +287,11 @@ curveStableSwapAppBeacon: | ||
env.BASE_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgFactory: | ||
env.BASE_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgPlainAmm: true, | ||
curveStableSwagNG: true, | ||
erc20: true, | ||
withdrawModule: true, | ||
patronPointOfPurchase: true, | ||
patronPurchaseApp: true, | ||
patronPurchaseAppBeacon: true, | ||
patronPurchaseVault: true, | ||
}, | ||
@@ -217,17 +307,27 @@ circeChainId: circleChainIds.base, | ||
multicall3Address: env.ETHEREUM_MULTICALL_3_ADDRESS, | ||
latestAccountsRouterAddress: | ||
env.ETHEREUM_LATEST_ACCOUNTS_ROUTER_ADDRESS, | ||
latestInfinexProtocolConfigBeaconAddress: | ||
env.ETHEREUM_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS, | ||
accountsRouters: [ | ||
env.ETHEREUM_ACCOUNTS_ROUTER_V1, | ||
env.ETHEREUM_ACCOUNTS_ROUTER_V2, | ||
env.ETHEREUM_ACCOUNTS_ROUTER_V3, | ||
], | ||
infinexProtocolConfigBeacons: [ | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
env.ARBITRUM_INFINEX_PROTOCOL_CONFIG_BEACON_V3, | ||
], | ||
contracts: { | ||
accountsRouter: true, | ||
accountsRouterV1: true, | ||
accountsRouterV2: true, | ||
baseModule: true, | ||
recoveryModule: true, | ||
accountFactory: env.ETHEREUM_ACCOUNT_FACTORY_ADDRESS, | ||
accountUtilsModule: true, | ||
baseModule: true, | ||
bridgingModule: true, | ||
infinexErc2771Forwarder: env.ETHEREUM_FORWARDER_ADDRESS, | ||
infinexProtocolConfigBeacon: true, | ||
iuupsImplementation: true, | ||
infinexProtocolConfigBeaconV1: | ||
env.ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
infinexProtocolConfigBeaconV2: | ||
env.ETHEREUM_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
uupsImplementation: true, | ||
messageTransmitter: env.ETHEREUM_CCTP_MESSAGE_TRANSMITTER_ADDRESS, | ||
recoveryModule: true, | ||
appModule: true, | ||
curveStableSwapApp: true, | ||
@@ -238,5 +338,11 @@ curveStableSwapAppBeacon: | ||
env.ETHEREUM_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgFactory: | ||
env.ETHEREUM_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgPlainAmm: true, | ||
curveStableSwagNG: true, | ||
erc20: true, | ||
withdrawModule: true, | ||
patronPointOfPurchase: true, | ||
patronPurchaseApp: true, | ||
patronPurchaseAppBeacon: true, | ||
patronPurchaseVault: true, | ||
}, | ||
@@ -252,17 +358,27 @@ circeChainId: circleChainIds.ethereum, | ||
multicall3Address: env.OPTIMISM_MULTICALL_3_ADDRESS, | ||
latestAccountsRouterAddress: | ||
env.OPTIMISM_LATEST_ACCOUNTS_ROUTER_ADDRESS, | ||
latestInfinexProtocolConfigBeaconAddress: | ||
env.OPTIMISM_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS, | ||
accountsRouters: [ | ||
env.OPTIMISM_ACCOUNTS_ROUTER_V1, | ||
env.OPTIMISM_ACCOUNTS_ROUTER_V2, | ||
env.OPTIMISM_ACCOUNTS_ROUTER_V3, | ||
], | ||
infinexProtocolConfigBeacons: [ | ||
env.OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
env.OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
env.OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V3, | ||
], | ||
contracts: { | ||
accountsRouter: true, | ||
accountsRouterV1: true, | ||
accountsRouterV2: true, | ||
baseModule: true, | ||
recoveryModule: true, | ||
accountFactory: env.OPTIMISM_ACCOUNT_FACTORY_ADDRESS, | ||
accountUtilsModule: true, | ||
baseModule: true, | ||
bridgingModule: true, | ||
infinexErc2771Forwarder: env.OPTIMISM_FORWARDER_ADDRESS, | ||
infinexProtocolConfigBeacon: true, | ||
iuupsImplementation: true, | ||
infinexProtocolConfigBeaconV1: | ||
env.OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
infinexProtocolConfigBeaconV2: | ||
env.OPTIMISM_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
uupsImplementation: true, | ||
messageTransmitter: env.OPTIMISM_CCTP_MESSAGE_TRANSMITTER_ADDRESS, | ||
recoveryModule: true, | ||
appModule: true, | ||
curveStableSwapApp: true, | ||
@@ -273,5 +389,11 @@ curveStableSwapAppBeacon: | ||
env.OPTIMISM_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgFactory: | ||
env.POLYGON_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgPlainAmm: true, | ||
curveStableSwagNG: true, | ||
erc20: true, | ||
withdrawModule: true, | ||
patronPointOfPurchase: true, | ||
patronPurchaseApp: true, | ||
patronPurchaseAppBeacon: true, | ||
patronPurchaseVault: true, | ||
}, | ||
@@ -287,16 +409,27 @@ circeChainId: circleChainIds.optimism, | ||
multicall3Address: env.POLYGON_MULTICALL_3_ADDRESS, | ||
latestAccountsRouterAddress: env.POLYGON_LATEST_ACCOUNTS_ROUTER_ADDRESS, | ||
latestInfinexProtocolConfigBeaconAddress: | ||
env.POLYGON_LATEST_INFINEX_PROTOCOL_CONFIG_BEACON_ADDRESS, | ||
accountsRouters: [ | ||
env.POLYGON_ACCOUNTS_ROUTER_V1, | ||
env.POLYGON_ACCOUNTS_ROUTER_V2, | ||
env.POLYGON_ACCOUNTS_ROUTER_V3, | ||
], | ||
infinexProtocolConfigBeacons: [ | ||
env.POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
env.POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
env.POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V3, | ||
], | ||
contracts: { | ||
accountsRouter: true, | ||
accountsRouterV1: true, | ||
accountsRouterV2: true, | ||
baseModule: true, | ||
recoveryModule: true, | ||
accountFactory: env.POLYGON_ACCOUNT_FACTORY_ADDRESS, | ||
accountUtilsModule: true, | ||
baseModule: true, | ||
bridgingModule: true, | ||
infinexErc2771Forwarder: env.POLYGON_FORWARDER_ADDRESS, | ||
infinexProtocolConfigBeacon: true, | ||
iuupsImplementation: true, | ||
infinexProtocolConfigBeaconV1: | ||
env.POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V1, | ||
infinexProtocolConfigBeaconV2: | ||
env.POLYGON_INFINEX_PROTOCOL_CONFIG_BEACON_V2, | ||
uupsImplementation: true, | ||
messageTransmitter: env.POLYGON_CCTP_MESSAGE_TRANSMITTER_ADDRESS, | ||
recoveryModule: true, | ||
appModule: true, | ||
curveStableSwapApp: true, | ||
@@ -307,5 +440,11 @@ curveStableSwapAppBeacon: | ||
env.POLYGON_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgFactory: | ||
env.POLYGON_CURVE_STABLE_SWAP_NG_FACTORY_ADDRESS, | ||
curveStableSwapNgPlainAmm: true, | ||
curveStableSwagNG: true, | ||
erc20: true, | ||
withdrawModule: true, | ||
patronPointOfPurchase: true, | ||
patronPurchaseApp: true, | ||
patronPurchaseAppBeacon: true, | ||
patronPurchaseVault: true, | ||
}, | ||
@@ -323,4 +462,4 @@ circeChainId: circleChainIds.polygon, | ||
multicall3Address: Address; | ||
latestAccountsRouterAddress: Address; | ||
latestInfinexProtocolConfigBeaconAddress: Address; | ||
accountsRouters: Address[]; | ||
infinexProtocolConfigBeacons: Address[]; | ||
contracts: { [K in keyof typeof abis]?: Address | true }; | ||
@@ -327,0 +466,0 @@ circeChainId: number; |
47710
1171
8
14