@gfxlabs/oku-chains 1.12.8 → 1.12.12

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 (56) hide show
  1. package/dist/browser.js +74 -0
  2. package/dist/index-mjs.js +75 -2
  3. package/dist/index.js +74 -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/index.d.ts +1 -0
  21. package/dist/types/definitions/lens.d.ts +2 -0
  22. package/dist/types/definitions/lightlink.d.ts +2 -0
  23. package/dist/types/definitions/linea.d.ts +2 -0
  24. package/dist/types/definitions/lisk.d.ts +10 -0
  25. package/dist/types/definitions/mainnet.d.ts +2 -0
  26. package/dist/types/definitions/manta.d.ts +2 -0
  27. package/dist/types/definitions/mantle.d.ts +2 -0
  28. package/dist/types/definitions/matchain.d.ts +2 -0
  29. package/dist/types/definitions/metal.d.ts +10 -0
  30. package/dist/types/definitions/monad.d.ts +7 -5
  31. package/dist/types/definitions/moonbeam.d.ts +3 -1
  32. package/dist/types/definitions/nibiru.d.ts +2 -0
  33. package/dist/types/definitions/optimism.d.ts +11 -0
  34. package/dist/types/definitions/pharos.d.ts +2 -0
  35. package/dist/types/definitions/plasma.d.ts +2 -0
  36. package/dist/types/definitions/polygon.d.ts +2 -0
  37. package/dist/types/definitions/redbelly.d.ts +2 -0
  38. package/dist/types/definitions/robinhood.d.ts +112 -0
  39. package/dist/types/definitions/ronin.d.ts +2 -0
  40. package/dist/types/definitions/rootstock.d.ts +2 -0
  41. package/dist/types/definitions/saga.d.ts +2 -0
  42. package/dist/types/definitions/scroll.d.ts +2 -0
  43. package/dist/types/definitions/sei.d.ts +2 -0
  44. package/dist/types/definitions/sonic.d.ts +2 -0
  45. package/dist/types/definitions/taiko.d.ts +2 -0
  46. package/dist/types/definitions/telos.d.ts +2 -0
  47. package/dist/types/definitions/tronShasta.d.ts +2 -0
  48. package/dist/types/definitions/unichain.d.ts +10 -0
  49. package/dist/types/definitions/worldchain.d.ts +26 -16
  50. package/dist/types/definitions/xdc.d.ts +2 -0
  51. package/dist/types/definitions/zerog.d.ts +2 -0
  52. package/dist/types/definitions/zkevm.d.ts +2 -0
  53. package/dist/types/definitions/zksync.d.ts +20 -11
  54. package/dist/types/index.d.ts +338 -25
  55. package/dist/types/non-evm/bitcoin.d.ts +2 -0
  56. package/package.json +2 -2
@@ -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")[];