@gfxlabs/oku-chains 1.12.8 → 1.12.11

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.
Files changed (54) hide show
  1. package/dist/browser.js +3 -0
  2. package/dist/index-mjs.js +3 -0
  3. package/dist/index.js +3 -0
  4. package/dist/types/definitions/arbitrum.d.ts +3 -0
  5. package/dist/types/definitions/avalanche.d.ts +2 -0
  6. package/dist/types/definitions/base.d.ts +11 -0
  7. package/dist/types/definitions/blast.d.ts +10 -0
  8. package/dist/types/definitions/bob.d.ts +10 -0
  9. package/dist/types/definitions/boba.d.ts +2 -0
  10. package/dist/types/definitions/bsc.d.ts +2 -0
  11. package/dist/types/definitions/celo.d.ts +18 -0
  12. package/dist/types/definitions/corn.d.ts +2 -0
  13. package/dist/types/definitions/etherlink.d.ts +2 -0
  14. package/dist/types/definitions/filecoin.d.ts +2 -0
  15. package/dist/types/definitions/gensyn.d.ts +2 -0
  16. package/dist/types/definitions/gnosis.d.ts +2 -0
  17. package/dist/types/definitions/goat.d.ts +2 -0
  18. package/dist/types/definitions/hemi.d.ts +2 -0
  19. package/dist/types/definitions/hyperevem.d.ts +2 -0
  20. package/dist/types/definitions/lens.d.ts +2 -0
  21. package/dist/types/definitions/lightlink.d.ts +2 -0
  22. package/dist/types/definitions/linea.d.ts +2 -0
  23. package/dist/types/definitions/lisk.d.ts +10 -0
  24. package/dist/types/definitions/mainnet.d.ts +2 -0
  25. package/dist/types/definitions/manta.d.ts +2 -0
  26. package/dist/types/definitions/mantle.d.ts +2 -0
  27. package/dist/types/definitions/matchain.d.ts +2 -0
  28. package/dist/types/definitions/metal.d.ts +10 -0
  29. package/dist/types/definitions/monad.d.ts +7 -5
  30. package/dist/types/definitions/moonbeam.d.ts +3 -1
  31. package/dist/types/definitions/nibiru.d.ts +2 -0
  32. package/dist/types/definitions/optimism.d.ts +11 -0
  33. package/dist/types/definitions/pharos.d.ts +2 -0
  34. package/dist/types/definitions/plasma.d.ts +2 -0
  35. package/dist/types/definitions/polygon.d.ts +2 -0
  36. package/dist/types/definitions/redbelly.d.ts +2 -0
  37. package/dist/types/definitions/ronin.d.ts +2 -0
  38. package/dist/types/definitions/rootstock.d.ts +2 -0
  39. package/dist/types/definitions/saga.d.ts +2 -0
  40. package/dist/types/definitions/scroll.d.ts +2 -0
  41. package/dist/types/definitions/sei.d.ts +2 -0
  42. package/dist/types/definitions/sonic.d.ts +2 -0
  43. package/dist/types/definitions/taiko.d.ts +2 -0
  44. package/dist/types/definitions/telos.d.ts +2 -0
  45. package/dist/types/definitions/tronShasta.d.ts +2 -0
  46. package/dist/types/definitions/unichain.d.ts +10 -0
  47. package/dist/types/definitions/worldchain.d.ts +26 -16
  48. package/dist/types/definitions/xdc.d.ts +2 -0
  49. package/dist/types/definitions/zerog.d.ts +2 -0
  50. package/dist/types/definitions/zkevm.d.ts +2 -0
  51. package/dist/types/definitions/zksync.d.ts +20 -11
  52. package/dist/types/index.d.ts +242 -24
  53. package/dist/types/non-evm/bitcoin.d.ts +2 -0
  54. package/package.json +2 -2
