@gfxlabs/oku-chains 1.9.10 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +79 -0
- package/dist/index-mjs.js +80 -2
- package/dist/index.js +79 -0
- package/dist/types/definitions/arbitrum.d.ts +205 -0
- package/dist/types/definitions/avalanche.d.ts +147 -0
- package/dist/types/definitions/base.d.ts +468 -0
- package/dist/types/definitions/blast.d.ts +410 -0
- package/dist/types/definitions/bob.d.ts +408 -0
- package/dist/types/definitions/boba.d.ts +140 -0
- package/dist/types/definitions/bsc.d.ts +186 -0
- package/dist/types/definitions/celo.d.ts +993 -0
- package/dist/types/definitions/corn.d.ts +137 -0
- package/dist/types/definitions/etherlink.d.ts +145 -0
- package/dist/types/definitions/filecoin.d.ts +143 -0
- package/dist/types/definitions/gnosis.d.ts +178 -0
- package/dist/types/definitions/goat.d.ts +125 -0
- package/dist/types/definitions/hemi.d.ts +144 -0
- package/dist/types/definitions/hyperevem.d.ts +113 -0
- package/dist/types/definitions/index.d.ts +49 -0
- package/dist/types/definitions/lens.d.ts +131 -0
- package/dist/types/definitions/lightlink.d.ts +135 -0
- package/dist/types/definitions/linea.d.ts +176 -0
- package/dist/types/definitions/lisk.d.ts +387 -0
- package/dist/types/definitions/mainnet.d.ts +220 -0
- package/dist/types/definitions/manta.d.ts +137 -0
- package/dist/types/definitions/mantle.d.ts +155 -0
- package/dist/types/definitions/matchain.d.ts +114 -0
- package/dist/types/definitions/metal.d.ts +387 -0
- package/dist/types/definitions/monad.d.ts +146 -0
- package/dist/types/definitions/moonbeam.d.ts +149 -0
- package/dist/types/definitions/nibiru.d.ts +121 -0
- package/dist/types/definitions/optimism.d.ts +484 -0
- package/dist/types/definitions/plasma.d.ts +121 -0
- package/dist/types/definitions/polygon.d.ts +197 -0
- package/dist/types/definitions/redbelly.d.ts +118 -0
- package/dist/types/definitions/ronin.d.ts +129 -0
- package/dist/types/definitions/rootstock.d.ts +158 -0
- package/dist/types/definitions/saga.d.ts +122 -0
- package/dist/types/definitions/scroll.d.ts +167 -0
- package/dist/types/definitions/sei.d.ts +171 -0
- package/dist/types/definitions/sonic.d.ts +158 -0
- package/dist/types/definitions/taiko.d.ts +156 -0
- package/dist/types/definitions/telos.d.ts +141 -0
- package/dist/types/definitions/tronShasta.d.ts +99 -0
- package/dist/types/definitions/unichain.d.ts +419 -0
- package/dist/types/definitions/worldchain.d.ts +413 -0
- package/dist/types/definitions/xdc.d.ts +126 -0
- package/dist/types/definitions/zerog.d.ts +119 -0
- package/dist/types/definitions/zkevm.d.ts +143 -0
- package/dist/types/definitions/zksync.d.ts +545 -0
- package/dist/types/script/supported.d.ts +1 -0
- package/dist/types/spec/index.d.ts +207 -0
- package/dist/types/util/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { Address, Chain, ChainContract, ChainFormatters, Hash } from "viem";
|
|
2
|
+
export { ChainContract } from "viem";
|
|
3
|
+
type float64 = number;
|
|
4
|
+
export interface MorphoMetadata {
|
|
5
|
+
deployBlock?: number;
|
|
6
|
+
morpho?: Address;
|
|
7
|
+
mmFactory10?: Address;
|
|
8
|
+
mmFactory11?: Address;
|
|
9
|
+
bundler3?: Address;
|
|
10
|
+
publicAllocator?: Address;
|
|
11
|
+
urdFactory?: Address;
|
|
12
|
+
}
|
|
13
|
+
export interface UniswapMetadata {
|
|
14
|
+
deployBlock?: number;
|
|
15
|
+
poolFactory?: Address;
|
|
16
|
+
permit2?: Address;
|
|
17
|
+
multicall2?: Address;
|
|
18
|
+
proxyAdmin?: Address;
|
|
19
|
+
tickLens?: Address;
|
|
20
|
+
quoter?: Address;
|
|
21
|
+
swapRouter?: Address;
|
|
22
|
+
swapRouter02?: Address;
|
|
23
|
+
NFTDescriptor?: Address;
|
|
24
|
+
nonfungibleTokenPositionDescriptor?: Address;
|
|
25
|
+
transparentUpgradeableProxy?: Address;
|
|
26
|
+
nonfungiblePositionManager?: Address;
|
|
27
|
+
v3Migrator?: Address;
|
|
28
|
+
uniswapV3Staker?: Address;
|
|
29
|
+
positionsNFT?: Address;
|
|
30
|
+
topNativePool?: Address;
|
|
31
|
+
positionsNFTDeployBlock?: number;
|
|
32
|
+
universalRouter?: Address;
|
|
33
|
+
wrappedNativeAddress?: Address;
|
|
34
|
+
wrappedNativeSymbol?: string;
|
|
35
|
+
wrappedNativeName?: string;
|
|
36
|
+
wrappedNativeDecimals?: number;
|
|
37
|
+
nativeCurrencyName?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface UniswapV4Metadata {
|
|
40
|
+
deployBlock: number;
|
|
41
|
+
poolManager: Address;
|
|
42
|
+
positionManager: Address;
|
|
43
|
+
universalRouter: Address;
|
|
44
|
+
permit2: Address;
|
|
45
|
+
}
|
|
46
|
+
export interface OkuPricingMetadata {
|
|
47
|
+
nativeWrappedToken?: Address;
|
|
48
|
+
nativeToken?: Address;
|
|
49
|
+
nativeWrappedName?: string;
|
|
50
|
+
nativeTokenName?: string;
|
|
51
|
+
nativeQuotePools?: ReadonlyArray<ChainContract>;
|
|
52
|
+
pools?: ReadonlyArray<Address>;
|
|
53
|
+
}
|
|
54
|
+
export interface OkuCustomOrderTypesMetadata {
|
|
55
|
+
feeBips?: number;
|
|
56
|
+
master?: Address;
|
|
57
|
+
masterDeployBlock?: number;
|
|
58
|
+
limit?: Address;
|
|
59
|
+
limitDeployBlock?: number;
|
|
60
|
+
bracket?: Address;
|
|
61
|
+
bracketDeployBlock?: number;
|
|
62
|
+
stopLimit?: Address;
|
|
63
|
+
stopLimitDeployBlock?: number;
|
|
64
|
+
oracleLess?: Address;
|
|
65
|
+
oracleLessDeployBlock?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface OkuMetadata {
|
|
68
|
+
router?: Address;
|
|
69
|
+
limitOrderRegistry?: Address;
|
|
70
|
+
limitOrderRegistryDeployBlock?: number;
|
|
71
|
+
pricing?: OkuPricingMetadata;
|
|
72
|
+
customOrderTypes?: OkuCustomOrderTypesMetadata;
|
|
73
|
+
}
|
|
74
|
+
export interface TokenMetadata {
|
|
75
|
+
wethAddress?: Address;
|
|
76
|
+
wbtcAddress?: Address;
|
|
77
|
+
usdcAddress?: Address;
|
|
78
|
+
nativeAddress?: Address;
|
|
79
|
+
}
|
|
80
|
+
export interface Markets {
|
|
81
|
+
airswap?: boolean;
|
|
82
|
+
enso?: any;
|
|
83
|
+
kyberswap?: string;
|
|
84
|
+
odos?: any;
|
|
85
|
+
okx?: any;
|
|
86
|
+
oneinch?: {
|
|
87
|
+
spender: string;
|
|
88
|
+
};
|
|
89
|
+
openocean?: string;
|
|
90
|
+
paraswap?: {
|
|
91
|
+
routerContract: string;
|
|
92
|
+
};
|
|
93
|
+
propellerswap?: string;
|
|
94
|
+
threeroute?: boolean;
|
|
95
|
+
usor?: any;
|
|
96
|
+
zeroex?: boolean;
|
|
97
|
+
cowswap?: string;
|
|
98
|
+
icecreamswap?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface Bridges {
|
|
101
|
+
deswap?: {
|
|
102
|
+
chainId: number;
|
|
103
|
+
};
|
|
104
|
+
bungee?: any;
|
|
105
|
+
lifi?: any;
|
|
106
|
+
across?: any;
|
|
107
|
+
orbiter?: any;
|
|
108
|
+
wormhole?: {
|
|
109
|
+
chain: string;
|
|
110
|
+
timeToFinalize: number;
|
|
111
|
+
};
|
|
112
|
+
rhinofi?: string;
|
|
113
|
+
chainlink?: {
|
|
114
|
+
atlasNetworkName: string;
|
|
115
|
+
routerAddress: string;
|
|
116
|
+
chainSelector: bigint;
|
|
117
|
+
tokenAdminRegistry?: string;
|
|
118
|
+
};
|
|
119
|
+
squidrouter?: any;
|
|
120
|
+
wanbridge?: {
|
|
121
|
+
requiredConfirmations: number;
|
|
122
|
+
};
|
|
123
|
+
stargate?: {
|
|
124
|
+
endpointID: number;
|
|
125
|
+
blockConfirmations?: number;
|
|
126
|
+
tokens: {
|
|
127
|
+
name: string;
|
|
128
|
+
type?: string;
|
|
129
|
+
id: number;
|
|
130
|
+
address: string;
|
|
131
|
+
}[];
|
|
132
|
+
};
|
|
133
|
+
layerzero?: {
|
|
134
|
+
eid: number;
|
|
135
|
+
tokens: {
|
|
136
|
+
id: number;
|
|
137
|
+
symbol?: string;
|
|
138
|
+
OFTAddress: string;
|
|
139
|
+
address?: string;
|
|
140
|
+
project?: string;
|
|
141
|
+
}[];
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export interface Oracles {
|
|
145
|
+
cmc?: {
|
|
146
|
+
slug: string;
|
|
147
|
+
native: string;
|
|
148
|
+
};
|
|
149
|
+
coingecko?: {
|
|
150
|
+
slug: string;
|
|
151
|
+
native: string;
|
|
152
|
+
};
|
|
153
|
+
dexguru?: any;
|
|
154
|
+
dexscreener?: string;
|
|
155
|
+
oku?: any;
|
|
156
|
+
}
|
|
157
|
+
export interface IChainInfo<formatters extends ChainFormatters | undefined = ChainFormatters | undefined> extends Chain<formatters> {
|
|
158
|
+
logoUrl: string;
|
|
159
|
+
launchTime: number;
|
|
160
|
+
nativeLogoUrl: string;
|
|
161
|
+
sortIndex: number;
|
|
162
|
+
safeReorgDistance?: number;
|
|
163
|
+
defaultPool: Address;
|
|
164
|
+
internalName: string;
|
|
165
|
+
transactionType: string;
|
|
166
|
+
defaultToken0: Address;
|
|
167
|
+
defaultToken1: Address;
|
|
168
|
+
blockAid: string;
|
|
169
|
+
tokenList: ReadonlyArray<{
|
|
170
|
+
symbol: string;
|
|
171
|
+
address: Address;
|
|
172
|
+
}>;
|
|
173
|
+
stables: ReadonlyArray<Address>;
|
|
174
|
+
watchlist: ReadonlyArray<Address>;
|
|
175
|
+
externalId: {
|
|
176
|
+
zerion?: string;
|
|
177
|
+
debank?: string;
|
|
178
|
+
cowswap?: string;
|
|
179
|
+
tenderly?: string;
|
|
180
|
+
};
|
|
181
|
+
markets: Markets;
|
|
182
|
+
bridges: Bridges;
|
|
183
|
+
oracles: Oracles;
|
|
184
|
+
initCodeHash: Hash;
|
|
185
|
+
blockTimeSeconds: float64;
|
|
186
|
+
uniswap: UniswapMetadata;
|
|
187
|
+
uniswapv4?: UniswapV4Metadata;
|
|
188
|
+
morpho: MorphoMetadata;
|
|
189
|
+
token: TokenMetadata;
|
|
190
|
+
oku: OkuMetadata;
|
|
191
|
+
deprecated: boolean;
|
|
192
|
+
liteChain?: boolean;
|
|
193
|
+
contracts: {
|
|
194
|
+
[key: string]: ChainContract | {
|
|
195
|
+
[chainId: number]: ChainContract;
|
|
196
|
+
};
|
|
197
|
+
} & {
|
|
198
|
+
ensRegistry?: ChainContract;
|
|
199
|
+
ensUniversalResolver?: ChainContract;
|
|
200
|
+
multicall2?: ChainContract;
|
|
201
|
+
multicall3?: ChainContract;
|
|
202
|
+
nftManager: ChainContract;
|
|
203
|
+
limitOrder?: ChainContract;
|
|
204
|
+
weth9?: ChainContract;
|
|
205
|
+
metrom?: ChainContract;
|
|
206
|
+
};
|
|
207
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfxlabs/oku-chains",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index-mjs.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist/*.js",
|
|
22
|
-
"dist/types
|
|
22
|
+
"dist/types/**/*.d.ts"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@biomejs/biome": "2.1.3",
|