@lagoon-protocol/v0-core 0.17.0 → 0.18.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/dist/cjs/index.cjs +608 -5
- package/dist/esm/index.js +608 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/addresses.d.ts +6 -0
- package/dist/types/addresses.d.ts.map +1 -1
- package/dist/types/chain.d.ts +2 -2
- package/dist/types/chain.d.ts.map +1 -1
- package/dist/types/constants/abis.d.ts +494 -0
- package/dist/types/constants/abis.d.ts.map +1 -1
- package/dist/types/events/Log.d.ts +25 -0
- package/dist/types/events/Log.d.ts.map +1 -0
- package/dist/types/events/factory/BeaconProxyDeployed.d.ts +14 -0
- package/dist/types/events/factory/BeaconProxyDeployed.d.ts.map +1 -0
- package/dist/types/events/factory/ProxyDeployed.d.ts +14 -0
- package/dist/types/events/factory/ProxyDeployed.d.ts.map +1 -0
- package/dist/types/events/factory/Upgraded.d.ts +12 -0
- package/dist/types/events/factory/Upgraded.d.ts.map +1 -0
- package/dist/types/events/factory/index.d.ts +4 -0
- package/dist/types/events/factory/index.d.ts.map +1 -0
- package/dist/types/events/index.d.ts +4 -0
- package/dist/types/events/index.d.ts.map +1 -0
- package/dist/types/events/vault/Approval.d.ts +16 -0
- package/dist/types/events/vault/Approval.d.ts.map +1 -0
- package/dist/types/events/vault/Deposit.d.ts +18 -0
- package/dist/types/events/vault/Deposit.d.ts.map +1 -0
- package/dist/types/events/vault/DepositRequest.d.ts +20 -0
- package/dist/types/events/vault/DepositRequest.d.ts.map +1 -0
- package/dist/types/events/vault/DepositRequestCanceled.d.ts +14 -0
- package/dist/types/events/vault/DepositRequestCanceled.d.ts.map +1 -0
- package/dist/types/events/vault/DepositSync.d.ts +18 -0
- package/dist/types/events/vault/DepositSync.d.ts.map +1 -0
- package/dist/types/events/vault/FeeReceiverUpdated.d.ts +14 -0
- package/dist/types/events/vault/FeeReceiverUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/HighWaterMarkUpdated.d.ts +14 -0
- package/dist/types/events/vault/HighWaterMarkUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/Initialized.d.ts +12 -0
- package/dist/types/events/vault/Initialized.d.ts.map +1 -0
- package/dist/types/events/vault/NewTotalAssetsUpdated.d.ts +12 -0
- package/dist/types/events/vault/NewTotalAssetsUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/OperatorSet.d.ts +16 -0
- package/dist/types/events/vault/OperatorSet.d.ts.map +1 -0
- package/dist/types/events/vault/OwnershipTransferStarted.d.ts +14 -0
- package/dist/types/events/vault/OwnershipTransferStarted.d.ts.map +1 -0
- package/dist/types/events/vault/OwnershipTransferred.d.ts +14 -0
- package/dist/types/events/vault/OwnershipTransferred.d.ts.map +1 -0
- package/dist/types/events/vault/Paused.d.ts +12 -0
- package/dist/types/events/vault/Paused.d.ts.map +1 -0
- package/dist/types/events/vault/RatesUpdated.d.ts +17 -0
- package/dist/types/events/vault/RatesUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/RedeemRequest.d.ts +20 -0
- package/dist/types/events/vault/RedeemRequest.d.ts.map +1 -0
- package/dist/types/events/vault/Referral.d.ts +18 -0
- package/dist/types/events/vault/Referral.d.ts.map +1 -0
- package/dist/types/events/vault/SettleDeposit.d.ts +22 -0
- package/dist/types/events/vault/SettleDeposit.d.ts.map +1 -0
- package/dist/types/events/vault/SettleRedeem.d.ts +22 -0
- package/dist/types/events/vault/SettleRedeem.d.ts.map +1 -0
- package/dist/types/events/vault/StateUpdated.d.ts +12 -0
- package/dist/types/events/vault/StateUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/TotalAssetsLifespanUpdated.d.ts +14 -0
- package/dist/types/events/vault/TotalAssetsLifespanUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/TotalAssetsUpdated.d.ts +12 -0
- package/dist/types/events/vault/TotalAssetsUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/Transfer.d.ts +16 -0
- package/dist/types/events/vault/Transfer.d.ts.map +1 -0
- package/dist/types/events/vault/Unpaused.d.ts +12 -0
- package/dist/types/events/vault/Unpaused.d.ts.map +1 -0
- package/dist/types/events/vault/ValuationManagerUpdated.d.ts +14 -0
- package/dist/types/events/vault/ValuationManagerUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/WhitelistDisabled.d.ts +9 -0
- package/dist/types/events/vault/WhitelistDisabled.d.ts.map +1 -0
- package/dist/types/events/vault/WhitelistManagerUpdated.d.ts +14 -0
- package/dist/types/events/vault/WhitelistManagerUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/WhitelistUpdated.d.ts +14 -0
- package/dist/types/events/vault/WhitelistUpdated.d.ts.map +1 -0
- package/dist/types/events/vault/Withdraw.d.ts +20 -0
- package/dist/types/events/vault/Withdraw.d.ts.map +1 -0
- package/dist/types/events/vault/index.d.ts +29 -0
- package/dist/types/events/vault/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +3 -0
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -2145,24 +2145,60 @@ __export(exports_src, {
|
|
|
2145
2145
|
tryCatch: () => tryCatch,
|
|
2146
2146
|
resolveVersion: () => resolveVersion,
|
|
2147
2147
|
isValidVersion: () => isValidVersion,
|
|
2148
|
+
hexToHash: () => hexToHash,
|
|
2149
|
+
hexToAddress: () => hexToAddress,
|
|
2148
2150
|
feeRegistryAbi_v2: () => feeRegistryAbi_v2,
|
|
2151
|
+
factoryAbi_v2: () => factoryAbi_v2,
|
|
2152
|
+
factoryAbi_v1: () => factoryAbi_v1,
|
|
2149
2153
|
addresses: () => addresses,
|
|
2154
|
+
Withdraw: () => Withdraw,
|
|
2155
|
+
WhitelistUpdated: () => WhitelistUpdated,
|
|
2156
|
+
WhitelistManagerUpdated: () => WhitelistManagerUpdated,
|
|
2157
|
+
WhitelistDisabled: () => WhitelistDisabled,
|
|
2150
2158
|
Version: () => Version,
|
|
2151
2159
|
VaultUtils: () => VaultUtils,
|
|
2152
2160
|
Vault: () => Vault,
|
|
2161
|
+
ValuationManagerUpdated: () => ValuationManagerUpdated,
|
|
2153
2162
|
User: () => User,
|
|
2163
|
+
Upgraded: () => Upgraded,
|
|
2164
|
+
Unpaused: () => Unpaused,
|
|
2165
|
+
Transfer: () => Transfer,
|
|
2166
|
+
TotalAssetsUpdated: () => TotalAssetsUpdated,
|
|
2167
|
+
TotalAssetsLifespanUpdated: () => TotalAssetsLifespanUpdated,
|
|
2154
2168
|
Token: () => Token,
|
|
2169
|
+
StateUpdated: () => StateUpdated,
|
|
2155
2170
|
State: () => State,
|
|
2171
|
+
SettleRedeem: () => SettleRedeem,
|
|
2172
|
+
SettleDeposit: () => SettleDeposit,
|
|
2156
2173
|
SettleData: () => SettleData,
|
|
2174
|
+
Referral: () => Referral,
|
|
2175
|
+
RedeemRequest: () => RedeemRequest,
|
|
2176
|
+
RatesUpdated: () => RatesUpdated,
|
|
2177
|
+
ProxyDeployed: () => ProxyDeployed,
|
|
2178
|
+
Paused: () => Paused,
|
|
2179
|
+
OwnershipTransferred: () => OwnershipTransferred,
|
|
2180
|
+
OwnershipTransferStarted: () => OwnershipTransferStarted,
|
|
2157
2181
|
OptinProxy: () => OptinProxy,
|
|
2182
|
+
OperatorSet: () => OperatorSet,
|
|
2183
|
+
NewTotalAssetsUpdated: () => NewTotalAssetsUpdated,
|
|
2158
2184
|
NATIVE_ADDRESS: () => NATIVE_ADDRESS,
|
|
2159
2185
|
MathLib: () => MathLib,
|
|
2186
|
+
Log: () => Log,
|
|
2160
2187
|
LATEST_VERSION: () => LATEST_VERSION,
|
|
2188
|
+
Initialized: () => Initialized,
|
|
2189
|
+
HighWaterMarkUpdated: () => HighWaterMarkUpdated,
|
|
2190
|
+
FeeReceiverUpdated: () => FeeReceiverUpdated,
|
|
2161
2191
|
EncodingUtils: () => EncodingUtils,
|
|
2192
|
+
DepositSync: () => DepositSync,
|
|
2193
|
+
DepositRequestCanceled: () => DepositRequestCanceled,
|
|
2194
|
+
DepositRequest: () => DepositRequest,
|
|
2195
|
+
Deposit: () => Deposit,
|
|
2162
2196
|
DelayProxyAdmin: () => DelayProxyAdmin,
|
|
2163
2197
|
ChainUtils: () => ChainUtils,
|
|
2164
2198
|
ChainId: () => ChainId,
|
|
2165
|
-
CacheMissError: () => CacheMissError
|
|
2199
|
+
CacheMissError: () => CacheMissError,
|
|
2200
|
+
BeaconProxyDeployed: () => BeaconProxyDeployed,
|
|
2201
|
+
Approval: () => Approval
|
|
2166
2202
|
});
|
|
2167
2203
|
module.exports = __toCommonJS(exports_src);
|
|
2168
2204
|
|
|
@@ -2173,6 +2209,8 @@ var vaultAbi_v0_3_0 = [{ type: "constructor", inputs: [{ name: "disable", type:
|
|
|
2173
2209
|
var vaultAbi_v0_2_0 = [{ type: "constructor", inputs: [{ name: "disable", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "MAX_MANAGEMENT_RATE", inputs: [], outputs: [{ name: "", type: "uint16", internalType: "uint16" }], stateMutability: "view" }, { type: "function", name: "MAX_PERFORMANCE_RATE", inputs: [], outputs: [{ name: "", type: "uint16", internalType: "uint16" }], stateMutability: "view" }, { type: "function", name: "MAX_PROTOCOL_RATE", inputs: [], outputs: [{ name: "", type: "uint16", internalType: "uint16" }], stateMutability: "view" }, { type: "function", name: "acceptOwnership", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "addToWhitelist", inputs: [{ name: "accounts", type: "address[]", internalType: "address[]" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "allowance", inputs: [{ name: "owner", type: "address", internalType: "address" }, { name: "spender", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "approve", inputs: [{ name: "spender", type: "address", internalType: "address" }, { name: "value", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "asset", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "balanceOf", inputs: [{ name: "account", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "cancelRequestDeposit", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "claimSharesAndRequestRedeem", inputs: [{ name: "sharesToRedeem", type: "uint256", internalType: "uint256" }], outputs: [{ name: "requestId", type: "uint40", internalType: "uint40" }], stateMutability: "nonpayable" }, { type: "function", name: "claimableDepositRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "claimableRedeemRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "close", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "convertToAssets", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "convertToAssets", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "requestId", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "convertToShares", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "convertToShares", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "requestId", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "decimals", inputs: [], outputs: [{ name: "", type: "uint8", internalType: "uint8" }], stateMutability: "view" }, { type: "function", name: "deposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "deposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "disableWhitelist", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "feeRates", inputs: [], outputs: [{ name: "", type: "tuple", internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }], stateMutability: "view" }, { type: "function", name: "getRolesStorage", inputs: [], outputs: [{ name: "_rolesStorage", type: "tuple", internalType: "struct Roles.RolesStorage", components: [{ name: "whitelistManager", type: "address", internalType: "address" }, { name: "feeReceiver", type: "address", internalType: "address" }, { name: "safe", type: "address", internalType: "address" }, { name: "feeRegistry", type: "address", internalType: "contract FeeRegistry" }, { name: "valuationManager", type: "address", internalType: "address" }] }], stateMutability: "pure" }, { type: "function", name: "highWaterMark", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "initialize", inputs: [{ name: "init", type: "tuple", internalType: "struct InitStruct", components: [{ name: "underlying", type: "address", internalType: "contract IERC20" }, { name: "name", type: "string", internalType: "string" }, { name: "symbol", type: "string", internalType: "string" }, { name: "safe", type: "address", internalType: "address" }, { name: "whitelistManager", type: "address", internalType: "address" }, { name: "valuationManager", type: "address", internalType: "address" }, { name: "admin", type: "address", internalType: "address" }, { name: "feeReceiver", type: "address", internalType: "address" }, { name: "feeRegistry", type: "address", internalType: "address" }, { name: "wrappedNativeToken", type: "address", internalType: "address" }, { name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }, { name: "enableWhitelist", type: "bool", internalType: "bool" }, { name: "rateUpdateCooldown", type: "uint256", internalType: "uint256" }] }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "initiateClosing", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "isOperator", inputs: [{ name: "controller", type: "address", internalType: "address" }, { name: "operator", type: "address", internalType: "address" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "isWhitelistActivated", inputs: [], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "isWhitelisted", inputs: [{ name: "account", type: "address", internalType: "address" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "lastDepositRequestId", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint40", internalType: "uint40" }], stateMutability: "view" }, { type: "function", name: "lastFeeTime", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "lastRedeemRequestId", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint40", internalType: "uint40" }], stateMutability: "view" }, { type: "function", name: "maxDeposit", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "maxMint", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "maxRedeem", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "maxWithdraw", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "mint", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "mint", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "name", inputs: [], outputs: [{ name: "", type: "string", internalType: "string" }], stateMutability: "view" }, { type: "function", name: "owner", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "pause", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "paused", inputs: [], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "pendingDepositRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "pendingOwner", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "pendingRedeemRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "pendingSilo", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "previewDeposit", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "previewMint", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "previewRedeem", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "previewWithdraw", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "redeem", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "renounceOwnership", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "requestDeposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" }], outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }], stateMutability: "payable" }, { type: "function", name: "requestDeposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" }, { name: "referral", type: "address", internalType: "address" }], outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }], stateMutability: "payable" }, { type: "function", name: "requestRedeem", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" }], outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "revokeFromWhitelist", inputs: [{ name: "accounts", type: "address[]", internalType: "address[]" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "setOperator", inputs: [{ name: "operator", type: "address", internalType: "address" }, { name: "approved", type: "bool", internalType: "bool" }], outputs: [{ name: "success", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "settleDeposit", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "settleRedeem", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "share", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "supportsInterface", inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "symbol", inputs: [], outputs: [{ name: "", type: "string", internalType: "string" }], stateMutability: "view" }, { type: "function", name: "totalAssets", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "totalSupply", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "transfer", inputs: [{ name: "to", type: "address", internalType: "address" }, { name: "value", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "transferFrom", inputs: [{ name: "from", type: "address", internalType: "address" }, { name: "to", type: "address", internalType: "address" }, { name: "value", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "transferOwnership", inputs: [{ name: "newOwner", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "unpause", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateFeeReceiver", inputs: [{ name: "_feeReceiver", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateNewTotalAssets", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateRates", inputs: [{ name: "newRates", type: "tuple", internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateValuationManager", inputs: [{ name: "_valuationManager", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateWhitelistManager", inputs: [{ name: "_whitelistManager", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "withdraw", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "event", name: "Approval", inputs: [{ name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "spender", type: "address", indexed: true, internalType: "address" }, { name: "value", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Deposit", inputs: [{ name: "sender", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "shares", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "DepositRequest", inputs: [{ name: "controller", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "sender", type: "address", indexed: false, internalType: "address" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "DepositRequestCanceled", inputs: [{ name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "controller", type: "address", indexed: true, internalType: "address" }], anonymous: false }, { type: "event", name: "FeeReceiverUpdated", inputs: [{ name: "oldReceiver", type: "address", indexed: false, internalType: "address" }, { name: "newReceiver", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "HighWaterMarkUpdated", inputs: [{ name: "oldHighWaterMark", type: "uint256", indexed: false, internalType: "uint256" }, { name: "newHighWaterMark", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Initialized", inputs: [{ name: "version", type: "uint64", indexed: false, internalType: "uint64" }], anonymous: false }, { type: "event", name: "NewTotalAssetsUpdated", inputs: [{ name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "OperatorSet", inputs: [{ name: "controller", type: "address", indexed: true, internalType: "address" }, { name: "operator", type: "address", indexed: true, internalType: "address" }, { name: "approved", type: "bool", indexed: false, internalType: "bool" }], anonymous: false }, { type: "event", name: "OwnershipTransferStarted", inputs: [{ name: "previousOwner", type: "address", indexed: true, internalType: "address" }, { name: "newOwner", type: "address", indexed: true, internalType: "address" }], anonymous: false }, { type: "event", name: "OwnershipTransferred", inputs: [{ name: "previousOwner", type: "address", indexed: true, internalType: "address" }, { name: "newOwner", type: "address", indexed: true, internalType: "address" }], anonymous: false }, { type: "event", name: "Paused", inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "RatesUpdated", inputs: [{ name: "oldRates", type: "tuple", indexed: false, internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }, { name: "newRate", type: "tuple", indexed: false, internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }, { name: "timestamp", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "RedeemRequest", inputs: [{ name: "controller", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "sender", type: "address", indexed: false, internalType: "address" }, { name: "shares", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Referral", inputs: [{ name: "referral", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "SettleDeposit", inputs: [{ name: "epochId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "settledId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "totalSupply", type: "uint256", indexed: false, internalType: "uint256" }, { name: "assetsDeposited", type: "uint256", indexed: false, internalType: "uint256" }, { name: "sharesMinted", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "SettleRedeem", inputs: [{ name: "epochId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "settledId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "totalSupply", type: "uint256", indexed: false, internalType: "uint256" }, { name: "assetsWithdrawed", type: "uint256", indexed: false, internalType: "uint256" }, { name: "sharesBurned", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "StateUpdated", inputs: [{ name: "state", type: "uint8", indexed: false, internalType: "enum State" }], anonymous: false }, { type: "event", name: "TotalAssetsUpdated", inputs: [{ name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Transfer", inputs: [{ name: "from", type: "address", indexed: true, internalType: "address" }, { name: "to", type: "address", indexed: true, internalType: "address" }, { name: "value", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Unpaused", inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "ValuationManagerUpdated", inputs: [{ name: "oldManager", type: "address", indexed: false, internalType: "address" }, { name: "newManager", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "WhitelistDisabled", inputs: [], anonymous: false }, { type: "event", name: "WhitelistManagerUpdated", inputs: [{ name: "oldManager", type: "address", indexed: false, internalType: "address" }, { name: "newManager", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "WhitelistUpdated", inputs: [{ name: "account", type: "address", indexed: true, internalType: "address" }, { name: "authorized", type: "bool", indexed: false, internalType: "bool" }], anonymous: false }, { type: "event", name: "Withdraw", inputs: [{ name: "sender", type: "address", indexed: true, internalType: "address" }, { name: "receiver", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "shares", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "error", name: "AboveMaxRate", inputs: [{ name: "maxRate", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "AddressEmptyCode", inputs: [{ name: "target", type: "address", internalType: "address" }] }, { type: "error", name: "AddressInsufficientBalance", inputs: [{ name: "account", type: "address", internalType: "address" }] }, { type: "error", name: "CantDepositNativeToken", inputs: [] }, { type: "error", name: "Closed", inputs: [] }, { type: "error", name: "ERC20InsufficientAllowance", inputs: [{ name: "spender", type: "address", internalType: "address" }, { name: "allowance", type: "uint256", internalType: "uint256" }, { name: "needed", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC20InsufficientBalance", inputs: [{ name: "sender", type: "address", internalType: "address" }, { name: "balance", type: "uint256", internalType: "uint256" }, { name: "needed", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC20InvalidApprover", inputs: [{ name: "approver", type: "address", internalType: "address" }] }, { type: "error", name: "ERC20InvalidReceiver", inputs: [{ name: "receiver", type: "address", internalType: "address" }] }, { type: "error", name: "ERC20InvalidSender", inputs: [{ name: "sender", type: "address", internalType: "address" }] }, { type: "error", name: "ERC20InvalidSpender", inputs: [{ name: "spender", type: "address", internalType: "address" }] }, { type: "error", name: "ERC4626ExceededMaxDeposit", inputs: [{ name: "receiver", type: "address", internalType: "address" }, { name: "assets", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC4626ExceededMaxMint", inputs: [{ name: "receiver", type: "address", internalType: "address" }, { name: "shares", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC4626ExceededMaxRedeem", inputs: [{ name: "owner", type: "address", internalType: "address" }, { name: "shares", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC4626ExceededMaxWithdraw", inputs: [{ name: "owner", type: "address", internalType: "address" }, { name: "assets", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC7540InvalidOperator", inputs: [] }, { type: "error", name: "ERC7540PreviewDepositDisabled", inputs: [] }, { type: "error", name: "ERC7540PreviewMintDisabled", inputs: [] }, { type: "error", name: "ERC7540PreviewRedeemDisabled", inputs: [] }, { type: "error", name: "ERC7540PreviewWithdrawDisabled", inputs: [] }, { type: "error", name: "EnforcedPause", inputs: [] }, { type: "error", name: "ExpectedPause", inputs: [] }, { type: "error", name: "FailedInnerCall", inputs: [] }, { type: "error", name: "InvalidInitialization", inputs: [] }, { type: "error", name: "MathOverflowedMulDiv", inputs: [] }, { type: "error", name: "NewTotalAssetsMissing", inputs: [] }, { type: "error", name: "NotClosing", inputs: [{ name: "currentState", type: "uint8", internalType: "enum State" }] }, { type: "error", name: "NotInitializing", inputs: [] }, { type: "error", name: "NotOpen", inputs: [{ name: "currentState", type: "uint8", internalType: "enum State" }] }, { type: "error", name: "NotWhitelisted", inputs: [] }, { type: "error", name: "OnlyOneRequestAllowed", inputs: [] }, { type: "error", name: "OnlySafe", inputs: [{ name: "safe", type: "address", internalType: "address" }] }, { type: "error", name: "OnlyValuationManager", inputs: [{ name: "valuationManager", type: "address", internalType: "address" }] }, { type: "error", name: "OnlyWhitelistManager", inputs: [{ name: "whitelistManager", type: "address", internalType: "address" }] }, { type: "error", name: "OwnableInvalidOwner", inputs: [{ name: "owner", type: "address", internalType: "address" }] }, { type: "error", name: "OwnableUnauthorizedAccount", inputs: [{ name: "account", type: "address", internalType: "address" }] }, { type: "error", name: "RequestIdNotClaimable", inputs: [] }, { type: "error", name: "RequestNotCancelable", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "SafeERC20FailedOperation", inputs: [{ name: "token", type: "address", internalType: "address" }] }, { type: "error", name: "WrongNewTotalAssets", inputs: [] }];
|
|
2174
2210
|
var vaultAbi_v0_1_0 = [{ type: "constructor", inputs: [{ name: "disable", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "MAX_MANAGEMENT_RATE", inputs: [], outputs: [{ name: "", type: "uint16", internalType: "uint16" }], stateMutability: "view" }, { type: "function", name: "MAX_PERFORMANCE_RATE", inputs: [], outputs: [{ name: "", type: "uint16", internalType: "uint16" }], stateMutability: "view" }, { type: "function", name: "MAX_PROTOCOL_RATE", inputs: [], outputs: [{ name: "", type: "uint16", internalType: "uint16" }], stateMutability: "view" }, { type: "function", name: "acceptOwnership", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "addToWhitelist", inputs: [{ name: "accounts", type: "address[]", internalType: "address[]" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "allowance", inputs: [{ name: "owner", type: "address", internalType: "address" }, { name: "spender", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "approve", inputs: [{ name: "spender", type: "address", internalType: "address" }, { name: "value", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "asset", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "balanceOf", inputs: [{ name: "account", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "cancelRequestDeposit", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "claimSharesAndRequestRedeem", inputs: [{ name: "sharesToRedeem", type: "uint256", internalType: "uint256" }], outputs: [{ name: "requestId", type: "uint40", internalType: "uint40" }], stateMutability: "nonpayable" }, { type: "function", name: "claimableDepositRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "claimableRedeemRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "close", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "convertToAssets", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "convertToAssets", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "requestId", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "convertToShares", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "convertToShares", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "requestId", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "decimals", inputs: [], outputs: [{ name: "", type: "uint8", internalType: "uint8" }], stateMutability: "view" }, { type: "function", name: "deposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "deposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "disableWhitelist", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "feeRates", inputs: [], outputs: [{ name: "", type: "tuple", internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }], stateMutability: "view" }, { type: "function", name: "getRolesStorage", inputs: [], outputs: [{ name: "_rolesStorage", type: "tuple", internalType: "struct Roles.RolesStorage", components: [{ name: "whitelistManager", type: "address", internalType: "address" }, { name: "feeReceiver", type: "address", internalType: "address" }, { name: "safe", type: "address", internalType: "address" }, { name: "feeRegistry", type: "address", internalType: "contract FeeRegistry" }, { name: "valuationManager", type: "address", internalType: "address" }] }], stateMutability: "pure" }, { type: "function", name: "highWaterMark", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "initialize", inputs: [{ name: "init", type: "tuple", internalType: "struct InitStruct", components: [{ name: "underlying", type: "address", internalType: "contract IERC20" }, { name: "name", type: "string", internalType: "string" }, { name: "symbol", type: "string", internalType: "string" }, { name: "safe", type: "address", internalType: "address" }, { name: "whitelistManager", type: "address", internalType: "address" }, { name: "valuationManager", type: "address", internalType: "address" }, { name: "admin", type: "address", internalType: "address" }, { name: "feeReceiver", type: "address", internalType: "address" }, { name: "feeRegistry", type: "address", internalType: "address" }, { name: "wrappedNativeToken", type: "address", internalType: "address" }, { name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }, { name: "enableWhitelist", type: "bool", internalType: "bool" }, { name: "rateUpdateCooldown", type: "uint256", internalType: "uint256" }] }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "initiateClosing", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "isOperator", inputs: [{ name: "controller", type: "address", internalType: "address" }, { name: "operator", type: "address", internalType: "address" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "isWhitelistActivated", inputs: [], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "isWhitelisted", inputs: [{ name: "account", type: "address", internalType: "address" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "lastDepositRequestId", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint40", internalType: "uint40" }], stateMutability: "view" }, { type: "function", name: "lastFeeTime", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "lastRedeemRequestId", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint40", internalType: "uint40" }], stateMutability: "view" }, { type: "function", name: "maxDeposit", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "maxMint", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "maxRedeem", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "maxWithdraw", inputs: [{ name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "mint", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "mint", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "name", inputs: [], outputs: [{ name: "", type: "string", internalType: "string" }], stateMutability: "view" }, { type: "function", name: "owner", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "pause", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "paused", inputs: [], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "pendingDepositRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "pendingOwner", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "pendingRedeemRequest", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "pendingSilo", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "previewDeposit", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "previewMint", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "previewRedeem", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "previewWithdraw", inputs: [{ name: "", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "pure" }, { type: "function", name: "redeem", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "renounceOwnership", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "requestDeposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" }], outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }], stateMutability: "payable" }, { type: "function", name: "requestDeposit", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" }, { name: "referral", type: "address", internalType: "address" }], outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }], stateMutability: "payable" }, { type: "function", name: "requestRedeem", inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }, { name: "controller", type: "address", internalType: "address" }, { name: "owner", type: "address", internalType: "address" }], outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "function", name: "revokeFromWhitelist", inputs: [{ name: "accounts", type: "address[]", internalType: "address[]" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "setOperator", inputs: [{ name: "operator", type: "address", internalType: "address" }, { name: "approved", type: "bool", internalType: "bool" }], outputs: [{ name: "success", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "settleDeposit", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "settleRedeem", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "share", inputs: [], outputs: [{ name: "", type: "address", internalType: "address" }], stateMutability: "view" }, { type: "function", name: "supportsInterface", inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "view" }, { type: "function", name: "symbol", inputs: [], outputs: [{ name: "", type: "string", internalType: "string" }], stateMutability: "view" }, { type: "function", name: "totalAssets", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "totalSupply", inputs: [], outputs: [{ name: "", type: "uint256", internalType: "uint256" }], stateMutability: "view" }, { type: "function", name: "transfer", inputs: [{ name: "to", type: "address", internalType: "address" }, { name: "value", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "transferFrom", inputs: [{ name: "from", type: "address", internalType: "address" }, { name: "to", type: "address", internalType: "address" }, { name: "value", type: "uint256", internalType: "uint256" }], outputs: [{ name: "", type: "bool", internalType: "bool" }], stateMutability: "nonpayable" }, { type: "function", name: "transferOwnership", inputs: [{ name: "newOwner", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "unpause", inputs: [], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateFeeReceiver", inputs: [{ name: "_feeReceiver", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateNewTotalAssets", inputs: [{ name: "_newTotalAssets", type: "uint256", internalType: "uint256" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateRates", inputs: [{ name: "newRates", type: "tuple", internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateValuationManager", inputs: [{ name: "_valuationManager", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "updateWhitelistManager", inputs: [{ name: "_whitelistManager", type: "address", internalType: "address" }], outputs: [], stateMutability: "nonpayable" }, { type: "function", name: "withdraw", inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }, { name: "receiver", type: "address", internalType: "address" }, { name: "controller", type: "address", internalType: "address" }], outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }], stateMutability: "nonpayable" }, { type: "event", name: "Approval", inputs: [{ name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "spender", type: "address", indexed: true, internalType: "address" }, { name: "value", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Deposit", inputs: [{ name: "sender", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "shares", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "DepositRequest", inputs: [{ name: "controller", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "sender", type: "address", indexed: false, internalType: "address" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "DepositRequestCanceled", inputs: [{ name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "controller", type: "address", indexed: true, internalType: "address" }], anonymous: false }, { type: "event", name: "FeeReceiverUpdated", inputs: [{ name: "oldReceiver", type: "address", indexed: false, internalType: "address" }, { name: "newReceiver", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "HighWaterMarkUpdated", inputs: [{ name: "oldHighWaterMark", type: "uint256", indexed: false, internalType: "uint256" }, { name: "newHighWaterMark", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Initialized", inputs: [{ name: "version", type: "uint64", indexed: false, internalType: "uint64" }], anonymous: false }, { type: "event", name: "NewTotalAssetsUpdated", inputs: [{ name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "OperatorSet", inputs: [{ name: "controller", type: "address", indexed: true, internalType: "address" }, { name: "operator", type: "address", indexed: true, internalType: "address" }, { name: "approved", type: "bool", indexed: false, internalType: "bool" }], anonymous: false }, { type: "event", name: "OwnershipTransferStarted", inputs: [{ name: "previousOwner", type: "address", indexed: true, internalType: "address" }, { name: "newOwner", type: "address", indexed: true, internalType: "address" }], anonymous: false }, { type: "event", name: "OwnershipTransferred", inputs: [{ name: "previousOwner", type: "address", indexed: true, internalType: "address" }, { name: "newOwner", type: "address", indexed: true, internalType: "address" }], anonymous: false }, { type: "event", name: "Paused", inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "RatesUpdated", inputs: [{ name: "oldRates", type: "tuple", indexed: false, internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }, { name: "newRate", type: "tuple", indexed: false, internalType: "struct Rates", components: [{ name: "managementRate", type: "uint16", internalType: "uint16" }, { name: "performanceRate", type: "uint16", internalType: "uint16" }] }, { name: "timestamp", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "RedeemRequest", inputs: [{ name: "controller", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "sender", type: "address", indexed: false, internalType: "address" }, { name: "shares", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Referral", inputs: [{ name: "referral", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "requestId", type: "uint256", indexed: true, internalType: "uint256" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "SettleDeposit", inputs: [{ name: "epochId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "settledId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "totalSupply", type: "uint256", indexed: false, internalType: "uint256" }, { name: "assetsDeposited", type: "uint256", indexed: false, internalType: "uint256" }, { name: "sharesMinted", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "SettleRedeem", inputs: [{ name: "epochId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "settledId", type: "uint40", indexed: true, internalType: "uint40" }, { name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "totalSupply", type: "uint256", indexed: false, internalType: "uint256" }, { name: "assetsWithdrawed", type: "uint256", indexed: false, internalType: "uint256" }, { name: "sharesBurned", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "StateUpdated", inputs: [{ name: "state", type: "uint8", indexed: false, internalType: "enum State" }], anonymous: false }, { type: "event", name: "TotalAssetsUpdated", inputs: [{ name: "totalAssets", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Transfer", inputs: [{ name: "from", type: "address", indexed: true, internalType: "address" }, { name: "to", type: "address", indexed: true, internalType: "address" }, { name: "value", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "event", name: "Unpaused", inputs: [{ name: "account", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "ValuationManagerUpdated", inputs: [{ name: "oldManager", type: "address", indexed: false, internalType: "address" }, { name: "newManager", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "WhitelistDisabled", inputs: [], anonymous: false }, { type: "event", name: "WhitelistManagerUpdated", inputs: [{ name: "oldManager", type: "address", indexed: false, internalType: "address" }, { name: "newManager", type: "address", indexed: false, internalType: "address" }], anonymous: false }, { type: "event", name: "WhitelistUpdated", inputs: [{ name: "account", type: "address", indexed: true, internalType: "address" }, { name: "authorized", type: "bool", indexed: false, internalType: "bool" }], anonymous: false }, { type: "event", name: "Withdraw", inputs: [{ name: "sender", type: "address", indexed: true, internalType: "address" }, { name: "receiver", type: "address", indexed: true, internalType: "address" }, { name: "owner", type: "address", indexed: true, internalType: "address" }, { name: "assets", type: "uint256", indexed: false, internalType: "uint256" }, { name: "shares", type: "uint256", indexed: false, internalType: "uint256" }], anonymous: false }, { type: "error", name: "AboveMaxRate", inputs: [{ name: "maxRate", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "AddressEmptyCode", inputs: [{ name: "target", type: "address", internalType: "address" }] }, { type: "error", name: "AddressInsufficientBalance", inputs: [{ name: "account", type: "address", internalType: "address" }] }, { type: "error", name: "CantDepositNativeToken", inputs: [] }, { type: "error", name: "Closed", inputs: [] }, { type: "error", name: "ERC20InsufficientAllowance", inputs: [{ name: "spender", type: "address", internalType: "address" }, { name: "allowance", type: "uint256", internalType: "uint256" }, { name: "needed", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC20InsufficientBalance", inputs: [{ name: "sender", type: "address", internalType: "address" }, { name: "balance", type: "uint256", internalType: "uint256" }, { name: "needed", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC20InvalidApprover", inputs: [{ name: "approver", type: "address", internalType: "address" }] }, { type: "error", name: "ERC20InvalidReceiver", inputs: [{ name: "receiver", type: "address", internalType: "address" }] }, { type: "error", name: "ERC20InvalidSender", inputs: [{ name: "sender", type: "address", internalType: "address" }] }, { type: "error", name: "ERC20InvalidSpender", inputs: [{ name: "spender", type: "address", internalType: "address" }] }, { type: "error", name: "ERC4626ExceededMaxDeposit", inputs: [{ name: "receiver", type: "address", internalType: "address" }, { name: "assets", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC4626ExceededMaxMint", inputs: [{ name: "receiver", type: "address", internalType: "address" }, { name: "shares", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC4626ExceededMaxRedeem", inputs: [{ name: "owner", type: "address", internalType: "address" }, { name: "shares", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC4626ExceededMaxWithdraw", inputs: [{ name: "owner", type: "address", internalType: "address" }, { name: "assets", type: "uint256", internalType: "uint256" }, { name: "max", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "ERC7540InvalidOperator", inputs: [] }, { type: "error", name: "ERC7540PreviewDepositDisabled", inputs: [] }, { type: "error", name: "ERC7540PreviewMintDisabled", inputs: [] }, { type: "error", name: "ERC7540PreviewRedeemDisabled", inputs: [] }, { type: "error", name: "ERC7540PreviewWithdrawDisabled", inputs: [] }, { type: "error", name: "EnforcedPause", inputs: [] }, { type: "error", name: "ExpectedPause", inputs: [] }, { type: "error", name: "FailedInnerCall", inputs: [] }, { type: "error", name: "InvalidInitialization", inputs: [] }, { type: "error", name: "MathOverflowedMulDiv", inputs: [] }, { type: "error", name: "NewTotalAssetsMissing", inputs: [] }, { type: "error", name: "NotClosing", inputs: [{ name: "currentState", type: "uint8", internalType: "enum State" }] }, { type: "error", name: "NotInitializing", inputs: [] }, { type: "error", name: "NotOpen", inputs: [{ name: "currentState", type: "uint8", internalType: "enum State" }] }, { type: "error", name: "NotWhitelisted", inputs: [] }, { type: "error", name: "OnlyOneRequestAllowed", inputs: [] }, { type: "error", name: "OnlySafe", inputs: [{ name: "safe", type: "address", internalType: "address" }] }, { type: "error", name: "OnlyValuationManager", inputs: [{ name: "valuationManager", type: "address", internalType: "address" }] }, { type: "error", name: "OnlyWhitelistManager", inputs: [{ name: "whitelistManager", type: "address", internalType: "address" }] }, { type: "error", name: "OwnableInvalidOwner", inputs: [{ name: "owner", type: "address", internalType: "address" }] }, { type: "error", name: "OwnableUnauthorizedAccount", inputs: [{ name: "account", type: "address", internalType: "address" }] }, { type: "error", name: "RequestIdNotClaimable", inputs: [] }, { type: "error", name: "RequestNotCancelable", inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }] }, { type: "error", name: "SafeERC20FailedOperation", inputs: [{ name: "token", type: "address", internalType: "address" }] }, { type: "error", name: "WrongNewTotalAssets", inputs: [] }];
|
|
2175
2211
|
var feeRegistryAbi_v2 = [{ inputs: [{ internalType: "bool", name: "disable", type: "bool" }], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "CantRemoveDefaultLogic", type: "error" }, { inputs: [], name: "InvalidInitialization", type: "error" }, { inputs: [{ internalType: "address", name: "Logic", type: "address" }], name: "LogicNotWhitelisted", type: "error" }, { inputs: [], name: "NotInitializing", type: "error" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "OwnableInvalidOwner", type: "error" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "OwnableUnauthorizedAccount", type: "error" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "vault", type: "address" }, { indexed: false, internalType: "uint16", name: "rate", type: "uint16" }, { indexed: false, internalType: "bool", name: "isActivated", type: "bool" }], name: "CustomRateUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "previous", type: "address" }, { indexed: false, internalType: "address", name: "newImpl", type: "address" }], name: "DefaultLogicUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint256", name: "oldRate", type: "uint256" }, { indexed: false, internalType: "uint256", name: "newRate", type: "uint256" }], name: "DefaultRateUpdated", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }], name: "Initialized", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "Logic", type: "address" }], name: "LogicAdded", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "Logic", type: "address" }], name: "LogicRemoved", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferStarted", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "oldReceiver", type: "address" }, { indexed: false, internalType: "address", name: "newReceiver", type: "address" }], name: "ProtocolFeeReceiverUpdated", type: "event" }, { inputs: [{ internalType: "address", name: "_protocolFeeReceiver", type: "address" }], name: "__FeeRegistry_init", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newLogic", type: "address" }], name: "addLogic", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "fromLogic", type: "address" }, { internalType: "address", name: "logic", type: "address" }], name: "canUseLogic", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "defaultLogic", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "initialOwner", type: "address" }, { internalType: "address", name: "_protocolFeeReceiver", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "vault", type: "address" }], name: "isCustomRate", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pendingOwner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "protocolFeeReceiver", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "protocolRate", outputs: [{ internalType: "uint256", name: "rate", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "vault", type: "address" }], name: "protocolRate", outputs: [{ internalType: "uint256", name: "rate", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_logic", type: "address" }], name: "removeLogic", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "vault", type: "address" }, { internalType: "uint16", name: "rate", type: "uint16" }, { internalType: "bool", name: "isActivated", type: "bool" }], name: "updateCustomRate", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newLogic", type: "address" }], name: "updateDefaultLogic", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint16", name: "rate", type: "uint16" }], name: "updateDefaultRate", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_protocolFeeReceiver", type: "address" }], name: "updateProtocolFeeReceiver", outputs: [], stateMutability: "nonpayable", type: "function" }];
|
|
2212
|
+
var factoryAbi_v1 = [{ inputs: [{ internalType: "address", name: "_registry", type: "address" }, { internalType: "address", name: "_implementation", type: "address" }, { internalType: "address", name: "_owner", type: "address" }, { internalType: "address", name: "_wrappedNativeToken", type: "address" }], stateMutability: "nonpayable", type: "constructor" }, { inputs: [{ internalType: "address", name: "implementation", type: "address" }], name: "BeaconInvalidImplementation", type: "error" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "OwnableInvalidOwner", type: "error" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "OwnableUnauthorizedAccount", type: "error" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "proxy", type: "address" }, { indexed: false, internalType: "address", name: "deployer", type: "address" }], name: "BeaconProxyDeployed", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "implementation", type: "address" }], name: "Upgraded", type: "event" }, { inputs: [], name: "REGISTRY", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "WRAPPED_NATIVE", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "bytes", name: "init", type: "bytes" }, { internalType: "bytes32", name: "salt", type: "bytes32" }], name: "createBeaconProxy", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ components: [{ internalType: "address", name: "underlying", type: "address" }, { internalType: "string", name: "name", type: "string" }, { internalType: "string", name: "symbol", type: "string" }, { internalType: "address", name: "safe", type: "address" }, { internalType: "address", name: "whitelistManager", type: "address" }, { internalType: "address", name: "valuationManager", type: "address" }, { internalType: "address", name: "admin", type: "address" }, { internalType: "address", name: "feeReceiver", type: "address" }, { internalType: "uint16", name: "managementRate", type: "uint16" }, { internalType: "uint16", name: "performanceRate", type: "uint16" }, { internalType: "bool", name: "enableWhitelist", type: "bool" }, { internalType: "uint256", name: "rateUpdateCooldown", type: "uint256" }], internalType: "struct InitStruct", name: "init", type: "tuple" }, { internalType: "bytes32", name: "salt", type: "bytes32" }], name: "createVaultProxy", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "implementation", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "", type: "uint256" }], name: "instances", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "isInstance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newImplementation", type: "address" }], name: "upgradeTo", outputs: [], stateMutability: "nonpayable", type: "function" }];
|
|
2213
|
+
var factoryAbi_v2 = [{ inputs: [{ internalType: "bool", name: "disable", type: "bool" }], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "InvalidInitialization", type: "error" }, { inputs: [], name: "NotInitializing", type: "error" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }], name: "OwnableInvalidOwner", type: "error" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "OwnableUnauthorizedAccount", type: "error" }, { anonymous: false, inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }], name: "Initialized", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "proxy", type: "address" }, { indexed: false, internalType: "address", name: "deployer", type: "address" }], name: "ProxyDeployed", type: "event" }, { inputs: [{ internalType: "address", name: "_logic", type: "address" }, { internalType: "address", name: "_initialOwner", type: "address" }, { internalType: "uint256", name: "_initialDelay", type: "uint256" }, { components: [{ internalType: "contract IERC20", name: "underlying", type: "address" }, { internalType: "string", name: "name", type: "string" }, { internalType: "string", name: "symbol", type: "string" }, { internalType: "address", name: "safe", type: "address" }, { internalType: "address", name: "whitelistManager", type: "address" }, { internalType: "address", name: "valuationManager", type: "address" }, { internalType: "address", name: "admin", type: "address" }, { internalType: "address", name: "feeReceiver", type: "address" }, { internalType: "uint16", name: "managementRate", type: "uint16" }, { internalType: "uint16", name: "performanceRate", type: "uint16" }, { internalType: "bool", name: "enableWhitelist", type: "bool" }, { internalType: "uint256", name: "rateUpdateCooldown", type: "uint256" }], internalType: "struct InitStruct", name: "_init", type: "tuple" }, { internalType: "bytes32", name: "salt", type: "bytes32" }], name: "createVaultProxy", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_registry", type: "address" }, { internalType: "address", name: "_wrappedNativeToken", type: "address" }, { internalType: "address", name: "owner", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "vault", type: "address" }], name: "isInstance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "registry", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "wrappedNativeToken", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }];
|
|
2176
2214
|
|
|
2177
2215
|
// src/math/MathLib.ts
|
|
2178
2216
|
var MathLib;
|
|
@@ -2756,7 +2794,7 @@ var ChainId;
|
|
|
2756
2794
|
ChainId2[ChainId2["LineaMainnet"] = 59144] = "LineaMainnet";
|
|
2757
2795
|
ChainId2[ChainId2["PlasmaMainnet"] = 9745] = "PlasmaMainnet";
|
|
2758
2796
|
ChainId2[ChainId2["MonadMainnet"] = 143] = "MonadMainnet";
|
|
2759
|
-
ChainId2[ChainId2["
|
|
2797
|
+
ChainId2[ChainId2["SeiMainnet"] = 1329] = "SeiMainnet";
|
|
2760
2798
|
})(ChainId ||= {});
|
|
2761
2799
|
var ChainUtils;
|
|
2762
2800
|
((ChainUtils) => {
|
|
@@ -2892,9 +2930,9 @@ var ChainUtils;
|
|
|
2892
2930
|
explorerUrl: "https://plasmascan.to/",
|
|
2893
2931
|
identifier: "plasma"
|
|
2894
2932
|
},
|
|
2895
|
-
[1329 /*
|
|
2933
|
+
[1329 /* SeiMainnet */]: {
|
|
2896
2934
|
name: "Sei",
|
|
2897
|
-
id: 1329 /*
|
|
2935
|
+
id: 1329 /* SeiMainnet */,
|
|
2898
2936
|
nativeCurrency: { name: "Sei", symbol: "SEI", decimals: 18 },
|
|
2899
2937
|
explorerUrl: "https://seiscan.io/",
|
|
2900
2938
|
identifier: "sei"
|
|
@@ -3024,7 +3062,7 @@ var addresses = {
|
|
|
3024
3062
|
wrappedNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
3025
3063
|
optinFactory: "0x0C0E287f6e4de685f4b44A5282A3ad4A29D05a91"
|
|
3026
3064
|
},
|
|
3027
|
-
[1329 /*
|
|
3065
|
+
[1329 /* SeiMainnet */]: {
|
|
3028
3066
|
feeRegistry: "0xDd954bE514726Ed0C7156fe4aE06C539f7AE6C1c",
|
|
3029
3067
|
v0_5_0: "0x357F1C9754dFFceD7c2EFe086d2114909538047D",
|
|
3030
3068
|
wrappedNative: "0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7",
|
|
@@ -3035,6 +3073,12 @@ var addresses = {
|
|
|
3035
3073
|
v0_5_0: "0x870dd43a868C35b036347c46042D97C7247EEa15",
|
|
3036
3074
|
wrappedNative: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",
|
|
3037
3075
|
optinFactory: "0xcCdC4d06cA12A29C47D5d105fED59a6D07E9cf70"
|
|
3076
|
+
},
|
|
3077
|
+
[10 /* OptimismMainnet */]: {
|
|
3078
|
+
feeRegistry: "0x7AB55B30e3c382451FCCa104521a8B5F45bEeaf9",
|
|
3079
|
+
v0_5_0: "0xBB2dcC67A94946400a605F2a97933471bE8BC538",
|
|
3080
|
+
wrappedNative: "0x4200000000000000000000000000000000000006",
|
|
3081
|
+
optinFactory: "0xA8E0684887b9475f8942DF6a89bEBa5B25219632"
|
|
3038
3082
|
}
|
|
3039
3083
|
};
|
|
3040
3084
|
// src/utils.ts
|
|
@@ -3046,3 +3090,562 @@ async function tryCatch(promise) {
|
|
|
3046
3090
|
return { data: null, error };
|
|
3047
3091
|
}
|
|
3048
3092
|
}
|
|
3093
|
+
function normalizeTo0x(hex) {
|
|
3094
|
+
if (hex.startsWith("\\x"))
|
|
3095
|
+
return `0x${hex.slice(2)}`;
|
|
3096
|
+
if (hex.startsWith("0x"))
|
|
3097
|
+
return hex;
|
|
3098
|
+
return `0x${hex}`;
|
|
3099
|
+
}
|
|
3100
|
+
function hexToAddress(hex) {
|
|
3101
|
+
return normalizeTo0x(hex);
|
|
3102
|
+
}
|
|
3103
|
+
function hexToHash(hex) {
|
|
3104
|
+
return normalizeTo0x(hex);
|
|
3105
|
+
}
|
|
3106
|
+
// src/events/Log.ts
|
|
3107
|
+
class Log {
|
|
3108
|
+
type = "log";
|
|
3109
|
+
chainId;
|
|
3110
|
+
blockNumber;
|
|
3111
|
+
blockHash;
|
|
3112
|
+
blockTimestamp;
|
|
3113
|
+
transactionHash;
|
|
3114
|
+
transactionIndex;
|
|
3115
|
+
logIndex;
|
|
3116
|
+
address;
|
|
3117
|
+
constructor({
|
|
3118
|
+
chainId,
|
|
3119
|
+
blockNumber,
|
|
3120
|
+
blockHash,
|
|
3121
|
+
blockTimestamp,
|
|
3122
|
+
transactionHash,
|
|
3123
|
+
transactionIndex,
|
|
3124
|
+
logIndex,
|
|
3125
|
+
address
|
|
3126
|
+
}) {
|
|
3127
|
+
this.chainId = chainId;
|
|
3128
|
+
this.blockNumber = BigInt(blockNumber);
|
|
3129
|
+
this.blockHash = hexToHash(blockHash);
|
|
3130
|
+
this.blockTimestamp = blockTimestamp ? BigInt(blockTimestamp) : null;
|
|
3131
|
+
this.transactionHash = hexToHash(transactionHash);
|
|
3132
|
+
this.transactionIndex = transactionIndex;
|
|
3133
|
+
this.logIndex = logIndex;
|
|
3134
|
+
this.address = hexToAddress(address);
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
// src/events/vault/Approval.ts
|
|
3139
|
+
class Approval extends Log {
|
|
3140
|
+
name = "Approval";
|
|
3141
|
+
owner;
|
|
3142
|
+
spender;
|
|
3143
|
+
value;
|
|
3144
|
+
constructor({
|
|
3145
|
+
owner,
|
|
3146
|
+
spender,
|
|
3147
|
+
value,
|
|
3148
|
+
...args
|
|
3149
|
+
}) {
|
|
3150
|
+
super(args);
|
|
3151
|
+
this.owner = owner;
|
|
3152
|
+
this.spender = spender;
|
|
3153
|
+
this.value = BigInt(value);
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
// src/events/vault/Deposit.ts
|
|
3157
|
+
class Deposit extends Log {
|
|
3158
|
+
name = "Deposit";
|
|
3159
|
+
sender;
|
|
3160
|
+
owner;
|
|
3161
|
+
assets;
|
|
3162
|
+
shares;
|
|
3163
|
+
constructor({
|
|
3164
|
+
sender,
|
|
3165
|
+
owner,
|
|
3166
|
+
assets,
|
|
3167
|
+
shares,
|
|
3168
|
+
...args
|
|
3169
|
+
}) {
|
|
3170
|
+
super(args);
|
|
3171
|
+
this.sender = sender;
|
|
3172
|
+
this.owner = owner;
|
|
3173
|
+
this.assets = BigInt(assets);
|
|
3174
|
+
this.shares = BigInt(shares);
|
|
3175
|
+
}
|
|
3176
|
+
}
|
|
3177
|
+
// src/events/vault/DepositRequest.ts
|
|
3178
|
+
class DepositRequest extends Log {
|
|
3179
|
+
name = "DepositRequest";
|
|
3180
|
+
controller;
|
|
3181
|
+
owner;
|
|
3182
|
+
requestId;
|
|
3183
|
+
sender;
|
|
3184
|
+
assets;
|
|
3185
|
+
constructor({
|
|
3186
|
+
controller,
|
|
3187
|
+
owner,
|
|
3188
|
+
requestId,
|
|
3189
|
+
sender,
|
|
3190
|
+
assets,
|
|
3191
|
+
...args
|
|
3192
|
+
}) {
|
|
3193
|
+
super(args);
|
|
3194
|
+
this.controller = controller;
|
|
3195
|
+
this.owner = owner;
|
|
3196
|
+
this.requestId = BigInt(requestId);
|
|
3197
|
+
this.sender = sender;
|
|
3198
|
+
this.assets = BigInt(assets);
|
|
3199
|
+
}
|
|
3200
|
+
}
|
|
3201
|
+
// src/events/vault/DepositRequestCanceled.ts
|
|
3202
|
+
class DepositRequestCanceled extends Log {
|
|
3203
|
+
name = "DepositRequestCanceled";
|
|
3204
|
+
requestId;
|
|
3205
|
+
controller;
|
|
3206
|
+
constructor({
|
|
3207
|
+
requestId,
|
|
3208
|
+
controller,
|
|
3209
|
+
...args
|
|
3210
|
+
}) {
|
|
3211
|
+
super(args);
|
|
3212
|
+
this.requestId = BigInt(requestId);
|
|
3213
|
+
this.controller = controller;
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
// src/events/vault/DepositSync.ts
|
|
3217
|
+
class DepositSync extends Log {
|
|
3218
|
+
name = "DepositSync";
|
|
3219
|
+
sender;
|
|
3220
|
+
owner;
|
|
3221
|
+
assets;
|
|
3222
|
+
shares;
|
|
3223
|
+
constructor({
|
|
3224
|
+
sender,
|
|
3225
|
+
owner,
|
|
3226
|
+
assets,
|
|
3227
|
+
shares,
|
|
3228
|
+
...args
|
|
3229
|
+
}) {
|
|
3230
|
+
super(args);
|
|
3231
|
+
this.sender = sender;
|
|
3232
|
+
this.owner = owner;
|
|
3233
|
+
this.assets = BigInt(assets);
|
|
3234
|
+
this.shares = BigInt(shares);
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
// src/events/vault/FeeReceiverUpdated.ts
|
|
3238
|
+
class FeeReceiverUpdated extends Log {
|
|
3239
|
+
name = "FeeReceiverUpdated";
|
|
3240
|
+
oldReceiver;
|
|
3241
|
+
newReceiver;
|
|
3242
|
+
constructor({
|
|
3243
|
+
oldReceiver,
|
|
3244
|
+
newReceiver,
|
|
3245
|
+
...args
|
|
3246
|
+
}) {
|
|
3247
|
+
super(args);
|
|
3248
|
+
this.oldReceiver = oldReceiver;
|
|
3249
|
+
this.newReceiver = newReceiver;
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
// src/events/vault/HighWaterMarkUpdated.ts
|
|
3253
|
+
class HighWaterMarkUpdated extends Log {
|
|
3254
|
+
name = "HighWaterMarkUpdated";
|
|
3255
|
+
oldHighWaterMark;
|
|
3256
|
+
newHighWaterMark;
|
|
3257
|
+
constructor({
|
|
3258
|
+
oldHighWaterMark,
|
|
3259
|
+
newHighWaterMark,
|
|
3260
|
+
...args
|
|
3261
|
+
}) {
|
|
3262
|
+
super(args);
|
|
3263
|
+
this.oldHighWaterMark = BigInt(oldHighWaterMark);
|
|
3264
|
+
this.newHighWaterMark = BigInt(newHighWaterMark);
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
// src/events/vault/Initialized.ts
|
|
3268
|
+
class Initialized extends Log {
|
|
3269
|
+
name = "Initialized";
|
|
3270
|
+
version;
|
|
3271
|
+
constructor({
|
|
3272
|
+
version: version3,
|
|
3273
|
+
...args
|
|
3274
|
+
}) {
|
|
3275
|
+
super(args);
|
|
3276
|
+
this.version = BigInt(version3);
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
// src/events/vault/NewTotalAssetsUpdated.ts
|
|
3280
|
+
class NewTotalAssetsUpdated extends Log {
|
|
3281
|
+
name = "NewTotalAssetsUpdated";
|
|
3282
|
+
totalAssets;
|
|
3283
|
+
constructor({
|
|
3284
|
+
totalAssets,
|
|
3285
|
+
...args
|
|
3286
|
+
}) {
|
|
3287
|
+
super(args);
|
|
3288
|
+
this.totalAssets = BigInt(totalAssets);
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
// src/events/vault/OperatorSet.ts
|
|
3292
|
+
class OperatorSet extends Log {
|
|
3293
|
+
name = "OperatorSet";
|
|
3294
|
+
controller;
|
|
3295
|
+
operator;
|
|
3296
|
+
approved;
|
|
3297
|
+
constructor({
|
|
3298
|
+
controller,
|
|
3299
|
+
operator,
|
|
3300
|
+
approved,
|
|
3301
|
+
...args
|
|
3302
|
+
}) {
|
|
3303
|
+
super(args);
|
|
3304
|
+
this.controller = controller;
|
|
3305
|
+
this.operator = operator;
|
|
3306
|
+
this.approved = approved;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
// src/events/vault/OwnershipTransferStarted.ts
|
|
3310
|
+
class OwnershipTransferStarted extends Log {
|
|
3311
|
+
name = "OwnershipTransferStarted";
|
|
3312
|
+
previousOwner;
|
|
3313
|
+
newOwner;
|
|
3314
|
+
constructor({
|
|
3315
|
+
previousOwner,
|
|
3316
|
+
newOwner,
|
|
3317
|
+
...args
|
|
3318
|
+
}) {
|
|
3319
|
+
super(args);
|
|
3320
|
+
this.previousOwner = previousOwner;
|
|
3321
|
+
this.newOwner = newOwner;
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
// src/events/vault/OwnershipTransferred.ts
|
|
3325
|
+
class OwnershipTransferred extends Log {
|
|
3326
|
+
name = "OwnershipTransferred";
|
|
3327
|
+
previousOwner;
|
|
3328
|
+
newOwner;
|
|
3329
|
+
constructor({
|
|
3330
|
+
previousOwner,
|
|
3331
|
+
newOwner,
|
|
3332
|
+
...args
|
|
3333
|
+
}) {
|
|
3334
|
+
super(args);
|
|
3335
|
+
this.previousOwner = previousOwner;
|
|
3336
|
+
this.newOwner = newOwner;
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
// src/events/vault/Paused.ts
|
|
3340
|
+
class Paused extends Log {
|
|
3341
|
+
name = "Paused";
|
|
3342
|
+
account;
|
|
3343
|
+
constructor({
|
|
3344
|
+
account,
|
|
3345
|
+
...args
|
|
3346
|
+
}) {
|
|
3347
|
+
super(args);
|
|
3348
|
+
this.account = account;
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
// src/events/vault/RatesUpdated.ts
|
|
3352
|
+
class RatesUpdated extends Log {
|
|
3353
|
+
name = "RatesUpdated";
|
|
3354
|
+
oldRates;
|
|
3355
|
+
newRate;
|
|
3356
|
+
timestamp;
|
|
3357
|
+
constructor({
|
|
3358
|
+
oldRates,
|
|
3359
|
+
newRate,
|
|
3360
|
+
timestamp,
|
|
3361
|
+
...args
|
|
3362
|
+
}) {
|
|
3363
|
+
super(args);
|
|
3364
|
+
this.oldRates = oldRates;
|
|
3365
|
+
this.newRate = newRate;
|
|
3366
|
+
this.timestamp = BigInt(timestamp);
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
// src/events/vault/RedeemRequest.ts
|
|
3370
|
+
class RedeemRequest extends Log {
|
|
3371
|
+
name = "RedeemRequest";
|
|
3372
|
+
controller;
|
|
3373
|
+
owner;
|
|
3374
|
+
requestId;
|
|
3375
|
+
sender;
|
|
3376
|
+
shares;
|
|
3377
|
+
constructor({
|
|
3378
|
+
controller,
|
|
3379
|
+
owner,
|
|
3380
|
+
requestId,
|
|
3381
|
+
sender,
|
|
3382
|
+
shares,
|
|
3383
|
+
...args
|
|
3384
|
+
}) {
|
|
3385
|
+
super(args);
|
|
3386
|
+
this.controller = controller;
|
|
3387
|
+
this.owner = owner;
|
|
3388
|
+
this.requestId = BigInt(requestId);
|
|
3389
|
+
this.sender = sender;
|
|
3390
|
+
this.shares = BigInt(shares);
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
// src/events/vault/Referral.ts
|
|
3394
|
+
class Referral extends Log {
|
|
3395
|
+
name = "Referral";
|
|
3396
|
+
referral;
|
|
3397
|
+
owner;
|
|
3398
|
+
requestId;
|
|
3399
|
+
assets;
|
|
3400
|
+
constructor({
|
|
3401
|
+
referral,
|
|
3402
|
+
owner,
|
|
3403
|
+
requestId,
|
|
3404
|
+
assets,
|
|
3405
|
+
...args
|
|
3406
|
+
}) {
|
|
3407
|
+
super(args);
|
|
3408
|
+
this.referral = referral;
|
|
3409
|
+
this.owner = owner;
|
|
3410
|
+
this.requestId = BigInt(requestId);
|
|
3411
|
+
this.assets = BigInt(assets);
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
// src/events/vault/SettleDeposit.ts
|
|
3415
|
+
class SettleDeposit extends Log {
|
|
3416
|
+
name = "SettleDeposit";
|
|
3417
|
+
epochId;
|
|
3418
|
+
settleId;
|
|
3419
|
+
totalAssets;
|
|
3420
|
+
totalSupply;
|
|
3421
|
+
assetsDeposited;
|
|
3422
|
+
sharesMinted;
|
|
3423
|
+
constructor({
|
|
3424
|
+
epochId,
|
|
3425
|
+
settleId,
|
|
3426
|
+
totalAssets,
|
|
3427
|
+
totalSupply,
|
|
3428
|
+
assetsDeposited,
|
|
3429
|
+
sharesMinted,
|
|
3430
|
+
...args
|
|
3431
|
+
}) {
|
|
3432
|
+
super(args);
|
|
3433
|
+
this.epochId = epochId;
|
|
3434
|
+
this.settleId = settleId;
|
|
3435
|
+
this.totalAssets = BigInt(totalAssets);
|
|
3436
|
+
this.totalSupply = BigInt(totalSupply);
|
|
3437
|
+
this.assetsDeposited = BigInt(assetsDeposited);
|
|
3438
|
+
this.sharesMinted = BigInt(sharesMinted);
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
// src/events/vault/SettleRedeem.ts
|
|
3442
|
+
class SettleRedeem extends Log {
|
|
3443
|
+
name = "SettleRedeem";
|
|
3444
|
+
epochId;
|
|
3445
|
+
settleId;
|
|
3446
|
+
totalAssets;
|
|
3447
|
+
totalSupply;
|
|
3448
|
+
assetsWithdrawed;
|
|
3449
|
+
sharesBurned;
|
|
3450
|
+
constructor({
|
|
3451
|
+
epochId,
|
|
3452
|
+
settleId,
|
|
3453
|
+
totalAssets,
|
|
3454
|
+
totalSupply,
|
|
3455
|
+
assetsWithdrawed,
|
|
3456
|
+
sharesBurned,
|
|
3457
|
+
...args
|
|
3458
|
+
}) {
|
|
3459
|
+
super(args);
|
|
3460
|
+
this.epochId = epochId;
|
|
3461
|
+
this.settleId = settleId;
|
|
3462
|
+
this.totalAssets = BigInt(totalAssets);
|
|
3463
|
+
this.totalSupply = BigInt(totalSupply);
|
|
3464
|
+
this.assetsWithdrawed = BigInt(assetsWithdrawed);
|
|
3465
|
+
this.sharesBurned = BigInt(sharesBurned);
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
// src/events/vault/StateUpdated.ts
|
|
3469
|
+
class StateUpdated extends Log {
|
|
3470
|
+
name = "StateUpdated";
|
|
3471
|
+
state;
|
|
3472
|
+
constructor({
|
|
3473
|
+
state,
|
|
3474
|
+
...args
|
|
3475
|
+
}) {
|
|
3476
|
+
super(args);
|
|
3477
|
+
this.state = state;
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
// src/events/vault/TotalAssetsLifespanUpdated.ts
|
|
3481
|
+
class TotalAssetsLifespanUpdated extends Log {
|
|
3482
|
+
name = "TotalAssetsLifespanUpdated";
|
|
3483
|
+
oldLifespan;
|
|
3484
|
+
newLifespan;
|
|
3485
|
+
constructor({
|
|
3486
|
+
oldLifespan,
|
|
3487
|
+
newLifespan,
|
|
3488
|
+
...args
|
|
3489
|
+
}) {
|
|
3490
|
+
super(args);
|
|
3491
|
+
this.oldLifespan = BigInt(oldLifespan);
|
|
3492
|
+
this.newLifespan = BigInt(newLifespan);
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
// src/events/vault/TotalAssetsUpdated.ts
|
|
3496
|
+
class TotalAssetsUpdated extends Log {
|
|
3497
|
+
name = "TotalAssetsUpdated";
|
|
3498
|
+
totalAssets;
|
|
3499
|
+
constructor({ totalAssets, ...args }) {
|
|
3500
|
+
super(args);
|
|
3501
|
+
this.totalAssets = BigInt(totalAssets);
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
// src/events/vault/Transfer.ts
|
|
3505
|
+
class Transfer extends Log {
|
|
3506
|
+
name = "Transfer";
|
|
3507
|
+
from;
|
|
3508
|
+
to;
|
|
3509
|
+
value;
|
|
3510
|
+
constructor({
|
|
3511
|
+
from,
|
|
3512
|
+
to,
|
|
3513
|
+
value,
|
|
3514
|
+
...args
|
|
3515
|
+
}) {
|
|
3516
|
+
super(args);
|
|
3517
|
+
this.from = from;
|
|
3518
|
+
this.to = to;
|
|
3519
|
+
this.value = BigInt(value);
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
// src/events/vault/Unpaused.ts
|
|
3523
|
+
class Unpaused extends Log {
|
|
3524
|
+
name = "Unpaused";
|
|
3525
|
+
account;
|
|
3526
|
+
constructor({
|
|
3527
|
+
account,
|
|
3528
|
+
...args
|
|
3529
|
+
}) {
|
|
3530
|
+
super(args);
|
|
3531
|
+
this.account = account;
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
// src/events/vault/ValuationManagerUpdated.ts
|
|
3535
|
+
class ValuationManagerUpdated extends Log {
|
|
3536
|
+
name = "ValuationManagerUpdated";
|
|
3537
|
+
oldManager;
|
|
3538
|
+
newManager;
|
|
3539
|
+
constructor({
|
|
3540
|
+
oldManager,
|
|
3541
|
+
newManager,
|
|
3542
|
+
...args
|
|
3543
|
+
}) {
|
|
3544
|
+
super(args);
|
|
3545
|
+
this.oldManager = oldManager;
|
|
3546
|
+
this.newManager = newManager;
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
// src/events/vault/WhitelistDisabled.ts
|
|
3550
|
+
class WhitelistDisabled extends Log {
|
|
3551
|
+
name = "WhitelistDisabled";
|
|
3552
|
+
constructor(args) {
|
|
3553
|
+
super(args);
|
|
3554
|
+
}
|
|
3555
|
+
}
|
|
3556
|
+
// src/events/vault/WhitelistManagerUpdated.ts
|
|
3557
|
+
class WhitelistManagerUpdated extends Log {
|
|
3558
|
+
name = "WhitelistManagerUpdated";
|
|
3559
|
+
oldManager;
|
|
3560
|
+
newManager;
|
|
3561
|
+
constructor({
|
|
3562
|
+
oldManager,
|
|
3563
|
+
newManager,
|
|
3564
|
+
...args
|
|
3565
|
+
}) {
|
|
3566
|
+
super(args);
|
|
3567
|
+
this.oldManager = oldManager;
|
|
3568
|
+
this.newManager = newManager;
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
// src/events/vault/WhitelistUpdated.ts
|
|
3572
|
+
class WhitelistUpdated extends Log {
|
|
3573
|
+
name = "WhitelistUpdated";
|
|
3574
|
+
account;
|
|
3575
|
+
authorized;
|
|
3576
|
+
constructor({
|
|
3577
|
+
account,
|
|
3578
|
+
authorized,
|
|
3579
|
+
...args
|
|
3580
|
+
}) {
|
|
3581
|
+
super(args);
|
|
3582
|
+
this.account = account;
|
|
3583
|
+
this.authorized = authorized;
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
// src/events/vault/Withdraw.ts
|
|
3587
|
+
class Withdraw extends Log {
|
|
3588
|
+
name = "Withdraw";
|
|
3589
|
+
sender;
|
|
3590
|
+
receiver;
|
|
3591
|
+
owner;
|
|
3592
|
+
assets;
|
|
3593
|
+
shares;
|
|
3594
|
+
constructor({
|
|
3595
|
+
sender,
|
|
3596
|
+
receiver,
|
|
3597
|
+
owner,
|
|
3598
|
+
assets,
|
|
3599
|
+
shares,
|
|
3600
|
+
...args
|
|
3601
|
+
}) {
|
|
3602
|
+
super(args);
|
|
3603
|
+
this.sender = sender;
|
|
3604
|
+
this.receiver = receiver;
|
|
3605
|
+
this.owner = owner;
|
|
3606
|
+
this.assets = BigInt(assets);
|
|
3607
|
+
this.shares = BigInt(shares);
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
// src/events/factory/BeaconProxyDeployed.ts
|
|
3611
|
+
class BeaconProxyDeployed extends Log {
|
|
3612
|
+
name = "BeaconProxyDeployed";
|
|
3613
|
+
proxy;
|
|
3614
|
+
deployer;
|
|
3615
|
+
constructor({
|
|
3616
|
+
proxy,
|
|
3617
|
+
deployer,
|
|
3618
|
+
...args
|
|
3619
|
+
}) {
|
|
3620
|
+
super(args);
|
|
3621
|
+
this.proxy = proxy;
|
|
3622
|
+
this.deployer = deployer;
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
// src/events/factory/ProxyDeployed.ts
|
|
3626
|
+
class ProxyDeployed extends Log {
|
|
3627
|
+
name = "ProxyDeployed";
|
|
3628
|
+
proxy;
|
|
3629
|
+
deployer;
|
|
3630
|
+
constructor({
|
|
3631
|
+
proxy,
|
|
3632
|
+
deployer,
|
|
3633
|
+
...args
|
|
3634
|
+
}) {
|
|
3635
|
+
super(args);
|
|
3636
|
+
this.proxy = proxy;
|
|
3637
|
+
this.deployer = deployer;
|
|
3638
|
+
}
|
|
3639
|
+
}
|
|
3640
|
+
// src/events/factory/Upgraded.ts
|
|
3641
|
+
class Upgraded extends Log {
|
|
3642
|
+
name = "Upgraded";
|
|
3643
|
+
implementation;
|
|
3644
|
+
constructor({
|
|
3645
|
+
implementation,
|
|
3646
|
+
...args
|
|
3647
|
+
}) {
|
|
3648
|
+
super(args);
|
|
3649
|
+
this.implementation = implementation;
|
|
3650
|
+
}
|
|
3651
|
+
}
|