@gauntlet-xyz/sdk 2.3.0 → 3.0.1
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/README.md +135 -0
- package/dist/api/activity.d.ts +1 -1
- package/dist/api/activity.d.ts.map +1 -1
- package/dist/api/caip.d.ts +1 -1
- package/dist/api/caip.d.ts.map +1 -1
- package/dist/api/client.d.ts +65 -6
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/errors.d.ts +1 -1
- package/dist/api/errors.d.ts.map +1 -1
- package/dist/api/generated.d.ts +621 -14
- package/dist/api/generated.d.ts.map +1 -1
- package/dist/api/index.d.ts +13 -13
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +48 -8
- package/dist/api/index.js.map +7 -1
- package/dist/api/positionHistory.d.ts +1 -1
- package/dist/api/positionHistory.d.ts.map +1 -1
- package/dist/attribution/index.d.ts +3 -3
- package/dist/attribution/index.d.ts.map +1 -1
- package/dist/chunk-7TA2OJUK.js +4364 -0
- package/dist/chunk-7TA2OJUK.js.map +7 -0
- package/dist/chunk-HC2BS7MK.js +439 -0
- package/dist/chunk-HC2BS7MK.js.map +7 -0
- package/dist/chunk-S2TTA45N.js +2009 -0
- package/dist/chunk-S2TTA45N.js.map +7 -0
- package/dist/chunk-STIV2CC4.js +57 -0
- package/dist/chunk-STIV2CC4.js.map +7 -0
- package/dist/chunk-SU6JAKIA.js +283 -0
- package/dist/chunk-SU6JAKIA.js.map +7 -0
- package/dist/cjs/api/activity.d.ts +70 -0
- package/dist/cjs/api/activity.d.ts.map +1 -0
- package/dist/cjs/api/activity.js +136 -0
- package/dist/cjs/api/activity.js.map +7 -0
- package/dist/cjs/api/caip.d.ts +29 -0
- package/dist/cjs/api/caip.d.ts.map +1 -0
- package/dist/cjs/api/caip.js +59 -0
- package/dist/cjs/api/caip.js.map +7 -0
- package/dist/cjs/api/client.d.ts +173 -0
- package/dist/cjs/api/client.d.ts.map +1 -0
- package/dist/cjs/api/client.js +171 -0
- package/dist/cjs/api/client.js.map +7 -0
- package/dist/cjs/api/decimal.d.ts +21 -0
- package/dist/cjs/api/decimal.d.ts.map +1 -0
- package/dist/cjs/api/decimal.js +60 -0
- package/dist/cjs/api/decimal.js.map +7 -0
- package/dist/cjs/api/errors.d.ts +32 -0
- package/dist/cjs/api/errors.d.ts.map +1 -0
- package/dist/cjs/api/errors.js +80 -0
- package/dist/cjs/api/errors.js.map +7 -0
- package/dist/cjs/api/generated.d.ts +2068 -0
- package/dist/cjs/api/generated.d.ts.map +1 -0
- package/dist/cjs/api/generated.js +17 -0
- package/dist/cjs/api/generated.js.map +7 -0
- package/dist/cjs/api/http.d.ts +16 -0
- package/dist/cjs/api/http.d.ts.map +1 -0
- package/dist/cjs/api/http.js +64 -0
- package/dist/cjs/api/http.js.map +7 -0
- package/dist/cjs/api/index.d.ts +14 -0
- package/dist/cjs/api/index.d.ts.map +1 -0
- package/dist/cjs/api/index.js +73 -0
- package/dist/cjs/api/index.js.map +7 -0
- package/dist/cjs/api/positionHistory.d.ts +44 -0
- package/dist/cjs/api/positionHistory.d.ts.map +1 -0
- package/dist/cjs/api/positionHistory.js +131 -0
- package/dist/cjs/api/positionHistory.js.map +7 -0
- package/dist/cjs/attribution/erc8021.d.ts +9 -0
- package/dist/cjs/attribution/erc8021.d.ts.map +1 -0
- package/dist/cjs/attribution/erc8021.js +37 -0
- package/dist/cjs/attribution/erc8021.js.map +7 -0
- package/dist/cjs/attribution/index.d.ts +25 -0
- package/dist/cjs/attribution/index.d.ts.map +1 -0
- package/dist/cjs/attribution/index.js +68 -0
- package/dist/cjs/attribution/index.js.map +7 -0
- package/dist/cjs/client.d.ts +72 -0
- package/dist/cjs/client.d.ts.map +1 -0
- package/dist/cjs/client.js +80 -0
- package/dist/cjs/client.js.map +7 -0
- package/dist/cjs/constants.d.ts +16 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +83 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/errors.d.ts +85 -0
- package/dist/cjs/errors.d.ts.map +1 -0
- package/dist/cjs/errors.js +210 -0
- package/dist/cjs/errors.js.map +7 -0
- package/dist/cjs/evm/abis/erc20.d.ts +41 -0
- package/dist/cjs/evm/abis/erc20.d.ts.map +1 -0
- package/dist/cjs/evm/abis/erc20.js +57 -0
- package/dist/cjs/evm/abis/erc20.js.map +7 -0
- package/dist/cjs/evm/abis/erc4626.d.ts +105 -0
- package/dist/cjs/evm/abis/erc4626.d.ts.map +1 -0
- package/dist/cjs/evm/abis/erc4626.js +97 -0
- package/dist/cjs/evm/abis/erc4626.js.map +7 -0
- package/dist/cjs/evm/abis/multiDepositorVault.d.ts +1048 -0
- package/dist/cjs/evm/abis/multiDepositorVault.d.ts.map +1 -0
- package/dist/cjs/evm/abis/multiDepositorVault.js +614 -0
- package/dist/cjs/evm/abis/multiDepositorVault.js.map +7 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculator.d.ts +910 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculator.d.ts.map +1 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculator.js +517 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculator.js.map +7 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculatorV2.d.ts +277 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculatorV2.d.ts.map +1 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculatorV2.js +166 -0
- package/dist/cjs/evm/abis/priceAndFeeCalculatorV2.js.map +7 -0
- package/dist/cjs/evm/abis/provisioner.d.ts +4984 -0
- package/dist/cjs/evm/abis/provisioner.d.ts.map +1 -0
- package/dist/cjs/evm/abis/provisioner.js +2785 -0
- package/dist/cjs/evm/abis/provisioner.js.map +7 -0
- package/dist/cjs/evm/abis/provisionerV2.d.ts +740 -0
- package/dist/cjs/evm/abis/provisionerV2.d.ts.map +1 -0
- package/dist/cjs/evm/abis/provisionerV2.js +320 -0
- package/dist/cjs/evm/abis/provisionerV2.js.map +7 -0
- package/dist/cjs/evm/adapters/aera.d.ts +6 -0
- package/dist/cjs/evm/adapters/aera.d.ts.map +1 -0
- package/dist/cjs/evm/adapters/aera.js +491 -0
- package/dist/cjs/evm/adapters/aera.js.map +7 -0
- package/dist/cjs/evm/adapters/index.d.ts +3 -0
- package/dist/cjs/evm/adapters/index.d.ts.map +1 -0
- package/dist/cjs/evm/adapters/index.js +41 -0
- package/dist/cjs/evm/adapters/index.js.map +7 -0
- package/dist/cjs/evm/adapters/morpho.d.ts +3 -0
- package/dist/cjs/evm/adapters/morpho.d.ts.map +1 -0
- package/dist/cjs/evm/adapters/morpho.js +103 -0
- package/dist/cjs/evm/adapters/morpho.js.map +7 -0
- package/dist/cjs/evm/adapters/types.d.ts +84 -0
- package/dist/cjs/evm/adapters/types.d.ts.map +1 -0
- package/dist/cjs/evm/adapters/types.js +17 -0
- package/dist/cjs/evm/adapters/types.js.map +7 -0
- package/dist/cjs/evm/aeraContracts/priceAndFeeCalculator.d.ts +46 -0
- package/dist/cjs/evm/aeraContracts/priceAndFeeCalculator.d.ts.map +1 -0
- package/dist/cjs/evm/aeraContracts/priceAndFeeCalculator.js +223 -0
- package/dist/cjs/evm/aeraContracts/priceAndFeeCalculator.js.map +7 -0
- package/dist/cjs/evm/aeraContracts/readOptions.d.ts +8 -0
- package/dist/cjs/evm/aeraContracts/readOptions.d.ts.map +1 -0
- package/dist/cjs/evm/aeraContracts/readOptions.js +31 -0
- package/dist/cjs/evm/aeraContracts/readOptions.js.map +7 -0
- package/dist/cjs/evm/aeraContracts/v1.d.ts +2317 -0
- package/dist/cjs/evm/aeraContracts/v1.d.ts.map +1 -0
- package/dist/cjs/evm/aeraContracts/v1.js +120 -0
- package/dist/cjs/evm/aeraContracts/v1.js.map +7 -0
- package/dist/cjs/evm/aeraContracts/v2.d.ts +4538 -0
- package/dist/cjs/evm/aeraContracts/v2.d.ts.map +1 -0
- package/dist/cjs/evm/aeraContracts/v2.js +449 -0
- package/dist/cjs/evm/aeraContracts/v2.js.map +7 -0
- package/dist/cjs/evm/aeraContracts.d.ts +33 -0
- package/dist/cjs/evm/aeraContracts.d.ts.map +1 -0
- package/dist/cjs/evm/aeraContracts.js +224 -0
- package/dist/cjs/evm/aeraContracts.js.map +7 -0
- package/dist/cjs/evm/deposit.d.ts +50 -0
- package/dist/cjs/evm/deposit.d.ts.map +1 -0
- package/dist/cjs/evm/deposit.js +112 -0
- package/dist/cjs/evm/deposit.js.map +7 -0
- package/dist/cjs/evm/depositQuote.d.ts +32 -0
- package/dist/cjs/evm/depositQuote.d.ts.map +1 -0
- package/dist/cjs/evm/depositQuote.js +96 -0
- package/dist/cjs/evm/depositQuote.js.map +7 -0
- package/dist/cjs/evm/depositReceiverApproval.d.ts +17 -0
- package/dist/cjs/evm/depositReceiverApproval.d.ts.map +1 -0
- package/dist/cjs/evm/depositReceiverApproval.js +66 -0
- package/dist/cjs/evm/depositReceiverApproval.js.map +7 -0
- package/dist/cjs/evm/index.d.ts +28 -0
- package/dist/cjs/evm/index.d.ts.map +1 -0
- package/dist/cjs/evm/index.js +116 -0
- package/dist/cjs/evm/index.js.map +7 -0
- package/dist/cjs/evm/operationMode.d.ts +9 -0
- package/dist/cjs/evm/operationMode.d.ts.map +1 -0
- package/dist/cjs/evm/operationMode.js +65 -0
- package/dist/cjs/evm/operationMode.js.map +7 -0
- package/dist/cjs/evm/tokenModes.d.ts +22 -0
- package/dist/cjs/evm/tokenModes.d.ts.map +1 -0
- package/dist/cjs/evm/tokenModes.js +47 -0
- package/dist/cjs/evm/tokenModes.js.map +7 -0
- package/dist/cjs/evm/types.d.ts +34 -0
- package/dist/cjs/evm/types.d.ts.map +1 -0
- package/dist/cjs/evm/types.js +32 -0
- package/dist/cjs/evm/types.js.map +7 -0
- package/dist/cjs/evm/userCurrentBalance.d.ts +55 -0
- package/dist/cjs/evm/userCurrentBalance.d.ts.map +1 -0
- package/dist/cjs/evm/userCurrentBalance.js +225 -0
- package/dist/cjs/evm/userCurrentBalance.js.map +7 -0
- package/dist/cjs/evm/vaults.d.ts +44 -0
- package/dist/cjs/evm/vaults.d.ts.map +1 -0
- package/dist/cjs/evm/vaults.js +78 -0
- package/dist/cjs/evm/vaults.js.map +7 -0
- package/dist/cjs/evm/withdraw.d.ts +73 -0
- package/dist/cjs/evm/withdraw.d.ts.map +1 -0
- package/dist/cjs/evm/withdraw.js +161 -0
- package/dist/cjs/evm/withdraw.js.map +7 -0
- package/dist/cjs/evm/withdrawQuote.d.ts +135 -0
- package/dist/cjs/evm/withdrawQuote.d.ts.map +1 -0
- package/dist/cjs/evm/withdrawQuote.js +256 -0
- package/dist/cjs/evm/withdrawQuote.js.map +7 -0
- package/dist/cjs/index.d.ts +31 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +128 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/privy/index.d.ts +52 -0
- package/dist/cjs/privy/index.d.ts.map +1 -0
- package/dist/cjs/privy/index.js +57 -0
- package/dist/cjs/privy/index.js.map +7 -0
- package/dist/client.d.ts +4 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/errors.d.ts +15 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/evm/abis/priceAndFeeCalculatorV2.d.ts +44 -0
- package/dist/evm/abis/priceAndFeeCalculatorV2.d.ts.map +1 -1
- package/dist/evm/abis/provisionerV2.d.ts +56 -0
- package/dist/evm/abis/provisionerV2.d.ts.map +1 -1
- package/dist/evm/adapters/aera.d.ts +1 -1
- package/dist/evm/adapters/aera.d.ts.map +1 -1
- package/dist/evm/adapters/index.d.ts +1 -1
- package/dist/evm/adapters/index.d.ts.map +1 -1
- package/dist/evm/adapters/morpho.d.ts +1 -1
- package/dist/evm/adapters/morpho.d.ts.map +1 -1
- package/dist/evm/adapters/types.d.ts +6 -2
- package/dist/evm/adapters/types.d.ts.map +1 -1
- package/dist/evm/aeraContracts/priceAndFeeCalculator.d.ts +11 -6
- package/dist/evm/aeraContracts/priceAndFeeCalculator.d.ts.map +1 -1
- package/dist/evm/aeraContracts/readOptions.d.ts +8 -0
- package/dist/evm/aeraContracts/readOptions.d.ts.map +1 -0
- package/dist/evm/aeraContracts/v1.d.ts +2 -2
- package/dist/evm/aeraContracts/v1.d.ts.map +1 -1
- package/dist/evm/aeraContracts/v2.d.ts +396 -4
- package/dist/evm/aeraContracts/v2.d.ts.map +1 -1
- package/dist/evm/aeraContracts.d.ts +11 -5
- package/dist/evm/aeraContracts.d.ts.map +1 -1
- package/dist/evm/deposit.d.ts +4 -2
- package/dist/evm/deposit.d.ts.map +1 -1
- package/dist/evm/depositQuote.d.ts +32 -0
- package/dist/evm/depositQuote.d.ts.map +1 -0
- package/dist/evm/depositReceiverApproval.d.ts +2 -2
- package/dist/evm/depositReceiverApproval.d.ts.map +1 -1
- package/dist/evm/index.d.ts +27 -17
- package/dist/evm/index.d.ts.map +1 -1
- package/dist/evm/index.js +88 -9
- package/dist/evm/index.js.map +7 -1
- package/dist/evm/tokenModes.d.ts +22 -0
- package/dist/evm/tokenModes.d.ts.map +1 -0
- package/dist/evm/userCurrentBalance.d.ts +6 -2
- package/dist/evm/userCurrentBalance.d.ts.map +1 -1
- package/dist/evm/vaults.d.ts +2 -9
- package/dist/evm/vaults.d.ts.map +1 -1
- package/dist/evm/withdraw.d.ts +10 -2
- package/dist/evm/withdraw.d.ts.map +1 -1
- package/dist/evm/withdrawQuote.d.ts +135 -0
- package/dist/evm/withdrawQuote.d.ts.map +1 -0
- package/dist/index.d.ts +30 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +139 -12
- package/dist/index.js.map +7 -1
- package/dist/manifest/vaults.json +1958 -0
- package/dist/privy/index.d.ts +1 -1
- package/dist/privy/index.d.ts.map +1 -1
- package/dist/privy/index.js +39 -48
- package/dist/privy/index.js.map +7 -1
- package/manifest/vaults.json +45 -460
- package/package.json +43 -9
- package/src/api/client.ts +104 -7
- package/src/api/generated.ts +621 -14
- package/src/api/index.ts +13 -0
- package/src/client.ts +4 -1
- package/src/constants.ts +2 -0
- package/src/errors.ts +39 -2
- package/src/evm/abis/priceAndFeeCalculatorV2.ts +22 -0
- package/src/evm/abis/provisionerV2.ts +33 -0
- package/src/evm/adapters/aera.ts +64 -34
- package/src/evm/adapters/types.ts +4 -0
- package/src/evm/aeraContracts/priceAndFeeCalculator.ts +72 -5
- package/src/evm/aeraContracts/readOptions.ts +3 -0
- package/src/evm/aeraContracts/v2.ts +273 -41
- package/src/evm/aeraContracts.ts +81 -8
- package/src/evm/deposit.ts +21 -8
- package/src/evm/depositQuote.ts +137 -0
- package/src/evm/index.ts +41 -0
- package/src/evm/tokenModes.ts +54 -0
- package/src/evm/userCurrentBalance.ts +12 -1
- package/src/evm/vaults.ts +0 -7
- package/src/evm/withdraw.ts +131 -7
- package/src/evm/withdrawQuote.ts +434 -0
- package/src/index.ts +26 -1
- package/dist/api/activity.js +0 -154
- package/dist/api/activity.js.map +0 -1
- package/dist/api/caip.js +0 -38
- package/dist/api/caip.js.map +0 -1
- package/dist/api/client.js +0 -109
- package/dist/api/client.js.map +0 -1
- package/dist/api/decimal.js +0 -44
- package/dist/api/decimal.js.map +0 -1
- package/dist/api/errors.js +0 -41
- package/dist/api/errors.js.map +0 -1
- package/dist/api/generated.js +0 -6
- package/dist/api/generated.js.map +0 -1
- package/dist/api/http.js +0 -39
- package/dist/api/http.js.map +0 -1
- package/dist/api/positionHistory.js +0 -126
- package/dist/api/positionHistory.js.map +0 -1
- package/dist/attribution/erc8021.js +0 -17
- package/dist/attribution/erc8021.js.map +0 -1
- package/dist/attribution/index.js +0 -45
- package/dist/attribution/index.js.map +0 -1
- package/dist/client.js +0 -72
- package/dist/client.js.map +0 -1
- package/dist/constants.js +0 -28
- package/dist/constants.js.map +0 -1
- package/dist/errors.js +0 -115
- package/dist/errors.js.map +0 -1
- package/dist/evm/abis/erc20.js +0 -30
- package/dist/evm/abis/erc20.js.map +0 -1
- package/dist/evm/abis/erc4626.js +0 -70
- package/dist/evm/abis/erc4626.js.map +0 -1
- package/dist/evm/abis/multiDepositorVault.js +0 -587
- package/dist/evm/abis/multiDepositorVault.js.map +0 -1
- package/dist/evm/abis/priceAndFeeCalculator.js +0 -490
- package/dist/evm/abis/priceAndFeeCalculator.js.map +0 -1
- package/dist/evm/abis/priceAndFeeCalculatorV2.js +0 -119
- package/dist/evm/abis/priceAndFeeCalculatorV2.js.map +0 -1
- package/dist/evm/abis/provisioner.js +0 -2768
- package/dist/evm/abis/provisioner.js.map +0 -1
- package/dist/evm/abis/provisionerV2.js +0 -262
- package/dist/evm/abis/provisionerV2.js.map +0 -1
- package/dist/evm/adapters/aera.js +0 -249
- package/dist/evm/adapters/aera.js.map +0 -1
- package/dist/evm/adapters/index.js +0 -14
- package/dist/evm/adapters/index.js.map +0 -1
- package/dist/evm/adapters/morpho.js +0 -79
- package/dist/evm/adapters/morpho.js.map +0 -1
- package/dist/evm/adapters/types.js +0 -2
- package/dist/evm/adapters/types.js.map +0 -1
- package/dist/evm/aeraContracts/priceAndFeeCalculator.js +0 -140
- package/dist/evm/aeraContracts/priceAndFeeCalculator.js.map +0 -1
- package/dist/evm/aeraContracts/v1.js +0 -59
- package/dist/evm/aeraContracts/v1.js.map +0 -1
- package/dist/evm/aeraContracts/v2.js +0 -217
- package/dist/evm/aeraContracts/v2.js.map +0 -1
- package/dist/evm/aeraContracts.js +0 -134
- package/dist/evm/aeraContracts.js.map +0 -1
- package/dist/evm/deposit.js +0 -109
- package/dist/evm/deposit.js.map +0 -1
- package/dist/evm/depositReceiverApproval.js +0 -32
- package/dist/evm/depositReceiverApproval.js.map +0 -1
- package/dist/evm/operationMode.js +0 -41
- package/dist/evm/operationMode.js.map +0 -1
- package/dist/evm/types.js +0 -5
- package/dist/evm/types.js.map +0 -1
- package/dist/evm/userCurrentBalance.js +0 -211
- package/dist/evm/userCurrentBalance.js.map +0 -1
- package/dist/evm/vaults.js +0 -75
- package/dist/evm/vaults.js.map +0 -1
- package/dist/evm/withdraw.js +0 -97
- package/dist/evm/withdraw.js.map +0 -1
|
@@ -1,17 +1,82 @@
|
|
|
1
1
|
import { type Address, type Client, type GetContractReturnType, type PublicClient } from 'viem';
|
|
2
|
-
import { priceAndFeeCalculatorV2Abi } from
|
|
3
|
-
import type { ContractVersion } from
|
|
2
|
+
import { priceAndFeeCalculatorV2Abi } from "../abis/priceAndFeeCalculatorV2.js";
|
|
3
|
+
import type { ContractVersion } from "../types.js";
|
|
4
4
|
export type PriceAndFeeCalculatorContract<T extends Client> = GetContractReturnType<typeof priceAndFeeCalculatorV2Abi, T, Address>;
|
|
5
5
|
export declare function getPriceAndFeeCalculator<T extends Client>(client: T, address: Address): PriceAndFeeCalculatorContract<T>;
|
|
6
|
-
|
|
6
|
+
type SyncRedeemReadOptions = {
|
|
7
|
+
blockNumber?: bigint;
|
|
8
|
+
blockTimestamp?: bigint;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Returns the vault's currently known sync-redeem liquidity in tokens.
|
|
12
|
+
*
|
|
13
|
+
* When a pull-funds pointer is configured, the provisioner may source more tokens during the
|
|
14
|
+
* redemption, so the vault's current token balance is not a reliable liquidity limit.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getKnownSyncRedeemLiquidityTokens(client: PublicClient, vault: Address, token: Address, hasPullFundsSubmitData: boolean, options?: SyncRedeemReadOptions): Promise<bigint | undefined>;
|
|
17
|
+
/** Breakdown of the effective sync redeem multiplier, in basis points. */
|
|
18
|
+
export interface SyncRedeemRate {
|
|
19
|
+
/** Base sync redeem multiplier (tokensDetails.syncRedeemMultiplier). */
|
|
20
|
+
baseMultiplierBps: bigint;
|
|
21
|
+
/** Dynamic premium charged for the current oracle price age. */
|
|
22
|
+
dynamicPremiumBps: bigint;
|
|
23
|
+
/** Multiplier actually applied to size the redemption (base - dynamic premium). */
|
|
24
|
+
effectiveMultiplierBps: bigint;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Reads the live sync redeem rate and whether pull-funds calldata is configured.
|
|
28
|
+
*
|
|
29
|
+
* Both values come from the same token-details read, avoiding another RPC request when a quote
|
|
30
|
+
* needs to determine whether the vault balance is a reliable liquidity limit.
|
|
31
|
+
*
|
|
32
|
+
* @throws {StalePriceError} If the oracle price is older than the configured max age,
|
|
33
|
+
* in which case the on-chain sync redeem would revert.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getSyncRedeemRateContext(client: PublicClient, provisioner: Address, vault: Address, token: Address, feeCalculator: Address, options?: SyncRedeemReadOptions): Promise<{
|
|
36
|
+
rate: SyncRedeemRate;
|
|
37
|
+
hasPullFundsSubmitData: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
/** Preserves the existing rate-only API for callers that do not need pull-funds state. */
|
|
40
|
+
export declare function getSyncRedeemRate(client: PublicClient, provisioner: Address, vault: Address, token: Address, feeCalculator: Address, options?: SyncRedeemReadOptions): Promise<SyncRedeemRate>;
|
|
41
|
+
export declare function getSyncRedeemTokenOut(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, unitsIn: bigint, effectiveMultiplierBps?: bigint, options?: SyncRedeemReadOptions): Promise<bigint>;
|
|
7
42
|
export declare function getAsyncDepositUnitsOut(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, tokensIn: bigint): Promise<bigint>;
|
|
8
43
|
export declare function getSyncDepositUnitsOut(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, tokensIn: bigint): Promise<bigint>;
|
|
44
|
+
export declare function getSyncDepositQuoteValues(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, tokensIn: bigint): Promise<{
|
|
45
|
+
unitsOut: bigint;
|
|
46
|
+
feeBps: bigint;
|
|
47
|
+
numeraireOut: bigint;
|
|
48
|
+
}>;
|
|
49
|
+
/** Reads the live Instant Supply fee for a vault token, independent of the deposit amount. */
|
|
50
|
+
export declare function getSyncDepositFeeBps(client: PublicClient, provisioner: Address, token: Address, options?: SyncRedeemReadOptions): Promise<bigint>;
|
|
9
51
|
export declare function getAsyncRedeemTokenOut(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, unitsIn: bigint): Promise<bigint>;
|
|
10
52
|
export declare function getAsyncWithdrawUnitsIn(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, tokensOut: bigint): Promise<bigint>;
|
|
11
|
-
export declare function getSyncWithdrawUnitsIn(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, tokensOut: bigint): Promise<bigint>;
|
|
53
|
+
export declare function getSyncWithdrawUnitsIn(client: PublicClient, provisioner: Address, feeCalculator: Address, feeCalculatorVersion: ContractVersion, vault: Address, token: Address, tokensOut: bigint, effectiveMultiplierBps?: bigint, options?: SyncRedeemReadOptions): Promise<bigint>;
|
|
54
|
+
/** Current sync redeem epoch accounting, in numeraire (all values uint256). */
|
|
55
|
+
export interface SyncRedeemEpochState {
|
|
56
|
+
epochTimestamp: bigint;
|
|
57
|
+
epochStartTvlNumeraire: bigint;
|
|
58
|
+
epochRedeemedNumeraire: bigint;
|
|
59
|
+
epochCapNumeraire: bigint;
|
|
60
|
+
}
|
|
61
|
+
export declare function getSyncRedeemEpochState(client: PublicClient, provisioner: Address, options?: SyncRedeemReadOptions): Promise<SyncRedeemEpochState>;
|
|
62
|
+
/**
|
|
63
|
+
* Raw expiry timestamp for the user's latest sync-deposit lock (0 if none was recorded).
|
|
64
|
+
* The user is locked while this value is greater than or equal to the relevant block timestamp.
|
|
65
|
+
*/
|
|
66
|
+
export declare function getUserUnitsRefundableUntil(client: PublicClient, provisioner: Address, user: Address, options?: SyncRedeemReadOptions): Promise<bigint>;
|
|
12
67
|
export declare function depositTxRequest(provisioner: Address, token: Address, tokensIn: bigint, minUnitsOut: bigint, receiver: Address, account: Address): {
|
|
13
68
|
address: `0x${string}`;
|
|
14
69
|
abi: readonly [{
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
readonly inputs: readonly [];
|
|
72
|
+
readonly name: "SOLVING_GATE_ENABLED";
|
|
73
|
+
readonly outputs: readonly [{
|
|
74
|
+
readonly name: "";
|
|
75
|
+
readonly internalType: "bool";
|
|
76
|
+
readonly type: "bool";
|
|
77
|
+
}];
|
|
78
|
+
readonly stateMutability: "view";
|
|
79
|
+
}, {
|
|
15
80
|
readonly type: "function";
|
|
16
81
|
readonly inputs: readonly [{
|
|
17
82
|
readonly name: "token";
|
|
@@ -127,6 +192,42 @@ export declare function depositTxRequest(provisioner: Address, token: Address, t
|
|
|
127
192
|
readonly type: "uint80";
|
|
128
193
|
}];
|
|
129
194
|
readonly stateMutability: "view";
|
|
195
|
+
}, {
|
|
196
|
+
readonly type: "function";
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
readonly name: "getSyncRedeemEpochState";
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly name: "epochTimestamp";
|
|
201
|
+
readonly internalType: "uint256";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "epochStartTvlNumeraire";
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "epochRedeemedNumeraire";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly type: "uint256";
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "epochCapNumeraire";
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly name: "user";
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "userUnitsRefundableUntil";
|
|
225
|
+
readonly outputs: readonly [{
|
|
226
|
+
readonly name: "unitsLockedUntil";
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
readonly type: "uint256";
|
|
229
|
+
}];
|
|
230
|
+
readonly stateMutability: "view";
|
|
130
231
|
}, {
|
|
131
232
|
readonly type: "function";
|
|
132
233
|
readonly inputs: readonly [{
|
|
@@ -141,6 +242,16 @@ export declare function depositTxRequest(provisioner: Address, token: Address, t
|
|
|
141
242
|
readonly name: "setDepositReceiverApproval";
|
|
142
243
|
readonly outputs: readonly [];
|
|
143
244
|
readonly stateMutability: "nonpayable";
|
|
245
|
+
}, {
|
|
246
|
+
readonly type: "function";
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
readonly name: "solvingGate";
|
|
249
|
+
readonly outputs: readonly [{
|
|
250
|
+
readonly name: "";
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
}];
|
|
254
|
+
readonly stateMutability: "view";
|
|
144
255
|
}, {
|
|
145
256
|
readonly type: "function";
|
|
146
257
|
readonly inputs: readonly [{
|
|
@@ -701,6 +812,16 @@ export declare function depositTxRequest(provisioner: Address, token: Address, t
|
|
|
701
812
|
export declare function requestDepositTxRequest(provisioner: Address, token: Address, tokensIn: bigint, minUnitsOut: bigint, solverTip: bigint, deadline: bigint, maxPriceAge: bigint, isFixedPrice: boolean, receiver: Address, account: Address): {
|
|
702
813
|
address: `0x${string}`;
|
|
703
814
|
abi: readonly [{
|
|
815
|
+
readonly type: "function";
|
|
816
|
+
readonly inputs: readonly [];
|
|
817
|
+
readonly name: "SOLVING_GATE_ENABLED";
|
|
818
|
+
readonly outputs: readonly [{
|
|
819
|
+
readonly name: "";
|
|
820
|
+
readonly internalType: "bool";
|
|
821
|
+
readonly type: "bool";
|
|
822
|
+
}];
|
|
823
|
+
readonly stateMutability: "view";
|
|
824
|
+
}, {
|
|
704
825
|
readonly type: "function";
|
|
705
826
|
readonly inputs: readonly [{
|
|
706
827
|
readonly name: "token";
|
|
@@ -816,6 +937,42 @@ export declare function requestDepositTxRequest(provisioner: Address, token: Add
|
|
|
816
937
|
readonly type: "uint80";
|
|
817
938
|
}];
|
|
818
939
|
readonly stateMutability: "view";
|
|
940
|
+
}, {
|
|
941
|
+
readonly type: "function";
|
|
942
|
+
readonly inputs: readonly [];
|
|
943
|
+
readonly name: "getSyncRedeemEpochState";
|
|
944
|
+
readonly outputs: readonly [{
|
|
945
|
+
readonly name: "epochTimestamp";
|
|
946
|
+
readonly internalType: "uint256";
|
|
947
|
+
readonly type: "uint256";
|
|
948
|
+
}, {
|
|
949
|
+
readonly name: "epochStartTvlNumeraire";
|
|
950
|
+
readonly internalType: "uint256";
|
|
951
|
+
readonly type: "uint256";
|
|
952
|
+
}, {
|
|
953
|
+
readonly name: "epochRedeemedNumeraire";
|
|
954
|
+
readonly internalType: "uint256";
|
|
955
|
+
readonly type: "uint256";
|
|
956
|
+
}, {
|
|
957
|
+
readonly name: "epochCapNumeraire";
|
|
958
|
+
readonly internalType: "uint256";
|
|
959
|
+
readonly type: "uint256";
|
|
960
|
+
}];
|
|
961
|
+
readonly stateMutability: "view";
|
|
962
|
+
}, {
|
|
963
|
+
readonly type: "function";
|
|
964
|
+
readonly inputs: readonly [{
|
|
965
|
+
readonly name: "user";
|
|
966
|
+
readonly internalType: "address";
|
|
967
|
+
readonly type: "address";
|
|
968
|
+
}];
|
|
969
|
+
readonly name: "userUnitsRefundableUntil";
|
|
970
|
+
readonly outputs: readonly [{
|
|
971
|
+
readonly name: "unitsLockedUntil";
|
|
972
|
+
readonly internalType: "uint256";
|
|
973
|
+
readonly type: "uint256";
|
|
974
|
+
}];
|
|
975
|
+
readonly stateMutability: "view";
|
|
819
976
|
}, {
|
|
820
977
|
readonly type: "function";
|
|
821
978
|
readonly inputs: readonly [{
|
|
@@ -830,6 +987,16 @@ export declare function requestDepositTxRequest(provisioner: Address, token: Add
|
|
|
830
987
|
readonly name: "setDepositReceiverApproval";
|
|
831
988
|
readonly outputs: readonly [];
|
|
832
989
|
readonly stateMutability: "nonpayable";
|
|
990
|
+
}, {
|
|
991
|
+
readonly type: "function";
|
|
992
|
+
readonly inputs: readonly [];
|
|
993
|
+
readonly name: "solvingGate";
|
|
994
|
+
readonly outputs: readonly [{
|
|
995
|
+
readonly name: "";
|
|
996
|
+
readonly internalType: "address";
|
|
997
|
+
readonly type: "address";
|
|
998
|
+
}];
|
|
999
|
+
readonly stateMutability: "view";
|
|
833
1000
|
}, {
|
|
834
1001
|
readonly type: "function";
|
|
835
1002
|
readonly inputs: readonly [{
|
|
@@ -1390,6 +1557,16 @@ export declare function requestDepositTxRequest(provisioner: Address, token: Add
|
|
|
1390
1557
|
export declare function setDepositReceiverApprovalTxRequest(provisioner: Address, depositor: Address, approved: boolean, receiver: Address): {
|
|
1391
1558
|
address: `0x${string}`;
|
|
1392
1559
|
abi: readonly [{
|
|
1560
|
+
readonly type: "function";
|
|
1561
|
+
readonly inputs: readonly [];
|
|
1562
|
+
readonly name: "SOLVING_GATE_ENABLED";
|
|
1563
|
+
readonly outputs: readonly [{
|
|
1564
|
+
readonly name: "";
|
|
1565
|
+
readonly internalType: "bool";
|
|
1566
|
+
readonly type: "bool";
|
|
1567
|
+
}];
|
|
1568
|
+
readonly stateMutability: "view";
|
|
1569
|
+
}, {
|
|
1393
1570
|
readonly type: "function";
|
|
1394
1571
|
readonly inputs: readonly [{
|
|
1395
1572
|
readonly name: "token";
|
|
@@ -1505,6 +1682,42 @@ export declare function setDepositReceiverApprovalTxRequest(provisioner: Address
|
|
|
1505
1682
|
readonly type: "uint80";
|
|
1506
1683
|
}];
|
|
1507
1684
|
readonly stateMutability: "view";
|
|
1685
|
+
}, {
|
|
1686
|
+
readonly type: "function";
|
|
1687
|
+
readonly inputs: readonly [];
|
|
1688
|
+
readonly name: "getSyncRedeemEpochState";
|
|
1689
|
+
readonly outputs: readonly [{
|
|
1690
|
+
readonly name: "epochTimestamp";
|
|
1691
|
+
readonly internalType: "uint256";
|
|
1692
|
+
readonly type: "uint256";
|
|
1693
|
+
}, {
|
|
1694
|
+
readonly name: "epochStartTvlNumeraire";
|
|
1695
|
+
readonly internalType: "uint256";
|
|
1696
|
+
readonly type: "uint256";
|
|
1697
|
+
}, {
|
|
1698
|
+
readonly name: "epochRedeemedNumeraire";
|
|
1699
|
+
readonly internalType: "uint256";
|
|
1700
|
+
readonly type: "uint256";
|
|
1701
|
+
}, {
|
|
1702
|
+
readonly name: "epochCapNumeraire";
|
|
1703
|
+
readonly internalType: "uint256";
|
|
1704
|
+
readonly type: "uint256";
|
|
1705
|
+
}];
|
|
1706
|
+
readonly stateMutability: "view";
|
|
1707
|
+
}, {
|
|
1708
|
+
readonly type: "function";
|
|
1709
|
+
readonly inputs: readonly [{
|
|
1710
|
+
readonly name: "user";
|
|
1711
|
+
readonly internalType: "address";
|
|
1712
|
+
readonly type: "address";
|
|
1713
|
+
}];
|
|
1714
|
+
readonly name: "userUnitsRefundableUntil";
|
|
1715
|
+
readonly outputs: readonly [{
|
|
1716
|
+
readonly name: "unitsLockedUntil";
|
|
1717
|
+
readonly internalType: "uint256";
|
|
1718
|
+
readonly type: "uint256";
|
|
1719
|
+
}];
|
|
1720
|
+
readonly stateMutability: "view";
|
|
1508
1721
|
}, {
|
|
1509
1722
|
readonly type: "function";
|
|
1510
1723
|
readonly inputs: readonly [{
|
|
@@ -1519,6 +1732,16 @@ export declare function setDepositReceiverApprovalTxRequest(provisioner: Address
|
|
|
1519
1732
|
readonly name: "setDepositReceiverApproval";
|
|
1520
1733
|
readonly outputs: readonly [];
|
|
1521
1734
|
readonly stateMutability: "nonpayable";
|
|
1735
|
+
}, {
|
|
1736
|
+
readonly type: "function";
|
|
1737
|
+
readonly inputs: readonly [];
|
|
1738
|
+
readonly name: "solvingGate";
|
|
1739
|
+
readonly outputs: readonly [{
|
|
1740
|
+
readonly name: "";
|
|
1741
|
+
readonly internalType: "address";
|
|
1742
|
+
readonly type: "address";
|
|
1743
|
+
}];
|
|
1744
|
+
readonly stateMutability: "view";
|
|
1522
1745
|
}, {
|
|
1523
1746
|
readonly type: "function";
|
|
1524
1747
|
readonly inputs: readonly [{
|
|
@@ -2079,6 +2302,16 @@ export declare function setDepositReceiverApprovalTxRequest(provisioner: Address
|
|
|
2079
2302
|
export declare function requestRedeemTxRequest(provisioner: Address, token: Address, unitsIn: bigint, minTokenOut: bigint, solverTip: bigint, deadline: bigint, maxPriceAge: bigint, isFixedPrice: boolean, receiver: Address, account: Address): {
|
|
2080
2303
|
address: `0x${string}`;
|
|
2081
2304
|
abi: readonly [{
|
|
2305
|
+
readonly type: "function";
|
|
2306
|
+
readonly inputs: readonly [];
|
|
2307
|
+
readonly name: "SOLVING_GATE_ENABLED";
|
|
2308
|
+
readonly outputs: readonly [{
|
|
2309
|
+
readonly name: "";
|
|
2310
|
+
readonly internalType: "bool";
|
|
2311
|
+
readonly type: "bool";
|
|
2312
|
+
}];
|
|
2313
|
+
readonly stateMutability: "view";
|
|
2314
|
+
}, {
|
|
2082
2315
|
readonly type: "function";
|
|
2083
2316
|
readonly inputs: readonly [{
|
|
2084
2317
|
readonly name: "token";
|
|
@@ -2194,6 +2427,42 @@ export declare function requestRedeemTxRequest(provisioner: Address, token: Addr
|
|
|
2194
2427
|
readonly type: "uint80";
|
|
2195
2428
|
}];
|
|
2196
2429
|
readonly stateMutability: "view";
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly type: "function";
|
|
2432
|
+
readonly inputs: readonly [];
|
|
2433
|
+
readonly name: "getSyncRedeemEpochState";
|
|
2434
|
+
readonly outputs: readonly [{
|
|
2435
|
+
readonly name: "epochTimestamp";
|
|
2436
|
+
readonly internalType: "uint256";
|
|
2437
|
+
readonly type: "uint256";
|
|
2438
|
+
}, {
|
|
2439
|
+
readonly name: "epochStartTvlNumeraire";
|
|
2440
|
+
readonly internalType: "uint256";
|
|
2441
|
+
readonly type: "uint256";
|
|
2442
|
+
}, {
|
|
2443
|
+
readonly name: "epochRedeemedNumeraire";
|
|
2444
|
+
readonly internalType: "uint256";
|
|
2445
|
+
readonly type: "uint256";
|
|
2446
|
+
}, {
|
|
2447
|
+
readonly name: "epochCapNumeraire";
|
|
2448
|
+
readonly internalType: "uint256";
|
|
2449
|
+
readonly type: "uint256";
|
|
2450
|
+
}];
|
|
2451
|
+
readonly stateMutability: "view";
|
|
2452
|
+
}, {
|
|
2453
|
+
readonly type: "function";
|
|
2454
|
+
readonly inputs: readonly [{
|
|
2455
|
+
readonly name: "user";
|
|
2456
|
+
readonly internalType: "address";
|
|
2457
|
+
readonly type: "address";
|
|
2458
|
+
}];
|
|
2459
|
+
readonly name: "userUnitsRefundableUntil";
|
|
2460
|
+
readonly outputs: readonly [{
|
|
2461
|
+
readonly name: "unitsLockedUntil";
|
|
2462
|
+
readonly internalType: "uint256";
|
|
2463
|
+
readonly type: "uint256";
|
|
2464
|
+
}];
|
|
2465
|
+
readonly stateMutability: "view";
|
|
2197
2466
|
}, {
|
|
2198
2467
|
readonly type: "function";
|
|
2199
2468
|
readonly inputs: readonly [{
|
|
@@ -2208,6 +2477,16 @@ export declare function requestRedeemTxRequest(provisioner: Address, token: Addr
|
|
|
2208
2477
|
readonly name: "setDepositReceiverApproval";
|
|
2209
2478
|
readonly outputs: readonly [];
|
|
2210
2479
|
readonly stateMutability: "nonpayable";
|
|
2480
|
+
}, {
|
|
2481
|
+
readonly type: "function";
|
|
2482
|
+
readonly inputs: readonly [];
|
|
2483
|
+
readonly name: "solvingGate";
|
|
2484
|
+
readonly outputs: readonly [{
|
|
2485
|
+
readonly name: "";
|
|
2486
|
+
readonly internalType: "address";
|
|
2487
|
+
readonly type: "address";
|
|
2488
|
+
}];
|
|
2489
|
+
readonly stateMutability: "view";
|
|
2211
2490
|
}, {
|
|
2212
2491
|
readonly type: "function";
|
|
2213
2492
|
readonly inputs: readonly [{
|
|
@@ -2768,6 +3047,16 @@ export declare function requestRedeemTxRequest(provisioner: Address, token: Addr
|
|
|
2768
3047
|
export declare function redeemTxRequest(provisioner: Address, token: Address, unitsIn: bigint, minTokenOut: bigint, receiver: Address, account: Address): {
|
|
2769
3048
|
address: `0x${string}`;
|
|
2770
3049
|
abi: readonly [{
|
|
3050
|
+
readonly type: "function";
|
|
3051
|
+
readonly inputs: readonly [];
|
|
3052
|
+
readonly name: "SOLVING_GATE_ENABLED";
|
|
3053
|
+
readonly outputs: readonly [{
|
|
3054
|
+
readonly name: "";
|
|
3055
|
+
readonly internalType: "bool";
|
|
3056
|
+
readonly type: "bool";
|
|
3057
|
+
}];
|
|
3058
|
+
readonly stateMutability: "view";
|
|
3059
|
+
}, {
|
|
2771
3060
|
readonly type: "function";
|
|
2772
3061
|
readonly inputs: readonly [{
|
|
2773
3062
|
readonly name: "token";
|
|
@@ -2883,6 +3172,42 @@ export declare function redeemTxRequest(provisioner: Address, token: Address, un
|
|
|
2883
3172
|
readonly type: "uint80";
|
|
2884
3173
|
}];
|
|
2885
3174
|
readonly stateMutability: "view";
|
|
3175
|
+
}, {
|
|
3176
|
+
readonly type: "function";
|
|
3177
|
+
readonly inputs: readonly [];
|
|
3178
|
+
readonly name: "getSyncRedeemEpochState";
|
|
3179
|
+
readonly outputs: readonly [{
|
|
3180
|
+
readonly name: "epochTimestamp";
|
|
3181
|
+
readonly internalType: "uint256";
|
|
3182
|
+
readonly type: "uint256";
|
|
3183
|
+
}, {
|
|
3184
|
+
readonly name: "epochStartTvlNumeraire";
|
|
3185
|
+
readonly internalType: "uint256";
|
|
3186
|
+
readonly type: "uint256";
|
|
3187
|
+
}, {
|
|
3188
|
+
readonly name: "epochRedeemedNumeraire";
|
|
3189
|
+
readonly internalType: "uint256";
|
|
3190
|
+
readonly type: "uint256";
|
|
3191
|
+
}, {
|
|
3192
|
+
readonly name: "epochCapNumeraire";
|
|
3193
|
+
readonly internalType: "uint256";
|
|
3194
|
+
readonly type: "uint256";
|
|
3195
|
+
}];
|
|
3196
|
+
readonly stateMutability: "view";
|
|
3197
|
+
}, {
|
|
3198
|
+
readonly type: "function";
|
|
3199
|
+
readonly inputs: readonly [{
|
|
3200
|
+
readonly name: "user";
|
|
3201
|
+
readonly internalType: "address";
|
|
3202
|
+
readonly type: "address";
|
|
3203
|
+
}];
|
|
3204
|
+
readonly name: "userUnitsRefundableUntil";
|
|
3205
|
+
readonly outputs: readonly [{
|
|
3206
|
+
readonly name: "unitsLockedUntil";
|
|
3207
|
+
readonly internalType: "uint256";
|
|
3208
|
+
readonly type: "uint256";
|
|
3209
|
+
}];
|
|
3210
|
+
readonly stateMutability: "view";
|
|
2886
3211
|
}, {
|
|
2887
3212
|
readonly type: "function";
|
|
2888
3213
|
readonly inputs: readonly [{
|
|
@@ -2897,6 +3222,16 @@ export declare function redeemTxRequest(provisioner: Address, token: Address, un
|
|
|
2897
3222
|
readonly name: "setDepositReceiverApproval";
|
|
2898
3223
|
readonly outputs: readonly [];
|
|
2899
3224
|
readonly stateMutability: "nonpayable";
|
|
3225
|
+
}, {
|
|
3226
|
+
readonly type: "function";
|
|
3227
|
+
readonly inputs: readonly [];
|
|
3228
|
+
readonly name: "solvingGate";
|
|
3229
|
+
readonly outputs: readonly [{
|
|
3230
|
+
readonly name: "";
|
|
3231
|
+
readonly internalType: "address";
|
|
3232
|
+
readonly type: "address";
|
|
3233
|
+
}];
|
|
3234
|
+
readonly stateMutability: "view";
|
|
2900
3235
|
}, {
|
|
2901
3236
|
readonly type: "function";
|
|
2902
3237
|
readonly inputs: readonly [{
|
|
@@ -3457,6 +3792,16 @@ export declare function redeemTxRequest(provisioner: Address, token: Address, un
|
|
|
3457
3792
|
export declare function withdrawTxRequest(provisioner: Address, token: Address, tokensOut: bigint, maxUnitsIn: bigint, receiver: Address, account: Address): {
|
|
3458
3793
|
address: `0x${string}`;
|
|
3459
3794
|
abi: readonly [{
|
|
3795
|
+
readonly type: "function";
|
|
3796
|
+
readonly inputs: readonly [];
|
|
3797
|
+
readonly name: "SOLVING_GATE_ENABLED";
|
|
3798
|
+
readonly outputs: readonly [{
|
|
3799
|
+
readonly name: "";
|
|
3800
|
+
readonly internalType: "bool";
|
|
3801
|
+
readonly type: "bool";
|
|
3802
|
+
}];
|
|
3803
|
+
readonly stateMutability: "view";
|
|
3804
|
+
}, {
|
|
3460
3805
|
readonly type: "function";
|
|
3461
3806
|
readonly inputs: readonly [{
|
|
3462
3807
|
readonly name: "token";
|
|
@@ -3572,6 +3917,42 @@ export declare function withdrawTxRequest(provisioner: Address, token: Address,
|
|
|
3572
3917
|
readonly type: "uint80";
|
|
3573
3918
|
}];
|
|
3574
3919
|
readonly stateMutability: "view";
|
|
3920
|
+
}, {
|
|
3921
|
+
readonly type: "function";
|
|
3922
|
+
readonly inputs: readonly [];
|
|
3923
|
+
readonly name: "getSyncRedeemEpochState";
|
|
3924
|
+
readonly outputs: readonly [{
|
|
3925
|
+
readonly name: "epochTimestamp";
|
|
3926
|
+
readonly internalType: "uint256";
|
|
3927
|
+
readonly type: "uint256";
|
|
3928
|
+
}, {
|
|
3929
|
+
readonly name: "epochStartTvlNumeraire";
|
|
3930
|
+
readonly internalType: "uint256";
|
|
3931
|
+
readonly type: "uint256";
|
|
3932
|
+
}, {
|
|
3933
|
+
readonly name: "epochRedeemedNumeraire";
|
|
3934
|
+
readonly internalType: "uint256";
|
|
3935
|
+
readonly type: "uint256";
|
|
3936
|
+
}, {
|
|
3937
|
+
readonly name: "epochCapNumeraire";
|
|
3938
|
+
readonly internalType: "uint256";
|
|
3939
|
+
readonly type: "uint256";
|
|
3940
|
+
}];
|
|
3941
|
+
readonly stateMutability: "view";
|
|
3942
|
+
}, {
|
|
3943
|
+
readonly type: "function";
|
|
3944
|
+
readonly inputs: readonly [{
|
|
3945
|
+
readonly name: "user";
|
|
3946
|
+
readonly internalType: "address";
|
|
3947
|
+
readonly type: "address";
|
|
3948
|
+
}];
|
|
3949
|
+
readonly name: "userUnitsRefundableUntil";
|
|
3950
|
+
readonly outputs: readonly [{
|
|
3951
|
+
readonly name: "unitsLockedUntil";
|
|
3952
|
+
readonly internalType: "uint256";
|
|
3953
|
+
readonly type: "uint256";
|
|
3954
|
+
}];
|
|
3955
|
+
readonly stateMutability: "view";
|
|
3575
3956
|
}, {
|
|
3576
3957
|
readonly type: "function";
|
|
3577
3958
|
readonly inputs: readonly [{
|
|
@@ -3586,6 +3967,16 @@ export declare function withdrawTxRequest(provisioner: Address, token: Address,
|
|
|
3586
3967
|
readonly name: "setDepositReceiverApproval";
|
|
3587
3968
|
readonly outputs: readonly [];
|
|
3588
3969
|
readonly stateMutability: "nonpayable";
|
|
3970
|
+
}, {
|
|
3971
|
+
readonly type: "function";
|
|
3972
|
+
readonly inputs: readonly [];
|
|
3973
|
+
readonly name: "solvingGate";
|
|
3974
|
+
readonly outputs: readonly [{
|
|
3975
|
+
readonly name: "";
|
|
3976
|
+
readonly internalType: "address";
|
|
3977
|
+
readonly type: "address";
|
|
3978
|
+
}];
|
|
3979
|
+
readonly stateMutability: "view";
|
|
3589
3980
|
}, {
|
|
3590
3981
|
readonly type: "function";
|
|
3591
3982
|
readonly inputs: readonly [{
|
|
@@ -4143,4 +4534,5 @@ export declare function withdrawTxRequest(provisioner: Address, token: Address,
|
|
|
4143
4534
|
args: readonly [`0x${string}`, bigint, bigint, `0x${string}`];
|
|
4144
4535
|
account: `0x${string}`;
|
|
4145
4536
|
};
|
|
4537
|
+
export {};
|
|
4146
4538
|
//# sourceMappingURL=v2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../../src/evm/aeraContracts/v2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../../src/evm/aeraContracts/v2.ts"],"names":[],"mappings":"AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Address, type Client, type GetContractReturnType, type PublicClient } from 'viem';
|
|
2
|
-
import { multiDepositorVaultAbi } from
|
|
3
|
-
import { ContractVersion, type EvmVaultDeployment } from
|
|
2
|
+
import { multiDepositorVaultAbi } from "./abis/multiDepositorVault.js";
|
|
3
|
+
import { ContractVersion, type EvmVaultDeployment } from "./types.js";
|
|
4
4
|
export interface AeraRuntimeContracts {
|
|
5
5
|
provisioner: {
|
|
6
6
|
address: Address;
|
|
@@ -17,11 +17,17 @@ export interface AeraTokenModeSupport {
|
|
|
17
17
|
syncDeposit: boolean;
|
|
18
18
|
syncRedeem: boolean;
|
|
19
19
|
}
|
|
20
|
+
export declare function requireAeraSyncRedeemRuntime(runtime: AeraRuntimeContracts): void;
|
|
21
|
+
export type AeraReadOptions = {
|
|
22
|
+
blockNumber?: bigint;
|
|
23
|
+
};
|
|
20
24
|
export declare function applySlippageDown(amount: bigint, slippageBps: number): bigint;
|
|
21
25
|
export declare function applySlippageUp(amount: bigint, slippageBps: number): bigint;
|
|
22
26
|
export type MultiDepositorVaultContract<T extends Client> = GetContractReturnType<typeof multiDepositorVaultAbi, T, Address>;
|
|
23
27
|
export declare function getMultiDepositorVault<T extends Client>(client: T, vaultAddress: Address): MultiDepositorVaultContract<T>;
|
|
24
|
-
export declare function resolveContractVersion(client: PublicClient, address: Address): Promise<ContractVersion>;
|
|
25
|
-
export declare function resolveAeraRuntimeContracts(client: PublicClient, vault: EvmVaultDeployment): Promise<AeraRuntimeContracts>;
|
|
26
|
-
export declare function resolveAeraTokenModeSupport(client: PublicClient, runtime: AeraRuntimeContracts, token: Address
|
|
28
|
+
export declare function resolveContractVersion(client: PublicClient, address: Address, options?: AeraReadOptions): Promise<ContractVersion>;
|
|
29
|
+
export declare function resolveAeraRuntimeContracts(client: PublicClient, vault: EvmVaultDeployment, options?: AeraReadOptions): Promise<AeraRuntimeContracts>;
|
|
30
|
+
export declare function resolveAeraTokenModeSupport(client: PublicClient, runtime: AeraRuntimeContracts, token: Address, options?: AeraReadOptions & {
|
|
31
|
+
includeSyncModes?: boolean;
|
|
32
|
+
}): Promise<AeraTokenModeSupport>;
|
|
27
33
|
//# sourceMappingURL=aeraContracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeraContracts.d.ts","sourceRoot":"","sources":["../../src/evm/aeraContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EAGlB,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"aeraContracts.d.ts","sourceRoot":"","sources":["../../src/evm/aeraContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,YAAY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/C,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,kBAAkB,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CA0C/B;AAED,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,oBAAoB,EAC7B,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,eAAe,GAAG;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7D,OAAO,CAAC,oBAAoB,CAAC,CAsE/B"}
|
package/dist/evm/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import type { GauntletClient } from
|
|
3
|
-
import { PreparedTx } from
|
|
2
|
+
import type { GauntletClient } from "../client.js";
|
|
3
|
+
import { PreparedTx } from "../attribution/index.js";
|
|
4
4
|
export interface EvmDepositParams {
|
|
5
5
|
vaultId: string;
|
|
6
6
|
amount: bigint;
|
|
@@ -15,6 +15,8 @@ export interface EvmDepositParams {
|
|
|
15
15
|
solverTip?: bigint;
|
|
16
16
|
/** Maximum price age passed to async Aera provisioner requests. Defaults to 10 days. */
|
|
17
17
|
maxPriceAge?: bigint;
|
|
18
|
+
/** Caller-reviewed minimum output for an explicit Aera synchronous deposit. */
|
|
19
|
+
minUnitsOut?: bigint;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* Builds the ordered list of EVM transactions required to deposit into a Gauntlet vault.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deposit.d.ts","sourceRoot":"","sources":["../../src/evm/deposit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"deposit.d.ts","sourceRoot":"","sources":["../../src/evm/deposit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAkB;AAGhD,OAAO,EAAoC,UAAU,EAAE,gCAAuB;AAsB9E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,UAAU,EAAE,CAAC,CAuGvB"}
|