viem 2.57.8 → 2.57.10

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 (138) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/_cjs/clients/createClient.js +49 -4
  3. package/_cjs/clients/createClient.js.map +1 -1
  4. package/_cjs/clients/transports/fallback.js +2 -2
  5. package/_cjs/clients/transports/fallback.js.map +1 -1
  6. package/_cjs/errors/version.js +1 -1
  7. package/_cjs/errors/version.js.map +1 -1
  8. package/_cjs/experimental/erc7821/actions/supportsExecutionMode.js +1 -1
  9. package/_cjs/experimental/erc7821/actions/supportsExecutionMode.js.map +1 -1
  10. package/_cjs/op-stack/actions/getPortalVersion.js +4 -1
  11. package/_cjs/op-stack/actions/getPortalVersion.js.map +1 -1
  12. package/_cjs/tempo/Abis.js +84 -15
  13. package/_cjs/tempo/Abis.js.map +1 -1
  14. package/_cjs/tempo/Account.js +13 -11
  15. package/_cjs/tempo/Account.js.map +1 -1
  16. package/_cjs/tempo/Addresses.js +3 -3
  17. package/_cjs/tempo/Addresses.js.map +1 -1
  18. package/_cjs/tempo/Decorator.js +4 -0
  19. package/_cjs/tempo/Decorator.js.map +1 -1
  20. package/_cjs/tempo/ExecutionError.js +25 -2
  21. package/_cjs/tempo/ExecutionError.js.map +1 -1
  22. package/_cjs/tempo/Hardfork.js +12 -1
  23. package/_cjs/tempo/Hardfork.js.map +1 -1
  24. package/_cjs/tempo/Selectors.js +4 -2
  25. package/_cjs/tempo/Selectors.js.map +1 -1
  26. package/_cjs/tempo/accounts/Config.js +4 -2
  27. package/_cjs/tempo/accounts/Config.js.map +1 -1
  28. package/_cjs/tempo/accounts/Operation.js +2 -2
  29. package/_cjs/tempo/accounts/Operation.js.map +1 -1
  30. package/_cjs/tempo/actions/accessKey.js +1 -0
  31. package/_cjs/tempo/actions/accessKey.js.map +1 -1
  32. package/_cjs/tempo/actions/accounts.js +122 -7
  33. package/_cjs/tempo/actions/accounts.js.map +1 -1
  34. package/_cjs/tempo/chainConfig.js +29 -2
  35. package/_cjs/tempo/chainConfig.js.map +1 -1
  36. package/_cjs/tempo/internal/relay/accounts.js +46 -5
  37. package/_cjs/tempo/internal/relay/accounts.js.map +1 -1
  38. package/_cjs/tempo/internal/relay/feePayer.js +4 -4
  39. package/_cjs/tempo/internal/relay/feePayer.js.map +1 -1
  40. package/_cjs/utils/promise/withRetry.js +5 -1
  41. package/_cjs/utils/promise/withRetry.js.map +1 -1
  42. package/_esm/clients/createClient.js +57 -4
  43. package/_esm/clients/createClient.js.map +1 -1
  44. package/_esm/clients/transports/fallback.js +2 -2
  45. package/_esm/clients/transports/fallback.js.map +1 -1
  46. package/_esm/errors/version.js +1 -1
  47. package/_esm/errors/version.js.map +1 -1
  48. package/_esm/experimental/erc7821/actions/supportsExecutionMode.js +2 -1
  49. package/_esm/experimental/erc7821/actions/supportsExecutionMode.js.map +1 -1
  50. package/_esm/op-stack/actions/getPortalVersion.js +4 -1
  51. package/_esm/op-stack/actions/getPortalVersion.js.map +1 -1
  52. package/_esm/tempo/Abis.js +84 -15
  53. package/_esm/tempo/Abis.js.map +1 -1
  54. package/_esm/tempo/Account.js +18 -12
  55. package/_esm/tempo/Account.js.map +1 -1
  56. package/_esm/tempo/Addresses.js +3 -3
  57. package/_esm/tempo/Addresses.js.map +1 -1
  58. package/_esm/tempo/Decorator.js +4 -0
  59. package/_esm/tempo/Decorator.js.map +1 -1
  60. package/_esm/tempo/ExecutionError.js +25 -2
  61. package/_esm/tempo/ExecutionError.js.map +1 -1
  62. package/_esm/tempo/Hardfork.js +17 -2
  63. package/_esm/tempo/Hardfork.js.map +1 -1
  64. package/_esm/tempo/Selectors.js +3 -1
  65. package/_esm/tempo/Selectors.js.map +1 -1
  66. package/_esm/tempo/accounts/Config.js +5 -3
  67. package/_esm/tempo/accounts/Config.js.map +1 -1
  68. package/_esm/tempo/accounts/Operation.js +2 -2
  69. package/_esm/tempo/accounts/Operation.js.map +1 -1
  70. package/_esm/tempo/actions/accessKey.js +1 -0
  71. package/_esm/tempo/actions/accessKey.js.map +1 -1
  72. package/_esm/tempo/actions/accounts.js +279 -8
  73. package/_esm/tempo/actions/accounts.js.map +1 -1
  74. package/_esm/tempo/chainConfig.js +33 -3
  75. package/_esm/tempo/chainConfig.js.map +1 -1
  76. package/_esm/tempo/internal/relay/accounts.js +50 -5
  77. package/_esm/tempo/internal/relay/accounts.js.map +1 -1
  78. package/_esm/tempo/internal/relay/feePayer.js +4 -4
  79. package/_esm/tempo/internal/relay/feePayer.js.map +1 -1
  80. package/_esm/utils/promise/withRetry.js +6 -1
  81. package/_esm/utils/promise/withRetry.js.map +1 -1
  82. package/_types/clients/createClient.d.ts +30 -0
  83. package/_types/clients/createClient.d.ts.map +1 -1
  84. package/_types/clients/transports/fallback.d.ts.map +1 -1
  85. package/_types/errors/version.d.ts +1 -1
  86. package/_types/errors/version.d.ts.map +1 -1
  87. package/_types/experimental/erc7821/actions/supportsExecutionMode.d.ts.map +1 -1
  88. package/_types/op-stack/actions/getPortalVersion.d.ts.map +1 -1
  89. package/_types/tempo/Abis.d.ts +621 -307
  90. package/_types/tempo/Abis.d.ts.map +1 -1
  91. package/_types/tempo/Account.d.ts +24 -4
  92. package/_types/tempo/Account.d.ts.map +1 -1
  93. package/_types/tempo/Addresses.d.ts +3 -3
  94. package/_types/tempo/Addresses.d.ts.map +1 -1
  95. package/_types/tempo/Decorator.d.ts +104 -0
  96. package/_types/tempo/Decorator.d.ts.map +1 -1
  97. package/_types/tempo/ExecutionError.d.ts.map +1 -1
  98. package/_types/tempo/Hardfork.d.ts +6 -2
  99. package/_types/tempo/Hardfork.d.ts.map +1 -1
  100. package/_types/tempo/Selectors.d.ts +3 -1
  101. package/_types/tempo/Selectors.d.ts.map +1 -1
  102. package/_types/tempo/Transaction.d.ts +2 -2
  103. package/_types/tempo/Transaction.d.ts.map +1 -1
  104. package/_types/tempo/actions/accessKey.d.ts +3 -2
  105. package/_types/tempo/actions/accessKey.d.ts.map +1 -1
  106. package/_types/tempo/actions/accounts.d.ts +594 -7
  107. package/_types/tempo/actions/accounts.d.ts.map +1 -1
  108. package/_types/tempo/actions/channel.d.ts +42 -0
  109. package/_types/tempo/actions/channel.d.ts.map +1 -1
  110. package/_types/tempo/actions/reward.d.ts +14 -0
  111. package/_types/tempo/actions/reward.d.ts.map +1 -1
  112. package/_types/tempo/actions/token.d.ts +105 -0
  113. package/_types/tempo/actions/token.d.ts.map +1 -1
  114. package/_types/tempo/chainConfig.d.ts.map +1 -1
  115. package/_types/tempo/internal/relay/accounts.d.ts.map +1 -1
  116. package/_types/utils/promise/withRetry.d.ts.map +1 -1
  117. package/clients/createClient.ts +103 -5
  118. package/clients/transports/fallback.ts +8 -5
  119. package/errors/version.ts +1 -1
  120. package/experimental/erc7821/actions/supportsExecutionMode.ts +2 -1
  121. package/op-stack/actions/getPortalVersion.ts +4 -1
  122. package/package.json +2 -2
  123. package/tempo/Abis.ts +84 -15
  124. package/tempo/Account.ts +52 -16
  125. package/tempo/Addresses.ts +4 -4
  126. package/tempo/Decorator.ts +116 -0
  127. package/tempo/ExecutionError.ts +28 -2
  128. package/tempo/Hardfork.ts +16 -2
  129. package/tempo/Selectors.ts +4 -2
  130. package/tempo/Transaction.ts +2 -2
  131. package/tempo/accounts/Config.ts +5 -3
  132. package/tempo/accounts/Operation.ts +2 -2
  133. package/tempo/actions/accessKey.ts +3 -2
  134. package/tempo/actions/accounts.ts +394 -10
  135. package/tempo/chainConfig.ts +41 -3
  136. package/tempo/internal/relay/accounts.ts +62 -5
  137. package/tempo/internal/relay/feePayer.ts +4 -4
  138. package/utils/promise/withRetry.ts +7 -1
