@nadohq/shared 0.1.0-alpha.4 → 0.1.0-alpha.41
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/abis/index.cjs +12 -12
- package/dist/abis/index.cjs.map +1 -1
- package/dist/abis/index.d.cts +6 -6
- package/dist/abis/index.d.ts +6 -6
- package/dist/abis/index.js +6 -6
- package/dist/abis/index.js.map +1 -1
- package/dist/consts/chainEnvToChain.cjs +2 -2
- package/dist/consts/chainEnvToChain.cjs.map +1 -1
- package/dist/consts/chainEnvToChain.d.cts +329 -39
- package/dist/consts/chainEnvToChain.d.ts +329 -39
- package/dist/consts/chainEnvToChain.js +3 -3
- package/dist/consts/chainEnvToChain.js.map +1 -1
- package/dist/consts/productIds.cjs +1 -1
- package/dist/consts/productIds.cjs.map +1 -1
- package/dist/consts/productIds.d.cts +1 -1
- package/dist/consts/productIds.d.ts +1 -1
- package/dist/consts/productIds.js +1 -1
- package/dist/consts/productIds.js.map +1 -1
- package/dist/deployments/core/deployment.inkMainnet.json +13 -0
- package/dist/deployments/core/deployment.inkSepolia.json +13 -0
- package/dist/deployments/index.cjs +6 -6
- package/dist/deployments/index.cjs.map +1 -1
- package/dist/deployments/index.js +5 -5
- package/dist/deployments/index.js.map +1 -1
- package/dist/eip712/eip712ValueTypes.d.cts +1 -1
- package/dist/eip712/eip712ValueTypes.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Domain.cjs.map +1 -1
- package/dist/eip712/getNadoEIP712Domain.js.map +1 -1
- package/dist/eip712/index.cjs +13 -13
- package/dist/eip712/index.cjs.map +1 -1
- package/dist/eip712/index.d.cts +9 -9
- package/dist/eip712/index.d.ts +9 -9
- package/dist/eip712/index.js +6 -6
- package/dist/eip712/index.js.map +1 -1
- package/dist/index.d.cts +33 -33
- package/dist/index.d.ts +33 -33
- package/dist/types/ChainEnv.cjs +1 -1
- package/dist/types/ChainEnv.cjs.map +1 -1
- package/dist/types/ChainEnv.d.cts +2 -2
- package/dist/types/ChainEnv.d.ts +2 -2
- package/dist/types/ChainEnv.js +1 -1
- package/dist/types/ChainEnv.js.map +1 -1
- package/dist/types/index.cjs +7 -7
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +3 -3
- package/dist/types/index.js.map +1 -1
- package/dist/types/orderAppendixTypes.cjs.map +1 -1
- package/dist/types/orderAppendixTypes.d.cts +7 -3
- package/dist/types/orderAppendixTypes.d.ts +7 -3
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs.map +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.js.map +1 -1
- package/dist/utils/index.cjs +12 -12
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +21 -21
- package/dist/utils/index.d.ts +21 -21
- package/dist/utils/index.js +6 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/math/index.cjs +8 -8
- package/dist/utils/math/index.cjs.map +1 -1
- package/dist/utils/math/index.d.cts +4 -4
- package/dist/utils/math/index.d.ts +4 -4
- package/dist/utils/math/index.js +4 -4
- package/dist/utils/math/index.js.map +1 -1
- package/dist/utils/orders/appendix/appendixIsolatedValue.cjs +50 -0
- package/dist/utils/orders/appendix/appendixIsolatedValue.cjs.map +1 -0
- package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts +26 -0
- package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts +26 -0
- package/dist/utils/orders/appendix/appendixIsolatedValue.js +31 -0
- package/dist/utils/orders/appendix/appendixIsolatedValue.js.map +1 -0
- package/dist/utils/orders/appendix/{appendixTWAPValue.cjs → appendixTwapValue.cjs} +14 -15
- package/dist/utils/orders/appendix/appendixTwapValue.cjs.map +1 -0
- package/dist/utils/orders/appendix/appendixTwapValue.d.cts +29 -0
- package/dist/utils/orders/appendix/appendixTwapValue.d.ts +29 -0
- package/dist/utils/orders/appendix/appendixTwapValue.js +25 -0
- package/dist/utils/orders/appendix/appendixTwapValue.js.map +1 -0
- package/dist/utils/orders/appendix/index.cjs +6 -6
- package/dist/utils/orders/appendix/index.cjs.map +1 -1
- package/dist/utils/orders/appendix/index.d.cts +3 -3
- package/dist/utils/orders/appendix/index.d.ts +3 -3
- package/dist/utils/orders/appendix/index.js +3 -3
- package/dist/utils/orders/appendix/index.js.map +1 -1
- package/dist/utils/orders/appendix/orderAppendix.test.cjs +11 -12
- package/dist/utils/orders/appendix/orderAppendix.test.cjs.map +1 -1
- package/dist/utils/orders/appendix/orderAppendix.test.js +11 -12
- package/dist/utils/orders/appendix/orderAppendix.test.js.map +1 -1
- package/dist/utils/orders/appendix/packOrderAppendix.cjs +7 -7
- package/dist/utils/orders/appendix/packOrderAppendix.cjs.map +1 -1
- package/dist/utils/orders/appendix/packOrderAppendix.js +7 -7
- package/dist/utils/orders/appendix/packOrderAppendix.js.map +1 -1
- package/dist/utils/orders/appendix/types.cjs.map +1 -1
- package/dist/utils/orders/appendix/types.d.cts +2 -2
- package/dist/utils/orders/appendix/types.d.ts +2 -2
- package/dist/utils/orders/appendix/unpackOrderAppendix.cjs +7 -6
- package/dist/utils/orders/appendix/unpackOrderAppendix.cjs.map +1 -1
- package/dist/utils/orders/appendix/unpackOrderAppendix.js +7 -6
- package/dist/utils/orders/appendix/unpackOrderAppendix.js.map +1 -1
- package/dist/utils/orders/index.cjs +3 -3
- package/dist/utils/orders/index.cjs.map +1 -1
- package/dist/utils/orders/index.d.cts +5 -5
- package/dist/utils/orders/index.d.ts +5 -5
- package/dist/utils/orders/index.js +1 -1
- package/dist/utils/orders/index.js.map +1 -1
- package/dist/utils/productTypeFilter.cjs.map +1 -1
- package/dist/utils/productTypeFilter.js.map +1 -1
- package/package.json +6 -2
- package/src/abis/index.ts +6 -6
- package/src/consts/chainEnvToChain.ts +2 -2
- package/src/consts/productIds.ts +1 -1
- package/src/deployments/core/deployment.inkMainnet.json +13 -0
- package/src/deployments/core/deployment.inkSepolia.json +13 -0
- package/src/deployments/index.ts +5 -5
- package/src/eip712/getNadoEIP712Domain.ts +1 -1
- package/src/eip712/index.ts +6 -6
- package/src/types/ChainEnv.ts +1 -1
- package/src/types/index.ts +3 -3
- package/src/types/orderAppendixTypes.ts +6 -2
- package/src/utils/createDeterministicLinkedSignerPrivateKey.ts +1 -1
- package/src/utils/index.ts +6 -6
- package/src/utils/math/index.ts +4 -4
- package/src/utils/orders/appendix/appendixIsolatedValue.ts +49 -0
- package/src/utils/orders/appendix/appendixTwapValue.ts +46 -0
- package/src/utils/orders/appendix/index.ts +3 -3
- package/src/utils/orders/appendix/orderAppendix.test.ts +10 -11
- package/src/utils/orders/appendix/packOrderAppendix.ts +8 -8
- package/src/utils/orders/appendix/types.ts +5 -5
- package/src/utils/orders/appendix/unpackOrderAppendix.ts +8 -7
- package/src/utils/orders/index.ts +1 -1
- package/src/utils/productTypeFilter.ts +2 -2
- package/dist/deployments/core/deployment.InkSepolia.json +0 -13
- package/dist/deployments/core/deployment.arbitrumOne.json +0 -18
- package/dist/utils/orders/appendix/appendixTWAPValue.cjs.map +0 -1
- package/dist/utils/orders/appendix/appendixTWAPValue.d.cts +0 -31
- package/dist/utils/orders/appendix/appendixTWAPValue.d.ts +0 -31
- package/dist/utils/orders/appendix/appendixTWAPValue.js +0 -26
- package/dist/utils/orders/appendix/appendixTWAPValue.js.map +0 -1
- package/src/deployments/core/deployment.InkSepolia.json +0 -13
- package/src/deployments/core/deployment.arbitrumOne.json +0 -18
- package/src/utils/orders/appendix/appendixTWAPValue.ts +0 -51
|
@@ -25,7 +25,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
25
25
|
ensRegistry?: viem.ChainContract | undefined;
|
|
26
26
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
27
27
|
multicall3?: viem.ChainContract | undefined;
|
|
28
|
-
|
|
28
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
29
29
|
} | undefined;
|
|
30
30
|
ensTlds?: readonly string[] | undefined;
|
|
31
31
|
id: 1337;
|
|
@@ -35,6 +35,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
35
35
|
readonly name: "Ether";
|
|
36
36
|
readonly symbol: "ETH";
|
|
37
37
|
};
|
|
38
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
38
39
|
rpcUrls: {
|
|
39
40
|
readonly default: {
|
|
40
41
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
@@ -45,41 +46,13 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
45
46
|
custom?: Record<string, unknown> | undefined;
|
|
46
47
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
47
48
|
formatters?: undefined;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly apiUrl: "https://api.arbiscan.io/api";
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
blockTime?: number | undefined | undefined;
|
|
59
|
-
contracts: {
|
|
60
|
-
readonly multicall3: {
|
|
61
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
62
|
-
readonly blockCreated: 7654707;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
ensTlds?: readonly string[] | undefined;
|
|
66
|
-
id: 42161;
|
|
67
|
-
name: "Arbitrum One";
|
|
68
|
-
nativeCurrency: {
|
|
69
|
-
readonly name: "Ether";
|
|
70
|
-
readonly symbol: "ETH";
|
|
71
|
-
readonly decimals: 18;
|
|
72
|
-
};
|
|
73
|
-
rpcUrls: {
|
|
74
|
-
readonly default: {
|
|
75
|
-
readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
sourceId?: number | undefined | undefined;
|
|
79
|
-
testnet?: boolean | undefined | undefined;
|
|
80
|
-
custom?: Record<string, unknown> | undefined;
|
|
81
|
-
fees?: viem.ChainFees<undefined> | undefined;
|
|
82
|
-
formatters?: undefined;
|
|
49
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
50
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
51
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
52
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
53
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
54
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
55
|
+
}] | undefined;
|
|
83
56
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
84
57
|
};
|
|
85
58
|
readonly inkTestnet: {
|
|
@@ -138,6 +111,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
138
111
|
readonly symbol: "ETH";
|
|
139
112
|
readonly decimals: 18;
|
|
140
113
|
};
|
|
114
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
141
115
|
rpcUrls: {
|
|
142
116
|
readonly default: {
|
|
143
117
|
readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
|
|
@@ -150,7 +124,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
150
124
|
formatters: {
|
|
151
125
|
readonly block: {
|
|
152
126
|
exclude: [] | undefined;
|
|
153
|
-
format: (args: viem_chains.OpStackRpcBlock) => {
|
|
127
|
+
format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
|
|
154
128
|
baseFeePerGas: bigint | null;
|
|
155
129
|
blobGasUsed: bigint;
|
|
156
130
|
difficulty: bigint;
|
|
@@ -183,7 +157,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
183
157
|
};
|
|
184
158
|
readonly transaction: {
|
|
185
159
|
exclude: [] | undefined;
|
|
186
|
-
format: (args: viem_chains.OpStackRpcTransaction) => ({
|
|
160
|
+
format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
187
161
|
blockHash: `0x${string}` | null;
|
|
188
162
|
blockNumber: bigint | null;
|
|
189
163
|
from: abitype.Address;
|
|
@@ -211,17 +185,326 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
211
185
|
r: viem.Hex;
|
|
212
186
|
s: viem.Hex;
|
|
213
187
|
v: bigint;
|
|
188
|
+
value: bigint;
|
|
189
|
+
gas: bigint;
|
|
214
190
|
to: abitype.Address | null;
|
|
215
191
|
from: abitype.Address;
|
|
192
|
+
nonce: number;
|
|
193
|
+
blockHash: `0x${string}` | null;
|
|
194
|
+
blockNumber: bigint | null;
|
|
195
|
+
transactionIndex: number | null;
|
|
196
|
+
hash: viem.Hash;
|
|
197
|
+
input: viem.Hex;
|
|
198
|
+
typeHex: viem.Hex | null;
|
|
199
|
+
accessList?: undefined | undefined;
|
|
200
|
+
authorizationList?: undefined | undefined;
|
|
201
|
+
blobVersionedHashes?: undefined | undefined;
|
|
202
|
+
chainId?: number | undefined;
|
|
203
|
+
yParity?: undefined | undefined;
|
|
204
|
+
type: "legacy";
|
|
205
|
+
gasPrice: bigint;
|
|
206
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
207
|
+
maxFeePerGas?: undefined | undefined;
|
|
208
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
209
|
+
isSystemTx?: undefined | undefined;
|
|
210
|
+
mint?: undefined | undefined;
|
|
211
|
+
sourceHash?: undefined | undefined;
|
|
212
|
+
} | {
|
|
213
|
+
blockHash: `0x${string}` | null;
|
|
214
|
+
blockNumber: bigint | null;
|
|
215
|
+
from: abitype.Address;
|
|
216
216
|
gas: bigint;
|
|
217
|
+
hash: viem.Hash;
|
|
218
|
+
input: viem.Hex;
|
|
217
219
|
nonce: number;
|
|
220
|
+
r: viem.Hex;
|
|
221
|
+
s: viem.Hex;
|
|
222
|
+
to: abitype.Address | null;
|
|
223
|
+
transactionIndex: number | null;
|
|
224
|
+
typeHex: viem.Hex | null;
|
|
225
|
+
v: bigint;
|
|
218
226
|
value: bigint;
|
|
227
|
+
yParity: number;
|
|
228
|
+
accessList: viem.AccessList;
|
|
229
|
+
authorizationList?: undefined | undefined;
|
|
230
|
+
blobVersionedHashes?: undefined | undefined;
|
|
231
|
+
chainId: number;
|
|
232
|
+
type: "eip2930";
|
|
233
|
+
gasPrice: bigint;
|
|
234
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
235
|
+
maxFeePerGas?: undefined | undefined;
|
|
236
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
237
|
+
isSystemTx?: undefined | undefined;
|
|
238
|
+
mint?: undefined | undefined;
|
|
239
|
+
sourceHash?: undefined | undefined;
|
|
240
|
+
} | {
|
|
219
241
|
blockHash: `0x${string}` | null;
|
|
220
242
|
blockNumber: bigint | null;
|
|
243
|
+
from: abitype.Address;
|
|
244
|
+
gas: bigint;
|
|
221
245
|
hash: viem.Hash;
|
|
222
246
|
input: viem.Hex;
|
|
247
|
+
nonce: number;
|
|
248
|
+
r: viem.Hex;
|
|
249
|
+
s: viem.Hex;
|
|
250
|
+
to: abitype.Address | null;
|
|
223
251
|
transactionIndex: number | null;
|
|
224
252
|
typeHex: viem.Hex | null;
|
|
253
|
+
v: bigint;
|
|
254
|
+
value: bigint;
|
|
255
|
+
yParity: number;
|
|
256
|
+
accessList: viem.AccessList;
|
|
257
|
+
authorizationList?: undefined | undefined;
|
|
258
|
+
blobVersionedHashes?: undefined | undefined;
|
|
259
|
+
chainId: number;
|
|
260
|
+
type: "eip1559";
|
|
261
|
+
gasPrice?: undefined | undefined;
|
|
262
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
263
|
+
maxFeePerGas: bigint;
|
|
264
|
+
maxPriorityFeePerGas: bigint;
|
|
265
|
+
isSystemTx?: undefined | undefined;
|
|
266
|
+
mint?: undefined | undefined;
|
|
267
|
+
sourceHash?: undefined | undefined;
|
|
268
|
+
} | {
|
|
269
|
+
blockHash: `0x${string}` | null;
|
|
270
|
+
blockNumber: bigint | null;
|
|
271
|
+
from: abitype.Address;
|
|
272
|
+
gas: bigint;
|
|
273
|
+
hash: viem.Hash;
|
|
274
|
+
input: viem.Hex;
|
|
275
|
+
nonce: number;
|
|
276
|
+
r: viem.Hex;
|
|
277
|
+
s: viem.Hex;
|
|
278
|
+
to: abitype.Address | null;
|
|
279
|
+
transactionIndex: number | null;
|
|
280
|
+
typeHex: viem.Hex | null;
|
|
281
|
+
v: bigint;
|
|
282
|
+
value: bigint;
|
|
283
|
+
yParity: number;
|
|
284
|
+
accessList: viem.AccessList;
|
|
285
|
+
authorizationList?: undefined | undefined;
|
|
286
|
+
blobVersionedHashes: readonly viem.Hex[];
|
|
287
|
+
chainId: number;
|
|
288
|
+
type: "eip4844";
|
|
289
|
+
gasPrice?: undefined | undefined;
|
|
290
|
+
maxFeePerBlobGas: bigint;
|
|
291
|
+
maxFeePerGas: bigint;
|
|
292
|
+
maxPriorityFeePerGas: bigint;
|
|
293
|
+
isSystemTx?: undefined | undefined;
|
|
294
|
+
mint?: undefined | undefined;
|
|
295
|
+
sourceHash?: undefined | undefined;
|
|
296
|
+
} | {
|
|
297
|
+
blockHash: `0x${string}` | null;
|
|
298
|
+
blockNumber: bigint | null;
|
|
299
|
+
from: abitype.Address;
|
|
300
|
+
gas: bigint;
|
|
301
|
+
hash: viem.Hash;
|
|
302
|
+
input: viem.Hex;
|
|
303
|
+
nonce: number;
|
|
304
|
+
r: viem.Hex;
|
|
305
|
+
s: viem.Hex;
|
|
306
|
+
to: abitype.Address | null;
|
|
307
|
+
transactionIndex: number | null;
|
|
308
|
+
typeHex: viem.Hex | null;
|
|
309
|
+
v: bigint;
|
|
310
|
+
value: bigint;
|
|
311
|
+
yParity: number;
|
|
312
|
+
accessList: viem.AccessList;
|
|
313
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
314
|
+
blobVersionedHashes?: undefined | undefined;
|
|
315
|
+
chainId: number;
|
|
316
|
+
type: "eip7702";
|
|
317
|
+
gasPrice?: undefined | undefined;
|
|
318
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
319
|
+
maxFeePerGas: bigint;
|
|
320
|
+
maxPriorityFeePerGas: bigint;
|
|
321
|
+
isSystemTx?: undefined | undefined;
|
|
322
|
+
mint?: undefined | undefined;
|
|
323
|
+
sourceHash?: undefined | undefined;
|
|
324
|
+
}) & {};
|
|
325
|
+
type: "transaction";
|
|
326
|
+
};
|
|
327
|
+
readonly transactionReceipt: {
|
|
328
|
+
exclude: [] | undefined;
|
|
329
|
+
format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
330
|
+
blobGasPrice?: bigint | undefined;
|
|
331
|
+
blobGasUsed?: bigint | undefined;
|
|
332
|
+
blockHash: viem.Hash;
|
|
333
|
+
blockNumber: bigint;
|
|
334
|
+
contractAddress: abitype.Address | null | undefined;
|
|
335
|
+
cumulativeGasUsed: bigint;
|
|
336
|
+
effectiveGasPrice: bigint;
|
|
337
|
+
from: abitype.Address;
|
|
338
|
+
gasUsed: bigint;
|
|
339
|
+
logs: viem.Log<bigint, number, false>[];
|
|
340
|
+
logsBloom: viem.Hex;
|
|
341
|
+
root?: `0x${string}` | undefined;
|
|
342
|
+
status: "success" | "reverted";
|
|
343
|
+
to: abitype.Address | null;
|
|
344
|
+
transactionHash: viem.Hash;
|
|
345
|
+
transactionIndex: number;
|
|
346
|
+
type: viem.TransactionType;
|
|
347
|
+
l1GasPrice: bigint | null;
|
|
348
|
+
l1GasUsed: bigint | null;
|
|
349
|
+
l1Fee: bigint | null;
|
|
350
|
+
l1FeeScalar: number | null;
|
|
351
|
+
} & {};
|
|
352
|
+
type: "transactionReceipt";
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
356
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
357
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
358
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
359
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
360
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
361
|
+
}] | undefined;
|
|
362
|
+
serializers: {
|
|
363
|
+
readonly transaction: typeof viem_chains.serializeTransactionOpStack;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
readonly inkMainnet: {
|
|
367
|
+
blockExplorers: {
|
|
368
|
+
readonly default: {
|
|
369
|
+
readonly name: "Blockscout";
|
|
370
|
+
readonly url: "https://explorer.inkonchain.com";
|
|
371
|
+
readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
blockTime: 2000;
|
|
375
|
+
contracts: {
|
|
376
|
+
readonly disputeGameFactory: {
|
|
377
|
+
readonly 1: {
|
|
378
|
+
readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly portal: {
|
|
382
|
+
readonly 1: {
|
|
383
|
+
readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
readonly l1StandardBridge: {
|
|
387
|
+
readonly 1: {
|
|
388
|
+
readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
readonly gasPriceOracle: {
|
|
392
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
393
|
+
};
|
|
394
|
+
readonly l1Block: {
|
|
395
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
396
|
+
};
|
|
397
|
+
readonly l2CrossDomainMessenger: {
|
|
398
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
399
|
+
};
|
|
400
|
+
readonly l2Erc721Bridge: {
|
|
401
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
402
|
+
};
|
|
403
|
+
readonly l2StandardBridge: {
|
|
404
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
405
|
+
};
|
|
406
|
+
readonly l2ToL1MessagePasser: {
|
|
407
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
408
|
+
};
|
|
409
|
+
readonly multicall3: {
|
|
410
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
411
|
+
readonly blockCreated: 0;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
ensTlds?: readonly string[] | undefined;
|
|
415
|
+
id: 57073;
|
|
416
|
+
name: "Ink";
|
|
417
|
+
nativeCurrency: {
|
|
418
|
+
readonly name: "Ether";
|
|
419
|
+
readonly symbol: "ETH";
|
|
420
|
+
readonly decimals: 18;
|
|
421
|
+
};
|
|
422
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
423
|
+
rpcUrls: {
|
|
424
|
+
readonly default: {
|
|
425
|
+
readonly http: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com"];
|
|
426
|
+
readonly webSocket: readonly ["wss://rpc-gel.inkonchain.com", "wss://rpc-qnd.inkonchain.com"];
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
sourceId: 1;
|
|
430
|
+
testnet: false;
|
|
431
|
+
custom?: Record<string, unknown> | undefined;
|
|
432
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
433
|
+
formatters: {
|
|
434
|
+
readonly block: {
|
|
435
|
+
exclude: [] | undefined;
|
|
436
|
+
format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
|
|
437
|
+
baseFeePerGas: bigint | null;
|
|
438
|
+
blobGasUsed: bigint;
|
|
439
|
+
difficulty: bigint;
|
|
440
|
+
excessBlobGas: bigint;
|
|
441
|
+
extraData: viem.Hex;
|
|
442
|
+
gasLimit: bigint;
|
|
443
|
+
gasUsed: bigint;
|
|
444
|
+
hash: `0x${string}` | null;
|
|
445
|
+
logsBloom: `0x${string}` | null;
|
|
446
|
+
miner: abitype.Address;
|
|
447
|
+
mixHash: viem.Hash;
|
|
448
|
+
nonce: `0x${string}` | null;
|
|
449
|
+
number: bigint | null;
|
|
450
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
451
|
+
parentHash: viem.Hash;
|
|
452
|
+
receiptsRoot: viem.Hex;
|
|
453
|
+
sealFields: viem.Hex[];
|
|
454
|
+
sha3Uncles: viem.Hash;
|
|
455
|
+
size: bigint;
|
|
456
|
+
stateRoot: viem.Hash;
|
|
457
|
+
timestamp: bigint;
|
|
458
|
+
totalDifficulty: bigint | null;
|
|
459
|
+
transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
|
|
460
|
+
transactionsRoot: viem.Hash;
|
|
461
|
+
uncles: viem.Hash[];
|
|
462
|
+
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
463
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
464
|
+
} & {};
|
|
465
|
+
type: "block";
|
|
466
|
+
};
|
|
467
|
+
readonly transaction: {
|
|
468
|
+
exclude: [] | undefined;
|
|
469
|
+
format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
470
|
+
blockHash: `0x${string}` | null;
|
|
471
|
+
blockNumber: bigint | null;
|
|
472
|
+
from: abitype.Address;
|
|
473
|
+
gas: bigint;
|
|
474
|
+
hash: viem.Hash;
|
|
475
|
+
input: viem.Hex;
|
|
476
|
+
nonce: number;
|
|
477
|
+
r: viem.Hex;
|
|
478
|
+
s: viem.Hex;
|
|
479
|
+
to: abitype.Address | null;
|
|
480
|
+
transactionIndex: number | null;
|
|
481
|
+
typeHex: viem.Hex | null;
|
|
482
|
+
v: bigint;
|
|
483
|
+
value: bigint;
|
|
484
|
+
yParity: number;
|
|
485
|
+
gasPrice?: undefined | undefined;
|
|
486
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
487
|
+
maxFeePerGas: bigint;
|
|
488
|
+
maxPriorityFeePerGas: bigint;
|
|
489
|
+
isSystemTx?: boolean;
|
|
490
|
+
mint?: bigint | undefined | undefined;
|
|
491
|
+
sourceHash: viem.Hex;
|
|
492
|
+
type: "deposit";
|
|
493
|
+
} | {
|
|
494
|
+
r: viem.Hex;
|
|
495
|
+
s: viem.Hex;
|
|
496
|
+
v: bigint;
|
|
497
|
+
value: bigint;
|
|
498
|
+
gas: bigint;
|
|
499
|
+
to: abitype.Address | null;
|
|
500
|
+
from: abitype.Address;
|
|
501
|
+
nonce: number;
|
|
502
|
+
blockHash: `0x${string}` | null;
|
|
503
|
+
blockNumber: bigint | null;
|
|
504
|
+
transactionIndex: number | null;
|
|
505
|
+
hash: viem.Hash;
|
|
506
|
+
input: viem.Hex;
|
|
507
|
+
typeHex: viem.Hex | null;
|
|
225
508
|
accessList?: undefined | undefined;
|
|
226
509
|
authorizationList?: undefined | undefined;
|
|
227
510
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -352,7 +635,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
352
635
|
};
|
|
353
636
|
readonly transactionReceipt: {
|
|
354
637
|
exclude: [] | undefined;
|
|
355
|
-
format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
|
|
638
|
+
format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
356
639
|
blobGasPrice?: bigint | undefined;
|
|
357
640
|
blobGasUsed?: bigint | undefined;
|
|
358
641
|
blockHash: viem.Hash;
|
|
@@ -378,6 +661,13 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
378
661
|
type: "transactionReceipt";
|
|
379
662
|
};
|
|
380
663
|
};
|
|
664
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
665
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
666
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
667
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
668
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
669
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
670
|
+
}] | undefined;
|
|
381
671
|
serializers: {
|
|
382
672
|
readonly transaction: typeof viem_chains.serializeTransactionOpStack;
|
|
383
673
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-5WRI5ZAA.js";
|
|
2
2
|
|
|
3
3
|
// src/consts/chainEnvToChain.ts
|
|
4
|
-
import {
|
|
4
|
+
import { inkSepolia, ink, localhost } from "viem/chains";
|
|
5
5
|
var CHAIN_ENV_TO_CHAIN = {
|
|
6
6
|
local: localhost,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
inkTestnet: inkSepolia,
|
|
8
|
+
inkMainnet: ink
|
|
9
9
|
};
|
|
10
10
|
var CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(
|
|
11
11
|
Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/consts/chainEnvToChain.ts"],"sourcesContent":["import { Chain } from 'viem';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/consts/chainEnvToChain.ts"],"sourcesContent":["import { Chain } from 'viem';\nimport { inkSepolia, ink, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n inkTestnet: inkSepolia,\n inkMainnet: ink,\n} as const satisfies Record<ChainEnv, Chain>;\n\nexport const CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(\n Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [\n chain.id,\n chainEnv,\n ]),\n) as Record<number, ChainEnv>;\n"],"mappings":";;;AACA,SAAS,YAAY,KAAK,iBAAiB;AAGpC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AACd;AAEO,IAAM,wBAAwB,OAAO;AAAA,EAC1C,OAAO,QAAQ,kBAAkB,EAAE,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM;AAAA,IAC5D,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACH;","names":[]}
|
|
@@ -25,7 +25,7 @@ __export(productIds_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(productIds_exports);
|
|
27
27
|
var QUOTE_PRODUCT_ID = 0;
|
|
28
|
-
var NLP_PRODUCT_ID =
|
|
28
|
+
var NLP_PRODUCT_ID = 11;
|
|
29
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
30
|
0 && (module.exports = {
|
|
31
31
|
NLP_PRODUCT_ID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID =
|
|
1
|
+
{"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID = 11;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID =
|
|
1
|
+
{"version":3,"sources":["../../src/consts/productIds.ts"],"sourcesContent":["export const QUOTE_PRODUCT_ID = 0;\n\nexport const NLP_PRODUCT_ID = 11;\n"],"mappings":";;;AAAO,IAAM,mBAAmB;AAEzB,IAAM,iBAAiB;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodeUrl": "https://ink.drpc.org",
|
|
3
|
+
"explorerUrl": "https://explorer.inkonchain.com",
|
|
4
|
+
"startBlock": 29851015,
|
|
5
|
+
"deployer": "0xC1cC56caB60e832665E6c3780BfEBe3C1C971603",
|
|
6
|
+
"quote": "0x0200C29006150606B650577BBE7B6248F58470c1",
|
|
7
|
+
"querier": "0x68798229F88251b31D534733D6C4098318c9dff8",
|
|
8
|
+
"clearinghouse": "0xD218103918C19D0A10cf35300E4CfAfbD444c5fE",
|
|
9
|
+
"endpoint": "0x05ec92D78ED421f3D3Ada77FFdE167106565974E",
|
|
10
|
+
"spotEngine": "0xFcD94770B95fd9Cc67143132BB172EB17A0907fE",
|
|
11
|
+
"perpEngine": "0xF8599D58d1137fC56EcDd9C16ee139C8BDf96da1",
|
|
12
|
+
"withdrawPool": "0x09fb495AA7859635f755E827d64c4C9A2e5b9651"
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodeUrl": "https://rpc-gel-sepolia.inkonchain.com",
|
|
3
|
+
"explorerUrl": "https://explorer-sepolia.inkonchain.com",
|
|
4
|
+
"startBlock": 33809962,
|
|
5
|
+
"deployer": "0x59841b3761Ed1D089a783E4d7CB49E4534CD4F85",
|
|
6
|
+
"quote": "0x60F50F902b2E91aef7D6c700Eb22599e297fa86F",
|
|
7
|
+
"querier": "0x8E693BEa316bcC0F4f8be403081b954a0E3743C8",
|
|
8
|
+
"clearinghouse": "0x23a283B359D55A941bBeEC58801B6b17D955CC73",
|
|
9
|
+
"endpoint": "0x698D87105274292B5673367DEC81874Ce3633Ac2",
|
|
10
|
+
"spotEngine": "0x3352b2fF0fAc4ce38A6eA1C188cF4F924df54E5D",
|
|
11
|
+
"perpEngine": "0x4E859C47fea3666B5053B16C81AF64e77567702e",
|
|
12
|
+
"withdrawPool": "0xBD672Fe513acbA5c1ceE7b02F998A1B542852b3b"
|
|
13
|
+
}
|
|
@@ -34,15 +34,15 @@ __export(deployments_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(deployments_exports);
|
|
36
36
|
var import_getValidatedAddress = require("../utils/getValidatedAddress.cjs");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var import_deployment_inkSepolia = __toESM(require("./core/deployment.inkSepolia.json"), 1);
|
|
38
|
+
var import_deployment_inkMainnet = __toESM(require("./core/deployment.inkMainnet.json"), 1);
|
|
39
39
|
var import_deployment_localhost = __toESM(require("./core/deployment.localhost.json"), 1);
|
|
40
40
|
var NADO_DEPLOYMENTS = {
|
|
41
|
-
arbitrum: validateDeployment({
|
|
42
|
-
...import_deployment_arbitrumOne.default
|
|
43
|
-
}),
|
|
44
41
|
inkTestnet: validateDeployment({
|
|
45
|
-
...
|
|
42
|
+
...import_deployment_inkSepolia.default
|
|
43
|
+
}),
|
|
44
|
+
inkMainnet: validateDeployment({
|
|
45
|
+
...import_deployment_inkMainnet.default
|
|
46
46
|
}),
|
|
47
47
|
local: validateDeployment({
|
|
48
48
|
...import_deployment_localhost.default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport
|
|
1
|
+
{"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport InkSepoliaCoreDeployment from './core/deployment.inkSepolia.json' with { type: 'json' };\nimport InkMainnetCoreDeployment from './core/deployment.inkMainnet.json' with { type: 'json' };\nimport LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };\n\nexport type NadoDeploymentAddresses = {\n [name in NadoContractName]: Address;\n};\n\n/**\n * Known deployment addresses for the Nado contracts\n */\nexport const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\n }),\n inkMainnet: validateDeployment({\n ...InkMainnetCoreDeployment,\n }),\n local: validateDeployment({\n ...LocalCoreDeployment,\n }),\n};\n\nfunction validateDeployment(\n deployment: Record<NadoContractName, string>,\n): Record<NadoContractName, Address> {\n return {\n clearinghouse: getValidatedAddress(deployment.clearinghouse),\n endpoint: getValidatedAddress(deployment.endpoint),\n perpEngine: getValidatedAddress(deployment.perpEngine),\n querier: getValidatedAddress(deployment.querier),\n spotEngine: getValidatedAddress(deployment.spotEngine),\n withdrawPool: getValidatedAddress(deployment.withdrawPool),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iCAAoC;AACpC,mCAAqC;AACrC,mCAAqC;AACrC,kCAAgC;AASzB,IAAM,mBAA8D;AAAA,EACzE,YAAY,mBAAmB;AAAA,IAC7B,GAAG,6BAAAA;AAAA,EACL,CAAC;AAAA,EACD,YAAY,mBAAmB;AAAA,IAC7B,GAAG,6BAAAC;AAAA,EACL,CAAC;AAAA,EACD,OAAO,mBAAmB;AAAA,IACxB,GAAG,4BAAAC;AAAA,EACL,CAAC;AACH;AAEA,SAAS,mBACP,YACmC;AACnC,SAAO;AAAA,IACL,mBAAe,gDAAoB,WAAW,aAAa;AAAA,IAC3D,cAAU,gDAAoB,WAAW,QAAQ;AAAA,IACjD,gBAAY,gDAAoB,WAAW,UAAU;AAAA,IACrD,aAAS,gDAAoB,WAAW,OAAO;AAAA,IAC/C,gBAAY,gDAAoB,WAAW,UAAU;AAAA,IACrD,kBAAc,gDAAoB,WAAW,YAAY;AAAA,EAC3D;AACF;","names":["InkSepoliaCoreDeployment","InkMainnetCoreDeployment","LocalCoreDeployment"]}
|
|
@@ -2,16 +2,16 @@ import "../chunk-5WRI5ZAA.js";
|
|
|
2
2
|
|
|
3
3
|
// src/deployments/index.ts
|
|
4
4
|
import { getValidatedAddress } from "../utils/getValidatedAddress.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import InkSepoliaCoreDeployment from "./core/deployment.inkSepolia.json" with { type: "json" };
|
|
6
|
+
import InkMainnetCoreDeployment from "./core/deployment.inkMainnet.json" with { type: "json" };
|
|
7
7
|
import LocalCoreDeployment from "./core/deployment.localhost.json" with { type: "json" };
|
|
8
8
|
var NADO_DEPLOYMENTS = {
|
|
9
|
-
arbitrum: validateDeployment({
|
|
10
|
-
...ArbitrumOneCoreDeployment
|
|
11
|
-
}),
|
|
12
9
|
inkTestnet: validateDeployment({
|
|
13
10
|
...InkSepoliaCoreDeployment
|
|
14
11
|
}),
|
|
12
|
+
inkMainnet: validateDeployment({
|
|
13
|
+
...InkMainnetCoreDeployment
|
|
14
|
+
}),
|
|
15
15
|
local: validateDeployment({
|
|
16
16
|
...LocalCoreDeployment
|
|
17
17
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport
|
|
1
|
+
{"version":3,"sources":["../../src/deployments/index.ts"],"sourcesContent":["import { Address } from 'viem';\nimport { NadoContractName } from '../abis/nadoAbis';\n\nimport { ChainEnv } from '../types';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\nimport InkSepoliaCoreDeployment from './core/deployment.inkSepolia.json' with { type: 'json' };\nimport InkMainnetCoreDeployment from './core/deployment.inkMainnet.json' with { type: 'json' };\nimport LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };\n\nexport type NadoDeploymentAddresses = {\n [name in NadoContractName]: Address;\n};\n\n/**\n * Known deployment addresses for the Nado contracts\n */\nexport const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\n }),\n inkMainnet: validateDeployment({\n ...InkMainnetCoreDeployment,\n }),\n local: validateDeployment({\n ...LocalCoreDeployment,\n }),\n};\n\nfunction validateDeployment(\n deployment: Record<NadoContractName, string>,\n): Record<NadoContractName, Address> {\n return {\n clearinghouse: getValidatedAddress(deployment.clearinghouse),\n endpoint: getValidatedAddress(deployment.endpoint),\n perpEngine: getValidatedAddress(deployment.perpEngine),\n querier: getValidatedAddress(deployment.querier),\n spotEngine: getValidatedAddress(deployment.spotEngine),\n withdrawPool: getValidatedAddress(deployment.withdrawPool),\n };\n}\n"],"mappings":";;;AAIA,SAAS,2BAA2B;AACpC,OAAO,8BAA8B,oCAAoC,KAAK,EAAE,MAAM,OAAO;AAC7F,OAAO,8BAA8B,oCAAoC,KAAK,EAAE,MAAM,OAAO;AAC7F,OAAO,yBAAyB,mCAAmC,KAAK,EAAE,MAAM,OAAO;AAShF,IAAM,mBAA8D;AAAA,EACzE,YAAY,mBAAmB;AAAA,IAC7B,GAAG;AAAA,EACL,CAAC;AAAA,EACD,YAAY,mBAAmB;AAAA,IAC7B,GAAG;AAAA,EACL,CAAC;AAAA,EACD,OAAO,mBAAmB;AAAA,IACxB,GAAG;AAAA,EACL,CAAC;AACH;AAEA,SAAS,mBACP,YACmC;AACnC,SAAO;AAAA,IACL,eAAe,oBAAoB,WAAW,aAAa;AAAA,IAC3D,UAAU,oBAAoB,WAAW,QAAQ;AAAA,IACjD,YAAY,oBAAoB,WAAW,UAAU;AAAA,IACrD,SAAS,oBAAoB,WAAW,OAAO;AAAA,IAC/C,YAAY,oBAAoB,WAAW,UAAU;AAAA,IACrD,cAAc,oBAAoB,WAAW,YAAY;AAAA,EAC3D;AACF;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hex } from 'viem';
|
|
2
2
|
import { BigDecimalish } from '../utils/math/bigDecimal.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { EIP712WithdrawCollateralParams, EIP712LiquidateSubaccountParams, EIP712OrderParams, EIP712ListTriggerOrdersParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712TransferQuoteParams, EIP712LeaderboardAuthenticationParams, EIP712MintNlpParams, EIP712BurnNlpParams } from './signatureParamTypes.cjs';
|
|
4
4
|
import 'bignumber.js';
|
|
5
5
|
import '../types/subaccountTypes.cjs';
|
|
6
6
|
import '../types/bytes.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hex } from 'viem';
|
|
2
2
|
import { BigDecimalish } from '../utils/math/bigDecimal.js';
|
|
3
|
-
import {
|
|
3
|
+
import { EIP712WithdrawCollateralParams, EIP712LiquidateSubaccountParams, EIP712OrderParams, EIP712ListTriggerOrdersParams, EIP712CancelOrdersParams, EIP712CancelProductOrdersParams, EIP712LinkSignerParams, EIP712TransferQuoteParams, EIP712LeaderboardAuthenticationParams, EIP712MintNlpParams, EIP712BurnNlpParams } from './signatureParamTypes.js';
|
|
4
4
|
import 'bignumber.js';
|
|
5
5
|
import '../types/subaccountTypes.js';
|
|
6
6
|
import '../types/bytes.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import { TypedDataDomain } from 'abitype';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\n\n/**\n * Gives the EIP712 data domain for order signing\n *\n * @param contractAddress usually the address of the orderbook (for orders) or sequencer (for other operations)\n * @param chainId\n */\nexport function getNadoEIP712Domain(\n contractAddress: string,\n chainId: number,\n): TypedDataDomain {\n return {\n name: 'Nado',\n version: '0.0.1',\n chainId,\n verifyingContract: getValidatedAddress(contractAddress),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iCAAoC;AAQ7B,SAAS,oBACd,iBACA,SACiB;AACjB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA,uBAAmB,gDAAoB,eAAe;AAAA,EACxD;AACF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/eip712/getNadoEIP712Domain.ts"],"sourcesContent":["import { TypedDataDomain } from 'abitype';\nimport { getValidatedAddress } from '../utils/getValidatedAddress';\n\n/**\n * Gives the EIP712 data domain for order signing\n *\n * @param contractAddress usually the address of the orderbook (for orders) or sequencer (for other operations)\n * @param chainId\n */\nexport function getNadoEIP712Domain(\n contractAddress: string,\n chainId: number,\n): TypedDataDomain {\n return {\n name: 'Nado',\n version: '0.0.1',\n chainId,\n verifyingContract: getValidatedAddress(contractAddress),\n };\n}\n"],"mappings":";;;AACA,SAAS,2BAA2B;AAQ7B,SAAS,oBACd,iBACA,SACiB;AACjB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT;AAAA,IACA,mBAAmB,oBAAoB,eAAe;AAAA,EACxD;AACF;","names":[]}
|