@luxfi/exchange 0.1.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/bridge/__tests__/use-private-teleport.test.d.ts +2 -0
- package/dist/bridge/__tests__/use-private-teleport.test.d.ts.map +1 -0
- package/dist/bridge/__tests__/use-private-teleport.test.js +272 -0
- package/dist/bridge/cross-chain-store.d.ts +57 -0
- package/dist/bridge/cross-chain-store.d.ts.map +1 -0
- package/dist/bridge/cross-chain-store.js +158 -0
- package/dist/bridge/index.d.ts +78 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/index.js +79 -0
- package/dist/bridge/private-teleport-types.d.ts +634 -0
- package/dist/bridge/private-teleport-types.d.ts.map +1 -0
- package/dist/bridge/private-teleport-types.js +308 -0
- package/dist/bridge/types.d.ts +84 -0
- package/dist/bridge/types.d.ts.map +1 -0
- package/dist/bridge/types.js +37 -0
- package/dist/bridge/use-cross-chain-mint.d.ts +34 -0
- package/dist/bridge/use-cross-chain-mint.d.ts.map +1 -0
- package/dist/bridge/use-cross-chain-mint.js +228 -0
- package/dist/bridge/use-private-teleport.d.ts +69 -0
- package/dist/bridge/use-private-teleport.d.ts.map +1 -0
- package/dist/bridge/use-private-teleport.js +666 -0
- package/dist/chains/index.d.ts +6 -0
- package/dist/chains/index.d.ts.map +1 -0
- package/dist/chains/index.js +6 -0
- package/dist/chains/lux.d.ts +508 -0
- package/dist/chains/lux.d.ts.map +1 -0
- package/dist/chains/lux.js +131 -0
- package/dist/contracts/abis/dex-swap-router.d.ts +137 -0
- package/dist/contracts/abis/dex-swap-router.d.ts.map +1 -0
- package/dist/contracts/abis/dex-swap-router.js +95 -0
- package/dist/contracts/abis/erc20.d.ts +136 -0
- package/dist/contracts/abis/erc20.d.ts.map +1 -0
- package/dist/contracts/abis/erc20.js +96 -0
- package/dist/contracts/abis/index.d.ts +15 -0
- package/dist/contracts/abis/index.d.ts.map +1 -0
- package/dist/contracts/abis/index.js +15 -0
- package/dist/contracts/abis/nft-position-manager.d.ts +235 -0
- package/dist/contracts/abis/nft-position-manager.d.ts.map +1 -0
- package/dist/contracts/abis/nft-position-manager.js +146 -0
- package/dist/contracts/abis/pool-manager.d.ts +315 -0
- package/dist/contracts/abis/pool-manager.d.ts.map +1 -0
- package/dist/contracts/abis/pool-manager.js +191 -0
- package/dist/contracts/abis/quoter-v2.d.ts +103 -0
- package/dist/contracts/abis/quoter-v2.d.ts.map +1 -0
- package/dist/contracts/abis/quoter-v2.js +68 -0
- package/dist/contracts/abis/swap-router.d.ts +119 -0
- package/dist/contracts/abis/swap-router.d.ts.map +1 -0
- package/dist/contracts/abis/swap-router.js +75 -0
- package/dist/contracts/abis/uniswap-v2-factory.d.ts +75 -0
- package/dist/contracts/abis/uniswap-v2-factory.d.ts.map +1 -0
- package/dist/contracts/abis/uniswap-v2-factory.js +49 -0
- package/dist/contracts/abis/uniswap-v2-pair.d.ts +119 -0
- package/dist/contracts/abis/uniswap-v2-pair.d.ts.map +1 -0
- package/dist/contracts/abis/uniswap-v2-pair.js +85 -0
- package/dist/contracts/abis/uniswap-v2-router.d.ts +249 -0
- package/dist/contracts/abis/uniswap-v2-router.d.ts.map +1 -0
- package/dist/contracts/abis/uniswap-v2-router.js +146 -0
- package/dist/contracts/abis/uniswap-v3-factory.d.ts +77 -0
- package/dist/contracts/abis/uniswap-v3-factory.d.ts.map +1 -0
- package/dist/contracts/abis/uniswap-v3-factory.js +45 -0
- package/dist/contracts/abis/uniswap-v3-pool.d.ts +128 -0
- package/dist/contracts/abis/uniswap-v3-pool.d.ts.map +1 -0
- package/dist/contracts/abis/uniswap-v3-pool.js +81 -0
- package/dist/contracts/addresses.d.ts +141 -0
- package/dist/contracts/addresses.d.ts.map +1 -0
- package/dist/contracts/addresses.js +108 -0
- package/dist/contracts/index.d.ts +6 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +5 -0
- package/dist/dex/balance-delta.d.ts +27 -0
- package/dist/dex/balance-delta.d.ts.map +1 -0
- package/dist/dex/balance-delta.js +45 -0
- package/dist/dex/index.d.ts +7 -0
- package/dist/dex/index.d.ts.map +1 -0
- package/dist/dex/index.js +6 -0
- package/dist/dex/pool-key.d.ts +19 -0
- package/dist/dex/pool-key.d.ts.map +1 -0
- package/dist/dex/pool-key.js +44 -0
- package/dist/dex/types.d.ts +71 -0
- package/dist/dex/types.d.ts.map +1 -0
- package/dist/dex/types.js +28 -0
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +9 -0
- package/dist/hooks/use-pools.d.ts +24 -0
- package/dist/hooks/use-pools.d.ts.map +1 -0
- package/dist/hooks/use-pools.js +85 -0
- package/dist/hooks/use-positions.d.ts +17 -0
- package/dist/hooks/use-positions.d.ts.map +1 -0
- package/dist/hooks/use-positions.js +65 -0
- package/dist/hooks/use-swap-quote.d.ts +19 -0
- package/dist/hooks/use-swap-quote.d.ts.map +1 -0
- package/dist/hooks/use-swap-quote.js +54 -0
- package/dist/hooks/use-swap.d.ts +22 -0
- package/dist/hooks/use-swap.d.ts.map +1 -0
- package/dist/hooks/use-swap.js +46 -0
- package/dist/hooks/use-token-allowance.d.ts +27 -0
- package/dist/hooks/use-token-allowance.d.ts.map +1 -0
- package/dist/hooks/use-token-allowance.js +59 -0
- package/dist/hooks/use-token-balance.d.ts +17 -0
- package/dist/hooks/use-token-balance.d.ts.map +1 -0
- package/dist/hooks/use-token-balance.js +58 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/index.js +6 -0
- package/dist/stores/settings-store.d.ts +25 -0
- package/dist/stores/settings-store.d.ts.map +1 -0
- package/dist/stores/settings-store.js +16 -0
- package/dist/stores/swap-store.d.ts +38 -0
- package/dist/stores/swap-store.d.ts.map +1 -0
- package/dist/stores/swap-store.js +58 -0
- package/dist/stores/token-store.d.ts +21 -0
- package/dist/stores/token-store.d.ts.map +1 -0
- package/dist/stores/token-store.js +32 -0
- package/dist/tokens/index.d.ts +65 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +185 -0
- package/package.json +78 -0
- package/src/chains/index.ts +21 -0
- package/src/chains/lux.ts +141 -0
- package/src/contracts/abis/dex-swap-router.ts +98 -0
- package/src/contracts/abis/erc20.ts +96 -0
- package/src/contracts/abis/index.ts +17 -0
- package/src/contracts/abis/nft-position-manager.ts +146 -0
- package/src/contracts/abis/pool-manager.ts +198 -0
- package/src/contracts/abis/quoter-v2.ts +68 -0
- package/src/contracts/abis/swap-router.ts +75 -0
- package/src/contracts/abis/uniswap-v2-factory.ts +49 -0
- package/src/contracts/abis/uniswap-v2-pair.ts +85 -0
- package/src/contracts/abis/uniswap-v2-router.ts +146 -0
- package/src/contracts/abis/uniswap-v3-factory.ts +45 -0
- package/src/contracts/abis/uniswap-v3-pool.ts +81 -0
- package/src/contracts/addresses.ts +128 -0
- package/src/contracts/index.ts +14 -0
- package/src/dex/balance-delta.ts +52 -0
- package/src/dex/index.ts +7 -0
- package/src/dex/pool-key.ts +62 -0
- package/src/dex/types.ts +87 -0
- package/src/hooks/index.ts +10 -0
- package/src/hooks/use-pools.ts +116 -0
- package/src/hooks/use-positions.ts +90 -0
- package/src/hooks/use-swap-quote.ts +81 -0
- package/src/hooks/use-swap.ts +64 -0
- package/src/hooks/use-token-allowance.ts +74 -0
- package/src/hooks/use-token-balance.ts +71 -0
- package/src/index.ts +31 -0
- package/src/stores/index.ts +7 -0
- package/src/stores/settings-store.ts +54 -0
- package/src/stores/swap-store.ts +112 -0
- package/src/stores/token-store.ts +62 -0
- package/src/tokens/index.ts +220 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lux Mainnet Chain Definition
|
|
3
|
+
*/
|
|
4
|
+
export declare const luxMainnet: {
|
|
5
|
+
blockExplorers: {
|
|
6
|
+
readonly default: {
|
|
7
|
+
readonly name: "Lux Explorer";
|
|
8
|
+
readonly url: "https://explore.lux.network";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
blockTime?: number | undefined | undefined;
|
|
12
|
+
contracts: {
|
|
13
|
+
readonly multicall3: {
|
|
14
|
+
readonly address: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
ensTlds?: readonly string[] | undefined;
|
|
18
|
+
id: 96369;
|
|
19
|
+
name: "Lux Mainnet";
|
|
20
|
+
nativeCurrency: {
|
|
21
|
+
readonly name: "LUX";
|
|
22
|
+
readonly symbol: "LUX";
|
|
23
|
+
readonly decimals: 18;
|
|
24
|
+
};
|
|
25
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
26
|
+
rpcUrls: {
|
|
27
|
+
readonly default: {
|
|
28
|
+
readonly http: readonly ["https://api.lux.network/rpc"];
|
|
29
|
+
};
|
|
30
|
+
readonly public: {
|
|
31
|
+
readonly http: readonly ["https://api.lux.network/rpc"];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
sourceId?: number | undefined | undefined;
|
|
35
|
+
testnet?: boolean | undefined | undefined;
|
|
36
|
+
custom?: Record<string, unknown> | undefined;
|
|
37
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
38
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
39
|
+
formatters?: undefined;
|
|
40
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
41
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
42
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
43
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
44
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
45
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
46
|
+
}] | undefined;
|
|
47
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
48
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Lux Testnet Chain Definition
|
|
52
|
+
*/
|
|
53
|
+
export declare const luxTestnet: {
|
|
54
|
+
blockExplorers: {
|
|
55
|
+
readonly default: {
|
|
56
|
+
readonly name: "Lux Testnet Explorer";
|
|
57
|
+
readonly url: "https://explore.lux-test.network";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
blockTime?: number | undefined | undefined;
|
|
61
|
+
contracts: {
|
|
62
|
+
readonly multicall3: {
|
|
63
|
+
readonly address: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
ensTlds?: readonly string[] | undefined;
|
|
67
|
+
id: 96368;
|
|
68
|
+
name: "Lux Testnet";
|
|
69
|
+
nativeCurrency: {
|
|
70
|
+
readonly name: "LUX";
|
|
71
|
+
readonly symbol: "LUX";
|
|
72
|
+
readonly decimals: 18;
|
|
73
|
+
};
|
|
74
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
75
|
+
rpcUrls: {
|
|
76
|
+
readonly default: {
|
|
77
|
+
readonly http: readonly ["https://api.lux-test.network/rpc"];
|
|
78
|
+
};
|
|
79
|
+
readonly public: {
|
|
80
|
+
readonly http: readonly ["https://api.lux-test.network/rpc"];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
sourceId?: number | undefined | undefined;
|
|
84
|
+
testnet: true;
|
|
85
|
+
custom?: Record<string, unknown> | undefined;
|
|
86
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
87
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
88
|
+
formatters?: undefined;
|
|
89
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
90
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
91
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
92
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
93
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
94
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
95
|
+
}] | undefined;
|
|
96
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
97
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Zoo Mainnet Chain Definition
|
|
101
|
+
*/
|
|
102
|
+
export declare const zooMainnet: {
|
|
103
|
+
blockExplorers: {
|
|
104
|
+
readonly default: {
|
|
105
|
+
readonly name: "Zoo Explorer";
|
|
106
|
+
readonly url: "https://explore.zoo.network";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
blockTime?: number | undefined | undefined;
|
|
110
|
+
contracts?: {
|
|
111
|
+
[x: string]: import("viem").ChainContract | {
|
|
112
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
115
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
116
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
117
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
ensTlds?: readonly string[] | undefined;
|
|
120
|
+
id: 200200;
|
|
121
|
+
name: "Zoo Network";
|
|
122
|
+
nativeCurrency: {
|
|
123
|
+
readonly name: "ZOO";
|
|
124
|
+
readonly symbol: "ZOO";
|
|
125
|
+
readonly decimals: 18;
|
|
126
|
+
};
|
|
127
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
128
|
+
rpcUrls: {
|
|
129
|
+
readonly default: {
|
|
130
|
+
readonly http: readonly ["https://api.zoo.network/rpc"];
|
|
131
|
+
};
|
|
132
|
+
readonly public: {
|
|
133
|
+
readonly http: readonly ["https://api.zoo.network/rpc"];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
sourceId?: number | undefined | undefined;
|
|
137
|
+
testnet?: boolean | undefined | undefined;
|
|
138
|
+
custom?: Record<string, unknown> | undefined;
|
|
139
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
140
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
141
|
+
formatters?: undefined;
|
|
142
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
143
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
144
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
145
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
146
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
147
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
148
|
+
}] | undefined;
|
|
149
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
150
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Zoo Testnet Chain Definition
|
|
154
|
+
*/
|
|
155
|
+
export declare const zooTestnet: {
|
|
156
|
+
blockExplorers: {
|
|
157
|
+
readonly default: {
|
|
158
|
+
readonly name: "Zoo Testnet Explorer";
|
|
159
|
+
readonly url: "https://explore.zoo-test.network";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
blockTime?: number | undefined | undefined;
|
|
163
|
+
contracts?: {
|
|
164
|
+
[x: string]: import("viem").ChainContract | {
|
|
165
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
168
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
169
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
170
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
ensTlds?: readonly string[] | undefined;
|
|
173
|
+
id: 200201;
|
|
174
|
+
name: "Zoo Testnet";
|
|
175
|
+
nativeCurrency: {
|
|
176
|
+
readonly name: "ZOO";
|
|
177
|
+
readonly symbol: "ZOO";
|
|
178
|
+
readonly decimals: 18;
|
|
179
|
+
};
|
|
180
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
181
|
+
rpcUrls: {
|
|
182
|
+
readonly default: {
|
|
183
|
+
readonly http: readonly ["https://api.zoo-test.network/rpc"];
|
|
184
|
+
};
|
|
185
|
+
readonly public: {
|
|
186
|
+
readonly http: readonly ["https://api.zoo-test.network/rpc"];
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
sourceId?: number | undefined | undefined;
|
|
190
|
+
testnet: true;
|
|
191
|
+
custom?: Record<string, unknown> | undefined;
|
|
192
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
193
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
194
|
+
formatters?: undefined;
|
|
195
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
196
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
197
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
198
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
199
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
200
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
201
|
+
}] | undefined;
|
|
202
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
203
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Dev Chain Definition (for running local node with --dev)
|
|
207
|
+
*/
|
|
208
|
+
export declare const luxDev: {
|
|
209
|
+
blockExplorers: {
|
|
210
|
+
readonly default: {
|
|
211
|
+
readonly name: "Dev";
|
|
212
|
+
readonly url: "http://localhost:8545";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
blockTime?: number | undefined | undefined;
|
|
216
|
+
contracts?: {
|
|
217
|
+
[x: string]: import("viem").ChainContract | {
|
|
218
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
221
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
222
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
223
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
ensTlds?: readonly string[] | undefined;
|
|
226
|
+
id: 1337;
|
|
227
|
+
name: "Lux Dev";
|
|
228
|
+
nativeCurrency: {
|
|
229
|
+
readonly name: "LUX";
|
|
230
|
+
readonly symbol: "LUX";
|
|
231
|
+
readonly decimals: 18;
|
|
232
|
+
};
|
|
233
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
234
|
+
rpcUrls: {
|
|
235
|
+
readonly default: {
|
|
236
|
+
readonly http: readonly ["http://localhost:8545/ext/bc/C/rpc"];
|
|
237
|
+
};
|
|
238
|
+
readonly public: {
|
|
239
|
+
readonly http: readonly ["http://localhost:8545/ext/bc/C/rpc"];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
sourceId?: number | undefined | undefined;
|
|
243
|
+
testnet: false;
|
|
244
|
+
custom?: Record<string, unknown> | undefined;
|
|
245
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
246
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
247
|
+
formatters?: undefined;
|
|
248
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
249
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
250
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
251
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
252
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
253
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
254
|
+
}] | undefined;
|
|
255
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
256
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Chain IDs
|
|
260
|
+
*/
|
|
261
|
+
export declare const LUX_MAINNET_ID = 96369;
|
|
262
|
+
export declare const LUX_TESTNET_ID = 96368;
|
|
263
|
+
export declare const ZOO_MAINNET_ID = 200200;
|
|
264
|
+
export declare const ZOO_TESTNET_ID = 200201;
|
|
265
|
+
export declare const LUX_DEV_ID = 1337;
|
|
266
|
+
/**
|
|
267
|
+
* All supported chains
|
|
268
|
+
*/
|
|
269
|
+
export declare const supportedChains: readonly [{
|
|
270
|
+
blockExplorers: {
|
|
271
|
+
readonly default: {
|
|
272
|
+
readonly name: "Lux Explorer";
|
|
273
|
+
readonly url: "https://explore.lux.network";
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
blockTime?: number | undefined | undefined;
|
|
277
|
+
contracts: {
|
|
278
|
+
readonly multicall3: {
|
|
279
|
+
readonly address: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F";
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
ensTlds?: readonly string[] | undefined;
|
|
283
|
+
id: 96369;
|
|
284
|
+
name: "Lux Mainnet";
|
|
285
|
+
nativeCurrency: {
|
|
286
|
+
readonly name: "LUX";
|
|
287
|
+
readonly symbol: "LUX";
|
|
288
|
+
readonly decimals: 18;
|
|
289
|
+
};
|
|
290
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
291
|
+
rpcUrls: {
|
|
292
|
+
readonly default: {
|
|
293
|
+
readonly http: readonly ["https://api.lux.network/rpc"];
|
|
294
|
+
};
|
|
295
|
+
readonly public: {
|
|
296
|
+
readonly http: readonly ["https://api.lux.network/rpc"];
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
sourceId?: number | undefined | undefined;
|
|
300
|
+
testnet?: boolean | undefined | undefined;
|
|
301
|
+
custom?: Record<string, unknown> | undefined;
|
|
302
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
303
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
304
|
+
formatters?: undefined;
|
|
305
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
306
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
307
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
308
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
309
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
310
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
311
|
+
}] | undefined;
|
|
312
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
313
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
blockExplorers: {
|
|
316
|
+
readonly default: {
|
|
317
|
+
readonly name: "Lux Testnet Explorer";
|
|
318
|
+
readonly url: "https://explore.lux-test.network";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
blockTime?: number | undefined | undefined;
|
|
322
|
+
contracts: {
|
|
323
|
+
readonly multicall3: {
|
|
324
|
+
readonly address: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F";
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
ensTlds?: readonly string[] | undefined;
|
|
328
|
+
id: 96368;
|
|
329
|
+
name: "Lux Testnet";
|
|
330
|
+
nativeCurrency: {
|
|
331
|
+
readonly name: "LUX";
|
|
332
|
+
readonly symbol: "LUX";
|
|
333
|
+
readonly decimals: 18;
|
|
334
|
+
};
|
|
335
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
336
|
+
rpcUrls: {
|
|
337
|
+
readonly default: {
|
|
338
|
+
readonly http: readonly ["https://api.lux-test.network/rpc"];
|
|
339
|
+
};
|
|
340
|
+
readonly public: {
|
|
341
|
+
readonly http: readonly ["https://api.lux-test.network/rpc"];
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
sourceId?: number | undefined | undefined;
|
|
345
|
+
testnet: true;
|
|
346
|
+
custom?: Record<string, unknown> | undefined;
|
|
347
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
348
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
349
|
+
formatters?: undefined;
|
|
350
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
351
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
352
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
353
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
354
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
355
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
356
|
+
}] | undefined;
|
|
357
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
358
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
blockExplorers: {
|
|
361
|
+
readonly default: {
|
|
362
|
+
readonly name: "Zoo Explorer";
|
|
363
|
+
readonly url: "https://explore.zoo.network";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
blockTime?: number | undefined | undefined;
|
|
367
|
+
contracts?: {
|
|
368
|
+
[x: string]: import("viem").ChainContract | {
|
|
369
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
372
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
373
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
374
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
ensTlds?: readonly string[] | undefined;
|
|
377
|
+
id: 200200;
|
|
378
|
+
name: "Zoo Network";
|
|
379
|
+
nativeCurrency: {
|
|
380
|
+
readonly name: "ZOO";
|
|
381
|
+
readonly symbol: "ZOO";
|
|
382
|
+
readonly decimals: 18;
|
|
383
|
+
};
|
|
384
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
385
|
+
rpcUrls: {
|
|
386
|
+
readonly default: {
|
|
387
|
+
readonly http: readonly ["https://api.zoo.network/rpc"];
|
|
388
|
+
};
|
|
389
|
+
readonly public: {
|
|
390
|
+
readonly http: readonly ["https://api.zoo.network/rpc"];
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
sourceId?: number | undefined | undefined;
|
|
394
|
+
testnet?: boolean | undefined | undefined;
|
|
395
|
+
custom?: Record<string, unknown> | undefined;
|
|
396
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
397
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
398
|
+
formatters?: undefined;
|
|
399
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
400
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
401
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
402
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
403
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
404
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
405
|
+
}] | undefined;
|
|
406
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
407
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
408
|
+
}, {
|
|
409
|
+
blockExplorers: {
|
|
410
|
+
readonly default: {
|
|
411
|
+
readonly name: "Zoo Testnet Explorer";
|
|
412
|
+
readonly url: "https://explore.zoo-test.network";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
blockTime?: number | undefined | undefined;
|
|
416
|
+
contracts?: {
|
|
417
|
+
[x: string]: import("viem").ChainContract | {
|
|
418
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
419
|
+
} | undefined;
|
|
420
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
421
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
422
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
423
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
ensTlds?: readonly string[] | undefined;
|
|
426
|
+
id: 200201;
|
|
427
|
+
name: "Zoo Testnet";
|
|
428
|
+
nativeCurrency: {
|
|
429
|
+
readonly name: "ZOO";
|
|
430
|
+
readonly symbol: "ZOO";
|
|
431
|
+
readonly decimals: 18;
|
|
432
|
+
};
|
|
433
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
434
|
+
rpcUrls: {
|
|
435
|
+
readonly default: {
|
|
436
|
+
readonly http: readonly ["https://api.zoo-test.network/rpc"];
|
|
437
|
+
};
|
|
438
|
+
readonly public: {
|
|
439
|
+
readonly http: readonly ["https://api.zoo-test.network/rpc"];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
sourceId?: number | undefined | undefined;
|
|
443
|
+
testnet: true;
|
|
444
|
+
custom?: Record<string, unknown> | undefined;
|
|
445
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
446
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
447
|
+
formatters?: undefined;
|
|
448
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
449
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
450
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
451
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
452
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
453
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
454
|
+
}] | undefined;
|
|
455
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
456
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
457
|
+
}, {
|
|
458
|
+
blockExplorers: {
|
|
459
|
+
readonly default: {
|
|
460
|
+
readonly name: "Dev";
|
|
461
|
+
readonly url: "http://localhost:8545";
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
blockTime?: number | undefined | undefined;
|
|
465
|
+
contracts?: {
|
|
466
|
+
[x: string]: import("viem").ChainContract | {
|
|
467
|
+
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
ensRegistry?: import("viem").ChainContract | undefined;
|
|
470
|
+
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
471
|
+
multicall3?: import("viem").ChainContract | undefined;
|
|
472
|
+
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
473
|
+
} | undefined;
|
|
474
|
+
ensTlds?: readonly string[] | undefined;
|
|
475
|
+
id: 1337;
|
|
476
|
+
name: "Lux Dev";
|
|
477
|
+
nativeCurrency: {
|
|
478
|
+
readonly name: "LUX";
|
|
479
|
+
readonly symbol: "LUX";
|
|
480
|
+
readonly decimals: 18;
|
|
481
|
+
};
|
|
482
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
483
|
+
rpcUrls: {
|
|
484
|
+
readonly default: {
|
|
485
|
+
readonly http: readonly ["http://localhost:8545/ext/bc/C/rpc"];
|
|
486
|
+
};
|
|
487
|
+
readonly public: {
|
|
488
|
+
readonly http: readonly ["http://localhost:8545/ext/bc/C/rpc"];
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
sourceId?: number | undefined | undefined;
|
|
492
|
+
testnet: false;
|
|
493
|
+
custom?: Record<string, unknown> | undefined;
|
|
494
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
495
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
496
|
+
formatters?: undefined;
|
|
497
|
+
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
498
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
499
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
500
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
501
|
+
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
502
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
503
|
+
}] | undefined;
|
|
504
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
505
|
+
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
506
|
+
}];
|
|
507
|
+
export type SupportedChainId = typeof supportedChains[number]['id'];
|
|
508
|
+
//# sourceMappingURL=lux.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lux.d.ts","sourceRoot":"","sources":["../../src/chains/lux.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBrB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAerB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBrB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBjB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,QAAQ,CAAA;AACnC,eAAO,MAAM,cAAc,QAAQ,CAAA;AACnC,eAAO,MAAM,cAAc,SAAS,CAAA;AACpC,eAAO,MAAM,cAAc,SAAS,CAAA;AACpC,eAAO,MAAM,UAAU,OAAO,CAAA;AAE9B;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lux Chain Definitions
|
|
3
|
+
* Native chain definitions for Lux Exchange
|
|
4
|
+
*/
|
|
5
|
+
import { defineChain } from 'viem';
|
|
6
|
+
/**
|
|
7
|
+
* Lux Mainnet Chain Definition
|
|
8
|
+
*/
|
|
9
|
+
export const luxMainnet = defineChain({
|
|
10
|
+
id: 96369,
|
|
11
|
+
name: 'Lux Mainnet',
|
|
12
|
+
nativeCurrency: {
|
|
13
|
+
name: 'LUX',
|
|
14
|
+
symbol: 'LUX',
|
|
15
|
+
decimals: 18,
|
|
16
|
+
},
|
|
17
|
+
rpcUrls: {
|
|
18
|
+
default: { http: ['https://api.lux.network/rpc'] },
|
|
19
|
+
public: { http: ['https://api.lux.network/rpc'] },
|
|
20
|
+
},
|
|
21
|
+
blockExplorers: {
|
|
22
|
+
default: { name: 'Lux Explorer', url: 'https://explore.lux.network' },
|
|
23
|
+
},
|
|
24
|
+
contracts: {
|
|
25
|
+
multicall3: {
|
|
26
|
+
address: '0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Lux Testnet Chain Definition
|
|
32
|
+
*/
|
|
33
|
+
export const luxTestnet = defineChain({
|
|
34
|
+
id: 96368,
|
|
35
|
+
name: 'Lux Testnet',
|
|
36
|
+
nativeCurrency: {
|
|
37
|
+
name: 'LUX',
|
|
38
|
+
symbol: 'LUX',
|
|
39
|
+
decimals: 18,
|
|
40
|
+
},
|
|
41
|
+
rpcUrls: {
|
|
42
|
+
default: { http: ['https://api.lux-test.network/rpc'] },
|
|
43
|
+
public: { http: ['https://api.lux-test.network/rpc'] },
|
|
44
|
+
},
|
|
45
|
+
blockExplorers: {
|
|
46
|
+
default: { name: 'Lux Testnet Explorer', url: 'https://explore.lux-test.network' },
|
|
47
|
+
},
|
|
48
|
+
contracts: {
|
|
49
|
+
multicall3: {
|
|
50
|
+
address: '0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
testnet: true,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Zoo Mainnet Chain Definition
|
|
57
|
+
*/
|
|
58
|
+
export const zooMainnet = defineChain({
|
|
59
|
+
id: 200200,
|
|
60
|
+
name: 'Zoo Network',
|
|
61
|
+
nativeCurrency: {
|
|
62
|
+
name: 'ZOO',
|
|
63
|
+
symbol: 'ZOO',
|
|
64
|
+
decimals: 18,
|
|
65
|
+
},
|
|
66
|
+
rpcUrls: {
|
|
67
|
+
default: { http: ['https://api.zoo.network/rpc'] },
|
|
68
|
+
public: { http: ['https://api.zoo.network/rpc'] },
|
|
69
|
+
},
|
|
70
|
+
blockExplorers: {
|
|
71
|
+
default: { name: 'Zoo Explorer', url: 'https://explore.zoo.network' },
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* Zoo Testnet Chain Definition
|
|
76
|
+
*/
|
|
77
|
+
export const zooTestnet = defineChain({
|
|
78
|
+
id: 200201,
|
|
79
|
+
name: 'Zoo Testnet',
|
|
80
|
+
nativeCurrency: {
|
|
81
|
+
name: 'ZOO',
|
|
82
|
+
symbol: 'ZOO',
|
|
83
|
+
decimals: 18,
|
|
84
|
+
},
|
|
85
|
+
rpcUrls: {
|
|
86
|
+
default: { http: ['https://api.zoo-test.network/rpc'] },
|
|
87
|
+
public: { http: ['https://api.zoo-test.network/rpc'] },
|
|
88
|
+
},
|
|
89
|
+
blockExplorers: {
|
|
90
|
+
default: { name: 'Zoo Testnet Explorer', url: 'https://explore.zoo-test.network' },
|
|
91
|
+
},
|
|
92
|
+
testnet: true,
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* Dev Chain Definition (for running local node with --dev)
|
|
96
|
+
*/
|
|
97
|
+
export const luxDev = defineChain({
|
|
98
|
+
id: 1337,
|
|
99
|
+
name: 'Lux Dev',
|
|
100
|
+
nativeCurrency: {
|
|
101
|
+
name: 'LUX',
|
|
102
|
+
symbol: 'LUX',
|
|
103
|
+
decimals: 18,
|
|
104
|
+
},
|
|
105
|
+
rpcUrls: {
|
|
106
|
+
default: { http: ['http://localhost:8545/ext/bc/C/rpc'] },
|
|
107
|
+
public: { http: ['http://localhost:8545/ext/bc/C/rpc'] },
|
|
108
|
+
},
|
|
109
|
+
blockExplorers: {
|
|
110
|
+
default: { name: 'Dev', url: 'http://localhost:8545' },
|
|
111
|
+
},
|
|
112
|
+
testnet: false,
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* Chain IDs
|
|
116
|
+
*/
|
|
117
|
+
export const LUX_MAINNET_ID = 96369;
|
|
118
|
+
export const LUX_TESTNET_ID = 96368;
|
|
119
|
+
export const ZOO_MAINNET_ID = 200200;
|
|
120
|
+
export const ZOO_TESTNET_ID = 200201;
|
|
121
|
+
export const LUX_DEV_ID = 1337;
|
|
122
|
+
/**
|
|
123
|
+
* All supported chains
|
|
124
|
+
*/
|
|
125
|
+
export const supportedChains = [
|
|
126
|
+
luxMainnet,
|
|
127
|
+
luxTestnet,
|
|
128
|
+
zooMainnet,
|
|
129
|
+
zooTestnet,
|
|
130
|
+
luxDev,
|
|
131
|
+
];
|