viem 2.57.1 → 2.57.3

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 (145) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +4 -2
  3. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  4. package/_cjs/actions/public/waitForTransactionReceipt.js +2 -1
  5. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  6. package/_cjs/actions/wallet/sendCalls.js +2 -0
  7. package/_cjs/actions/wallet/sendCalls.js.map +1 -1
  8. package/_cjs/chains/definitions/crymad.js +32 -0
  9. package/_cjs/chains/definitions/crymad.js.map +1 -0
  10. package/_cjs/chains/definitions/crymadL2.js +33 -0
  11. package/_cjs/chains/definitions/crymadL2.js.map +1 -0
  12. package/_cjs/chains/definitions/jasmyChain.js +9 -2
  13. package/_cjs/chains/definitions/jasmyChain.js.map +1 -1
  14. package/_cjs/chains/definitions/jasmyChainTestnet.js +9 -2
  15. package/_cjs/chains/definitions/jasmyChainTestnet.js.map +1 -1
  16. package/_cjs/chains/index.js +17 -13
  17. package/_cjs/chains/index.js.map +1 -1
  18. package/_cjs/errors/version.js +1 -1
  19. package/_cjs/tempo/Abis.js +177 -36
  20. package/_cjs/tempo/Abis.js.map +1 -1
  21. package/_cjs/tempo/ExecutionError.js +2 -0
  22. package/_cjs/tempo/ExecutionError.js.map +1 -1
  23. package/_cjs/tempo/Selectors.js +17 -6
  24. package/_cjs/tempo/Selectors.js.map +1 -1
  25. package/_cjs/tempo/Transaction.js.map +1 -1
  26. package/_cjs/tempo/actions/token.js +12 -5
  27. package/_cjs/tempo/actions/token.js.map +1 -1
  28. package/_cjs/tempo/chainConfig.js +1 -1
  29. package/_cjs/tempo/chainConfig.js.map +1 -1
  30. package/_cjs/tempo/internal/relay/preflight.js +1 -1
  31. package/_cjs/tempo/internal/relay/preflight.js.map +1 -1
  32. package/_cjs/tokens/definitions/ousd.js +1 -0
  33. package/_cjs/tokens/definitions/ousd.js.map +1 -1
  34. package/_cjs/tokens/sets.js +1 -1
  35. package/_cjs/tokens/sets.js.map +1 -1
  36. package/_cjs/utils/errors/getContractError.js +1 -1
  37. package/_cjs/utils/errors/getContractError.js.map +1 -1
  38. package/_cjs/utils/rpc/ipc.js +20 -2
  39. package/_cjs/utils/rpc/ipc.js.map +1 -1
  40. package/_cjs/utils/rpc/socket.js +3 -2
  41. package/_cjs/utils/rpc/socket.js.map +1 -1
  42. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +8 -2
  43. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  44. package/_esm/actions/public/waitForTransactionReceipt.js +2 -1
  45. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  46. package/_esm/actions/wallet/sendCalls.js +2 -0
  47. package/_esm/actions/wallet/sendCalls.js.map +1 -1
  48. package/_esm/chains/definitions/crymad.js +29 -0
  49. package/_esm/chains/definitions/crymad.js.map +1 -0
  50. package/_esm/chains/definitions/crymadL2.js +30 -0
  51. package/_esm/chains/definitions/crymadL2.js.map +1 -0
  52. package/_esm/chains/definitions/jasmyChain.js +9 -2
  53. package/_esm/chains/definitions/jasmyChain.js.map +1 -1
  54. package/_esm/chains/definitions/jasmyChainTestnet.js +9 -2
  55. package/_esm/chains/definitions/jasmyChainTestnet.js.map +1 -1
  56. package/_esm/chains/index.js +2 -0
  57. package/_esm/chains/index.js.map +1 -1
  58. package/_esm/errors/version.js +1 -1
  59. package/_esm/tempo/Abis.js +178 -37
  60. package/_esm/tempo/Abis.js.map +1 -1
  61. package/_esm/tempo/ExecutionError.js +2 -0
  62. package/_esm/tempo/ExecutionError.js.map +1 -1
  63. package/_esm/tempo/Relay.js +1 -1
  64. package/_esm/tempo/Selectors.js +16 -5
  65. package/_esm/tempo/Selectors.js.map +1 -1
  66. package/_esm/tempo/Transaction.js.map +1 -1
  67. package/_esm/tempo/actions/token.js +13 -6
  68. package/_esm/tempo/actions/token.js.map +1 -1
  69. package/_esm/tempo/chainConfig.js +1 -1
  70. package/_esm/tempo/chainConfig.js.map +1 -1
  71. package/_esm/tempo/internal/relay/feeToken.js +1 -1
  72. package/_esm/tempo/internal/relay/feeToken.js.map +1 -1
  73. package/_esm/tempo/internal/relay/preflight.js +3 -3
  74. package/_esm/tempo/internal/relay/preflight.js.map +1 -1
  75. package/_esm/tokens/definitions/ousd.js +1 -0
  76. package/_esm/tokens/definitions/ousd.js.map +1 -1
  77. package/_esm/tokens/sets.js +1 -1
  78. package/_esm/tokens/sets.js.map +1 -1
  79. package/_esm/utils/errors/getContractError.js +1 -1
  80. package/_esm/utils/errors/getContractError.js.map +1 -1
  81. package/_esm/utils/rpc/ipc.js +20 -2
  82. package/_esm/utils/rpc/ipc.js.map +1 -1
  83. package/_esm/utils/rpc/socket.js +3 -2
  84. package/_esm/utils/rpc/socket.js.map +1 -1
  85. package/_types/account-abstraction/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
  86. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  87. package/_types/actions/wallet/sendCalls.d.ts.map +1 -1
  88. package/_types/chains/definitions/crymad.d.ts +49 -0
  89. package/_types/chains/definitions/crymad.d.ts.map +1 -0
  90. package/_types/chains/definitions/crymadL2.d.ts +49 -0
  91. package/_types/chains/definitions/crymadL2.d.ts.map +1 -0
  92. package/_types/chains/definitions/jasmyChain.d.ts +8 -13
  93. package/_types/chains/definitions/jasmyChain.d.ts.map +1 -1
  94. package/_types/chains/definitions/jasmyChainTestnet.d.ts +8 -13
  95. package/_types/chains/definitions/jasmyChainTestnet.d.ts.map +1 -1
  96. package/_types/chains/index.d.ts +2 -0
  97. package/_types/chains/index.d.ts.map +1 -1
  98. package/_types/errors/version.d.ts +1 -1
  99. package/_types/tempo/Abis.d.ts +778 -174
  100. package/_types/tempo/Abis.d.ts.map +1 -1
  101. package/_types/tempo/ExecutionError.d.ts.map +1 -1
  102. package/_types/tempo/Relay.d.ts +1 -1
  103. package/_types/tempo/Selectors.d.ts +16 -5
  104. package/_types/tempo/Selectors.d.ts.map +1 -1
  105. package/_types/tempo/Transaction.d.ts +1 -0
  106. package/_types/tempo/Transaction.d.ts.map +1 -1
  107. package/_types/tempo/actions/reward.d.ts +72 -0
  108. package/_types/tempo/actions/reward.d.ts.map +1 -1
  109. package/_types/tempo/actions/token.d.ts +576 -5
  110. package/_types/tempo/actions/token.d.ts.map +1 -1
  111. package/_types/tempo/internal/relay/feeToken.d.ts +1 -1
  112. package/_types/tempo/internal/relay/feeToken.d.ts.map +1 -1
  113. package/_types/tempo/internal/relay/preflight.d.ts +1 -1
  114. package/_types/tempo/internal/relay/preflight.d.ts.map +1 -1
  115. package/_types/tokens/definitions/ousd.d.ts +1 -0
  116. package/_types/tokens/definitions/ousd.d.ts.map +1 -1
  117. package/_types/tokens/sets.d.ts +13 -0
  118. package/_types/tokens/sets.d.ts.map +1 -1
  119. package/_types/utils/errors/getContractError.d.ts.map +1 -1
  120. package/_types/utils/rpc/ipc.d.ts.map +1 -1
  121. package/_types/utils/rpc/socket.d.ts.map +1 -1
  122. package/account-abstraction/actions/bundler/waitForUserOperationReceipt.ts +58 -48
  123. package/actions/public/waitForTransactionReceipt.ts +2 -1
  124. package/actions/wallet/sendCalls.ts +2 -0
  125. package/chains/definitions/crymad.ts +29 -0
  126. package/chains/definitions/crymadL2.ts +30 -0
  127. package/chains/definitions/jasmyChain.ts +9 -2
  128. package/chains/definitions/jasmyChainTestnet.ts +9 -2
  129. package/chains/index.ts +2 -0
  130. package/errors/version.ts +1 -1
  131. package/package.json +1 -1
  132. package/tempo/Abis.ts +179 -37
  133. package/tempo/ExecutionError.ts +3 -0
  134. package/tempo/Relay.ts +1 -1
  135. package/tempo/Selectors.ts +25 -11
  136. package/tempo/Transaction.ts +1 -0
  137. package/tempo/actions/token.ts +29 -9
  138. package/tempo/chainConfig.ts +1 -1
  139. package/tempo/internal/relay/feeToken.ts +1 -1
  140. package/tempo/internal/relay/preflight.ts +3 -3
  141. package/tokens/definitions/ousd.ts +1 -0
  142. package/tokens/sets.ts +1 -1
  143. package/utils/errors/getContractError.ts +3 -1
  144. package/utils/rpc/ipc.ts +17 -2
  145. package/utils/rpc/socket.ts +3 -2