@@ -1,5 +1,5 @@
1
1
  // Generated with `pnpm gen:tempo-abis`. Do not modify manually.
2
- // Source: tempoxyz/tempo@6ef1f812c9ddcbe90a88ada73944012520942d26
2
+ // Source: tempoxyz/tempo@e539a1dac2921670585a08215e516d8b98aa527a
3
3
  export const accountKeychain = [
4
4
  {
5
5
  name: 'authorizeKey',
@@ -441,7 +441,7 @@ export const addressRegistry = [
441
441
  { name: 'ProofOfWorkFailed', type: 'error', inputs: [] },
442
442
  { name: 'VirtualAddressUnregistered', type: 'error', inputs: [] },
443
443
  ];
444
- export const nativeMultisig = [
444
+ export const configurableAccount = [
445
445
  {
446
446
  name: 'deriveAccount',
447
447
  type: 'function',
@@ -502,7 +502,24 @@ export const nativeMultisig = [
502
502
  outputs: [],
503
503
  },
504
504
  {
505
- name: 'MultisigConfigUpdated',
505
+ name: 'upgradeAccount',
506
+ type: 'function',
507
+ stateMutability: 'nonpayable',
508
+ inputs: [
509
+ { type: 'uint8', name: 'threshold' },
510
+ {
511
+ type: 'tuple[]',
512
+ name: 'owners',
513
+ components: [
514
+ { type: 'address', name: 'owner' },
515
+ { type: 'uint8', name: 'weight' },
516
+ ],
517
+ },
518
+ ],
519
+ outputs: [{ type: 'bytes32', name: 'commitment' }],
520
+ },
521
+ {
522
+ name: 'ConfigurableAccountConfigUpdated',
506
523
  type: 'event',
507
524
  inputs: [
508
525
  { type: 'address', name: 'account', indexed: true },
@@ -519,15 +536,37 @@ export const nativeMultisig = [
519
536
  },
520
537
  ],
521
538
  },
539
+ {
540
+ name: 'AccountUpgraded',
541
+ type: 'event',
542
+ inputs: [
543
+ { type: 'address', name: 'account', indexed: true },
544
+ { type: 'bytes32', name: 'commitment', indexed: true },
545
+ { type: 'bytes32', name: 'salt' },
546
+ { type: 'uint8', name: 'threshold' },
547
+ {
548
+ type: 'tuple[]',
549
+ name: 'owners',
550
+ components: [
551
+ { type: 'address', name: 'owner' },
552
+ { type: 'uint8', name: 'weight' },
553
+ ],
554
+ },
555
+ ],
556
+ },
522
557
  { name: 'InvalidAccount', type: 'error', inputs: [] },
523
558
  { name: 'InvalidConfig', type: 'error', inputs: [] },
524
559
  { name: 'InvalidThreshold', type: 'error', inputs: [] },
525
- { name: 'InvalidMultisigOwner', type: 'error', inputs: [] },
560
+ { name: 'InvalidConfigurableAccountOwner', type: 'error', inputs: [] },
526
561
  { name: 'InvalidWeight', type: 'error', inputs: [] },
527
562
  { name: 'TooManyOwners', type: 'error', inputs: [] },
528
563
  { name: 'DuplicateOwner', type: 'error', inputs: [] },
529
564
  { name: 'InvalidOwnerOrder', type: 'error', inputs: [] },
530
- { name: 'UnauthorizedMultisigCaller', type: 'error', inputs: [] },
565
+ { name: 'UnauthorizedConfigurableAccountCaller', type: 'error', inputs: [] },
566
+ { name: 'PrimitiveRootRequired', type: 'error', inputs: [] },
567
+ { name: 'UpgradeMustBeOnlyCall', type: 'error', inputs: [] },
568
+ { name: 'AccountAlreadyConfigurable', type: 'error', inputs: [] },
569
+ { name: 'AccountHasCode', type: 'error', inputs: [] },
531
570
  ];
532
571
  export const currentCommittee = [
533
572
  {
@@ -698,6 +737,17 @@ export const signatureVerifier = [
698
737
  ],
699
738
  outputs: [{ type: 'bool' }],
700
739
  },
740
+ {
741
+ name: 'verifyConfigurableAccount',
742
+ type: 'function',
743
+ stateMutability: 'view',
744
+ inputs: [
745
+ { type: 'address', name: 'account' },
746
+ { type: 'bytes32', name: 'hash' },
747
+ { type: 'bytes', name: 'signature' },
748
+ ],
749
+ outputs: [{ type: 'bool' }],
750
+ },
701
751
  { name: 'InvalidFormat', type: 'error', inputs: [] },
702
752
  { name: 'InvalidSignature', type: 'error', inputs: [] },
703
753
  ];
@@ -1698,6 +1748,11 @@ export const tip20ChannelReserve = [
1698
1748
  { name: 'CaptureAmountInvalid', type: 'error', inputs: [] },
1699
1749
  { name: 'CloseNotReady', type: 'error', inputs: [] },
1700
1750
  { name: 'DepositOverflow', type: 'error', inputs: [] },
1751
+ {
1752
+ name: 'RootKeyRetired',
1753
+ type: 'error',
1754
+ inputs: [{ type: 'address', name: 'account' }],
1755
+ },
1701
1756
  ];
1702
1757
  export const tip20Factory = [
1703
1758
  {
@@ -2300,6 +2355,11 @@ export const tip20 = [
2300
2355
  { name: 'InvalidSignature', type: 'error', inputs: [] },
2301
2356
  { name: 'LogoURITooLong', type: 'error', inputs: [] },
2302
2357
  { name: 'InvalidLogoURI', type: 'error', inputs: [] },
2358
+ {
2359
+ name: 'RootKeyRetired',
2360
+ type: 'error',
2361
+ inputs: [{ type: 'address', name: 'account' }],
2362
+ },
2303
2363
  {
2304
2364
  name: 'hasRole',
2305
2365
  type: 'function',
@@ -9818,10 +9878,10 @@ export const directPropAmm = [
9818
9878
  export const core = [
9819
9879
  ...accountKeychain,
9820
9880
  ...addressRegistry,
9881
+ ...configurableAccount,
9821
9882
  ...currentCommittee,
9822
9883
  ...feeAmm,
9823
9884
  ...feeManager,
9824
- ...nativeMultisig,
9825
9885
  ...nonce,
9826
9886
  ...receivePolicyGuard,
9827
9887
  ...signatureVerifier,
@@ -9898,6 +9958,19 @@ export const coreErrors = [
9898
9958
  { name: 'InvalidMasterAddress', type: 'error', inputs: [] },
9899
9959
  { name: 'ProofOfWorkFailed', type: 'error', inputs: [] },
9900
9960
  { name: 'VirtualAddressUnregistered', type: 'error', inputs: [] },
9961
+ { name: 'InvalidAccount', type: 'error', inputs: [] },
9962
+ { name: 'InvalidConfig', type: 'error', inputs: [] },
9963
+ { name: 'InvalidThreshold', type: 'error', inputs: [] },
9964
+ { name: 'InvalidConfigurableAccountOwner', type: 'error', inputs: [] },
9965
+ { name: 'InvalidWeight', type: 'error', inputs: [] },
9966
+ { name: 'TooManyOwners', type: 'error', inputs: [] },
9967
+ { name: 'DuplicateOwner', type: 'error', inputs: [] },
9968
+ { name: 'InvalidOwnerOrder', type: 'error', inputs: [] },
9969
+ { name: 'UnauthorizedConfigurableAccountCaller', type: 'error', inputs: [] },
9970
+ { name: 'PrimitiveRootRequired', type: 'error', inputs: [] },
9971
+ { name: 'UpgradeMustBeOnlyCall', type: 'error', inputs: [] },
9972
+ { name: 'AccountAlreadyConfigurable', type: 'error', inputs: [] },
9973
+ { name: 'AccountHasCode', type: 'error', inputs: [] },
9901
9974
  { name: 'Unauthorized', type: 'error', inputs: [] },
9902
9975
  { name: 'IdenticalAddresses', type: 'error', inputs: [] },
9903
9976
  { name: 'InvalidToken', type: 'error', inputs: [] },
@@ -9908,15 +9981,6 @@ export const coreErrors = [
9908
9981
  { name: 'InvalidSwapCalculation', type: 'error', inputs: [] },
9909
9982
  { name: 'InsufficientFeeTokenBalance', type: 'error', inputs: [] },
9910
9983
  { name: 'CannotChangeWithinBlock', type: 'error', inputs: [] },
9911
- { name: 'InvalidAccount', type: 'error', inputs: [] },
9912
- { name: 'InvalidConfig', type: 'error', inputs: [] },
9913
- { name: 'InvalidThreshold', type: 'error', inputs: [] },
9914
- { name: 'InvalidMultisigOwner', type: 'error', inputs: [] },
9915
- { name: 'InvalidWeight', type: 'error', inputs: [] },
9916
- { name: 'TooManyOwners', type: 'error', inputs: [] },
9917
- { name: 'DuplicateOwner', type: 'error', inputs: [] },
9918
- { name: 'InvalidOwnerOrder', type: 'error', inputs: [] },
9919
- { name: 'UnauthorizedMultisigCaller', type: 'error', inputs: [] },
9920
9984
  { name: 'ProtocolNonceNotSupported', type: 'error', inputs: [] },
9921
9985
  { name: 'InvalidNonceKey', type: 'error', inputs: [] },
9922
9986
  { name: 'NonceOverflow', type: 'error', inputs: [] },
@@ -9978,6 +10042,11 @@ export const coreErrors = [
9978
10042
  { name: 'PermitExpired', type: 'error', inputs: [] },
9979
10043
  { name: 'LogoURITooLong', type: 'error', inputs: [] },
9980
10044
  { name: 'InvalidLogoURI', type: 'error', inputs: [] },
10045
+ {
10046
+ name: 'RootKeyRetired',
10047
+ type: 'error',
10048
+ inputs: [{ type: 'address', name: 'account' }],
10049
+ },
9981
10050
  { name: 'ChannelAlreadyExists', type: 'error', inputs: [] },
9982
10051
  { name: 'ChannelNotFound', type: 'error', inputs: [] },
9983
10052
  { name: 'NotPayer', type: 'error', inputs: [] },