@nadohq/shared 0.1.0-alpha.4 → 0.1.0-alpha.40
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 +308 -39
- package/dist/consts/chainEnvToChain.d.ts +308 -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"];
|
|
@@ -47,41 +48,6 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
47
48
|
formatters?: undefined;
|
|
48
49
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
49
50
|
};
|
|
50
|
-
readonly arbitrum: {
|
|
51
|
-
blockExplorers: {
|
|
52
|
-
readonly default: {
|
|
53
|
-
readonly name: "Arbiscan";
|
|
54
|
-
readonly url: "https://arbiscan.io";
|
|
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;
|
|
83
|
-
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
84
|
-
};
|
|
85
51
|
readonly inkTestnet: {
|
|
86
52
|
blockExplorers: {
|
|
87
53
|
readonly default: {
|
|
@@ -138,6 +104,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
138
104
|
readonly symbol: "ETH";
|
|
139
105
|
readonly decimals: 18;
|
|
140
106
|
};
|
|
107
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
141
108
|
rpcUrls: {
|
|
142
109
|
readonly default: {
|
|
143
110
|
readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
|
|
@@ -150,7 +117,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
150
117
|
formatters: {
|
|
151
118
|
readonly block: {
|
|
152
119
|
exclude: [] | undefined;
|
|
153
|
-
format: (args: viem_chains.OpStackRpcBlock) => {
|
|
120
|
+
format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
|
|
154
121
|
baseFeePerGas: bigint | null;
|
|
155
122
|
blobGasUsed: bigint;
|
|
156
123
|
difficulty: bigint;
|
|
@@ -183,7 +150,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
183
150
|
};
|
|
184
151
|
readonly transaction: {
|
|
185
152
|
exclude: [] | undefined;
|
|
186
|
-
format: (args: viem_chains.OpStackRpcTransaction) => ({
|
|
153
|
+
format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
187
154
|
blockHash: `0x${string}` | null;
|
|
188
155
|
blockNumber: bigint | null;
|
|
189
156
|
from: abitype.Address;
|
|
@@ -211,17 +178,319 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
211
178
|
r: viem.Hex;
|
|
212
179
|
s: viem.Hex;
|
|
213
180
|
v: bigint;
|
|
181
|
+
value: bigint;
|
|
182
|
+
gas: bigint;
|
|
214
183
|
to: abitype.Address | null;
|
|
215
184
|
from: abitype.Address;
|
|
185
|
+
nonce: number;
|
|
186
|
+
blockHash: `0x${string}` | null;
|
|
187
|
+
blockNumber: bigint | null;
|
|
188
|
+
transactionIndex: number | null;
|
|
189
|
+
hash: viem.Hash;
|
|
190
|
+
input: viem.Hex;
|
|
191
|
+
typeHex: viem.Hex | null;
|
|
192
|
+
accessList?: undefined | undefined;
|
|
193
|
+
authorizationList?: undefined | undefined;
|
|
194
|
+
blobVersionedHashes?: undefined | undefined;
|
|
195
|
+
chainId?: number | undefined;
|
|
196
|
+
yParity?: undefined | undefined;
|
|
197
|
+
type: "legacy";
|
|
198
|
+
gasPrice: bigint;
|
|
199
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
200
|
+
maxFeePerGas?: undefined | undefined;
|
|
201
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
202
|
+
isSystemTx?: undefined | undefined;
|
|
203
|
+
mint?: undefined | undefined;
|
|
204
|
+
sourceHash?: undefined | undefined;
|
|
205
|
+
} | {
|
|
206
|
+
blockHash: `0x${string}` | null;
|
|
207
|
+
blockNumber: bigint | null;
|
|
208
|
+
from: abitype.Address;
|
|
216
209
|
gas: bigint;
|
|
210
|
+
hash: viem.Hash;
|
|
211
|
+
input: viem.Hex;
|
|
217
212
|
nonce: number;
|
|
213
|
+
r: viem.Hex;
|
|
214
|
+
s: viem.Hex;
|
|
215
|
+
to: abitype.Address | null;
|
|
216
|
+
transactionIndex: number | null;
|
|
217
|
+
typeHex: viem.Hex | null;
|
|
218
|
+
v: bigint;
|
|
218
219
|
value: bigint;
|
|
220
|
+
yParity: number;
|
|
221
|
+
accessList: viem.AccessList;
|
|
222
|
+
authorizationList?: undefined | undefined;
|
|
223
|
+
blobVersionedHashes?: undefined | undefined;
|
|
224
|
+
chainId: number;
|
|
225
|
+
type: "eip2930";
|
|
226
|
+
gasPrice: bigint;
|
|
227
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
228
|
+
maxFeePerGas?: undefined | undefined;
|
|
229
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
230
|
+
isSystemTx?: undefined | undefined;
|
|
231
|
+
mint?: undefined | undefined;
|
|
232
|
+
sourceHash?: undefined | undefined;
|
|
233
|
+
} | {
|
|
219
234
|
blockHash: `0x${string}` | null;
|
|
220
235
|
blockNumber: bigint | null;
|
|
236
|
+
from: abitype.Address;
|
|
237
|
+
gas: bigint;
|
|
221
238
|
hash: viem.Hash;
|
|
222
239
|
input: viem.Hex;
|
|
240
|
+
nonce: number;
|
|
241
|
+
r: viem.Hex;
|
|
242
|
+
s: viem.Hex;
|
|
243
|
+
to: abitype.Address | null;
|
|
223
244
|
transactionIndex: number | null;
|
|
224
245
|
typeHex: viem.Hex | null;
|
|
246
|
+
v: bigint;
|
|
247
|
+
value: bigint;
|
|
248
|
+
yParity: number;
|
|
249
|
+
accessList: viem.AccessList;
|
|
250
|
+
authorizationList?: undefined | undefined;
|
|
251
|
+
blobVersionedHashes?: undefined | undefined;
|
|
252
|
+
chainId: number;
|
|
253
|
+
type: "eip1559";
|
|
254
|
+
gasPrice?: undefined | undefined;
|
|
255
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
256
|
+
maxFeePerGas: bigint;
|
|
257
|
+
maxPriorityFeePerGas: bigint;
|
|
258
|
+
isSystemTx?: undefined | undefined;
|
|
259
|
+
mint?: undefined | undefined;
|
|
260
|
+
sourceHash?: undefined | undefined;
|
|
261
|
+
} | {
|
|
262
|
+
blockHash: `0x${string}` | null;
|
|
263
|
+
blockNumber: bigint | null;
|
|
264
|
+
from: abitype.Address;
|
|
265
|
+
gas: bigint;
|
|
266
|
+
hash: viem.Hash;
|
|
267
|
+
input: viem.Hex;
|
|
268
|
+
nonce: number;
|
|
269
|
+
r: viem.Hex;
|
|
270
|
+
s: viem.Hex;
|
|
271
|
+
to: abitype.Address | null;
|
|
272
|
+
transactionIndex: number | null;
|
|
273
|
+
typeHex: viem.Hex | null;
|
|
274
|
+
v: bigint;
|
|
275
|
+
value: bigint;
|
|
276
|
+
yParity: number;
|
|
277
|
+
accessList: viem.AccessList;
|
|
278
|
+
authorizationList?: undefined | undefined;
|
|
279
|
+
blobVersionedHashes: readonly viem.Hex[];
|
|
280
|
+
chainId: number;
|
|
281
|
+
type: "eip4844";
|
|
282
|
+
gasPrice?: undefined | undefined;
|
|
283
|
+
maxFeePerBlobGas: bigint;
|
|
284
|
+
maxFeePerGas: bigint;
|
|
285
|
+
maxPriorityFeePerGas: bigint;
|
|
286
|
+
isSystemTx?: undefined | undefined;
|
|
287
|
+
mint?: undefined | undefined;
|
|
288
|
+
sourceHash?: undefined | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
blockHash: `0x${string}` | null;
|
|
291
|
+
blockNumber: bigint | null;
|
|
292
|
+
from: abitype.Address;
|
|
293
|
+
gas: bigint;
|
|
294
|
+
hash: viem.Hash;
|
|
295
|
+
input: viem.Hex;
|
|
296
|
+
nonce: number;
|
|
297
|
+
r: viem.Hex;
|
|
298
|
+
s: viem.Hex;
|
|
299
|
+
to: abitype.Address | null;
|
|
300
|
+
transactionIndex: number | null;
|
|
301
|
+
typeHex: viem.Hex | null;
|
|
302
|
+
v: bigint;
|
|
303
|
+
value: bigint;
|
|
304
|
+
yParity: number;
|
|
305
|
+
accessList: viem.AccessList;
|
|
306
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
307
|
+
blobVersionedHashes?: undefined | undefined;
|
|
308
|
+
chainId: number;
|
|
309
|
+
type: "eip7702";
|
|
310
|
+
gasPrice?: undefined | undefined;
|
|
311
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
312
|
+
maxFeePerGas: bigint;
|
|
313
|
+
maxPriorityFeePerGas: bigint;
|
|
314
|
+
isSystemTx?: undefined | undefined;
|
|
315
|
+
mint?: undefined | undefined;
|
|
316
|
+
sourceHash?: undefined | undefined;
|
|
317
|
+
}) & {};
|
|
318
|
+
type: "transaction";
|
|
319
|
+
};
|
|
320
|
+
readonly transactionReceipt: {
|
|
321
|
+
exclude: [] | undefined;
|
|
322
|
+
format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
323
|
+
blobGasPrice?: bigint | undefined;
|
|
324
|
+
blobGasUsed?: bigint | undefined;
|
|
325
|
+
blockHash: viem.Hash;
|
|
326
|
+
blockNumber: bigint;
|
|
327
|
+
contractAddress: abitype.Address | null | undefined;
|
|
328
|
+
cumulativeGasUsed: bigint;
|
|
329
|
+
effectiveGasPrice: bigint;
|
|
330
|
+
from: abitype.Address;
|
|
331
|
+
gasUsed: bigint;
|
|
332
|
+
logs: viem.Log<bigint, number, false>[];
|
|
333
|
+
logsBloom: viem.Hex;
|
|
334
|
+
root?: `0x${string}` | undefined;
|
|
335
|
+
status: "success" | "reverted";
|
|
336
|
+
to: abitype.Address | null;
|
|
337
|
+
transactionHash: viem.Hash;
|
|
338
|
+
transactionIndex: number;
|
|
339
|
+
type: viem.TransactionType;
|
|
340
|
+
l1GasPrice: bigint | null;
|
|
341
|
+
l1GasUsed: bigint | null;
|
|
342
|
+
l1Fee: bigint | null;
|
|
343
|
+
l1FeeScalar: number | null;
|
|
344
|
+
} & {};
|
|
345
|
+
type: "transactionReceipt";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
serializers: {
|
|
349
|
+
readonly transaction: typeof viem_chains.serializeTransactionOpStack;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly inkMainnet: {
|
|
353
|
+
blockExplorers: {
|
|
354
|
+
readonly default: {
|
|
355
|
+
readonly name: "Blockscout";
|
|
356
|
+
readonly url: "https://explorer.inkonchain.com";
|
|
357
|
+
readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
blockTime: 2000;
|
|
361
|
+
contracts: {
|
|
362
|
+
readonly disputeGameFactory: {
|
|
363
|
+
readonly 1: {
|
|
364
|
+
readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly portal: {
|
|
368
|
+
readonly 1: {
|
|
369
|
+
readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
readonly l1StandardBridge: {
|
|
373
|
+
readonly 1: {
|
|
374
|
+
readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly gasPriceOracle: {
|
|
378
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
379
|
+
};
|
|
380
|
+
readonly l1Block: {
|
|
381
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
382
|
+
};
|
|
383
|
+
readonly l2CrossDomainMessenger: {
|
|
384
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
385
|
+
};
|
|
386
|
+
readonly l2Erc721Bridge: {
|
|
387
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
388
|
+
};
|
|
389
|
+
readonly l2StandardBridge: {
|
|
390
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
391
|
+
};
|
|
392
|
+
readonly l2ToL1MessagePasser: {
|
|
393
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
394
|
+
};
|
|
395
|
+
readonly multicall3: {
|
|
396
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
397
|
+
readonly blockCreated: 0;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
ensTlds?: readonly string[] | undefined;
|
|
401
|
+
id: 57073;
|
|
402
|
+
name: "Ink";
|
|
403
|
+
nativeCurrency: {
|
|
404
|
+
readonly name: "Ether";
|
|
405
|
+
readonly symbol: "ETH";
|
|
406
|
+
readonly decimals: 18;
|
|
407
|
+
};
|
|
408
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
409
|
+
rpcUrls: {
|
|
410
|
+
readonly default: {
|
|
411
|
+
readonly http: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com"];
|
|
412
|
+
readonly webSocket: readonly ["wss://rpc-gel.inkonchain.com", "wss://rpc-qnd.inkonchain.com"];
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
sourceId: 1;
|
|
416
|
+
testnet: false;
|
|
417
|
+
custom?: Record<string, unknown> | undefined;
|
|
418
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
419
|
+
formatters: {
|
|
420
|
+
readonly block: {
|
|
421
|
+
exclude: [] | undefined;
|
|
422
|
+
format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
|
|
423
|
+
baseFeePerGas: bigint | null;
|
|
424
|
+
blobGasUsed: bigint;
|
|
425
|
+
difficulty: bigint;
|
|
426
|
+
excessBlobGas: bigint;
|
|
427
|
+
extraData: viem.Hex;
|
|
428
|
+
gasLimit: bigint;
|
|
429
|
+
gasUsed: bigint;
|
|
430
|
+
hash: `0x${string}` | null;
|
|
431
|
+
logsBloom: `0x${string}` | null;
|
|
432
|
+
miner: abitype.Address;
|
|
433
|
+
mixHash: viem.Hash;
|
|
434
|
+
nonce: `0x${string}` | null;
|
|
435
|
+
number: bigint | null;
|
|
436
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
437
|
+
parentHash: viem.Hash;
|
|
438
|
+
receiptsRoot: viem.Hex;
|
|
439
|
+
sealFields: viem.Hex[];
|
|
440
|
+
sha3Uncles: viem.Hash;
|
|
441
|
+
size: bigint;
|
|
442
|
+
stateRoot: viem.Hash;
|
|
443
|
+
timestamp: bigint;
|
|
444
|
+
totalDifficulty: bigint | null;
|
|
445
|
+
transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
|
|
446
|
+
transactionsRoot: viem.Hash;
|
|
447
|
+
uncles: viem.Hash[];
|
|
448
|
+
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
449
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
450
|
+
} & {};
|
|
451
|
+
type: "block";
|
|
452
|
+
};
|
|
453
|
+
readonly transaction: {
|
|
454
|
+
exclude: [] | undefined;
|
|
455
|
+
format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
456
|
+
blockHash: `0x${string}` | null;
|
|
457
|
+
blockNumber: bigint | null;
|
|
458
|
+
from: abitype.Address;
|
|
459
|
+
gas: bigint;
|
|
460
|
+
hash: viem.Hash;
|
|
461
|
+
input: viem.Hex;
|
|
462
|
+
nonce: number;
|
|
463
|
+
r: viem.Hex;
|
|
464
|
+
s: viem.Hex;
|
|
465
|
+
to: abitype.Address | null;
|
|
466
|
+
transactionIndex: number | null;
|
|
467
|
+
typeHex: viem.Hex | null;
|
|
468
|
+
v: bigint;
|
|
469
|
+
value: bigint;
|
|
470
|
+
yParity: number;
|
|
471
|
+
gasPrice?: undefined | undefined;
|
|
472
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
473
|
+
maxFeePerGas: bigint;
|
|
474
|
+
maxPriorityFeePerGas: bigint;
|
|
475
|
+
isSystemTx?: boolean;
|
|
476
|
+
mint?: bigint | undefined | undefined;
|
|
477
|
+
sourceHash: viem.Hex;
|
|
478
|
+
type: "deposit";
|
|
479
|
+
} | {
|
|
480
|
+
r: viem.Hex;
|
|
481
|
+
s: viem.Hex;
|
|
482
|
+
v: bigint;
|
|
483
|
+
value: bigint;
|
|
484
|
+
gas: bigint;
|
|
485
|
+
to: abitype.Address | null;
|
|
486
|
+
from: abitype.Address;
|
|
487
|
+
nonce: number;
|
|
488
|
+
blockHash: `0x${string}` | null;
|
|
489
|
+
blockNumber: bigint | null;
|
|
490
|
+
transactionIndex: number | null;
|
|
491
|
+
hash: viem.Hash;
|
|
492
|
+
input: viem.Hex;
|
|
493
|
+
typeHex: viem.Hex | null;
|
|
225
494
|
accessList?: undefined | undefined;
|
|
226
495
|
authorizationList?: undefined | undefined;
|
|
227
496
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -352,7 +621,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
352
621
|
};
|
|
353
622
|
readonly transactionReceipt: {
|
|
354
623
|
exclude: [] | undefined;
|
|
355
|
-
format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
|
|
624
|
+
format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
356
625
|
blobGasPrice?: bigint | undefined;
|
|
357
626
|
blobGasUsed?: bigint | undefined;
|
|
358
627
|
blockHash: viem.Hash;
|
|
@@ -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":[]}
|