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.
- package/CHANGELOG.md +42 -0
- package/_cjs/clients/createClient.js +49 -4
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/transports/fallback.js +2 -2
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_cjs/experimental/erc7821/actions/supportsExecutionMode.js +1 -1
- package/_cjs/experimental/erc7821/actions/supportsExecutionMode.js.map +1 -1
- package/_cjs/op-stack/actions/getPortalVersion.js +4 -1
- package/_cjs/op-stack/actions/getPortalVersion.js.map +1 -1
- package/_cjs/tempo/Abis.js +84 -15
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Account.js +13 -11
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/Addresses.js +3 -3
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +4 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/ExecutionError.js +25 -2
- package/_cjs/tempo/ExecutionError.js.map +1 -1
- package/_cjs/tempo/Hardfork.js +12 -1
- package/_cjs/tempo/Hardfork.js.map +1 -1
- package/_cjs/tempo/Selectors.js +4 -2
- package/_cjs/tempo/Selectors.js.map +1 -1
- package/_cjs/tempo/accounts/Config.js +4 -2
- package/_cjs/tempo/accounts/Config.js.map +1 -1
- package/_cjs/tempo/accounts/Operation.js +2 -2
- package/_cjs/tempo/accounts/Operation.js.map +1 -1
- package/_cjs/tempo/actions/accessKey.js +1 -0
- package/_cjs/tempo/actions/accessKey.js.map +1 -1
- package/_cjs/tempo/actions/accounts.js +122 -7
- package/_cjs/tempo/actions/accounts.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +29 -2
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/internal/relay/accounts.js +46 -5
- package/_cjs/tempo/internal/relay/accounts.js.map +1 -1
- package/_cjs/tempo/internal/relay/feePayer.js +4 -4
- package/_cjs/tempo/internal/relay/feePayer.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js +5 -1
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_esm/clients/createClient.js +57 -4
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/transports/fallback.js +2 -2
- package/_esm/clients/transports/fallback.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_esm/experimental/erc7821/actions/supportsExecutionMode.js +2 -1
- package/_esm/experimental/erc7821/actions/supportsExecutionMode.js.map +1 -1
- package/_esm/op-stack/actions/getPortalVersion.js +4 -1
- package/_esm/op-stack/actions/getPortalVersion.js.map +1 -1
- package/_esm/tempo/Abis.js +84 -15
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +18 -12
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/Addresses.js +3 -3
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +4 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/ExecutionError.js +25 -2
- package/_esm/tempo/ExecutionError.js.map +1 -1
- package/_esm/tempo/Hardfork.js +17 -2
- package/_esm/tempo/Hardfork.js.map +1 -1
- package/_esm/tempo/Selectors.js +3 -1
- package/_esm/tempo/Selectors.js.map +1 -1
- package/_esm/tempo/accounts/Config.js +5 -3
- package/_esm/tempo/accounts/Config.js.map +1 -1
- package/_esm/tempo/accounts/Operation.js +2 -2
- package/_esm/tempo/accounts/Operation.js.map +1 -1
- package/_esm/tempo/actions/accessKey.js +1 -0
- package/_esm/tempo/actions/accessKey.js.map +1 -1
- package/_esm/tempo/actions/accounts.js +279 -8
- package/_esm/tempo/actions/accounts.js.map +1 -1
- package/_esm/tempo/chainConfig.js +33 -3
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/internal/relay/accounts.js +50 -5
- package/_esm/tempo/internal/relay/accounts.js.map +1 -1
- package/_esm/tempo/internal/relay/feePayer.js +4 -4
- package/_esm/tempo/internal/relay/feePayer.js.map +1 -1
- package/_esm/utils/promise/withRetry.js +6 -1
- package/_esm/utils/promise/withRetry.js.map +1 -1
- package/_types/clients/createClient.d.ts +30 -0
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/transports/fallback.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/_types/experimental/erc7821/actions/supportsExecutionMode.d.ts.map +1 -1
- package/_types/op-stack/actions/getPortalVersion.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +621 -307
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +24 -4
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/Addresses.d.ts +3 -3
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +104 -0
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/ExecutionError.d.ts.map +1 -1
- package/_types/tempo/Hardfork.d.ts +6 -2
- package/_types/tempo/Hardfork.d.ts.map +1 -1
- package/_types/tempo/Selectors.d.ts +3 -1
- package/_types/tempo/Selectors.d.ts.map +1 -1
- package/_types/tempo/Transaction.d.ts +2 -2
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/actions/accessKey.d.ts +3 -2
- package/_types/tempo/actions/accessKey.d.ts.map +1 -1
- package/_types/tempo/actions/accounts.d.ts +594 -7
- package/_types/tempo/actions/accounts.d.ts.map +1 -1
- package/_types/tempo/actions/channel.d.ts +42 -0
- package/_types/tempo/actions/channel.d.ts.map +1 -1
- package/_types/tempo/actions/reward.d.ts +14 -0
- package/_types/tempo/actions/reward.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +105 -0
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/internal/relay/accounts.d.ts.map +1 -1
- package/_types/utils/promise/withRetry.d.ts.map +1 -1
- package/clients/createClient.ts +103 -5
- package/clients/transports/fallback.ts +8 -5
- package/errors/version.ts +1 -1
- package/experimental/erc7821/actions/supportsExecutionMode.ts +2 -1
- package/op-stack/actions/getPortalVersion.ts +4 -1
- package/package.json +2 -2
- package/tempo/Abis.ts +84 -15
- package/tempo/Account.ts +52 -16
- package/tempo/Addresses.ts +4 -4
- package/tempo/Decorator.ts +116 -0
- package/tempo/ExecutionError.ts +28 -2
- package/tempo/Hardfork.ts +16 -2
- package/tempo/Selectors.ts +4 -2
- package/tempo/Transaction.ts +2 -2
- package/tempo/accounts/Config.ts +5 -3
- package/tempo/accounts/Operation.ts +2 -2
- package/tempo/actions/accessKey.ts +3 -2
- package/tempo/actions/accounts.ts +394 -10
- package/tempo/chainConfig.ts +41 -3
- package/tempo/internal/relay/accounts.ts +62 -5
- package/tempo/internal/relay/feePayer.ts +4 -4
- package/utils/promise/withRetry.ts +7 -1
package/_esm/tempo/Abis.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated with `pnpm gen:tempo-abis`. Do not modify manually.
|
|
2
|
-
// Source: tempoxyz/tempo@
|
|
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
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: [] },
|