@@ -46,15 +46,19 @@ export const events = {
4646
4747export const functions = {
4848 ADMIN_IMPLEMENTATION : viewFun ( "0xcc2fe94b" , "ADMIN_IMPLEMENTATION()" , { } , p . address ) ,
49+ addWithdrawalQueueLiquidity : fun ( "0xb9b17f9f" , "addWithdrawalQueueLiquidity()" , { } , ) ,
4950 adminImplPosition : viewFun ( "0xef08edc2" , "adminImplPosition()" , { } , p . bytes32 ) ,
5051 allocate : fun ( "0xabaa9916" , "allocate()" , { } , ) ,
5152 assetDefaultStrategies : viewFun ( "0xa403e4d5" , "assetDefaultStrategies(address)" , { "_0" : p . address } , p . address ) ,
5253 autoAllocateThreshold : viewFun ( "0x9fa1826e" , "autoAllocateThreshold()" , { } , p . uint256 ) ,
53- burnForStrategy : fun ( "0x6217f3ea" , "burnForStrategy(uint256)" , { "_amount" : p . uint256 } , ) ,
54+ burnForStrategy : fun ( "0x6217f3ea" , "burnForStrategy(uint256)" , { "amount" : p . uint256 } , ) ,
55+ cacheWETHAssetIndex : fun ( "0x44c54707" , "cacheWETHAssetIndex()" , { } , ) ,
5456 calculateRedeemOutputs : viewFun ( "0x67bd7ba3" , "calculateRedeemOutputs(uint256)" , { "_amount" : p . uint256 } , p . array ( p . uint256 ) ) ,
5557 capitalPaused : viewFun ( "0xe6cc5432" , "capitalPaused()" , { } , p . bool ) ,
5658 checkBalance : viewFun ( "0x5f515226" , "checkBalance(address)" , { "_asset" : p . address } , p . uint256 ) ,
5759 claimGovernance : fun ( "0x5d36b190" , "claimGovernance()" , { } , ) ,
60+ claimWithdrawal : fun ( "0xf8444436" , "claimWithdrawal(uint256)" , { "_requestId" : p . uint256 } , p . uint256 ) ,
61+ claimWithdrawals : fun ( "0x48e30f54" , "claimWithdrawals(uint256[])" , { "_requestIds" : p . array ( p . uint256 ) } , { "amounts" : p . array ( p . uint256 ) , "totalAmount" : p . uint256 } ) ,
5862 dripDuration : viewFun ( "0xbb7a632e" , "dripDuration()" , { } , p . uint64 ) ,
5963 dripper : viewFun ( "0x603ea03b" , "dripper()" , { } , p . address ) ,
6064 getAllAssets : viewFun ( "0x2acada4d" , "getAllAssets()" , { } , p . array ( p . address ) ) ,
@@ -70,7 +74,7 @@ export const functions = {
7074 lastRebase : viewFun ( "0x78f353a1" , "lastRebase()" , { } , p . uint64 ) ,
7175 maxSupplyDiff : viewFun ( "0x8e510b52" , "maxSupplyDiff()" , { } , p . uint256 ) ,
7276 mint : fun ( "0x156e29f6" , "mint(address,uint256,uint256)" , { "_asset" : p . address , "_amount" : p . uint256 , "_minimumOusdAmount" : p . uint256 } , ) ,
73- mintForStrategy : fun ( "0xab80dafb" , "mintForStrategy(uint256)" , { "_amount " : p . uint256 } , ) ,
77+ mintForStrategy : fun ( "0xab80dafb" , "mintForStrategy(uint256)" , { "amount " : p . uint256 } , ) ,
7478 netOusdMintForStrategyThreshold : viewFun ( "0x7a2202f3" , "netOusdMintForStrategyThreshold()" , { } , p . uint256 ) ,
7579 netOusdMintedForStrategy : viewFun ( "0xe45cc9f0" , "netOusdMintedForStrategy()" , { } , p . int256 ) ,
7680 oUSD : viewFun ( "0x5802a172" , "oUSD()" , { } , p . address ) ,
@@ -86,6 +90,7 @@ export const functions = {
8690 rebaseThreshold : viewFun ( "0x52d38e5d" , "rebaseThreshold()" , { } , p . uint256 ) ,
8791 redeem : fun ( "0x7cbc2373" , "redeem(uint256,uint256)" , { "_amount" : p . uint256 , "_minimumUnitAmount" : p . uint256 } , ) ,
8892 redeemFeeBps : viewFun ( "0x09f6442c" , "redeemFeeBps()" , { } , p . uint256 ) ,
93+ requestWithdrawal : fun ( "0x9ee679e8" , "requestWithdrawal(uint256)" , { "_amount" : p . uint256 } , { "requestId" : p . uint256 , "queued" : p . uint256 } ) ,
8994 setAdminImpl : fun ( "0xfc0cfeee" , "setAdminImpl(address)" , { "newImpl" : p . address } , ) ,
9095 strategies : viewFun ( "0x39ebf823" , "strategies(address)" , { "_0" : p . address } , { "isSupported" : p . bool , "_deprecated" : p . uint256 } ) ,
9196 strategistAddr : viewFun ( "0x570d8e1d" , "strategistAddr()" , { } , p . address ) ,
@@ -94,6 +99,8 @@ export const functions = {
9499 trusteeAddress : viewFun ( "0x49c1d54d" , "trusteeAddress()" , { } , p . address ) ,
95100 trusteeFeeBps : viewFun ( "0x207134b0" , "trusteeFeeBps()" , { } , p . uint256 ) ,
96101 vaultBuffer : viewFun ( "0x1edfe3da" , "vaultBuffer()" , { } , p . uint256 ) ,
102+ weth : viewFun ( "0x3fc8cef3" , "weth()" , { } , p . address ) ,
103+ wethAssetIndex : viewFun ( "0x54c6d858" , "wethAssetIndex()" , { } , p . uint256 ) ,
97104 withdrawalClaimDelay : viewFun ( "0x45e4213b" , "withdrawalClaimDelay()" , { } , p . uint256 ) ,
98105 withdrawalQueueMetadata : viewFun ( "0x362bd1a3" , "withdrawalQueueMetadata()" , { } , { "queued" : p . uint128 , "claimable" : p . uint128 , "claimed" : p . uint128 , "nextWithdrawalIndex" : p . uint128 } ) ,
99106 withdrawalRequests : viewFun ( "0x937b2581" , "withdrawalRequests(uint256)" , { "_0" : p . uint256 } , { "withdrawer" : p . address , "claimed" : p . bool , "timestamp" : p . uint40 , "amount" : p . uint128 , "queued" : p . uint128 } ) ,
@@ -257,6 +264,14 @@ export class Contract extends ContractBase {
257264 return this . eth_call ( functions . vaultBuffer , { } )
258265 }
259266
267+ weth ( ) {
268+ return this . eth_call ( functions . weth , { } )
269+ }
270+
271+ wethAssetIndex ( ) {
272+ return this . eth_call ( functions . wethAssetIndex , { } )
273+ }
274+
260275 withdrawalClaimDelay ( ) {
261276 return this . eth_call ( functions . withdrawalClaimDelay , { } )
262277 }
@@ -315,6 +330,9 @@ export type YieldDistributionEventArgs = EParams<typeof events.YieldDistribution
315330export type ADMIN_IMPLEMENTATIONParams = FunctionArguments < typeof functions . ADMIN_IMPLEMENTATION >
316331export type ADMIN_IMPLEMENTATIONReturn = FunctionReturn < typeof functions . ADMIN_IMPLEMENTATION >
317332
333+ export type AddWithdrawalQueueLiquidityParams = FunctionArguments < typeof functions . addWithdrawalQueueLiquidity >
334+ export type AddWithdrawalQueueLiquidityReturn = FunctionReturn < typeof functions . addWithdrawalQueueLiquidity >
335+
318336export type AdminImplPositionParams = FunctionArguments < typeof functions . adminImplPosition >
319337export type AdminImplPositionReturn = FunctionReturn < typeof functions . adminImplPosition >
320338
@@ -330,6 +348,9 @@ export type AutoAllocateThresholdReturn = FunctionReturn<typeof functions.autoAl
330348export type BurnForStrategyParams = FunctionArguments < typeof functions . burnForStrategy >
331349export type BurnForStrategyReturn = FunctionReturn < typeof functions . burnForStrategy >
332350
351+ export type CacheWETHAssetIndexParams = FunctionArguments < typeof functions . cacheWETHAssetIndex >
352+ export type CacheWETHAssetIndexReturn = FunctionReturn < typeof functions . cacheWETHAssetIndex >
353+
333354export type CalculateRedeemOutputsParams = FunctionArguments < typeof functions . calculateRedeemOutputs >
334355export type CalculateRedeemOutputsReturn = FunctionReturn < typeof functions . calculateRedeemOutputs >
335356
@@ -342,6 +363,12 @@ export type CheckBalanceReturn = FunctionReturn<typeof functions.checkBalance>
342363export type ClaimGovernanceParams = FunctionArguments < typeof functions . claimGovernance >
343364export type ClaimGovernanceReturn = FunctionReturn < typeof functions . claimGovernance >
344365
366+ export type ClaimWithdrawalParams = FunctionArguments < typeof functions . claimWithdrawal >
367+ export type ClaimWithdrawalReturn = FunctionReturn < typeof functions . claimWithdrawal >
368+
369+ export type ClaimWithdrawalsParams = FunctionArguments < typeof functions . claimWithdrawals >
370+ export type ClaimWithdrawalsReturn = FunctionReturn < typeof functions . claimWithdrawals >
371+
345372export type DripDurationParams = FunctionArguments < typeof functions . dripDuration >
346373export type DripDurationReturn = FunctionReturn < typeof functions . dripDuration >
347374
@@ -435,6 +462,9 @@ export type RedeemReturn = FunctionReturn<typeof functions.redeem>
435462export type RedeemFeeBpsParams = FunctionArguments < typeof functions . redeemFeeBps >
436463export type RedeemFeeBpsReturn = FunctionReturn < typeof functions . redeemFeeBps >
437464
465+ export type RequestWithdrawalParams = FunctionArguments < typeof functions . requestWithdrawal >
466+ export type RequestWithdrawalReturn = FunctionReturn < typeof functions . requestWithdrawal >
467+
438468export type SetAdminImplParams = FunctionArguments < typeof functions . setAdminImpl >
439469export type SetAdminImplReturn = FunctionReturn < typeof functions . setAdminImpl >
440470
@@ -459,6 +489,12 @@ export type TrusteeFeeBpsReturn = FunctionReturn<typeof functions.trusteeFeeBps>
459489export type VaultBufferParams = FunctionArguments < typeof functions . vaultBuffer >
460490export type VaultBufferReturn = FunctionReturn < typeof functions . vaultBuffer >
461491
492+ export type WethParams = FunctionArguments < typeof functions . weth >
493+ export type WethReturn = FunctionReturn < typeof functions . weth >
494+
495+ export type WethAssetIndexParams = FunctionArguments < typeof functions . wethAssetIndex >
496+ export type WethAssetIndexReturn = FunctionReturn < typeof functions . wethAssetIndex >
497+
462498export type WithdrawalClaimDelayParams = FunctionArguments < typeof functions . withdrawalClaimDelay >
463499export type WithdrawalClaimDelayReturn = FunctionReturn < typeof functions . withdrawalClaimDelay >
464500
0 commit comments