@@ -188,7 +188,7 @@ export declare const worldchain: Readonly<{
188
188
  gasUsed: bigint;
189
189
  hash: `0x${string}` | null;
190
190
  logsBloom: `0x${string}` | null;
191
- miner: import("viem").Address;
191
+ miner: import("abitype").Address;
192
192
  mixHash: import("viem").Hash;
193
193
  nonce: `0x${string}` | null;
194
194
  number: bigint | null;
@@ -214,14 +214,15 @@ export declare const worldchain: Readonly<{
214
214
  format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
215
215
  blockHash: `0x${string}` | null;
216
216
  blockNumber: bigint | null;
217
- from: import("viem").Address;
217
+ blockTimestamp?: bigint | undefined;
218
+ from: import("abitype").Address;
218
219
  gas: bigint;
219
220
  hash: import("viem").Hash;
220
221
  input: import("viem").Hex;
221
222
  nonce: number;
222
223
  r: import("viem").Hex;
223
224
  s: import("viem").Hex;
224
- to: import("viem").Address | null;
225
+ to: import("abitype").Address | null;
225
226
  transactionIndex: number | null;
226
227
  typeHex: import("viem").Hex | null;
227
228
  v: bigint;
@@ -239,13 +240,14 @@ export declare const worldchain: Readonly<{
239
240
  r: import("viem").Hex;
240
241
  s: import("viem").Hex;
241
242
  v: bigint;
242
- to: import("viem").Address | null;
243
- from: import("viem").Address;
243
+ to: import("abitype").Address | null;
244
+ from: import("abitype").Address;
244
245
  gas: bigint;
245
246
  nonce: number;
246
247
  value: bigint;
247
248
  blockHash: `0x${string}` | null;
248
249
  blockNumber: bigint | null;
250
+ blockTimestamp?: bigint | undefined;
249
251
  hash: import("viem").Hash;
250
252
  input: import("viem").Hex;
251
253
  transactionIndex: number | null;
@@ -266,14 +268,15 @@ export declare const worldchain: Readonly<{
266
268
  } | {
267
269
  blockHash: `0x${string}` | null;
268
270
  blockNumber: bigint | null;
269
- from: import("viem").Address;
271
+ blockTimestamp?: bigint | undefined;
272
+ from: import("abitype").Address;
270
273
  gas: bigint;
271
274
  hash: import("viem").Hash;
272
275
  input: import("viem").Hex;
273
276
  nonce: number;
274
277
  r: import("viem").Hex;
275
278
  s: import("viem").Hex;
276
- to: import("viem").Address | null;
279
+ to: import("abitype").Address | null;
277
280
  transactionIndex: number | null;
278
281
  typeHex: import("viem").Hex | null;
279
282
  v: bigint;
@@ -294,14 +297,15 @@ export declare const worldchain: Readonly<{
294
297
  } | {
295
298
  blockHash: `0x${string}` | null;
296
299
  blockNumber: bigint | null;
297
- from: import("viem").Address;
300
+ blockTimestamp?: bigint | undefined;
301
+ from: import("abitype").Address;
298
302
  gas: bigint;
299
303
  hash: import("viem").Hash;
300
304
  input: import("viem").Hex;
301
305
  nonce: number;
302
306
  r: import("viem").Hex;
303
307
  s: import("viem").Hex;
304
- to: import("viem").Address | null;
308
+ to: import("abitype").Address | null;
305
309
  transactionIndex: number | null;
306
310
  typeHex: import("viem").Hex | null;
307
311
  v: bigint;
@@ -322,14 +326,15 @@ export declare const worldchain: Readonly<{
322
326
  } | {
323
327
  blockHash: `0x${string}` | null;
324
328
  blockNumber: bigint | null;
325
- from: import("viem").Address;
329
+ blockTimestamp?: bigint | undefined;
330
+ from: import("abitype").Address;
326
331
  gas: bigint;
327
332
  hash: import("viem").Hash;
328
333
  input: import("viem").Hex;
329
334
  nonce: number;
330
335
  r: import("viem").Hex;
331
336
  s: import("viem").Hex;
332
- to: import("viem").Address | null;
337
+ to: import("abitype").Address | null;
333
338
  transactionIndex: number | null;
334
339
  typeHex: import("viem").Hex | null;
335
340
  v: bigint;
@@ -350,14 +355,15 @@ export declare const worldchain: Readonly<{
350
355
  } | {
351
356
  blockHash: `0x${string}` | null;
352
357
  blockNumber: bigint | null;
353
- from: import("viem").Address;
358
+ blockTimestamp?: bigint | undefined;
359
+ from: import("abitype").Address;
354
360
  gas: bigint;
355
361
  hash: import("viem").Hash;
356
362
  input: import("viem").Hex;
357
363
  nonce: number;
358
364
  r: import("viem").Hex;
359
365
  s: import("viem").Hex;
360
- to: import("viem").Address | null;
366
+ to: import("abitype").Address | null;
361
367
  transactionIndex: number | null;
362
368
  typeHex: import("viem").Hex | null;
363
369
  v: bigint;
@@ -386,19 +392,21 @@ export declare const worldchain: Readonly<{
386
392
  blockHash: import("viem").Hash;
387
393
  blockNumber: bigint;
388
394
  blockTimestamp?: bigint | undefined;
389
- contractAddress: import("viem").Address | null | undefined;
395
+ contractAddress: import("abitype").Address | null | undefined;
390
396
  cumulativeGasUsed: bigint;
391
397
  effectiveGasPrice: bigint;
392
- from: import("viem").Address;
398
+ from: import("abitype").Address;
393
399
  gasUsed: bigint;
394
400
  logs: import("viem").Log<bigint, number, false>[];
395
401
  logsBloom: import("viem").Hex;
396
402
  root?: `0x${string}` | undefined;
397
403
  status: "success" | "reverted";
398
- to: import("viem").Address | null;
404
+ to: import("abitype").Address | null;
399
405
  transactionHash: import("viem").Hash;
400
406
  transactionIndex: number;
401
407
  type: import("viem").TransactionType;
408
+ depositNonce?: bigint | undefined | undefined;
409
+ depositReceiptVersion?: number | undefined | undefined;
402
410
  l1GasPrice: bigint | null;
403
411
  l1GasUsed: bigint | null;
404
412
  l1Fee: bigint | null;
@@ -408,8 +416,10 @@ export declare const worldchain: Readonly<{
408
416
  };
409
417
  };
410
418
  prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
419
+ client: import("viem").Client;
411
420
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
412
421
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
422
+ client: import("viem").Client;
413
423
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
414
424
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
415
425
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
@@ -128,8 +128,10 @@ export declare const xdc: Readonly<{
128
128
  fees?: import("viem").ChainFees<undefined> | undefined;
129
129
  formatters?: undefined | undefined;
130
130
  prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
131
+ client: import("viem").Client;
131
132
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
132
133
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
134
+ client: import("viem").Client;
133
135
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
134
136
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
135
137
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
@@ -120,8 +120,10 @@ export declare const zerog: Readonly<{
120
120
  fees?: import("viem").ChainFees<undefined> | undefined;
121
121
  formatters?: undefined | undefined;
122
122
  prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
123
+ client: import("viem").Client;
123
124
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
124
125
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
126
+ client: import("viem").Client;
125
127
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
126
128
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
127
129
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
@@ -137,8 +137,10 @@ export declare const polygonZkEvm: Readonly<{
137
137
  fees?: import("viem").ChainFees<undefined> | undefined;
138
138
  formatters?: undefined | undefined;
139
139
  prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
140
+ client: import("viem").Client;
140
141
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
141
142
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
143
+ client: import("viem").Client;
142
144
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
143
145
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
144
146
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
@@ -144,14 +144,14 @@ export declare const zkSync: Readonly<{
144
144
  sourceId?: number | undefined | undefined | undefined;
145
145
  testnet?: boolean | undefined | undefined | undefined;
146
146
  custom: {
147
- readonly getEip712Domain: import("viem/zksync").EIP712DomainFn<import("viem/chains").ZkSyncTransactionSerializable, import("viem/chains").ZkSyncEIP712TransactionSignable>;
147
+ readonly getEip712Domain: import("viem/zksync").EIP712DomainFn<import("viem/zksync").ZkSyncTransactionSerializable, import("viem/zksync").ZkSyncEIP712TransactionSignable>;
148
148
  };
149
149
  extendSchema?: Record<string, unknown> | undefined;
150
150
  fees?: import("viem").ChainFees<undefined> | undefined;
151
151
  formatters: {
152
152
  readonly block: {
153
153
  exclude: [] | undefined;
154
- format: (args: import("viem/chains").ZkSyncRpcBlock, action?: string | undefined) => {
154
+ format: (args: import("viem/zksync").ZkSyncRpcBlock, action?: string | undefined) => {
155
155
  baseFeePerGas: bigint | null;
156
156
  blobGasUsed: bigint;
157
157
  difficulty: bigint;
@@ -174,7 +174,7 @@ export declare const zkSync: Readonly<{
174
174
  stateRoot: import("viem").Hash;
175
175
  timestamp: bigint;
176
176
  totalDifficulty: bigint | null;
177
- transactions: `0x${string}`[] | import("viem/chains").ZkSyncTransaction<boolean>[];
177
+ transactions: `0x${string}`[] | import("viem/zksync").ZkSyncTransaction<boolean>[];
178
178
  transactionsRoot: import("viem").Hash;
179
179
  uncles: import("viem").Hash[];
180
180
  withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
@@ -186,7 +186,7 @@ export declare const zkSync: Readonly<{
186
186
  };
187
187
  readonly transaction: {
188
188
  exclude: [] | undefined;
189
- format: (args: import("viem/chains").ZkSyncRpcTransaction, action?: string | undefined) => ({
189
+ format: (args: import("viem/zksync").ZkSyncRpcTransaction, action?: string | undefined) => ({
190
190
  r: import("viem").Hex;
191
191
  s: import("viem").Hex;
192
192
  v: bigint;
@@ -197,6 +197,7 @@ export declare const zkSync: Readonly<{
197
197
  value: bigint;
198
198
  blockHash: `0x${string}` | null;
199
199
  blockNumber: bigint | null;
200
+ blockTimestamp?: bigint | undefined;
200
201
  hash: import("viem").Hash;
201
202
  input: import("viem").Hex;
202
203
  transactionIndex: number | null;
@@ -216,6 +217,7 @@ export declare const zkSync: Readonly<{
216
217
  } | {
217
218
  blockHash: `0x${string}` | null;
218
219
  blockNumber: bigint | null;
220
+ blockTimestamp?: bigint | undefined;
219
221
  from: import("abitype").Address;
220
222
  gas: bigint;
221
223
  hash: import("viem").Hash;
@@ -243,6 +245,7 @@ export declare const zkSync: Readonly<{
243
245
  } | {
244
246
  blockHash: `0x${string}` | null;
245
247
  blockNumber: bigint | null;
248
+ blockTimestamp?: bigint | undefined;
246
249
  from: import("abitype").Address;
247
250
  gas: bigint;
248
251
  hash: import("viem").Hash;
@@ -270,6 +273,7 @@ export declare const zkSync: Readonly<{
270
273
  } | {
271
274
  blockHash: `0x${string}` | null;
272
275
  blockNumber: bigint | null;
276
+ blockTimestamp?: bigint | undefined;
273
277
  from: import("abitype").Address;
274
278
  gas: bigint;
275
279
  hash: import("viem").Hash;
@@ -297,6 +301,7 @@ export declare const zkSync: Readonly<{
297
301
  } | {
298
302
  blockHash: `0x${string}` | null;
299
303
  blockNumber: bigint | null;
304
+ blockTimestamp?: bigint | undefined;
300
305
  from: import("abitype").Address;
301
306
  gas: bigint;
302
307
  hash: import("viem").Hash;
@@ -324,6 +329,7 @@ export declare const zkSync: Readonly<{
324
329
  } | {
325
330
  blockHash: `0x${string}` | null;
326
331
  blockNumber: bigint | null;
332
+ blockTimestamp?: bigint | undefined;
327
333
  from: import("abitype").Address;
328
334
  gas: bigint;
329
335
  hash: import("viem").Hash;
@@ -347,6 +353,7 @@ export declare const zkSync: Readonly<{
347
353
  } | {
348
354
  blockHash: `0x${string}` | null;
349
355
  blockNumber: bigint | null;
356
+ blockTimestamp?: bigint | undefined;
350
357
  from: import("abitype").Address;
351
358
  gas: bigint;
352
359
  hash: import("viem").Hash;
@@ -372,16 +379,16 @@ export declare const zkSync: Readonly<{
372
379
  };
373
380
  readonly transactionReceipt: {
374
381
  exclude: [] | undefined;
375
- format: (args: import("viem/chains").ZkSyncRpcTransactionReceipt, action?: string | undefined) => {
376
- type: import("viem/chains").ZkSyncTransactionType;
382
+ format: (args: import("viem/zksync").ZkSyncRpcTransactionReceipt, action?: string | undefined) => {
383
+ type: import("viem/zksync").ZkSyncTransactionType;
377
384
  contractAddress: import("abitype").Address | null | undefined;
378
385
  to: import("abitype").Address | null;
379
386
  from: import("abitype").Address;
380
387
  blockHash: import("viem").Hash;
381
388
  blockNumber: bigint;
389
+ blockTimestamp?: bigint | undefined;
382
390
  transactionIndex: number;
383
391
  status: "success" | "reverted";
384
- blockTimestamp?: bigint | undefined;
385
392
  transactionHash: import("viem").Hash;
386
393
  logsBloom: import("viem").Hex;
387
394
  blobGasUsed?: bigint | undefined;
@@ -392,14 +399,14 @@ export declare const zkSync: Readonly<{
392
399
  root?: `0x${string}` | undefined;
393
400
  l1BatchNumber: bigint | null;
394
401
  l1BatchTxIndex: bigint | null;
395
- logs: import("viem/chains").ZkSyncLog[];
396
- l2ToL1Logs: import("viem/chains").ZkSyncL2ToL1Log[];
402
+ logs: import("viem/zksync").ZkSyncLog[];
403
+ l2ToL1Logs: import("viem/zksync").ZkSyncL2ToL1Log[];
397
404
  } & {};
398
405
  type: "transactionReceipt";
399
406
  };
400
407
  readonly transactionRequest: {
401
408
  exclude: ("paymaster" | "gasPerPubdata" | "factoryDeps" | "paymasterInput" | "customSignature")[] | undefined;
402
- format: (args: import("viem/chains").ZkSyncTransactionRequest, action?: string | undefined) => ({
409
+ format: (args: import("viem/zksync").ZkSyncTransactionRequest, action?: string | undefined) => ({
403
410
  data?: `0x${string}` | undefined;
404
411
  from?: `0x${string}` | undefined;
405
412
  gas?: `0x${string}` | undefined;
@@ -525,7 +532,7 @@ export declare const zkSync: Readonly<{
525
532
  maxFeePerBlobGas?: undefined | undefined;
526
533
  maxFeePerGas?: `0x${string}` | undefined;
527
534
  maxPriorityFeePerGas?: `0x${string}` | undefined;
528
- eip712Meta: import("viem/chains").ZkSyncEip712Meta;
535
+ eip712Meta: import("viem/zksync").ZkSyncEip712Meta;
529
536
  }) & {
530
537
  paymaster: never;
531
538
  gasPerPubdata: never;
@@ -537,8 +544,10 @@ export declare const zkSync: Readonly<{
537
544
  };
538
545
  };
539
546
  prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
547
+ client: import("viem").Client;
540
548
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
541
549
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
550
+ client: import("viem").Client;
542
551
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
543
552
  }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
544
553
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];