@@ -1,5 +1,5 @@
1
1
  // Generated with `pnpm gen:tempo-abis`. Do not modify manually.
2
- // Source: tempoxyz/tempo@a2624758a6709731d98b9bd6fc8e5afca398fea9
2
+ // Source: tempoxyz/tempo@6ef1f812c9ddcbe90a88ada73944012520942d26
3
3
  export const accountKeychain = [
4
4
  {
5
5
  name: 'authorizeKey',
@@ -1928,6 +1928,16 @@ export const tip20 = [
1928
1928
  ],
1929
1929
  outputs: [],
1930
1930
  },
1931
+ {
1932
+ name: 'burnAt',
1933
+ type: 'function',
1934
+ stateMutability: 'nonpayable',
1935
+ inputs: [
1936
+ { type: 'address', name: 'from' },
1937
+ { type: 'uint256', name: 'amount' },
1938
+ ],
1939
+ outputs: [],
1940
+ },
1931
1941
  {
1932
1942
  name: 'mintWithMemo',
1933
1943
  type: 'function',
@@ -2042,6 +2052,13 @@ export const tip20 = [
2042
2052
  inputs: [],
2043
2053
  outputs: [{ type: 'bytes32' }],
2044
2054
  },
2055
+ {
2056
+ name: 'BURN_AT_ROLE',
2057
+ type: 'function',
2058
+ stateMutability: 'view',
2059
+ inputs: [],
2060
+ outputs: [{ type: 'bytes32' }],
2061
+ },
2045
2062
  {
2046
2063
  name: 'permit',
2047
2064
  type: 'function',
@@ -2171,6 +2188,15 @@ export const tip20 = [
2171
2188
  { type: 'uint256', name: 'amount' },
2172
2189
  ],
2173
2190
  },
2191
+ {
2192
+ name: 'BurnAt',
2193
+ type: 'event',
2194
+ inputs: [
2195
+ { type: 'address', name: 'burner', indexed: true },
2196
+ { type: 'address', name: 'from', indexed: true },
2197
+ { type: 'uint256', name: 'amount', indexed: true },
2198
+ ],
2199
+ },
2174
2200
  {
2175
2201
  name: 'TransferWithMemo',
2176
2202
  type: 'event',
@@ -3676,6 +3702,20 @@ export const zonePortal = [
3676
3702
  inputs: [],
3677
3703
  outputs: [{ type: 'uint64' }],
3678
3704
  },
3705
+ {
3706
+ name: 'MAX_UNPROCESSED_DEPOSITS',
3707
+ type: 'function',
3708
+ stateMutability: 'view',
3709
+ inputs: [],
3710
+ outputs: [{ type: 'uint64' }],
3711
+ },
3712
+ {
3713
+ name: 'MAX_UNPROCESSED_TOKEN_ENABLEMENTS',
3714
+ type: 'function',
3715
+ stateMutability: 'view',
3716
+ inputs: [],
3717
+ outputs: [{ type: 'uint64' }],
3718
+ },
3679
3719
  {
3680
3720
  name: 'MAX_WITHDRAWAL_GAS_LIMIT',
3681
3721
  type: 'function',
@@ -3782,6 +3822,47 @@ export const zonePortal = [
3782
3822
  ],
3783
3823
  outputs: [],
3784
3824
  },
3825
+ {
3826
+ name: 'submitBatch',
3827
+ type: 'function',
3828
+ stateMutability: 'nonpayable',
3829
+ inputs: [
3830
+ { type: 'uint64', name: 'tempoBlockNumber' },
3831
+ { type: 'uint64', name: 'recentTempoBlockNumber' },
3832
+ {
3833
+ type: 'tuple',
3834
+ name: 'blockTransition',
3835
+ components: [
3836
+ { type: 'bytes32', name: 'prevBlockHash' },
3837
+ { type: 'bytes32', name: 'nextBlockHash' },
3838
+ ],
3839
+ },
3840
+ {
3841
+ type: 'tuple',
3842
+ name: 'depositQueueTransition',
3843
+ components: [
3844
+ { type: 'bytes32', name: 'prevProcessedHash' },
3845
+ { type: 'bytes32', name: 'nextProcessedHash' },
3846
+ { type: 'uint64', name: 'prevDepositNumber' },
3847
+ { type: 'uint64', name: 'nextDepositNumber' },
3848
+ ],
3849
+ },
3850
+ {
3851
+ type: 'tuple',
3852
+ name: 'tokenEnablementTransition',
3853
+ components: [
3854
+ { type: 'uint64', name: 'prevProcessedTokenCount' },
3855
+ { type: 'uint64', name: 'nextProcessedTokenCount' },
3856
+ ],
3857
+ },
3858
+ { type: 'bytes32', name: 'withdrawalQueueHash' },
3859
+ { type: 'bytes', name: 'verifierConfig' },
3860
+ { type: 'bytes', name: 'proof' },
3861
+ { type: 'uint256', name: 'nextZoneHeight' },
3862
+ { type: 'bytes[]', name: 'signatures' },
3863
+ ],
3864
+ outputs: [],
3865
+ },
3785
3866
  {
3786
3867
  name: 'enableToken',
3787
3868
  type: 'function',
@@ -3925,6 +4006,20 @@ export const zonePortal = [
3925
4006
  inputs: [],
3926
4007
  outputs: [{ type: 'uint256' }],
3927
4008
  },
4009
+ {
4010
+ name: 'lastProcessedEnabledTokenCount',
4011
+ type: 'function',
4012
+ stateMutability: 'view',
4013
+ inputs: [],
4014
+ outputs: [{ type: 'uint64' }],
4015
+ },
4016
+ {
4017
+ name: 'tokenEnablementCursorInitialized',
4018
+ type: 'function',
4019
+ stateMutability: 'view',
4020
+ inputs: [],
4021
+ outputs: [{ type: 'bool' }],
4022
+ },
3928
4023
  {
3929
4024
  name: 'enabledTokenAt',
3930
4025
  type: 'function',
@@ -4115,6 +4210,19 @@ export const zonePortal = [
4115
4210
  { type: 'uint64', name: 'lastProcessedDepositNumber' },
4116
4211
  ],
4117
4212
  },
4213
+ {
4214
+ name: 'BatchSubmitted',
4215
+ type: 'event',
4216
+ inputs: [
4217
+ { type: 'uint64', name: 'withdrawalBatchIndex', indexed: true },
4218
+ { type: 'uint256', name: 'withdrawalQueueIndex', indexed: true },
4219
+ { type: 'bytes32', name: 'nextProcessedDepositQueueHash' },
4220
+ { type: 'bytes32', name: 'nextBlockHash' },
4221
+ { type: 'bytes32', name: 'withdrawalQueueHash' },
4222
+ { type: 'uint64', name: 'lastProcessedDepositNumber' },
4223
+ { type: 'uint64', name: 'lastProcessedEnabledTokenCount' },
4224
+ ],
4225
+ },
4118
4226
  {
4119
4227
  name: 'WithdrawalProcessed',
4120
4228
  type: 'event',
@@ -4262,7 +4370,9 @@ export const zonePortal = [
4262
4370
  { name: 'DepositsNotActive', type: 'error', inputs: [] },
4263
4371
  { name: 'TokenAlreadyEnabled', type: 'error', inputs: [] },
4264
4372
  { name: 'TokenTransferPolicyNotSet', type: 'error', inputs: [] },
4373
+ { name: 'TokenEnablementCursorNotInitialized', type: 'error', inputs: [] },
4265
4374
  { name: 'InvalidDepositTransition', type: 'error', inputs: [] },
4375
+ { name: 'InvalidTokenEnablementTransition', type: 'error', inputs: [] },
4266
4376
  { name: 'InvalidSequencerSet', type: 'error', inputs: [] },
4267
4377
  { name: 'SequencerConfigurationUnchanged', type: 'error', inputs: [] },
4268
4378
  { name: 'InvalidQuorumCertificate', type: 'error', inputs: [] },
@@ -4349,40 +4459,6 @@ export const zoneVerifier = [
4349
4459
  ],
4350
4460
  outputs: [{ type: 'bool' }],
4351
4461
  },
4352
- {
4353
- name: 'verify',
4354
- type: 'function',
4355
- stateMutability: 'view',
4356
- inputs: [
4357
- { type: 'uint32', name: 'zoneId' },
4358
- { type: 'uint64', name: 'tempoBlockNumber' },
4359
- { type: 'uint64', name: 'anchorBlockNumber' },
4360
- { type: 'bytes32', name: 'anchorBlockHash' },
4361
- { type: 'uint64', name: 'expectedWithdrawalBatchIndex' },
4362
- {
4363
- type: 'tuple',
4364
- name: 'blockTransition',
4365
- components: [
4366
- { type: 'bytes32', name: 'prevBlockHash' },
4367
- { type: 'bytes32', name: 'nextBlockHash' },
4368
- ],
4369
- },
4370
- {
4371
- type: 'tuple',
4372
- name: 'depositQueueTransition',
4373
- components: [
4374
- { type: 'bytes32', name: 'prevProcessedHash' },
4375
- { type: 'bytes32', name: 'nextProcessedHash' },
4376
- { type: 'uint64', name: 'prevDepositNumber' },
4377
- { type: 'uint64', name: 'nextDepositNumber' },
4378
- ],
4379
- },
4380
- { type: 'bytes32', name: 'withdrawalQueueHash' },
4381
- { type: 'bytes', name: 'verifierConfig' },
4382
- { type: 'bytes', name: 'proof' },
4383
- ],
4384
- outputs: [{ type: 'bool' }],
4385
- },
4386
4462
  ];
4387
4463
  // Source: tempoxyz/earn@d6373e4939ec2bbf5dcccffd5f2519ff4a62d6b1
4388
4464
  export const earnContributionController = [
@@ -8285,7 +8361,68 @@ export const earnRouterCallbackData = [
8285
8361
  type: 'tuple',
8286
8362
  },
8287
8363
  ];
8288
- // Source: tempoxyz/zones@421d77a9e5a12cd3fbb2ed10da1010f31b75f012
8364
+ // Source: tempoxyz/zones@22318d90a098149fecd0c56ae4e20e55fea24bdd
8365
+ export const zonePortalPreT13Retired = [
8366
+ {
8367
+ name: 'MAX_DEPOSITS_PER_TEMPO_BLOCK',
8368
+ type: 'function',
8369
+ stateMutability: 'view',
8370
+ inputs: [],
8371
+ outputs: [{ type: 'uint64' }],
8372
+ },
8373
+ {
8374
+ name: 'MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK',
8375
+ type: 'function',
8376
+ stateMutability: 'view',
8377
+ inputs: [],
8378
+ outputs: [{ type: 'uint64' }],
8379
+ },
8380
+ {
8381
+ name: 'submitBatch',
8382
+ type: 'function',
8383
+ stateMutability: 'nonpayable',
8384
+ inputs: [
8385
+ { type: 'uint64', name: 'tempoBlockNumber' },
8386
+ { type: 'uint64', name: 'recentTempoBlockNumber' },
8387
+ {
8388
+ type: 'tuple',
8389
+ name: 'blockTransition',
8390
+ components: [
8391
+ { type: 'bytes32', name: 'prevBlockHash' },
8392
+ { type: 'bytes32', name: 'nextBlockHash' },
8393
+ ],
8394
+ },
8395
+ {
8396
+ type: 'tuple',
8397
+ name: 'depositQueueTransition',
8398
+ components: [
8399
+ { type: 'bytes32', name: 'prevProcessedHash' },
8400
+ { type: 'bytes32', name: 'nextProcessedHash' },
8401
+ { type: 'uint64', name: 'prevDepositNumber' },
8402
+ { type: 'uint64', name: 'nextDepositNumber' },
8403
+ ],
8404
+ },
8405
+ { type: 'bytes32', name: 'withdrawalQueueHash' },
8406
+ { type: 'bytes', name: 'verifierConfig' },
8407
+ { type: 'bytes', name: 'proof' },
8408
+ { type: 'uint256', name: 'nextZoneHeight' },
8409
+ { type: 'bytes[]', name: 'signatures' },
8410
+ ],
8411
+ outputs: [],
8412
+ },
8413
+ {
8414
+ name: 'BatchSubmitted',
8415
+ type: 'event',
8416
+ inputs: [
8417
+ { type: 'uint64', name: 'withdrawalBatchIndex', indexed: true },
8418
+ { type: 'uint256', name: 'withdrawalQueueIndex', indexed: true },
8419
+ { type: 'bytes32', name: 'nextProcessedDepositQueueHash' },
8420
+ { type: 'bytes32', name: 'nextBlockHash' },
8421
+ { type: 'bytes32', name: 'withdrawalQueueHash' },
8422
+ { type: 'uint64', name: 'lastProcessedDepositNumber' },
8423
+ ],
8424
+ },
8425
+ ];
8289
8426
  export const zoneOutbox = [
8290
8427
  {
8291
8428
  name: 'tempoGasRate',
@@ -9500,7 +9637,11 @@ export const earn = [
9500
9637
  ...erc4626EngineFactory,
9501
9638
  ...vedaEngine,
9502
9639
  ];
9503
- export const zone = [...zoneMessenger, ...zoneOutbox];
9640
+ export const zone = [
9641
+ ...zoneMessenger,
9642
+ ...zoneOutbox,
9643
+ ...zonePortalPreT13Retired,
9644
+ ];
9504
9645
  export const propAmm = [...directPropAmm];
9505
9646
  export const all = [...core, ...earn, ...zone, ...propAmm];
9506
9647
  //# sourceMappingURL=Abis.js.map