@infinex/evm-sdk
Advanced tools
Comparing version 0.0.1 to 0.0.3
@@ -1,2 +0,2 @@ | ||
import { create } from './src'; | ||
import { type ChainKey, chainKeys, create } from './src'; | ||
import { createManifest, type Manifest } from './src/manifest'; | ||
@@ -9,4 +9,6 @@ | ||
createManifest as createEvmSdkManifest, | ||
type ChainKey as EvmChainKey, | ||
chainKeys as evmChainKeys, | ||
type Sdk as EvmSdk, | ||
type Manifest as EvmSdkManifest, | ||
}; |
{ | ||
"name": "@infinex/evm-sdk", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "env", |
@@ -5,2 +5,12 @@ import { createAbiObjects } from './abis'; | ||
export const chainKeys = [ | ||
'arbitrum', | ||
'base', | ||
'ethereum', | ||
'optimism', | ||
'polygon', | ||
] as const; | ||
export type ChainKey = (typeof chainKeys)[number]; | ||
export function create(manifest: Manifest) { | ||
@@ -14,5 +24,5 @@ return { | ||
polygon: createChainObject(manifest.abis, manifest.chains.polygon), | ||
}, | ||
} satisfies Record<ChainKey, ReturnType<typeof createChainObject>>, | ||
abis: createAbiObjects(manifest.abis), | ||
}; | ||
} |
@@ -1,5 +0,1 @@ | ||
import { type Abi } from 'abitype'; | ||
import { type Address } from 'viem'; | ||
import { arbitrum, base, mainnet, optimism, polygon } from 'viem/chains'; | ||
import { | ||
@@ -21,3 +17,7 @@ AccountFactoryAbi as accountFactoryAbi, | ||
RecoveryModuleAbi as recoveryModuleAbi, | ||
} from '../../../sdk/src/abis'; | ||
} from '@infinex/infinex-sdk/src/abis'; | ||
import { type Abi } from 'abitype'; | ||
import { type Address } from 'viem'; | ||
import { arbitrum, base, mainnet, optimism, polygon } from 'viem/chains'; | ||
import { circleChainIds } from './chainIds'; | ||
@@ -24,0 +24,0 @@ |
29717
777