defi-kit 1.2.0 → 1.4.0
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/dist/{chunk-4WSFXYIG.mjs → chunk-EBMINSV3.mjs} +98 -58
- package/dist/chunk-EBMINSV3.mjs.map +1 -0
- package/dist/eth.d.mts +2 -2
- package/dist/eth.d.ts +2 -2
- package/dist/eth.js +97 -57
- package/dist/eth.js.map +1 -1
- package/dist/eth.mjs +1 -1
- package/dist/gno.d.mts +2 -2
- package/dist/gno.d.ts +2 -2
- package/dist/gno.js +83 -46
- package/dist/gno.js.map +1 -1
- package/dist/gno.mjs +1 -1
- package/dist/{schema-X3SEw6UU.d.mts → schema-3b9kfoAj.d.mts} +9 -0
- package/dist/{schema-X3SEw6UU.d.ts → schema-3b9kfoAj.d.ts} +9 -0
- package/package.json +1 -1
- package/dist/chunk-4WSFXYIG.mjs.map +0 -1
|
@@ -6546,6 +6546,15 @@ var spWETH_default = [{ inputs: [{ internalType: "contract IPool", name: "pool",
|
|
|
6546
6546
|
// eth-sdk/abis/mainnet/spark/sDAI.json
|
|
6547
6547
|
var sDAI_default = [{ inputs: [{ internalType: "address", name: "_daiJoin", type: "address" }, { internalType: "address", name: "_pot", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "spender", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "sender", type: "address" }, { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: false, internalType: "uint256", name: "assets", type: "uint256" }, { indexed: false, internalType: "uint256", name: "shares", type: "uint256" }], name: "Deposit", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "sender", type: "address" }, { indexed: true, internalType: "address", name: "receiver", type: "address" }, { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: false, internalType: "uint256", name: "assets", type: "uint256" }, { indexed: false, internalType: "uint256", name: "shares", type: "uint256" }], name: "Withdraw", type: "event" }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "PERMIT_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "address", name: "", type: "address" }], name: "allowance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "approve", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "asset", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "balanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }], name: "convertToAssets", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }], name: "convertToShares", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "dai", outputs: [{ internalType: "contract DaiLike", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "daiJoin", outputs: [{ internalType: "contract DaiJoinLike", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "decimals", outputs: [{ internalType: "uint8", name: "", type: "uint8" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "subtractedValue", type: "uint256" }], name: "decreaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "deploymentChainId", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "deposit", outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "addedValue", type: "uint256" }], name: "increaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "maxDeposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "pure", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "maxMint", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "pure", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "maxRedeem", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "maxWithdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }], name: "mint", outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "name", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "nonces", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "bytes", name: "signature", type: "bytes" }], name: "permit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "permit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "pot", outputs: [{ internalType: "contract PotLike", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }], name: "previewDeposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }], name: "previewMint", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }], name: "previewRedeem", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }], name: "previewWithdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }, { internalType: "address", name: "owner", type: "address" }], name: "redeem", outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "symbol", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [], name: "totalAssets", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "totalSupply", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "transfer", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "transferFrom", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "vat", outputs: [{ internalType: "contract VatLike", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "version", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }, { internalType: "address", name: "receiver", type: "address" }, { internalType: "address", name: "owner", type: "address" }], name: "withdraw", outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }], stateMutability: "nonpayable", type: "function" }];
|
|
6548
6548
|
|
|
6549
|
+
// eth-sdk/abis/mainnet/stader/staking_pool_manager.json
|
|
6550
|
+
var staking_pool_manager_default = [{ inputs: [], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "CallerNotManager", type: "error" }, { inputs: [], name: "CallerNotStaderContract", type: "error" }, { inputs: [], name: "CooldownNotComplete", type: "error" }, { inputs: [], name: "InsufficientBalance", type: "error" }, { inputs: [], name: "InvalidDepositAmount", type: "error" }, { inputs: [], name: "PoolIdDoesNotExit", type: "error" }, { inputs: [], name: "TransferFailed", type: "error" }, { inputs: [], name: "UnsupportedOperation", type: "error" }, { inputs: [], name: "UnsupportedOperationInSafeMode", type: "error" }, { inputs: [], name: "ZeroAddress", type: "error" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "AuctionedEthReceived", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "caller", type: "address" }, { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: false, internalType: "uint256", name: "assets", type: "uint256" }, { indexed: false, internalType: "uint256", name: "shares", type: "uint256" }, { indexed: false, internalType: "string", name: "referralId", type: "string" }], name: "DepositReferral", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "caller", type: "address" }, { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: false, internalType: "uint256", name: "assets", type: "uint256" }, { indexed: false, internalType: "uint256", name: "shares", type: "uint256" }], name: "Deposited", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "uint256", name: "poolId", type: "uint256" }, { indexed: false, internalType: "address", name: "poolAddress", type: "address" }, { indexed: false, internalType: "uint256", name: "validatorCount", type: "uint256" }], name: "ETHTransferredToPool", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "ExecutionLayerRewardsReceived", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }], name: "Initialized", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "account", type: "address" }], name: "Paused", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "uint8", name: "poolId", type: "uint8" }], name: "ReceivedExcessEthFromPool", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "previousAdminRole", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "newAdminRole", type: "bytes32" }], name: "RoleAdminChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" }], name: "RoleGranted", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" }], name: "RoleRevoked", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "TransferredETHToUserWithdrawManager", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "account", type: "address" }], name: "Unpaused", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "excessETHDepositCoolDown", type: "uint256" }], name: "UpdatedExcessETHDepositCoolDown", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "staderConfig", type: "address" }], name: "UpdatedStaderConfig", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "WithdrawVaultUserShareReceived", type: "event" }, { stateMutability: "payable", type: "fallback" }, { inputs: [], name: "DEFAULT_ADMIN_ROLE", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_shares", type: "uint256" }], name: "convertToAssets", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_assets", type: "uint256" }], name: "convertToShares", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_receiver", type: "address" }, { internalType: "string", name: "_referralId", type: "string" }], name: "deposit", outputs: [{ internalType: "uint256", name: "_shares", type: "uint256" }], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "address", name: "_receiver", type: "address" }], name: "deposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "payable", type: "function" }, { inputs: [], name: "depositETHOverTargetWeight", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "excessETHDepositCoolDown", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "getExchangeRate", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], name: "getRoleAdmin", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "grantRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "hasRole", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_admin", type: "address" }, { internalType: "address", name: "_staderConfig", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "isVaultHealthy", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "lastExcessETHDepositBlock", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "maxDeposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "minDeposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_assets", type: "uint256" }], name: "previewDeposit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_shares", type: "uint256" }], name: "previewWithdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "receiveEthFromAuction", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "uint8", name: "_poolId", type: "uint8" }], name: "receiveExcessEthFromPool", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [], name: "receiveExecutionLayerRewards", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [], name: "receiveWithdrawVaultUserShare", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "renounceRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "revokeRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "staderConfig", outputs: [{ internalType: "contract IStaderConfig", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }], name: "supportsInterface", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "totalAssets", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }], name: "transferETHToUserWithdrawManager", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_excessETHDepositCoolDown", type: "uint256" }], name: "updateExcessETHDepositCoolDown", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_staderConfig", type: "address" }], name: "updateStaderConfig", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint8", name: "_poolId", type: "uint8" }], name: "validatorBatchDeposit", outputs: [], stateMutability: "nonpayable", type: "function" }, { stateMutability: "payable", type: "receive" }];
|
|
6551
|
+
|
|
6552
|
+
// eth-sdk/abis/mainnet/stader/user_withdraw_manager.json
|
|
6553
|
+
var user_withdraw_manager_default = [{ inputs: [], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "CallerNotAuthorizedToRedeem", type: "error" }, { inputs: [], name: "CallerNotManager", type: "error" }, { inputs: [], name: "CannotFindRequestId", type: "error" }, { inputs: [], name: "ETHTransferFailed", type: "error" }, { inputs: [], name: "InSufficientBalance", type: "error" }, { inputs: [], name: "InvalidWithdrawAmount", type: "error" }, { inputs: [], name: "MaxLimitOnWithdrawRequestCountReached", type: "error" }, { inputs: [], name: "ProtocolNotHealthy", type: "error" }, { inputs: [{ internalType: "uint256", name: "_requestId", type: "uint256" }], name: "RequestAlreadyRedeemed", type: "error" }, { inputs: [], name: "UnsupportedOperationInSafeMode", type: "error" }, { inputs: [], name: "ZeroAddress", type: "error" }, { inputs: [], name: "ZeroAddressReceived", type: "error" }, { inputs: [{ internalType: "uint256", name: "_requestId", type: "uint256" }], name: "requestIdNotFinalized", type: "error" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "requestId", type: "uint256" }], name: "FinalizedWithdrawRequest", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }], name: "Initialized", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "account", type: "address" }], name: "Paused", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "_amount", type: "uint256" }], name: "ReceivedETH", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_sender", type: "address" }, { indexed: false, internalType: "uint256", name: "_requestId", type: "uint256" }, { indexed: false, internalType: "address", name: "_oldRecipient", type: "address" }, { indexed: false, internalType: "address", name: "_newRecipient", type: "address" }], name: "RecipientAddressUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_sender", type: "address" }, { indexed: false, internalType: "address", name: "_recipient", type: "address" }, { indexed: false, internalType: "uint256", name: "_ethTransferred", type: "uint256" }], name: "RequestRedeemed", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "previousAdminRole", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "newAdminRole", type: "bytes32" }], name: "RoleAdminChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" }], name: "RoleGranted", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" }], name: "RoleRevoked", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "account", type: "address" }], name: "Unpaused", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "paginationLimit", type: "uint256" }], name: "UpdatedFinalizationBatchLimit", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "staderConfig", type: "address" }], name: "UpdatedStaderConfig", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_msgSender", type: "address" }, { indexed: false, internalType: "address", name: "_recipient", type: "address" }, { indexed: false, internalType: "uint256", name: "_requestId", type: "uint256" }, { indexed: false, internalType: "uint256", name: "_sharesAmount", type: "uint256" }, { indexed: false, internalType: "uint256", name: "_etherAmount", type: "uint256" }], name: "WithdrawRequestReceived", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_msgSender", type: "address" }, { indexed: false, internalType: "address", name: "_recipient", type: "address" }, { indexed: false, internalType: "uint256", name: "_requestId", type: "uint256" }, { indexed: false, internalType: "uint256", name: "_sharesAmount", type: "uint256" }, { indexed: false, internalType: "uint256", name: "_ethAmount", type: "uint256" }, { indexed: false, internalType: "string", name: "_referralId", type: "string" }], name: "WithdrawRequestReferral", type: "event" }, { inputs: [], name: "DEFAULT_ADMIN_ROLE", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_requestId", type: "uint256" }], name: "claim", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "ethRequestedForWithdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "finalizationBatchLimit", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "finalizeUserWithdrawalRequest", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_owner", type: "address" }], name: "getRequestIdsByUser", outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], name: "getRoleAdmin", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "grantRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "hasRole", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_admin", type: "address" }, { internalType: "address", name: "_staderConfig", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "maxNonRedeemedUserRequestCount", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "nextRequestId", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "nextRequestIdToFinalize", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "renounceRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "", type: "uint256" }], name: "requestIdsByUserAddress", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_ethXAmount", type: "uint256" }, { internalType: "address", name: "_owner", type: "address" }, { internalType: "string", name: "_referralId", type: "string" }], name: "requestWithdraw", outputs: [{ internalType: "uint256", name: "_requestId", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_ethXAmount", type: "uint256" }, { internalType: "address", name: "_owner", type: "address" }], name: "requestWithdraw", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "revokeRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "staderConfig", outputs: [{ internalType: "contract IStaderConfig", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }], name: "supportsInterface", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_finalizationBatchLimit", type: "uint256" }], name: "updateFinalizationBatchLimit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_staderConfig", type: "address" }], name: "updateStaderConfig", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "", type: "uint256" }], name: "userWithdrawRequests", outputs: [{ internalType: "address payable", name: "owner", type: "address" }, { internalType: "uint256", name: "ethXAmount", type: "uint256" }, { internalType: "uint256", name: "ethExpected", type: "uint256" }, { internalType: "uint256", name: "ethFinalized", type: "uint256" }, { internalType: "uint256", name: "requestBlock", type: "uint256" }], stateMutability: "view", type: "function" }, { stateMutability: "payable", type: "receive" }];
|
|
6554
|
+
|
|
6555
|
+
// eth-sdk/abis/mainnet/stader/ETHx.json
|
|
6556
|
+
var ETHx_default = [{ inputs: [], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "CallerNotManager", type: "error" }, { inputs: [], name: "ZeroAddress", type: "error" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "spender", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }], name: "Initialized", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "account", type: "address" }], name: "Paused", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "previousAdminRole", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "newAdminRole", type: "bytes32" }], name: "RoleAdminChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" }], name: "RoleGranted", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" }], name: "RoleRevoked", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "account", type: "address" }], name: "Unpaused", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_staderConfig", type: "address" }], name: "UpdatedStaderConfig", type: "event" }, { inputs: [], name: "BURNER_ROLE", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "DEFAULT_ADMIN_ROLE", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MINTER_ROLE", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "spender", type: "address" }], name: "allowance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "approve", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "balanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "account", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "burnFrom", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "decimals", outputs: [{ internalType: "uint8", name: "", type: "uint8" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "subtractedValue", type: "uint256" }], name: "decreaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }], name: "getRoleAdmin", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "grantRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "hasRole", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "addedValue", type: "uint256" }], name: "increaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_admin", type: "address" }, { internalType: "address", name: "_staderConfig", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "mint", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "name", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "renounceRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" }], name: "revokeRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "staderConfig", outputs: [{ internalType: "contract IStaderConfig", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }], name: "supportsInterface", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "symbol", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }, { inputs: [], name: "totalSupply", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "transfer", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "transferFrom", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_staderConfig", type: "address" }], name: "updateStaderConfig", outputs: [], stateMutability: "nonpayable", type: "function" }];
|
|
6557
|
+
|
|
6549
6558
|
// eth-sdk/abis/mainnet/dai.json
|
|
6550
6559
|
var dai_default = [{ inputs: [{ internalType: "uint256", name: "chainId_", type: "uint256" }], payable: false, stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "src", type: "address" }, { indexed: true, internalType: "address", name: "guy", type: "address" }, { indexed: false, internalType: "uint256", name: "wad", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: true, inputs: [{ indexed: true, internalType: "bytes4", name: "sig", type: "bytes4" }, { indexed: true, internalType: "address", name: "usr", type: "address" }, { indexed: true, internalType: "bytes32", name: "arg1", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "arg2", type: "bytes32" }, { indexed: false, internalType: "bytes", name: "data", type: "bytes" }], name: "LogNote", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "src", type: "address" }, { indexed: true, internalType: "address", name: "dst", type: "address" }, { indexed: false, internalType: "uint256", name: "wad", type: "uint256" }], name: "Transfer", type: "event" }, { constant: true, inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "PERMIT_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ internalType: "address", name: "", type: "address" }, { internalType: "address", name: "", type: "address" }], name: "allowance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "usr", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "approve", outputs: [{ internalType: "bool", name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ internalType: "address", name: "", type: "address" }], name: "balanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "usr", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "burn", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "decimals", outputs: [{ internalType: "uint8", name: "", type: "uint8" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "guy", type: "address" }], name: "deny", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "usr", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "mint", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "src", type: "address" }, { internalType: "address", name: "dst", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "move", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "name", outputs: [{ internalType: "string", name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ internalType: "address", name: "", type: "address" }], name: "nonces", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "holder", type: "address" }, { internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "expiry", type: "uint256" }, { internalType: "bool", name: "allowed", type: "bool" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "permit", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "usr", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "pull", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "usr", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "push", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "guy", type: "address" }], name: "rely", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "symbol", outputs: [{ internalType: "string", name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "totalSupply", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "dst", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "transfer", outputs: [{ internalType: "bool", name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ internalType: "address", name: "src", type: "address" }, { internalType: "address", name: "dst", type: "address" }, { internalType: "uint256", name: "wad", type: "uint256" }], name: "transferFrom", outputs: [{ internalType: "bool", name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "version", outputs: [{ internalType: "string", name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ internalType: "address", name: "", type: "address" }], name: "wards", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }];
|
|
6551
6560
|
|
|
@@ -6671,6 +6680,11 @@ function getMainnetSdk(defaultSignerOrProvider) {
|
|
|
6671
6680
|
"spWETH": getContract("0x59cD1C87501baa753d0B5B5Ab5D8416A45cD71DB", spWETH_default, defaultSignerOrProvider),
|
|
6672
6681
|
"sDAI": getContract("0x83F20F44975D03b1b09e64809B757c47f942BEeA", sDAI_default, defaultSignerOrProvider)
|
|
6673
6682
|
},
|
|
6683
|
+
"stader": {
|
|
6684
|
+
"staking_pool_manager": getContract("0xcf5EA1b38380f6aF39068375516Daf40Ed70D299", staking_pool_manager_default, defaultSignerOrProvider),
|
|
6685
|
+
"user_withdraw_manager": getContract("0x9F0491B32DBce587c50c4C43AB303b06478193A7", user_withdraw_manager_default, defaultSignerOrProvider),
|
|
6686
|
+
"ETHx": getContract("0xA35b1B31Ce002FBF2058D22F30f95D405200A15b", ETHx_default, defaultSignerOrProvider)
|
|
6687
|
+
},
|
|
6674
6688
|
"dai": getContract("0x6B175474E89094C44Da98b954EedeAC495271d0F", dai_default, defaultSignerOrProvider),
|
|
6675
6689
|
"usdc": getContract("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", usdc_default, defaultSignerOrProvider),
|
|
6676
6690
|
"usdt": getContract("0xdAC17F958D2ee523a2206206994597C13D831ec7", usdt_default, defaultSignerOrProvider),
|
|
@@ -6985,6 +6999,11 @@ var contracts = {
|
|
|
6985
6999
|
spWETH: "0x59cD1C87501baa753d0B5B5Ab5D8416A45cD71DB",
|
|
6986
7000
|
sDAI: "0x83F20F44975D03b1b09e64809B757c47f942BEeA"
|
|
6987
7001
|
},
|
|
7002
|
+
stader: {
|
|
7003
|
+
staking_pool_manager: "0xcf5EA1b38380f6aF39068375516Daf40Ed70D299",
|
|
7004
|
+
user_withdraw_manager: "0x9F0491B32DBce587c50c4C43AB303b06478193A7",
|
|
7005
|
+
ETHx: "0xA35b1B31Ce002FBF2058D22F30f95D405200A15b"
|
|
7006
|
+
},
|
|
6988
7007
|
dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
6989
7008
|
usdc: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
6990
7009
|
usdt: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
@@ -18191,8 +18210,14 @@ var eth13 = {
|
|
|
18191
18210
|
})
|
|
18192
18211
|
};
|
|
18193
18212
|
|
|
18194
|
-
// src/protocols/
|
|
18213
|
+
// src/protocols/ankr/schema.ts
|
|
18195
18214
|
import { z as z3 } from "zod";
|
|
18215
|
+
var eth14 = {
|
|
18216
|
+
deposit: z3.object({})
|
|
18217
|
+
};
|
|
18218
|
+
|
|
18219
|
+
// src/protocols/aura/schema.ts
|
|
18220
|
+
import { z as z4 } from "zod";
|
|
18196
18221
|
var ethTokens = [
|
|
18197
18222
|
...new Set(
|
|
18198
18223
|
ethPools_default.flatMap((pool) => pool.tokens).flatMap((token) => [token.address, token.symbol])
|
|
@@ -18203,65 +18228,65 @@ var gnoTokens = [
|
|
|
18203
18228
|
gnoPools_default.flatMap((pool) => pool.tokens).flatMap((token) => [token.address, token.symbol])
|
|
18204
18229
|
)
|
|
18205
18230
|
];
|
|
18206
|
-
var zEthPool =
|
|
18231
|
+
var zEthPool = z4.enum([
|
|
18207
18232
|
...ethPools_default.map((pool) => pool.name),
|
|
18208
18233
|
...ethPools_default.map((pool) => pool.bpt),
|
|
18209
18234
|
...ethPools_default.map((pool) => pool.id)
|
|
18210
18235
|
]);
|
|
18211
|
-
var zGnoPool =
|
|
18236
|
+
var zGnoPool = z4.enum([
|
|
18212
18237
|
...gnoPools_default.map((pool) => pool.name),
|
|
18213
18238
|
...gnoPools_default.map((pool) => pool.bpt),
|
|
18214
18239
|
...gnoPools_default.map((pool) => pool.id)
|
|
18215
18240
|
]);
|
|
18216
|
-
var zEthToken =
|
|
18217
|
-
var zGnoToken =
|
|
18218
|
-
var zStakeToken3 =
|
|
18241
|
+
var zEthToken = z4.enum(ethTokens);
|
|
18242
|
+
var zGnoToken = z4.enum(gnoTokens);
|
|
18243
|
+
var zStakeToken3 = z4.enum([
|
|
18219
18244
|
...stakeTokens_default2.map((token) => token.symbol),
|
|
18220
18245
|
...stakeTokens_default2.map((token) => token.address)
|
|
18221
18246
|
]);
|
|
18222
|
-
var
|
|
18223
|
-
deposit:
|
|
18247
|
+
var eth15 = {
|
|
18248
|
+
deposit: z4.object({
|
|
18224
18249
|
targets: zEthPool.array(),
|
|
18225
18250
|
tokens: zEthToken.array().optional()
|
|
18226
18251
|
}),
|
|
18227
|
-
stake:
|
|
18252
|
+
stake: z4.object({
|
|
18228
18253
|
targets: zStakeToken3.array()
|
|
18229
18254
|
}),
|
|
18230
18255
|
// TODO standard action? include in stake action? or move to client-configs?
|
|
18231
18256
|
// compound: z.object({
|
|
18232
18257
|
// targets: zStakeToken.array(),
|
|
18233
18258
|
// }),
|
|
18234
|
-
lock:
|
|
18259
|
+
lock: z4.object({})
|
|
18235
18260
|
};
|
|
18236
18261
|
var gno4 = {
|
|
18237
|
-
deposit:
|
|
18262
|
+
deposit: z4.object({
|
|
18238
18263
|
targets: zGnoPool.array(),
|
|
18239
18264
|
tokens: zGnoToken.array().optional()
|
|
18240
18265
|
})
|
|
18241
18266
|
};
|
|
18242
18267
|
|
|
18243
18268
|
// src/protocols/balancer/schema.ts
|
|
18244
|
-
import { z as
|
|
18269
|
+
import { z as z5 } from "zod";
|
|
18245
18270
|
var ethTokens2 = [
|
|
18246
18271
|
...new Set(
|
|
18247
18272
|
ethPools_default2.flatMap((pool) => pool.tokens).flatMap((token) => [token.address, token.symbol])
|
|
18248
18273
|
)
|
|
18249
18274
|
];
|
|
18250
|
-
var zPool =
|
|
18275
|
+
var zPool = z5.enum([
|
|
18251
18276
|
...ethPools_default2.map((pool) => pool.name),
|
|
18252
18277
|
...ethPools_default2.map((pool) => pool.bpt),
|
|
18253
18278
|
...ethPools_default2.map((pool) => pool.id)
|
|
18254
18279
|
]);
|
|
18255
|
-
var zToken3 =
|
|
18256
|
-
var
|
|
18257
|
-
deposit:
|
|
18280
|
+
var zToken3 = z5.enum(ethTokens2);
|
|
18281
|
+
var eth16 = {
|
|
18282
|
+
deposit: z5.object({
|
|
18258
18283
|
targets: zPool.array(),
|
|
18259
18284
|
tokens: zToken3.array().optional()
|
|
18260
18285
|
}),
|
|
18261
|
-
stake:
|
|
18286
|
+
stake: z5.object({
|
|
18262
18287
|
targets: zPool.array()
|
|
18263
18288
|
}),
|
|
18264
|
-
lock:
|
|
18289
|
+
lock: z5.object({})
|
|
18265
18290
|
// swap: z.object({
|
|
18266
18291
|
// sell: zToken.array().optional(),
|
|
18267
18292
|
// buy: zToken.array().optional(),
|
|
@@ -18270,48 +18295,48 @@ var eth15 = {
|
|
|
18270
18295
|
};
|
|
18271
18296
|
|
|
18272
18297
|
// src/protocols/compound/v2/schema.ts
|
|
18273
|
-
import { z as
|
|
18274
|
-
var zToken4 =
|
|
18298
|
+
import { z as z6 } from "zod";
|
|
18299
|
+
var zToken4 = z6.enum([
|
|
18275
18300
|
...info_default3.map((token) => token.symbol),
|
|
18276
18301
|
...info_default3.map((token) => token.token)
|
|
18277
18302
|
]);
|
|
18278
|
-
var
|
|
18279
|
-
deposit:
|
|
18303
|
+
var eth17 = {
|
|
18304
|
+
deposit: z6.object({
|
|
18280
18305
|
targets: zToken4.array()
|
|
18281
18306
|
}),
|
|
18282
|
-
borrow:
|
|
18307
|
+
borrow: z6.object({
|
|
18283
18308
|
targets: zToken4.array()
|
|
18284
18309
|
})
|
|
18285
18310
|
};
|
|
18286
18311
|
|
|
18287
18312
|
// src/protocols/convex/schema.ts
|
|
18288
|
-
import { z as
|
|
18289
|
-
var zPool2 =
|
|
18313
|
+
import { z as z7 } from "zod";
|
|
18314
|
+
var zPool2 = z7.enum([
|
|
18290
18315
|
...info_default4.map((pool) => pool.name),
|
|
18291
18316
|
...info_default4.map((pool) => pool.crvLPToken),
|
|
18292
18317
|
...info_default4.map((pool) => pool.id)
|
|
18293
18318
|
]);
|
|
18294
|
-
var zStakeToken4 =
|
|
18319
|
+
var zStakeToken4 = z7.enum([
|
|
18295
18320
|
...stakeTokens_default3.map((token) => token.symbol),
|
|
18296
18321
|
...stakeTokens_default3.map((token) => token.address)
|
|
18297
18322
|
]);
|
|
18298
|
-
var
|
|
18299
|
-
deposit:
|
|
18323
|
+
var eth18 = {
|
|
18324
|
+
deposit: z7.object({
|
|
18300
18325
|
targets: zPool2.array()
|
|
18301
18326
|
}),
|
|
18302
|
-
stake:
|
|
18327
|
+
stake: z7.object({
|
|
18303
18328
|
targets: zStakeToken4.array()
|
|
18304
18329
|
}),
|
|
18305
|
-
lock:
|
|
18330
|
+
lock: z7.object({})
|
|
18306
18331
|
};
|
|
18307
18332
|
|
|
18308
18333
|
// src/protocols/cowswap/schema.ts
|
|
18309
|
-
import { z as
|
|
18310
|
-
var swap2 =
|
|
18334
|
+
import { z as z8 } from "zod";
|
|
18335
|
+
var swap2 = z8.object({
|
|
18311
18336
|
sell: zx.address().array(),
|
|
18312
18337
|
buy: zx.address().array().optional()
|
|
18313
18338
|
});
|
|
18314
|
-
var
|
|
18339
|
+
var eth19 = {
|
|
18315
18340
|
swap: swap2
|
|
18316
18341
|
};
|
|
18317
18342
|
var gno5 = {
|
|
@@ -18319,53 +18344,68 @@ var gno5 = {
|
|
|
18319
18344
|
};
|
|
18320
18345
|
|
|
18321
18346
|
// src/protocols/lido/schema.ts
|
|
18322
|
-
import { z as
|
|
18323
|
-
var
|
|
18324
|
-
deposit:
|
|
18347
|
+
import { z as z9 } from "zod";
|
|
18348
|
+
var eth20 = {
|
|
18349
|
+
deposit: z9.object({})
|
|
18325
18350
|
};
|
|
18326
18351
|
|
|
18327
18352
|
// src/protocols/maker/schema.ts
|
|
18328
|
-
import { z as
|
|
18329
|
-
var
|
|
18330
|
-
deposit:
|
|
18331
|
-
targets:
|
|
18353
|
+
import { z as z10 } from "zod";
|
|
18354
|
+
var eth21 = {
|
|
18355
|
+
deposit: z10.object({
|
|
18356
|
+
targets: z10.string().array().optional(),
|
|
18332
18357
|
avatar: zx.address()
|
|
18333
18358
|
}),
|
|
18334
|
-
borrow:
|
|
18335
|
-
targets:
|
|
18359
|
+
borrow: z10.object({
|
|
18360
|
+
targets: z10.string().array().optional(),
|
|
18336
18361
|
avatar: zx.address()
|
|
18337
18362
|
})
|
|
18338
18363
|
};
|
|
18339
18364
|
|
|
18365
|
+
// src/protocols/rocket_pool/schema.ts
|
|
18366
|
+
import { z as z11 } from "zod";
|
|
18367
|
+
var eth22 = {
|
|
18368
|
+
deposit: z11.object({})
|
|
18369
|
+
};
|
|
18370
|
+
|
|
18340
18371
|
// src/protocols/spark/schema.ts
|
|
18341
|
-
import { z as
|
|
18342
|
-
var zToken5 =
|
|
18372
|
+
import { z as z12 } from "zod";
|
|
18373
|
+
var zToken5 = z12.enum([
|
|
18343
18374
|
...info_default6.map((token) => token.symbol),
|
|
18344
18375
|
"DSR_sDAI",
|
|
18345
18376
|
...info_default6.map((token) => token.token)
|
|
18346
18377
|
]);
|
|
18347
|
-
var
|
|
18348
|
-
deposit:
|
|
18378
|
+
var eth23 = {
|
|
18379
|
+
deposit: z12.object({
|
|
18349
18380
|
targets: zToken5.array()
|
|
18350
18381
|
}),
|
|
18351
|
-
borrow:
|
|
18382
|
+
borrow: z12.object({
|
|
18352
18383
|
targets: zToken5.array()
|
|
18353
18384
|
})
|
|
18354
18385
|
};
|
|
18355
18386
|
|
|
18387
|
+
// src/protocols/stader/schema.ts
|
|
18388
|
+
import { z as z13 } from "zod";
|
|
18389
|
+
var eth24 = {
|
|
18390
|
+
deposit: z13.object({})
|
|
18391
|
+
};
|
|
18392
|
+
|
|
18356
18393
|
// src/protocols/schema.ts
|
|
18357
|
-
var
|
|
18394
|
+
var eth25 = {
|
|
18358
18395
|
aave_v2: eth12,
|
|
18359
18396
|
aave_v3: eth13,
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18397
|
+
ankr: eth14,
|
|
18398
|
+
aura: eth15,
|
|
18399
|
+
balancer: eth16,
|
|
18400
|
+
compound_v2: eth17,
|
|
18363
18401
|
// compound_v3: compound_v3.eth,
|
|
18364
|
-
convex:
|
|
18365
|
-
cowswap:
|
|
18366
|
-
lido:
|
|
18367
|
-
maker:
|
|
18368
|
-
|
|
18402
|
+
convex: eth18,
|
|
18403
|
+
cowswap: eth19,
|
|
18404
|
+
lido: eth20,
|
|
18405
|
+
maker: eth21,
|
|
18406
|
+
rocket_pool: eth22,
|
|
18407
|
+
spark: eth23,
|
|
18408
|
+
stader: eth24
|
|
18369
18409
|
};
|
|
18370
18410
|
var gno6 = {
|
|
18371
18411
|
aura: gno4,
|
|
@@ -18503,9 +18543,9 @@ var asTxBuilderInputValues = (result) => {
|
|
|
18503
18543
|
export {
|
|
18504
18544
|
eth11 as eth,
|
|
18505
18545
|
gno3 as gno,
|
|
18506
|
-
|
|
18546
|
+
eth25 as eth2,
|
|
18507
18547
|
gno6 as gno2,
|
|
18508
18548
|
createApply,
|
|
18509
18549
|
createExportToSafeTransactionBuilder
|
|
18510
18550
|
};
|
|
18511
|
-
//# sourceMappingURL=chunk-
|
|
18551
|
+
//# sourceMappingURL=chunk-EBMINSV3.mjs.map
|