@luxexchange/config 1.0.2 → 1.0.3
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/.depcheckrc +9 -0
- package/.eslintrc.js +20 -0
- package/env.d.ts +2 -2
- package/env.native.d.ts +2 -3
- package/package.json +1 -1
- package/project.json +1 -1
- package/src/brand.ts +165 -0
- package/src/config-types.ts +2 -4
- package/src/getConfig.native.ts +7 -13
- package/src/getConfig.ts +2 -2
- package/src/getConfig.web.ts +4 -12
- package/src/index.ts +2 -35
- package/src/legal.ts +55 -0
- package/tsconfig.json +17 -3
- package/dist/chains.d.ts +0 -405
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -105
- package/dist/contracts.d.ts +0 -85
- package/dist/contracts.d.ts.map +0 -1
- package/dist/contracts.js +0 -68
- package/dist/env.d.ts +0 -17
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js +0 -20
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/wagmi.d.ts +0 -297
- package/dist/wagmi.d.ts.map +0 -1
- package/dist/wagmi.js +0 -19
- package/src/chains.ts +0 -224
- package/src/contracts.ts +0 -193
- package/src/env.ts +0 -27
- package/src/wagmi.ts +0 -27
package/dist/env.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Environment configuration
|
|
3
|
-
*/
|
|
4
|
-
export declare const ENV: {
|
|
5
|
-
readonly DEFAULT_CHAIN_ID: number;
|
|
6
|
-
readonly API_URL: string;
|
|
7
|
-
readonly LUX_MAINNET_RPC: string;
|
|
8
|
-
readonly LUX_TESTNET_RPC: string;
|
|
9
|
-
readonly ZOO_MAINNET_RPC: string;
|
|
10
|
-
readonly ZOO_TESTNET_RPC: string;
|
|
11
|
-
readonly ENABLE_TESTNET: boolean;
|
|
12
|
-
readonly ENABLE_DEX_PRECOMPILES: boolean;
|
|
13
|
-
readonly ENABLE_CROSS_CHAIN: boolean;
|
|
14
|
-
readonly WALLETCONNECT_PROJECT_ID: string;
|
|
15
|
-
};
|
|
16
|
-
export type Env = typeof ENV;
|
|
17
|
-
//# sourceMappingURL=env.d.ts.map
|
package/dist/env.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,GAAG;;;;;;;;;;;CAoBN,CAAA;AAEV,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAA"}
|
package/dist/env.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Environment configuration
|
|
3
|
-
*/
|
|
4
|
-
export const ENV = {
|
|
5
|
-
// Chain IDs
|
|
6
|
-
DEFAULT_CHAIN_ID: parseInt(process.env.NEXT_PUBLIC_DEFAULT_CHAIN_ID || '96369'),
|
|
7
|
-
// API URLs
|
|
8
|
-
API_URL: process.env.NEXT_PUBLIC_API_URL || 'https://api.lux.exchange',
|
|
9
|
-
// RPC URLs
|
|
10
|
-
LUX_MAINNET_RPC: process.env.NEXT_PUBLIC_LUX_MAINNET_RPC || 'https://api.lux.network/rpc',
|
|
11
|
-
LUX_TESTNET_RPC: process.env.NEXT_PUBLIC_LUX_TESTNET_RPC || 'https://api.lux-test.network/rpc',
|
|
12
|
-
ZOO_MAINNET_RPC: process.env.NEXT_PUBLIC_ZOO_MAINNET_RPC || 'https://api.zoo.network/rpc',
|
|
13
|
-
ZOO_TESTNET_RPC: process.env.NEXT_PUBLIC_ZOO_TESTNET_RPC || 'https://api.zoo-test.network/rpc',
|
|
14
|
-
// Feature flags
|
|
15
|
-
ENABLE_TESTNET: process.env.NEXT_PUBLIC_ENABLE_TESTNET === 'true',
|
|
16
|
-
ENABLE_DEX_PRECOMPILES: process.env.NEXT_PUBLIC_ENABLE_DEX_PRECOMPILES === 'true',
|
|
17
|
-
ENABLE_CROSS_CHAIN: process.env.NEXT_PUBLIC_ENABLE_CROSS_CHAIN === 'true',
|
|
18
|
-
// WalletConnect
|
|
19
|
-
WALLETCONNECT_PROJECT_ID: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID || '',
|
|
20
|
-
};
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
package/dist/index.js
DELETED
package/dist/wagmi.d.ts
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wagmi configuration for Lux Exchange
|
|
3
|
-
*/
|
|
4
|
-
export declare const wagmiConfig: import("wagmi").Config<readonly [{
|
|
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
|
-
blockExplorers: {
|
|
51
|
-
readonly default: {
|
|
52
|
-
readonly name: "Lux Testnet Explorer";
|
|
53
|
-
readonly url: "https://explore.lux-test.network";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
blockTime?: number | undefined | undefined;
|
|
57
|
-
contracts: {
|
|
58
|
-
readonly multicall3: {
|
|
59
|
-
readonly address: "0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F";
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
ensTlds?: readonly string[] | undefined;
|
|
63
|
-
id: 96368;
|
|
64
|
-
name: "Lux Testnet";
|
|
65
|
-
nativeCurrency: {
|
|
66
|
-
readonly name: "LUX";
|
|
67
|
-
readonly symbol: "LUX";
|
|
68
|
-
readonly decimals: 18;
|
|
69
|
-
};
|
|
70
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
71
|
-
rpcUrls: {
|
|
72
|
-
readonly default: {
|
|
73
|
-
readonly http: readonly ["https://api.lux-test.network/rpc"];
|
|
74
|
-
};
|
|
75
|
-
readonly public: {
|
|
76
|
-
readonly http: readonly ["https://api.lux-test.network/rpc"];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
sourceId?: number | undefined | undefined;
|
|
80
|
-
testnet: true;
|
|
81
|
-
custom?: Record<string, unknown> | undefined;
|
|
82
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
83
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
84
|
-
formatters?: undefined;
|
|
85
|
-
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
86
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
87
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
88
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
89
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
90
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
91
|
-
}] | undefined;
|
|
92
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
93
|
-
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
blockExplorers: {
|
|
96
|
-
readonly default: {
|
|
97
|
-
readonly name: "Zoo Explorer";
|
|
98
|
-
readonly url: "https://explore.zoo.network";
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
blockTime?: number | undefined | undefined;
|
|
102
|
-
contracts?: {
|
|
103
|
-
[x: string]: import("viem").ChainContract | {
|
|
104
|
-
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
ensRegistry?: import("viem").ChainContract | undefined;
|
|
107
|
-
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
108
|
-
multicall3?: import("viem").ChainContract | undefined;
|
|
109
|
-
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
110
|
-
} | undefined;
|
|
111
|
-
ensTlds?: readonly string[] | undefined;
|
|
112
|
-
id: 200200;
|
|
113
|
-
name: "Zoo Network";
|
|
114
|
-
nativeCurrency: {
|
|
115
|
-
readonly name: "ZOO";
|
|
116
|
-
readonly symbol: "ZOO";
|
|
117
|
-
readonly decimals: 18;
|
|
118
|
-
};
|
|
119
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
120
|
-
rpcUrls: {
|
|
121
|
-
readonly default: {
|
|
122
|
-
readonly http: readonly ["https://api.zoo.network/rpc"];
|
|
123
|
-
};
|
|
124
|
-
readonly public: {
|
|
125
|
-
readonly http: readonly ["https://api.zoo.network/rpc"];
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
sourceId?: number | undefined | undefined;
|
|
129
|
-
testnet?: boolean | undefined | undefined;
|
|
130
|
-
custom?: Record<string, unknown> | undefined;
|
|
131
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
132
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
133
|
-
formatters?: undefined;
|
|
134
|
-
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
135
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
136
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
137
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
138
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
139
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
140
|
-
}] | undefined;
|
|
141
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
142
|
-
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
blockExplorers: {
|
|
145
|
-
readonly default: {
|
|
146
|
-
readonly name: "Zoo Testnet Explorer";
|
|
147
|
-
readonly url: "https://explore.zoo-test.network";
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
blockTime?: number | undefined | undefined;
|
|
151
|
-
contracts?: {
|
|
152
|
-
[x: string]: import("viem").ChainContract | {
|
|
153
|
-
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
ensRegistry?: import("viem").ChainContract | undefined;
|
|
156
|
-
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
157
|
-
multicall3?: import("viem").ChainContract | undefined;
|
|
158
|
-
erc6492Verifier?: import("viem").ChainContract | undefined;
|
|
159
|
-
} | undefined;
|
|
160
|
-
ensTlds?: readonly string[] | undefined;
|
|
161
|
-
id: 200201;
|
|
162
|
-
name: "Zoo Testnet";
|
|
163
|
-
nativeCurrency: {
|
|
164
|
-
readonly name: "ZOO";
|
|
165
|
-
readonly symbol: "ZOO";
|
|
166
|
-
readonly decimals: 18;
|
|
167
|
-
};
|
|
168
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
169
|
-
rpcUrls: {
|
|
170
|
-
readonly default: {
|
|
171
|
-
readonly http: readonly ["https://api.zoo-test.network/rpc"];
|
|
172
|
-
};
|
|
173
|
-
readonly public: {
|
|
174
|
-
readonly http: readonly ["https://api.zoo-test.network/rpc"];
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
sourceId?: number | undefined | undefined;
|
|
178
|
-
testnet: true;
|
|
179
|
-
custom?: Record<string, unknown> | undefined;
|
|
180
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
181
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
182
|
-
formatters?: undefined;
|
|
183
|
-
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
184
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
185
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
186
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
187
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
188
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
189
|
-
}] | undefined;
|
|
190
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
191
|
-
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
192
|
-
}, {
|
|
193
|
-
blockExplorers: {
|
|
194
|
-
readonly default: {
|
|
195
|
-
readonly name: "Etherscan";
|
|
196
|
-
readonly url: "https://etherscan.io";
|
|
197
|
-
readonly apiUrl: "https://api.etherscan.io/api";
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
blockTime: 12000;
|
|
201
|
-
contracts: {
|
|
202
|
-
readonly ensUniversalResolver: {
|
|
203
|
-
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
204
|
-
readonly blockCreated: 23085558;
|
|
205
|
-
};
|
|
206
|
-
readonly multicall3: {
|
|
207
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
208
|
-
readonly blockCreated: 14353601;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
ensTlds?: readonly string[] | undefined;
|
|
212
|
-
id: 1;
|
|
213
|
-
name: "Ethereum";
|
|
214
|
-
nativeCurrency: {
|
|
215
|
-
readonly name: "Ether";
|
|
216
|
-
readonly symbol: "ETH";
|
|
217
|
-
readonly decimals: 18;
|
|
218
|
-
};
|
|
219
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
220
|
-
rpcUrls: {
|
|
221
|
-
readonly default: {
|
|
222
|
-
readonly http: readonly ["https://eth.merkle.io"];
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
sourceId?: number | undefined | undefined;
|
|
226
|
-
testnet?: boolean | undefined | undefined;
|
|
227
|
-
custom?: Record<string, unknown> | undefined;
|
|
228
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
229
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
230
|
-
formatters?: undefined;
|
|
231
|
-
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
232
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
233
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
234
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
235
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
236
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
237
|
-
}] | undefined;
|
|
238
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
239
|
-
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
240
|
-
}, {
|
|
241
|
-
blockExplorers: {
|
|
242
|
-
readonly default: {
|
|
243
|
-
readonly name: "Etherscan";
|
|
244
|
-
readonly url: "https://sepolia.etherscan.io";
|
|
245
|
-
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
blockTime?: number | undefined | undefined;
|
|
249
|
-
contracts: {
|
|
250
|
-
readonly multicall3: {
|
|
251
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
252
|
-
readonly blockCreated: 751532;
|
|
253
|
-
};
|
|
254
|
-
readonly ensUniversalResolver: {
|
|
255
|
-
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
256
|
-
readonly blockCreated: 8928790;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
ensTlds?: readonly string[] | undefined;
|
|
260
|
-
id: 11155111;
|
|
261
|
-
name: "Sepolia";
|
|
262
|
-
nativeCurrency: {
|
|
263
|
-
readonly name: "Sepolia Ether";
|
|
264
|
-
readonly symbol: "ETH";
|
|
265
|
-
readonly decimals: 18;
|
|
266
|
-
};
|
|
267
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
268
|
-
rpcUrls: {
|
|
269
|
-
readonly default: {
|
|
270
|
-
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
sourceId?: number | undefined | undefined;
|
|
274
|
-
testnet: true;
|
|
275
|
-
custom?: Record<string, unknown> | undefined;
|
|
276
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
277
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
278
|
-
formatters?: undefined;
|
|
279
|
-
prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
280
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
281
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
|
|
282
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
283
|
-
}) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
|
|
284
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
285
|
-
}] | undefined;
|
|
286
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
287
|
-
verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
|
|
288
|
-
}], {
|
|
289
|
-
96369: import("viem").HttpTransport<undefined, false>;
|
|
290
|
-
96368: import("viem").HttpTransport<undefined, false>;
|
|
291
|
-
200200: import("viem").HttpTransport<undefined, false>;
|
|
292
|
-
200201: import("viem").HttpTransport<undefined, false>;
|
|
293
|
-
1: import("viem").HttpTransport<undefined, false>;
|
|
294
|
-
11155111: import("viem").HttpTransport<undefined, false>;
|
|
295
|
-
}, readonly import("wagmi").CreateConnectorFn[]>;
|
|
296
|
-
export type WagmiConfig = typeof wagmiConfig;
|
|
297
|
-
//# sourceMappingURL=wagmi.d.ts.map
|
package/dist/wagmi.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wagmi.d.ts","sourceRoot":"","sources":["../src/wagmi.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAYtB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA"}
|
package/dist/wagmi.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { http, createConfig } from 'wagmi';
|
|
2
|
-
import { mainnet, sepolia } from 'wagmi/chains';
|
|
3
|
-
import { luxMainnet, luxTestnet, zooMainnet, zooTestnet } from './chains';
|
|
4
|
-
/**
|
|
5
|
-
* Wagmi configuration for Lux Exchange
|
|
6
|
-
*/
|
|
7
|
-
export const wagmiConfig = createConfig({
|
|
8
|
-
chains: [luxMainnet, luxTestnet, zooMainnet, zooTestnet, mainnet, sepolia],
|
|
9
|
-
transports: {
|
|
10
|
-
// Lux chains
|
|
11
|
-
[luxMainnet.id]: http('https://api.lux.network/rpc'),
|
|
12
|
-
[luxTestnet.id]: http('https://api.lux-test.network/rpc'),
|
|
13
|
-
[zooMainnet.id]: http('https://api.zoo.network/rpc'),
|
|
14
|
-
[zooTestnet.id]: http('https://api.zoo-test.network/rpc'),
|
|
15
|
-
// Ethereum (for bridging)
|
|
16
|
-
[mainnet.id]: http(),
|
|
17
|
-
[sepolia.id]: http(),
|
|
18
|
-
},
|
|
19
|
-
});
|
package/src/chains.ts
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { defineChain } from 'viem'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Lux Mainnet Chain Definition
|
|
5
|
-
*/
|
|
6
|
-
export const luxMainnet = defineChain({
|
|
7
|
-
id: 96369,
|
|
8
|
-
name: 'Lux Mainnet',
|
|
9
|
-
nativeCurrency: {
|
|
10
|
-
name: 'LUX',
|
|
11
|
-
symbol: 'LUX',
|
|
12
|
-
decimals: 18,
|
|
13
|
-
},
|
|
14
|
-
rpcUrls: {
|
|
15
|
-
default: { http: ['https://api.lux.network/mainnet/ext/bc/C/rpc'] },
|
|
16
|
-
public: { http: ['https://api.lux.network/mainnet/ext/bc/C/rpc'] },
|
|
17
|
-
},
|
|
18
|
-
blockExplorers: {
|
|
19
|
-
default: { name: 'Lux Explorer', url: 'https://explore.lux.network' },
|
|
20
|
-
},
|
|
21
|
-
contracts: {
|
|
22
|
-
multicall3: {
|
|
23
|
-
address: '0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Lux Testnet Chain Definition
|
|
30
|
-
*/
|
|
31
|
-
export const luxTestnet = defineChain({
|
|
32
|
-
id: 96368,
|
|
33
|
-
name: 'Lux Testnet',
|
|
34
|
-
nativeCurrency: {
|
|
35
|
-
name: 'LUX',
|
|
36
|
-
symbol: 'LUX',
|
|
37
|
-
decimals: 18,
|
|
38
|
-
},
|
|
39
|
-
rpcUrls: {
|
|
40
|
-
default: { http: ['https://api.lux.network/testnet/ext/bc/C/rpc'] },
|
|
41
|
-
public: { http: ['https://api.lux.network/testnet/ext/bc/C/rpc'] },
|
|
42
|
-
},
|
|
43
|
-
blockExplorers: {
|
|
44
|
-
default: { name: 'Lux Testnet Explorer', url: 'https://explore.lux-test.network' },
|
|
45
|
-
},
|
|
46
|
-
contracts: {
|
|
47
|
-
multicall3: {
|
|
48
|
-
address: '0xd25F88CBdAe3c2CCA3Bb75FC4E723b44C0Ea362F',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
testnet: true,
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Zoo Mainnet Chain Definition
|
|
56
|
-
*/
|
|
57
|
-
export const zooMainnet = defineChain({
|
|
58
|
-
id: 200200,
|
|
59
|
-
name: 'Zoo Network',
|
|
60
|
-
nativeCurrency: {
|
|
61
|
-
name: 'ZOO',
|
|
62
|
-
symbol: 'ZOO',
|
|
63
|
-
decimals: 18,
|
|
64
|
-
},
|
|
65
|
-
rpcUrls: {
|
|
66
|
-
default: { http: ['https://api.zoo.network/rpc'] },
|
|
67
|
-
public: { http: ['https://api.zoo.network/rpc'] },
|
|
68
|
-
},
|
|
69
|
-
blockExplorers: {
|
|
70
|
-
default: { name: 'Zoo Explorer', url: 'https://explore.zoo.network' },
|
|
71
|
-
},
|
|
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
|
-
/**
|
|
96
|
-
* Hanzo Network (AI Coin) Chain Definition
|
|
97
|
-
*/
|
|
98
|
-
export const hanzoMainnet = defineChain({
|
|
99
|
-
id: 36963,
|
|
100
|
-
name: 'Hanzo Network',
|
|
101
|
-
nativeCurrency: {
|
|
102
|
-
name: 'HANZO',
|
|
103
|
-
symbol: 'HANZO',
|
|
104
|
-
decimals: 18,
|
|
105
|
-
},
|
|
106
|
-
rpcUrls: {
|
|
107
|
-
default: { http: ['https://api.lux.network/mainnet/ext/bc/2GiQb73CeJESjc4omFv2YtQHZrRgJf25NXPzAr5J6UNHRcDV2F/rpc'] },
|
|
108
|
-
public: { http: ['https://api.lux.network/mainnet/ext/bc/2GiQb73CeJESjc4omFv2YtQHZrRgJf25NXPzAr5J6UNHRcDV2F/rpc'] },
|
|
109
|
-
},
|
|
110
|
-
blockExplorers: {
|
|
111
|
-
default: { name: 'Hanzo Explorer', url: 'https://explore-hanzo.lux.network' },
|
|
112
|
-
},
|
|
113
|
-
})
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* SPC Network Chain Definition
|
|
117
|
-
*/
|
|
118
|
-
export const spcMainnet = defineChain({
|
|
119
|
-
id: 36911,
|
|
120
|
-
name: 'SPC Network',
|
|
121
|
-
nativeCurrency: {
|
|
122
|
-
name: 'SPC',
|
|
123
|
-
symbol: 'SPC',
|
|
124
|
-
decimals: 18,
|
|
125
|
-
},
|
|
126
|
-
rpcUrls: {
|
|
127
|
-
default: { http: ['https://api.lux.network/mainnet/ext/bc/rtjwvtE1tEvrokmpeYdTq7b2zqZgmybKwR5MLjKMGAR1W78dQ/rpc'] },
|
|
128
|
-
public: { http: ['https://api.lux.network/mainnet/ext/bc/rtjwvtE1tEvrokmpeYdTq7b2zqZgmybKwR5MLjKMGAR1W78dQ/rpc'] },
|
|
129
|
-
},
|
|
130
|
-
blockExplorers: {
|
|
131
|
-
default: { name: 'SPC Explorer', url: 'https://explore-spc.lux.network' },
|
|
132
|
-
},
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Pars Network Chain Definition
|
|
137
|
-
*/
|
|
138
|
-
export const parsMainnet = defineChain({
|
|
139
|
-
id: 494949,
|
|
140
|
-
name: 'Pars Network',
|
|
141
|
-
nativeCurrency: {
|
|
142
|
-
name: 'PARS',
|
|
143
|
-
symbol: 'PARS',
|
|
144
|
-
decimals: 18,
|
|
145
|
-
},
|
|
146
|
-
rpcUrls: {
|
|
147
|
-
default: { http: ['https://api.lux.network/mainnet/ext/bc/2pUskxqaL5Bpx7uRUGG1fDjPckjxQ4UKX4sLKeaS1NdSVBJd3F/rpc'] },
|
|
148
|
-
public: { http: ['https://api.lux.network/mainnet/ext/bc/2pUskxqaL5Bpx7uRUGG1fDjPckjxQ4UKX4sLKeaS1NdSVBJd3F/rpc'] },
|
|
149
|
-
},
|
|
150
|
-
blockExplorers: {
|
|
151
|
-
default: { name: 'Pars Explorer', url: 'https://explore-pars.lux.network' },
|
|
152
|
-
},
|
|
153
|
-
})
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Liquid EVM (Liquidity Network) Chain Definition
|
|
157
|
-
*/
|
|
158
|
-
export const liquidEvm = defineChain({
|
|
159
|
-
id: 8675311,
|
|
160
|
-
name: 'Liquid Network',
|
|
161
|
-
nativeCurrency: {
|
|
162
|
-
name: 'LQDTY',
|
|
163
|
-
symbol: 'LQDTY',
|
|
164
|
-
decimals: 18,
|
|
165
|
-
},
|
|
166
|
-
rpcUrls: {
|
|
167
|
-
default: { http: ['https://rpc.next.satschel.com'] },
|
|
168
|
-
public: { http: ['https://rpc.next.satschel.com'] },
|
|
169
|
-
},
|
|
170
|
-
blockExplorers: {
|
|
171
|
-
default: { name: 'Liquid Explorer', url: 'https://explore.next.satschel.com' },
|
|
172
|
-
},
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Dev Chain Definition (for running local node with --dev)
|
|
177
|
-
*/
|
|
178
|
-
export const luxDev = defineChain({
|
|
179
|
-
id: 1337,
|
|
180
|
-
name: 'Lux Dev',
|
|
181
|
-
nativeCurrency: {
|
|
182
|
-
name: 'LUX',
|
|
183
|
-
symbol: 'LUX',
|
|
184
|
-
decimals: 18,
|
|
185
|
-
},
|
|
186
|
-
rpcUrls: {
|
|
187
|
-
default: { http: ['http://localhost:8545/ext/bc/C/rpc'] },
|
|
188
|
-
public: { http: ['http://localhost:8545/ext/bc/C/rpc'] },
|
|
189
|
-
},
|
|
190
|
-
blockExplorers: {
|
|
191
|
-
default: { name: 'Dev', url: 'http://localhost:8545' },
|
|
192
|
-
},
|
|
193
|
-
testnet: false,
|
|
194
|
-
})
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Chain IDs
|
|
198
|
-
*/
|
|
199
|
-
export const LUX_MAINNET_ID = 96369
|
|
200
|
-
export const LUX_TESTNET_ID = 96368
|
|
201
|
-
export const ZOO_MAINNET_ID = 200200
|
|
202
|
-
export const ZOO_TESTNET_ID = 200201
|
|
203
|
-
export const HANZO_MAINNET_ID = 36963
|
|
204
|
-
export const SPC_MAINNET_ID = 36911
|
|
205
|
-
export const PARS_MAINNET_ID = 494949
|
|
206
|
-
export const LIQUID_EVM_ID = 8675311
|
|
207
|
-
export const LUX_DEV_ID = 1337
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* All supported chains
|
|
211
|
-
*/
|
|
212
|
-
export const supportedChains = [
|
|
213
|
-
luxMainnet,
|
|
214
|
-
luxTestnet,
|
|
215
|
-
zooMainnet,
|
|
216
|
-
zooTestnet,
|
|
217
|
-
hanzoMainnet,
|
|
218
|
-
spcMainnet,
|
|
219
|
-
parsMainnet,
|
|
220
|
-
liquidEvm,
|
|
221
|
-
luxDev,
|
|
222
|
-
] as const
|
|
223
|
-
|
|
224
|
-
export type SupportedChainId = typeof supportedChains[number]['id']
|