viem 2.55.10 → 2.55.13
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 +36 -0
- package/_cjs/actions/wallet/prepareTransactionRequest.js +12 -12
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +24 -12
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +24 -12
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/chains/definitions/story.js +7 -7
- package/_cjs/chains/definitions/story.js.map +1 -1
- package/_cjs/chains/definitions/storyAeneid.js +8 -8
- package/_cjs/chains/definitions/storyAeneid.js.map +1 -1
- package/_cjs/clients/createClient.js +1 -0
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/errors/typedData.js +11 -1
- package/_cjs/errors/typedData.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +5 -4
- package/_cjs/index.js.map +1 -1
- package/_cjs/tempo/Abis.js +642 -253
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Decorator.js +7 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/actions/earn/deployment.js +654 -0
- package/_cjs/tempo/actions/earn/deployment.js.map +1 -0
- package/_cjs/tempo/actions/earn.js +60 -17
- package/_cjs/tempo/actions/earn.js.map +1 -1
- package/_cjs/tempo/actions/token.js +18 -6
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/actions/zone.js +11 -1
- package/_cjs/tempo/actions/zone.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +24 -23
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/internal/WithdrawalSenderTag.js +2 -2
- package/_cjs/tempo/internal/WithdrawalSenderTag.js.map +1 -1
- package/_cjs/tempo/zones/Abis.js +17 -0
- package/_cjs/tempo/zones/Abis.js.map +1 -1
- package/_cjs/tokens/definitions/usdc.js +7 -0
- package/_cjs/tokens/definitions/usdc.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js +2 -2
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/typedData.js +3 -0
- package/_cjs/utils/typedData.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +14 -13
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +24 -12
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +24 -12
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/chains/definitions/story.js +7 -7
- package/_esm/chains/definitions/story.js.map +1 -1
- package/_esm/chains/definitions/storyAeneid.js +8 -8
- package/_esm/chains/definitions/storyAeneid.js.map +1 -1
- package/_esm/clients/createClient.js +4 -3
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/errors/typedData.js +9 -0
- package/_esm/errors/typedData.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/tempo/Abis.js +643 -254
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Decorator.js +7 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/actions/earn/deployment.js +967 -0
- package/_esm/tempo/actions/earn/deployment.js.map +1 -0
- package/_esm/tempo/actions/earn.js +47 -17
- package/_esm/tempo/actions/earn.js.map +1 -1
- package/_esm/tempo/actions/token.js +21 -8
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/actions/zone.js +11 -1
- package/_esm/tempo/actions/zone.js.map +1 -1
- package/_esm/tempo/chainConfig.js +26 -28
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/internal/WithdrawalSenderTag.js +3 -3
- package/_esm/tempo/internal/WithdrawalSenderTag.js.map +1 -1
- package/_esm/tempo/zones/Abis.js +17 -0
- package/_esm/tempo/zones/Abis.js.map +1 -1
- package/_esm/tokens/definitions/usdc.js +7 -0
- package/_esm/tokens/definitions/usdc.js.map +1 -1
- package/_esm/utils/promise/withRetry.js +2 -2
- package/_esm/utils/promise/withRetry.js.map +1 -1
- package/_esm/utils/typedData.js +4 -1
- package/_esm/utils/typedData.js.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/chains/definitions/story.d.ts +7 -7
- package/_types/chains/definitions/storyAeneid.d.ts +8 -8
- package/_types/clients/createClient.d.ts +3 -3
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/errors/typedData.d.ts +8 -0
- package/_types/errors/typedData.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +945 -388
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +18 -0
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/actions/earn/deployment.d.ts +1710 -0
- package/_types/tempo/actions/earn/deployment.d.ts.map +1 -0
- package/_types/tempo/actions/earn.d.ts +1142 -535
- package/_types/tempo/actions/earn.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +1 -1
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/actions/zone.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/internal/WithdrawalSenderTag.d.ts +2 -1
- package/_types/tempo/internal/WithdrawalSenderTag.d.ts.map +1 -1
- package/_types/tempo/zones/Abis.d.ts +48 -0
- package/_types/tempo/zones/Abis.d.ts.map +1 -1
- package/_types/tokens/definitions/usdc.d.ts +7 -0
- package/_types/tokens/definitions/usdc.d.ts.map +1 -1
- package/_types/tokens/sets.d.ts +14 -0
- package/_types/tokens/sets.d.ts.map +1 -1
- package/_types/utils/typedData.d.ts.map +1 -1
- package/actions/wallet/prepareTransactionRequest.ts +18 -17
- package/actions/wallet/sendTransaction.ts +25 -10
- package/actions/wallet/sendTransactionSync.ts +25 -10
- package/chains/definitions/story.ts +7 -7
- package/chains/definitions/storyAeneid.ts +8 -8
- package/clients/createClient.ts +4 -3
- package/errors/typedData.ts +13 -0
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
- package/tempo/Abis.ts +644 -254
- package/tempo/Decorator.ts +41 -0
- package/tempo/actions/earn/deployment.ts +1427 -0
- package/tempo/actions/earn.ts +83 -63
- package/tempo/actions/token.ts +60 -9
- package/tempo/actions/zone.ts +10 -1
- package/tempo/chainConfig.ts +30 -27
- package/tempo/internal/WithdrawalSenderTag.ts +5 -4
- package/tempo/zones/Abis.ts +17 -0
- package/tokens/definitions/usdc.ts +7 -0
- package/utils/promise/withRetry.ts +4 -4
- package/utils/typedData.ts +5 -0
package/tempo/Decorator.ts
CHANGED
|
@@ -1744,6 +1744,37 @@ type DecoratorBase<
|
|
|
1744
1744
|
) => () => void
|
|
1745
1745
|
}
|
|
1746
1746
|
earn: {
|
|
1747
|
+
/** Deploys a deterministic ERC-4626 engine. */
|
|
1748
|
+
createErc4626Engine: (
|
|
1749
|
+
parameters: earnActions.createErc4626Engine.Parameters<chain, account>,
|
|
1750
|
+
) => Promise<earnActions.createErc4626Engine.ReturnValue>
|
|
1751
|
+
/** Deploys a deterministic ERC-4626 engine and waits for confirmation. */
|
|
1752
|
+
createErc4626EngineSync: (
|
|
1753
|
+
parameters: earnActions.createErc4626EngineSync.Parameters<
|
|
1754
|
+
chain,
|
|
1755
|
+
account
|
|
1756
|
+
>,
|
|
1757
|
+
) => Promise<earnActions.createErc4626EngineSync.ReturnValue>
|
|
1758
|
+
/** Deploys the EarnShare, EarnVault, and EarnFees contracts. */
|
|
1759
|
+
createStack: (
|
|
1760
|
+
parameters: earnActions.createStack.Parameters<chain, account>,
|
|
1761
|
+
) => Promise<earnActions.createStack.ReturnValue>
|
|
1762
|
+
/** Deploys an Earn stack and waits for confirmation. */
|
|
1763
|
+
createStackSync: (
|
|
1764
|
+
parameters: earnActions.createStackSync.Parameters<chain, account>,
|
|
1765
|
+
) => Promise<earnActions.createStackSync.ReturnValue>
|
|
1766
|
+
/** Binds an ERC-4626 engine to its EarnVault. */
|
|
1767
|
+
bindErc4626Engine: (
|
|
1768
|
+
parameters: earnActions.bindErc4626Engine.Parameters<chain, account>,
|
|
1769
|
+
) => Promise<earnActions.bindErc4626Engine.ReturnValue>
|
|
1770
|
+
/** Binds an ERC-4626 engine and waits for confirmation. */
|
|
1771
|
+
bindErc4626EngineSync: (
|
|
1772
|
+
parameters: earnActions.bindErc4626EngineSync.Parameters<chain, account>,
|
|
1773
|
+
) => Promise<earnActions.bindErc4626EngineSync.ReturnValue>
|
|
1774
|
+
/** Deploys and binds a complete, resumable ERC-4626 Earn stack. */
|
|
1775
|
+
deployErc4626StackSync: (
|
|
1776
|
+
parameters: earnActions.deployErc4626StackSync.Parameters<chain, account>,
|
|
1777
|
+
) => Promise<earnActions.deployErc4626StackSync.ReturnValue>
|
|
1747
1778
|
/**
|
|
1748
1779
|
* Creates and attaches an admission-only TIP-403 policy to an Earn share
|
|
1749
1780
|
* token. Existing holders remain able to send shares while
|
|
@@ -5686,6 +5717,9 @@ type BoundActionHelpers<action> = (action extends { call: infer helper }
|
|
|
5686
5717
|
(action extends { prepareRecipient: infer helper }
|
|
5687
5718
|
? { prepareRecipient: BoundHelper<helper> }
|
|
5688
5719
|
: {}) &
|
|
5720
|
+
(action extends { predict: infer helper }
|
|
5721
|
+
? { predict: BoundHelper<helper> }
|
|
5722
|
+
: {}) &
|
|
5689
5723
|
(action extends { simulate: infer helper }
|
|
5690
5724
|
? { simulate: BoundHelper<helper> }
|
|
5691
5725
|
: {}) &
|
|
@@ -5888,11 +5922,18 @@ export function decorator() {
|
|
|
5888
5922
|
'watchOrderPlaced',
|
|
5889
5923
|
]),
|
|
5890
5924
|
earn: bindActions(client, earnActions, [
|
|
5925
|
+
'bindErc4626Engine',
|
|
5926
|
+
'bindErc4626EngineSync',
|
|
5891
5927
|
'configureExitSafePolicy',
|
|
5928
|
+
'createErc4626Engine',
|
|
5929
|
+
'createErc4626EngineSync',
|
|
5930
|
+
'createStack',
|
|
5931
|
+
'createStackSync',
|
|
5892
5932
|
'deposit',
|
|
5893
5933
|
'depositSync',
|
|
5894
5934
|
'depositShares',
|
|
5895
5935
|
'depositSharesSync',
|
|
5936
|
+
'deployErc4626StackSync',
|
|
5896
5937
|
'privateDeposit',
|
|
5897
5938
|
'privateDepositSync',
|
|
5898
5939
|
'getFeeState',
|