@nadohq/shared 0.1.0-alpha.35 → 0.1.0-alpha.37

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.
@@ -27,8 +27,8 @@ module.exports = __toCommonJS(chainEnvToChain_exports);
27
27
  var import_chains = require("viem/chains");
28
28
  var CHAIN_ENV_TO_CHAIN = {
29
29
  local: import_chains.localhost,
30
- arbitrum: import_chains.arbitrum,
31
- inkTestnet: import_chains.inkSepolia
30
+ inkTestnet: import_chains.inkSepolia,
31
+ inkMainnet: import_chains.ink
32
32
  };
33
33
  var CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(
34
34
  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 { arbitrum, inkSepolia, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n arbitrum: arbitrum,\n inkTestnet: inkSepolia,\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAgD;AAGzC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,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":[]}
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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAA2C;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":[]}
@@ -48,69 +48,330 @@ declare const CHAIN_ENV_TO_CHAIN: {
48
48
  formatters?: undefined;
49
49
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
50
50
  };
51
- readonly arbitrum: {
51
+ readonly inkTestnet: {
52
52
  blockExplorers: {
53
53
  readonly default: {
54
- readonly name: "Arbiscan";
55
- readonly url: "https://arbiscan.io";
56
- readonly apiUrl: "https://api.arbiscan.io/api";
54
+ readonly name: "Blockscout";
55
+ readonly url: "https://explorer-sepolia.inkonchain.com/";
56
+ readonly apiUrl: "https://explorer-sepolia.inkonchain.com/api/v2";
57
57
  };
58
58
  };
59
- blockTime: 250;
59
+ blockTime: 2000;
60
60
  contracts: {
61
61
  readonly multicall3: {
62
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
63
- readonly blockCreated: 7654707;
62
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
63
+ readonly blockCreated: 0;
64
+ };
65
+ readonly disputeGameFactory: {
66
+ readonly 11155111: {
67
+ readonly address: "0x860e626c700af381133d9f4af31412a2d1db3d5d";
68
+ };
69
+ };
70
+ readonly portal: {
71
+ readonly 11155111: {
72
+ readonly address: "0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7";
73
+ };
74
+ };
75
+ readonly l1StandardBridge: {
76
+ readonly 11155111: {
77
+ readonly address: "0x33f60714bbd74d62b66d79213c348614de51901c";
78
+ };
79
+ };
80
+ readonly gasPriceOracle: {
81
+ readonly address: "0x420000000000000000000000000000000000000F";
82
+ };
83
+ readonly l1Block: {
84
+ readonly address: "0x4200000000000000000000000000000000000015";
85
+ };
86
+ readonly l2CrossDomainMessenger: {
87
+ readonly address: "0x4200000000000000000000000000000000000007";
88
+ };
89
+ readonly l2Erc721Bridge: {
90
+ readonly address: "0x4200000000000000000000000000000000000014";
91
+ };
92
+ readonly l2StandardBridge: {
93
+ readonly address: "0x4200000000000000000000000000000000000010";
94
+ };
95
+ readonly l2ToL1MessagePasser: {
96
+ readonly address: "0x4200000000000000000000000000000000000016";
64
97
  };
65
98
  };
66
99
  ensTlds?: readonly string[] | undefined;
67
- id: 42161;
68
- name: "Arbitrum One";
100
+ id: 763373;
101
+ name: "Ink Sepolia";
69
102
  nativeCurrency: {
70
- readonly name: "Ether";
103
+ readonly name: "Sepolia Ether";
71
104
  readonly symbol: "ETH";
72
105
  readonly decimals: 18;
73
106
  };
74
107
  experimental_preconfirmationTime?: number | undefined | undefined;
75
108
  rpcUrls: {
76
109
  readonly default: {
77
- readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
110
+ readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
78
111
  };
79
112
  };
80
- sourceId?: number | undefined | undefined;
81
- testnet?: boolean | undefined | undefined;
113
+ sourceId: 11155111;
114
+ testnet: true;
82
115
  custom?: Record<string, unknown> | undefined;
83
116
  fees?: viem.ChainFees<undefined> | undefined;
84
- formatters?: undefined;
85
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
117
+ formatters: {
118
+ readonly block: {
119
+ exclude: [] | undefined;
120
+ format: (args: viem_chains.OpStackRpcBlock) => {
121
+ baseFeePerGas: bigint | null;
122
+ blobGasUsed: bigint;
123
+ difficulty: bigint;
124
+ excessBlobGas: bigint;
125
+ extraData: viem.Hex;
126
+ gasLimit: bigint;
127
+ gasUsed: bigint;
128
+ hash: `0x${string}` | null;
129
+ logsBloom: `0x${string}` | null;
130
+ miner: abitype.Address;
131
+ mixHash: viem.Hash;
132
+ nonce: `0x${string}` | null;
133
+ number: bigint | null;
134
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
135
+ parentHash: viem.Hash;
136
+ receiptsRoot: viem.Hex;
137
+ sealFields: viem.Hex[];
138
+ sha3Uncles: viem.Hash;
139
+ size: bigint;
140
+ stateRoot: viem.Hash;
141
+ timestamp: bigint;
142
+ totalDifficulty: bigint | null;
143
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
144
+ transactionsRoot: viem.Hash;
145
+ uncles: viem.Hash[];
146
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
147
+ withdrawalsRoot?: `0x${string}` | undefined;
148
+ } & {};
149
+ type: "block";
150
+ };
151
+ readonly transaction: {
152
+ exclude: [] | undefined;
153
+ format: (args: viem_chains.OpStackRpcTransaction) => ({
154
+ blockHash: `0x${string}` | null;
155
+ blockNumber: bigint | null;
156
+ from: abitype.Address;
157
+ gas: bigint;
158
+ hash: viem.Hash;
159
+ input: viem.Hex;
160
+ nonce: number;
161
+ r: viem.Hex;
162
+ s: viem.Hex;
163
+ to: abitype.Address | null;
164
+ transactionIndex: number | null;
165
+ typeHex: viem.Hex | null;
166
+ v: bigint;
167
+ value: bigint;
168
+ yParity: number;
169
+ gasPrice?: undefined | undefined;
170
+ maxFeePerBlobGas?: undefined | undefined;
171
+ maxFeePerGas: bigint;
172
+ maxPriorityFeePerGas: bigint;
173
+ isSystemTx?: boolean;
174
+ mint?: bigint | undefined | undefined;
175
+ sourceHash: viem.Hex;
176
+ type: "deposit";
177
+ } | {
178
+ r: viem.Hex;
179
+ s: viem.Hex;
180
+ v: bigint;
181
+ value: bigint;
182
+ gas: bigint;
183
+ to: abitype.Address | null;
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;
209
+ gas: bigint;
210
+ hash: viem.Hash;
211
+ input: viem.Hex;
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;
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
+ } | {
234
+ blockHash: `0x${string}` | null;
235
+ blockNumber: bigint | null;
236
+ from: abitype.Address;
237
+ gas: bigint;
238
+ hash: viem.Hash;
239
+ input: viem.Hex;
240
+ nonce: number;
241
+ r: viem.Hex;
242
+ s: viem.Hex;
243
+ to: abitype.Address | null;
244
+ transactionIndex: number | null;
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) => {
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
+ };
86
351
  };
87
- readonly inkTestnet: {
352
+ readonly inkMainnet: {
88
353
  blockExplorers: {
89
354
  readonly default: {
90
355
  readonly name: "Blockscout";
91
- readonly url: "https://explorer-sepolia.inkonchain.com/";
92
- readonly apiUrl: "https://explorer-sepolia.inkonchain.com/api/v2";
356
+ readonly url: "https://explorer.inkonchain.com";
357
+ readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
93
358
  };
94
359
  };
95
360
  blockTime: 2000;
96
361
  contracts: {
97
- readonly multicall3: {
98
- readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
99
- readonly blockCreated: 0;
100
- };
101
362
  readonly disputeGameFactory: {
102
- readonly 11155111: {
103
- readonly address: "0x860e626c700af381133d9f4af31412a2d1db3d5d";
363
+ readonly 1: {
364
+ readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
104
365
  };
105
366
  };
106
367
  readonly portal: {
107
- readonly 11155111: {
108
- readonly address: "0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7";
368
+ readonly 1: {
369
+ readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
109
370
  };
110
371
  };
111
372
  readonly l1StandardBridge: {
112
- readonly 11155111: {
113
- readonly address: "0x33f60714bbd74d62b66d79213c348614de51901c";
373
+ readonly 1: {
374
+ readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
114
375
  };
115
376
  };
116
377
  readonly gasPriceOracle: {
@@ -131,23 +392,28 @@ declare const CHAIN_ENV_TO_CHAIN: {
131
392
  readonly l2ToL1MessagePasser: {
132
393
  readonly address: "0x4200000000000000000000000000000000000016";
133
394
  };
395
+ readonly multicall3: {
396
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
397
+ readonly blockCreated: 0;
398
+ };
134
399
  };
135
400
  ensTlds?: readonly string[] | undefined;
136
- id: 763373;
137
- name: "Ink Sepolia";
401
+ id: 57073;
402
+ name: "Ink";
138
403
  nativeCurrency: {
139
- readonly name: "Sepolia Ether";
404
+ readonly name: "Ether";
140
405
  readonly symbol: "ETH";
141
406
  readonly decimals: 18;
142
407
  };
143
408
  experimental_preconfirmationTime?: number | undefined | undefined;
144
409
  rpcUrls: {
145
410
  readonly default: {
146
- readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
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"];
147
413
  };
148
414
  };
149
- sourceId: 11155111;
150
- testnet: true;
415
+ sourceId: 1;
416
+ testnet: false;
151
417
  custom?: Record<string, unknown> | undefined;
152
418
  fees?: viem.ChainFees<undefined> | undefined;
153
419
  formatters: {
@@ -48,69 +48,330 @@ declare const CHAIN_ENV_TO_CHAIN: {
48
48
  formatters?: undefined;
49
49
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
50
50
  };
51
- readonly arbitrum: {
51
+ readonly inkTestnet: {
52
52
  blockExplorers: {
53
53
  readonly default: {
54
- readonly name: "Arbiscan";
55
- readonly url: "https://arbiscan.io";
56
- readonly apiUrl: "https://api.arbiscan.io/api";
54
+ readonly name: "Blockscout";
55
+ readonly url: "https://explorer-sepolia.inkonchain.com/";
56
+ readonly apiUrl: "https://explorer-sepolia.inkonchain.com/api/v2";
57
57
  };
58
58
  };
59
- blockTime: 250;
59
+ blockTime: 2000;
60
60
  contracts: {
61
61
  readonly multicall3: {
62
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
63
- readonly blockCreated: 7654707;
62
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
63
+ readonly blockCreated: 0;
64
+ };
65
+ readonly disputeGameFactory: {
66
+ readonly 11155111: {
67
+ readonly address: "0x860e626c700af381133d9f4af31412a2d1db3d5d";
68
+ };
69
+ };
70
+ readonly portal: {
71
+ readonly 11155111: {
72
+ readonly address: "0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7";
73
+ };
74
+ };
75
+ readonly l1StandardBridge: {
76
+ readonly 11155111: {
77
+ readonly address: "0x33f60714bbd74d62b66d79213c348614de51901c";
78
+ };
79
+ };
80
+ readonly gasPriceOracle: {
81
+ readonly address: "0x420000000000000000000000000000000000000F";
82
+ };
83
+ readonly l1Block: {
84
+ readonly address: "0x4200000000000000000000000000000000000015";
85
+ };
86
+ readonly l2CrossDomainMessenger: {
87
+ readonly address: "0x4200000000000000000000000000000000000007";
88
+ };
89
+ readonly l2Erc721Bridge: {
90
+ readonly address: "0x4200000000000000000000000000000000000014";
91
+ };
92
+ readonly l2StandardBridge: {
93
+ readonly address: "0x4200000000000000000000000000000000000010";
94
+ };
95
+ readonly l2ToL1MessagePasser: {
96
+ readonly address: "0x4200000000000000000000000000000000000016";
64
97
  };
65
98
  };
66
99
  ensTlds?: readonly string[] | undefined;
67
- id: 42161;
68
- name: "Arbitrum One";
100
+ id: 763373;
101
+ name: "Ink Sepolia";
69
102
  nativeCurrency: {
70
- readonly name: "Ether";
103
+ readonly name: "Sepolia Ether";
71
104
  readonly symbol: "ETH";
72
105
  readonly decimals: 18;
73
106
  };
74
107
  experimental_preconfirmationTime?: number | undefined | undefined;
75
108
  rpcUrls: {
76
109
  readonly default: {
77
- readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
110
+ readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
78
111
  };
79
112
  };
80
- sourceId?: number | undefined | undefined;
81
- testnet?: boolean | undefined | undefined;
113
+ sourceId: 11155111;
114
+ testnet: true;
82
115
  custom?: Record<string, unknown> | undefined;
83
116
  fees?: viem.ChainFees<undefined> | undefined;
84
- formatters?: undefined;
85
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
117
+ formatters: {
118
+ readonly block: {
119
+ exclude: [] | undefined;
120
+ format: (args: viem_chains.OpStackRpcBlock) => {
121
+ baseFeePerGas: bigint | null;
122
+ blobGasUsed: bigint;
123
+ difficulty: bigint;
124
+ excessBlobGas: bigint;
125
+ extraData: viem.Hex;
126
+ gasLimit: bigint;
127
+ gasUsed: bigint;
128
+ hash: `0x${string}` | null;
129
+ logsBloom: `0x${string}` | null;
130
+ miner: abitype.Address;
131
+ mixHash: viem.Hash;
132
+ nonce: `0x${string}` | null;
133
+ number: bigint | null;
134
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
135
+ parentHash: viem.Hash;
136
+ receiptsRoot: viem.Hex;
137
+ sealFields: viem.Hex[];
138
+ sha3Uncles: viem.Hash;
139
+ size: bigint;
140
+ stateRoot: viem.Hash;
141
+ timestamp: bigint;
142
+ totalDifficulty: bigint | null;
143
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
144
+ transactionsRoot: viem.Hash;
145
+ uncles: viem.Hash[];
146
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
147
+ withdrawalsRoot?: `0x${string}` | undefined;
148
+ } & {};
149
+ type: "block";
150
+ };
151
+ readonly transaction: {
152
+ exclude: [] | undefined;
153
+ format: (args: viem_chains.OpStackRpcTransaction) => ({
154
+ blockHash: `0x${string}` | null;
155
+ blockNumber: bigint | null;
156
+ from: abitype.Address;
157
+ gas: bigint;
158
+ hash: viem.Hash;
159
+ input: viem.Hex;
160
+ nonce: number;
161
+ r: viem.Hex;
162
+ s: viem.Hex;
163
+ to: abitype.Address | null;
164
+ transactionIndex: number | null;
165
+ typeHex: viem.Hex | null;
166
+ v: bigint;
167
+ value: bigint;
168
+ yParity: number;
169
+ gasPrice?: undefined | undefined;
170
+ maxFeePerBlobGas?: undefined | undefined;
171
+ maxFeePerGas: bigint;
172
+ maxPriorityFeePerGas: bigint;
173
+ isSystemTx?: boolean;
174
+ mint?: bigint | undefined | undefined;
175
+ sourceHash: viem.Hex;
176
+ type: "deposit";
177
+ } | {
178
+ r: viem.Hex;
179
+ s: viem.Hex;
180
+ v: bigint;
181
+ value: bigint;
182
+ gas: bigint;
183
+ to: abitype.Address | null;
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;
209
+ gas: bigint;
210
+ hash: viem.Hash;
211
+ input: viem.Hex;
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;
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
+ } | {
234
+ blockHash: `0x${string}` | null;
235
+ blockNumber: bigint | null;
236
+ from: abitype.Address;
237
+ gas: bigint;
238
+ hash: viem.Hash;
239
+ input: viem.Hex;
240
+ nonce: number;
241
+ r: viem.Hex;
242
+ s: viem.Hex;
243
+ to: abitype.Address | null;
244
+ transactionIndex: number | null;
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) => {
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
+ };
86
351
  };
87
- readonly inkTestnet: {
352
+ readonly inkMainnet: {
88
353
  blockExplorers: {
89
354
  readonly default: {
90
355
  readonly name: "Blockscout";
91
- readonly url: "https://explorer-sepolia.inkonchain.com/";
92
- readonly apiUrl: "https://explorer-sepolia.inkonchain.com/api/v2";
356
+ readonly url: "https://explorer.inkonchain.com";
357
+ readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
93
358
  };
94
359
  };
95
360
  blockTime: 2000;
96
361
  contracts: {
97
- readonly multicall3: {
98
- readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
99
- readonly blockCreated: 0;
100
- };
101
362
  readonly disputeGameFactory: {
102
- readonly 11155111: {
103
- readonly address: "0x860e626c700af381133d9f4af31412a2d1db3d5d";
363
+ readonly 1: {
364
+ readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
104
365
  };
105
366
  };
106
367
  readonly portal: {
107
- readonly 11155111: {
108
- readonly address: "0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7";
368
+ readonly 1: {
369
+ readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
109
370
  };
110
371
  };
111
372
  readonly l1StandardBridge: {
112
- readonly 11155111: {
113
- readonly address: "0x33f60714bbd74d62b66d79213c348614de51901c";
373
+ readonly 1: {
374
+ readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
114
375
  };
115
376
  };
116
377
  readonly gasPriceOracle: {
@@ -131,23 +392,28 @@ declare const CHAIN_ENV_TO_CHAIN: {
131
392
  readonly l2ToL1MessagePasser: {
132
393
  readonly address: "0x4200000000000000000000000000000000000016";
133
394
  };
395
+ readonly multicall3: {
396
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
397
+ readonly blockCreated: 0;
398
+ };
134
399
  };
135
400
  ensTlds?: readonly string[] | undefined;
136
- id: 763373;
137
- name: "Ink Sepolia";
401
+ id: 57073;
402
+ name: "Ink";
138
403
  nativeCurrency: {
139
- readonly name: "Sepolia Ether";
404
+ readonly name: "Ether";
140
405
  readonly symbol: "ETH";
141
406
  readonly decimals: 18;
142
407
  };
143
408
  experimental_preconfirmationTime?: number | undefined | undefined;
144
409
  rpcUrls: {
145
410
  readonly default: {
146
- readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
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"];
147
413
  };
148
414
  };
149
- sourceId: 11155111;
150
- testnet: true;
415
+ sourceId: 1;
416
+ testnet: false;
151
417
  custom?: Record<string, unknown> | undefined;
152
418
  fees?: viem.ChainFees<undefined> | undefined;
153
419
  formatters: {
@@ -1,11 +1,11 @@
1
1
  import "../chunk-5WRI5ZAA.js";
2
2
 
3
3
  // src/consts/chainEnvToChain.ts
4
- import { arbitrum, inkSepolia, localhost } from "viem/chains";
4
+ import { inkSepolia, ink, localhost } from "viem/chains";
5
5
  var CHAIN_ENV_TO_CHAIN = {
6
6
  local: localhost,
7
- arbitrum,
8
- inkTestnet: inkSepolia
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 { arbitrum, inkSepolia, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n arbitrum: arbitrum,\n inkTestnet: inkSepolia,\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,UAAU,YAAY,iBAAiB;AAGzC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP;AAAA,EACA,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":[]}
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":[]}
@@ -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
+ }
@@ -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 import_deployment_arbitrumOne = __toESM(require("./core/deployment.arbitrumOne.json"), 1);
38
- var import_deployment_InkSepolia = __toESM(require("./core/deployment.InkSepolia.json"), 1);
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
- ...import_deployment_InkSepolia.default
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 ArbitrumOneCoreDeployment from './core/deployment.arbitrumOne.json' with { type: 'json' };\nimport InkSepoliaCoreDeployment from './core/deployment.InkSepolia.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 arbitrum: validateDeployment({\n ...ArbitrumOneCoreDeployment,\n }),\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\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,oCAAsC;AACtC,mCAAqC;AACrC,kCAAgC;AASzB,IAAM,mBAA8D;AAAA,EACzE,UAAU,mBAAmB;AAAA,IAC3B,GAAG,8BAAAA;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":["ArbitrumOneCoreDeployment","InkSepoliaCoreDeployment","LocalCoreDeployment"]}
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 ArbitrumOneCoreDeployment from "./core/deployment.arbitrumOne.json" with { type: "json" };
6
- import InkSepoliaCoreDeployment from "./core/deployment.InkSepolia.json" with { type: "json" };
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 ArbitrumOneCoreDeployment from './core/deployment.arbitrumOne.json' with { type: 'json' };\nimport InkSepoliaCoreDeployment from './core/deployment.InkSepolia.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 arbitrum: validateDeployment({\n ...ArbitrumOneCoreDeployment,\n }),\n inkTestnet: validateDeployment({\n ...InkSepoliaCoreDeployment,\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,+BAA+B,qCAAqC,KAAK,EAAE,MAAM,OAAO;AAC/F,OAAO,8BAA8B,oCAAoC,KAAK,EAAE,MAAM,OAAO;AAC7F,OAAO,yBAAyB,mCAAmC,KAAK,EAAE,MAAM,OAAO;AAShF,IAAM,mBAA8D;AAAA,EACzE,UAAU,mBAAmB;AAAA,IAC3B,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
+ {"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":[]}
@@ -28,7 +28,7 @@ __export(ChainEnv_exports, {
28
28
  module.exports = __toCommonJS(ChainEnv_exports);
29
29
  var LOCAL_CHAIN_ENVS = ["local"];
30
30
  var TESTNET_CHAIN_ENVS = ["inkTestnet"];
31
- var MAINNET_CHAIN_ENVS = ["arbitrum"];
31
+ var MAINNET_CHAIN_ENVS = ["inkMainnet"];
32
32
  var ALL_CHAIN_ENVS = [
33
33
  ...LOCAL_CHAIN_ENVS,
34
34
  ...TESTNET_CHAIN_ENVS,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/ChainEnv.ts"],"sourcesContent":["export const LOCAL_CHAIN_ENVS = ['local'] as const satisfies string[];\n\nexport const TESTNET_CHAIN_ENVS = ['inkTestnet'] as const satisfies string[];\n\nexport const MAINNET_CHAIN_ENVS = ['arbitrum'] as const satisfies string[];\n\nexport const ALL_CHAIN_ENVS = [\n ...LOCAL_CHAIN_ENVS,\n ...TESTNET_CHAIN_ENVS,\n ...MAINNET_CHAIN_ENVS,\n] as const satisfies string[];\n\nexport type ChainEnv = (typeof ALL_CHAIN_ENVS)[number];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBAAmB,CAAC,OAAO;AAEjC,IAAM,qBAAqB,CAAC,YAAY;AAExC,IAAM,qBAAqB,CAAC,UAAU;AAEtC,IAAM,iBAAiB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;","names":[]}
1
+ {"version":3,"sources":["../../src/types/ChainEnv.ts"],"sourcesContent":["export const LOCAL_CHAIN_ENVS = ['local'] as const satisfies string[];\n\nexport const TESTNET_CHAIN_ENVS = ['inkTestnet'] as const satisfies string[];\n\nexport const MAINNET_CHAIN_ENVS = ['inkMainnet'] as const satisfies string[];\n\nexport const ALL_CHAIN_ENVS = [\n ...LOCAL_CHAIN_ENVS,\n ...TESTNET_CHAIN_ENVS,\n ...MAINNET_CHAIN_ENVS,\n] as const satisfies string[];\n\nexport type ChainEnv = (typeof ALL_CHAIN_ENVS)[number];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,mBAAmB,CAAC,OAAO;AAEjC,IAAM,qBAAqB,CAAC,YAAY;AAExC,IAAM,qBAAqB,CAAC,YAAY;AAExC,IAAM,iBAAiB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;","names":[]}
@@ -1,7 +1,7 @@
1
1
  declare const LOCAL_CHAIN_ENVS: ["local"];
2
2
  declare const TESTNET_CHAIN_ENVS: ["inkTestnet"];
3
- declare const MAINNET_CHAIN_ENVS: ["arbitrum"];
4
- declare const ALL_CHAIN_ENVS: ["local", "inkTestnet", "arbitrum"];
3
+ declare const MAINNET_CHAIN_ENVS: ["inkMainnet"];
4
+ declare const ALL_CHAIN_ENVS: ["local", "inkTestnet", "inkMainnet"];
5
5
  type ChainEnv = (typeof ALL_CHAIN_ENVS)[number];
6
6
 
7
7
  export { ALL_CHAIN_ENVS, type ChainEnv, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, TESTNET_CHAIN_ENVS };
@@ -1,7 +1,7 @@
1
1
  declare const LOCAL_CHAIN_ENVS: ["local"];
2
2
  declare const TESTNET_CHAIN_ENVS: ["inkTestnet"];
3
- declare const MAINNET_CHAIN_ENVS: ["arbitrum"];
4
- declare const ALL_CHAIN_ENVS: ["local", "inkTestnet", "arbitrum"];
3
+ declare const MAINNET_CHAIN_ENVS: ["inkMainnet"];
4
+ declare const ALL_CHAIN_ENVS: ["local", "inkTestnet", "inkMainnet"];
5
5
  type ChainEnv = (typeof ALL_CHAIN_ENVS)[number];
6
6
 
7
7
  export { ALL_CHAIN_ENVS, type ChainEnv, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, TESTNET_CHAIN_ENVS };
@@ -3,7 +3,7 @@ import "../chunk-5WRI5ZAA.js";
3
3
  // src/types/ChainEnv.ts
4
4
  var LOCAL_CHAIN_ENVS = ["local"];
5
5
  var TESTNET_CHAIN_ENVS = ["inkTestnet"];
6
- var MAINNET_CHAIN_ENVS = ["arbitrum"];
6
+ var MAINNET_CHAIN_ENVS = ["inkMainnet"];
7
7
  var ALL_CHAIN_ENVS = [
8
8
  ...LOCAL_CHAIN_ENVS,
9
9
  ...TESTNET_CHAIN_ENVS,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/ChainEnv.ts"],"sourcesContent":["export const LOCAL_CHAIN_ENVS = ['local'] as const satisfies string[];\n\nexport const TESTNET_CHAIN_ENVS = ['inkTestnet'] as const satisfies string[];\n\nexport const MAINNET_CHAIN_ENVS = ['arbitrum'] as const satisfies string[];\n\nexport const ALL_CHAIN_ENVS = [\n ...LOCAL_CHAIN_ENVS,\n ...TESTNET_CHAIN_ENVS,\n ...MAINNET_CHAIN_ENVS,\n] as const satisfies string[];\n\nexport type ChainEnv = (typeof ALL_CHAIN_ENVS)[number];\n"],"mappings":";;;AAAO,IAAM,mBAAmB,CAAC,OAAO;AAEjC,IAAM,qBAAqB,CAAC,YAAY;AAExC,IAAM,qBAAqB,CAAC,UAAU;AAEtC,IAAM,iBAAiB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;","names":[]}
1
+ {"version":3,"sources":["../../src/types/ChainEnv.ts"],"sourcesContent":["export const LOCAL_CHAIN_ENVS = ['local'] as const satisfies string[];\n\nexport const TESTNET_CHAIN_ENVS = ['inkTestnet'] as const satisfies string[];\n\nexport const MAINNET_CHAIN_ENVS = ['inkMainnet'] as const satisfies string[];\n\nexport const ALL_CHAIN_ENVS = [\n ...LOCAL_CHAIN_ENVS,\n ...TESTNET_CHAIN_ENVS,\n ...MAINNET_CHAIN_ENVS,\n] as const satisfies string[];\n\nexport type ChainEnv = (typeof ALL_CHAIN_ENVS)[number];\n"],"mappings":";;;AAAO,IAAM,mBAAmB,CAAC,OAAO;AAEjC,IAAM,qBAAqB,CAAC,YAAY;AAExC,IAAM,qBAAqB,CAAC,YAAY;AAExC,IAAM,iBAAiB;AAAA,EAC5B,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/shared",
3
- "version": "0.1.0-alpha.35",
3
+ "version": "0.1.0-alpha.37",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Shared utilities, types, and contract helpers for Nado SDK",
@@ -49,5 +49,5 @@
49
49
  "bignumber.js": "^9.3.0",
50
50
  "viem": "*"
51
51
  },
52
- "gitHead": "001d5cda17c62efb57683098672197c876a1f4ca"
52
+ "gitHead": "f521332e831218676941be6b2a8966bbddc6645f"
53
53
  }
@@ -1,11 +1,11 @@
1
1
  import { Chain } from 'viem';
2
- import { arbitrum, inkSepolia, localhost } from 'viem/chains';
2
+ import { inkSepolia, ink, localhost } from 'viem/chains';
3
3
  import { ChainEnv } from '../types';
4
4
 
5
5
  export const CHAIN_ENV_TO_CHAIN = {
6
6
  local: localhost,
7
- arbitrum: arbitrum,
8
7
  inkTestnet: inkSepolia,
8
+ inkMainnet: ink,
9
9
  } as const satisfies Record<ChainEnv, Chain>;
10
10
 
11
11
  export const CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(
@@ -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
+ }
@@ -3,8 +3,8 @@ import { NadoContractName } from '../abis/nadoAbis';
3
3
 
4
4
  import { ChainEnv } from '../types';
5
5
  import { getValidatedAddress } from '../utils/getValidatedAddress';
6
- import ArbitrumOneCoreDeployment from './core/deployment.arbitrumOne.json' with { type: 'json' };
7
- import InkSepoliaCoreDeployment from './core/deployment.InkSepolia.json' with { type: 'json' };
6
+ import InkSepoliaCoreDeployment from './core/deployment.inkSepolia.json' with { type: 'json' };
7
+ import InkMainnetCoreDeployment from './core/deployment.inkMainnet.json' with { type: 'json' };
8
8
  import LocalCoreDeployment from './core/deployment.localhost.json' with { type: 'json' };
9
9
 
10
10
  export type NadoDeploymentAddresses = {
@@ -15,12 +15,12 @@ export type NadoDeploymentAddresses = {
15
15
  * Known deployment addresses for the Nado contracts
16
16
  */
17
17
  export const NADO_DEPLOYMENTS: Record<ChainEnv, NadoDeploymentAddresses> = {
18
- arbitrum: validateDeployment({
19
- ...ArbitrumOneCoreDeployment,
20
- }),
21
18
  inkTestnet: validateDeployment({
22
19
  ...InkSepoliaCoreDeployment,
23
20
  }),
21
+ inkMainnet: validateDeployment({
22
+ ...InkMainnetCoreDeployment,
23
+ }),
24
24
  local: validateDeployment({
25
25
  ...LocalCoreDeployment,
26
26
  }),
@@ -2,7 +2,7 @@ export const LOCAL_CHAIN_ENVS = ['local'] as const satisfies string[];
2
2
 
3
3
  export const TESTNET_CHAIN_ENVS = ['inkTestnet'] as const satisfies string[];
4
4
 
5
- export const MAINNET_CHAIN_ENVS = ['arbitrum'] as const satisfies string[];
5
+ export const MAINNET_CHAIN_ENVS = ['inkMainnet'] as const satisfies string[];
6
6
 
7
7
  export const ALL_CHAIN_ENVS = [
8
8
  ...LOCAL_CHAIN_ENVS,
@@ -1,18 +0,0 @@
1
- {
2
- "nodeUrl": "https://arb1.arbitrum.io/rpc",
3
- "explorerUrl": "https://explorer.arbitrum.io",
4
- "subgraphCoreUrl": "https://api.thegraph.com/subgraphs/name/nado-protocol/nado-prod-core",
5
- "subgraphMarketsUrl": "https://api.thegraph.com/subgraphs/name/nado-protocol/nado-prod-markets",
6
- "subgraphCandleSticksUrl": "https://api.thegraph.com/subgraphs/name/nado-protocol/nado-prod-candlesticks",
7
- "startBlock": 67108377,
8
- "deployer": "0xB746472C10f9F128FF9F5029f424cC91bb1D8C3a",
9
- "quote": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
10
- "querier": "0x1693273B443699bee277eCbc60e2C8027E91995d",
11
- "feeCalculator": "0x2259440579447D0625a5E28dfF3E743d207e8890",
12
- "clearinghouse": "0xAE1ec28d6225dCE2ff787dcb8CE11cF6D3AE064f",
13
- "clearinghouseLiq": "0xca007C51Fc14eEA88252Cc4FD71e91E44026F020",
14
- "endpoint": "0xbbEE07B3e8121227AfCFe1E2B82772246226128e",
15
- "spotEngine": "0x32d91Af2B17054D575A7bF1ACfa7615f41CCEfaB",
16
- "perpEngine": "0xb74C78cca0FADAFBeE52B2f48A67eE8c834b5fd1",
17
- "withdrawPool": "0x3567a1f8d79046A7e93Fd76d71104A978cDC6d05"
18
- }
@@ -1,18 +0,0 @@
1
- {
2
- "nodeUrl": "https://arb1.arbitrum.io/rpc",
3
- "explorerUrl": "https://explorer.arbitrum.io",
4
- "subgraphCoreUrl": "https://api.thegraph.com/subgraphs/name/nado-protocol/nado-prod-core",
5
- "subgraphMarketsUrl": "https://api.thegraph.com/subgraphs/name/nado-protocol/nado-prod-markets",
6
- "subgraphCandleSticksUrl": "https://api.thegraph.com/subgraphs/name/nado-protocol/nado-prod-candlesticks",
7
- "startBlock": 67108377,
8
- "deployer": "0xB746472C10f9F128FF9F5029f424cC91bb1D8C3a",
9
- "quote": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
10
- "querier": "0x1693273B443699bee277eCbc60e2C8027E91995d",
11
- "feeCalculator": "0x2259440579447D0625a5E28dfF3E743d207e8890",
12
- "clearinghouse": "0xAE1ec28d6225dCE2ff787dcb8CE11cF6D3AE064f",
13
- "clearinghouseLiq": "0xca007C51Fc14eEA88252Cc4FD71e91E44026F020",
14
- "endpoint": "0xbbEE07B3e8121227AfCFe1E2B82772246226128e",
15
- "spotEngine": "0x32d91Af2B17054D575A7bF1ACfa7615f41CCEfaB",
16
- "perpEngine": "0xb74C78cca0FADAFBeE52B2f48A67eE8c834b5fd1",
17
- "withdrawPool": "0x3567a1f8d79046A7e93Fd76d71104A978cDC6d05"
18
- }