@meterio/sumer-js 0.2.124 → 0.2.126
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/browser/sumer.min.js +9 -9
- package/dist/nodejs/abi.js +13 -17
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/beramain.d.ts +2 -0
- package/dist/nodejs/constants/beramain.js +18 -4
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/monadtest.js +1 -1
- package/dist/nodejs/typechain/@balancer-labs/index.d.ts +2 -0
- package/dist/nodejs/typechain/@balancer-labs/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/index.d.ts +4 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.d.ts +25 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.d.ts +29 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.d.ts +63 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/index.d.ts +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/index.d.ts +6 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.d.ts +137 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/index.d.ts +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.d.ts +129 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/index.d.ts +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.d.ts +37 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.d.ts +39 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.d.ts +115 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IVault.d.ts +802 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IVault.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/IVault.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/index.d.ts +4 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/contracts/vault/index.js.map +1 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/index.d.ts +2 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/index.js +3 -0
- package/dist/nodejs/typechain/@balancer-labs/v2-interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/index.d.ts +0 -2
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.d.ts +8 -7
- package/dist/nodejs/typechain/factories/@balancer-labs/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/index.js +31 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/index.js +32 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication__factory.js +39 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator__factory.d.ts +31 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator__factory.js +52 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable__factory.js +56 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/index.js +13 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/index.js +33 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH__factory.d.ts +163 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH__factory.js +223 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/index.js +9 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20__factory.d.ts +147 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20__factory.js +203 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/index.js +9 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer__factory.d.ts +29 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer__factory.js +49 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient__factory.d.ts +29 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient__factory.js +48 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector__factory.d.ts +119 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector__factory.js +166 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IVault__factory.d.ts +900 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IVault__factory.js +1167 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/IVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/index.js +15 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/contracts/vault/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/index.js +31 -0
- package/dist/nodejs/typechain/factories/@balancer-labs/v2-interfaces/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.js +1 -5
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js +1 -3
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.d.ts +11 -18
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +12 -19
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/index.js +2 -1
- package/dist/nodejs/typechain/factories/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +162 -54
- package/dist/nodejs/typechain/index.d.ts +20 -10
- package/dist/nodejs/typechain/index.js +21 -13
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,802 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export declare namespace IVault {
|
|
4
|
+
type BatchSwapStepStruct = {
|
|
5
|
+
poolId: BytesLike;
|
|
6
|
+
assetInIndex: BigNumberish;
|
|
7
|
+
assetOutIndex: BigNumberish;
|
|
8
|
+
amount: BigNumberish;
|
|
9
|
+
userData: BytesLike;
|
|
10
|
+
};
|
|
11
|
+
type BatchSwapStepStructOutput = [
|
|
12
|
+
poolId: string,
|
|
13
|
+
assetInIndex: bigint,
|
|
14
|
+
assetOutIndex: bigint,
|
|
15
|
+
amount: bigint,
|
|
16
|
+
userData: string
|
|
17
|
+
] & {
|
|
18
|
+
poolId: string;
|
|
19
|
+
assetInIndex: bigint;
|
|
20
|
+
assetOutIndex: bigint;
|
|
21
|
+
amount: bigint;
|
|
22
|
+
userData: string;
|
|
23
|
+
};
|
|
24
|
+
type FundManagementStruct = {
|
|
25
|
+
sender: AddressLike;
|
|
26
|
+
fromInternalBalance: boolean;
|
|
27
|
+
recipient: AddressLike;
|
|
28
|
+
toInternalBalance: boolean;
|
|
29
|
+
};
|
|
30
|
+
type FundManagementStructOutput = [
|
|
31
|
+
sender: string,
|
|
32
|
+
fromInternalBalance: boolean,
|
|
33
|
+
recipient: string,
|
|
34
|
+
toInternalBalance: boolean
|
|
35
|
+
] & {
|
|
36
|
+
sender: string;
|
|
37
|
+
fromInternalBalance: boolean;
|
|
38
|
+
recipient: string;
|
|
39
|
+
toInternalBalance: boolean;
|
|
40
|
+
};
|
|
41
|
+
type ExitPoolRequestStruct = {
|
|
42
|
+
assets: AddressLike[];
|
|
43
|
+
minAmountsOut: BigNumberish[];
|
|
44
|
+
userData: BytesLike;
|
|
45
|
+
toInternalBalance: boolean;
|
|
46
|
+
};
|
|
47
|
+
type ExitPoolRequestStructOutput = [
|
|
48
|
+
assets: string[],
|
|
49
|
+
minAmountsOut: bigint[],
|
|
50
|
+
userData: string,
|
|
51
|
+
toInternalBalance: boolean
|
|
52
|
+
] & {
|
|
53
|
+
assets: string[];
|
|
54
|
+
minAmountsOut: bigint[];
|
|
55
|
+
userData: string;
|
|
56
|
+
toInternalBalance: boolean;
|
|
57
|
+
};
|
|
58
|
+
type JoinPoolRequestStruct = {
|
|
59
|
+
assets: AddressLike[];
|
|
60
|
+
maxAmountsIn: BigNumberish[];
|
|
61
|
+
userData: BytesLike;
|
|
62
|
+
fromInternalBalance: boolean;
|
|
63
|
+
};
|
|
64
|
+
type JoinPoolRequestStructOutput = [
|
|
65
|
+
assets: string[],
|
|
66
|
+
maxAmountsIn: bigint[],
|
|
67
|
+
userData: string,
|
|
68
|
+
fromInternalBalance: boolean
|
|
69
|
+
] & {
|
|
70
|
+
assets: string[];
|
|
71
|
+
maxAmountsIn: bigint[];
|
|
72
|
+
userData: string;
|
|
73
|
+
fromInternalBalance: boolean;
|
|
74
|
+
};
|
|
75
|
+
type PoolBalanceOpStruct = {
|
|
76
|
+
kind: BigNumberish;
|
|
77
|
+
poolId: BytesLike;
|
|
78
|
+
token: AddressLike;
|
|
79
|
+
amount: BigNumberish;
|
|
80
|
+
};
|
|
81
|
+
type PoolBalanceOpStructOutput = [
|
|
82
|
+
kind: bigint,
|
|
83
|
+
poolId: string,
|
|
84
|
+
token: string,
|
|
85
|
+
amount: bigint
|
|
86
|
+
] & {
|
|
87
|
+
kind: bigint;
|
|
88
|
+
poolId: string;
|
|
89
|
+
token: string;
|
|
90
|
+
amount: bigint;
|
|
91
|
+
};
|
|
92
|
+
type UserBalanceOpStruct = {
|
|
93
|
+
kind: BigNumberish;
|
|
94
|
+
asset: AddressLike;
|
|
95
|
+
amount: BigNumberish;
|
|
96
|
+
sender: AddressLike;
|
|
97
|
+
recipient: AddressLike;
|
|
98
|
+
};
|
|
99
|
+
type UserBalanceOpStructOutput = [
|
|
100
|
+
kind: bigint,
|
|
101
|
+
asset: string,
|
|
102
|
+
amount: bigint,
|
|
103
|
+
sender: string,
|
|
104
|
+
recipient: string
|
|
105
|
+
] & {
|
|
106
|
+
kind: bigint;
|
|
107
|
+
asset: string;
|
|
108
|
+
amount: bigint;
|
|
109
|
+
sender: string;
|
|
110
|
+
recipient: string;
|
|
111
|
+
};
|
|
112
|
+
type SingleSwapStruct = {
|
|
113
|
+
poolId: BytesLike;
|
|
114
|
+
kind: BigNumberish;
|
|
115
|
+
assetIn: AddressLike;
|
|
116
|
+
assetOut: AddressLike;
|
|
117
|
+
amount: BigNumberish;
|
|
118
|
+
userData: BytesLike;
|
|
119
|
+
};
|
|
120
|
+
type SingleSwapStructOutput = [
|
|
121
|
+
poolId: string,
|
|
122
|
+
kind: bigint,
|
|
123
|
+
assetIn: string,
|
|
124
|
+
assetOut: string,
|
|
125
|
+
amount: bigint,
|
|
126
|
+
userData: string
|
|
127
|
+
] & {
|
|
128
|
+
poolId: string;
|
|
129
|
+
kind: bigint;
|
|
130
|
+
assetIn: string;
|
|
131
|
+
assetOut: string;
|
|
132
|
+
amount: bigint;
|
|
133
|
+
userData: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
export interface IVaultInterface extends Interface {
|
|
137
|
+
getFunction(nameOrSignature: "WETH" | "batchSwap" | "deregisterTokens" | "exitPool" | "flashLoan" | "getActionId" | "getAuthorizer" | "getDomainSeparator" | "getInternalBalance" | "getNextNonce" | "getPausedState" | "getPool" | "getPoolTokenInfo" | "getPoolTokens" | "getProtocolFeesCollector" | "hasApprovedRelayer" | "joinPool" | "managePoolBalance" | "manageUserBalance" | "queryBatchSwap" | "registerPool" | "registerTokens" | "setAuthorizer" | "setPaused" | "setRelayerApproval" | "swap"): FunctionFragment;
|
|
138
|
+
getEvent(nameOrSignatureOrTopic: "AuthorizerChanged" | "ExternalBalanceTransfer" | "FlashLoan" | "InternalBalanceChanged" | "PausedStateChanged" | "PoolBalanceChanged" | "PoolBalanceManaged" | "PoolRegistered" | "RelayerApprovalChanged" | "Swap" | "TokensDeregistered" | "TokensRegistered"): EventFragment;
|
|
139
|
+
encodeFunctionData(functionFragment: "WETH", values?: undefined): string;
|
|
140
|
+
encodeFunctionData(functionFragment: "batchSwap", values: [
|
|
141
|
+
BigNumberish,
|
|
142
|
+
IVault.BatchSwapStepStruct[],
|
|
143
|
+
AddressLike[],
|
|
144
|
+
IVault.FundManagementStruct,
|
|
145
|
+
BigNumberish[],
|
|
146
|
+
BigNumberish
|
|
147
|
+
]): string;
|
|
148
|
+
encodeFunctionData(functionFragment: "deregisterTokens", values: [BytesLike, AddressLike[]]): string;
|
|
149
|
+
encodeFunctionData(functionFragment: "exitPool", values: [BytesLike, AddressLike, AddressLike, IVault.ExitPoolRequestStruct]): string;
|
|
150
|
+
encodeFunctionData(functionFragment: "flashLoan", values: [AddressLike, AddressLike[], BigNumberish[], BytesLike]): string;
|
|
151
|
+
encodeFunctionData(functionFragment: "getActionId", values: [BytesLike]): string;
|
|
152
|
+
encodeFunctionData(functionFragment: "getAuthorizer", values?: undefined): string;
|
|
153
|
+
encodeFunctionData(functionFragment: "getDomainSeparator", values?: undefined): string;
|
|
154
|
+
encodeFunctionData(functionFragment: "getInternalBalance", values: [AddressLike, AddressLike[]]): string;
|
|
155
|
+
encodeFunctionData(functionFragment: "getNextNonce", values: [AddressLike]): string;
|
|
156
|
+
encodeFunctionData(functionFragment: "getPausedState", values?: undefined): string;
|
|
157
|
+
encodeFunctionData(functionFragment: "getPool", values: [BytesLike]): string;
|
|
158
|
+
encodeFunctionData(functionFragment: "getPoolTokenInfo", values: [BytesLike, AddressLike]): string;
|
|
159
|
+
encodeFunctionData(functionFragment: "getPoolTokens", values: [BytesLike]): string;
|
|
160
|
+
encodeFunctionData(functionFragment: "getProtocolFeesCollector", values?: undefined): string;
|
|
161
|
+
encodeFunctionData(functionFragment: "hasApprovedRelayer", values: [AddressLike, AddressLike]): string;
|
|
162
|
+
encodeFunctionData(functionFragment: "joinPool", values: [BytesLike, AddressLike, AddressLike, IVault.JoinPoolRequestStruct]): string;
|
|
163
|
+
encodeFunctionData(functionFragment: "managePoolBalance", values: [IVault.PoolBalanceOpStruct[]]): string;
|
|
164
|
+
encodeFunctionData(functionFragment: "manageUserBalance", values: [IVault.UserBalanceOpStruct[]]): string;
|
|
165
|
+
encodeFunctionData(functionFragment: "queryBatchSwap", values: [
|
|
166
|
+
BigNumberish,
|
|
167
|
+
IVault.BatchSwapStepStruct[],
|
|
168
|
+
AddressLike[],
|
|
169
|
+
IVault.FundManagementStruct
|
|
170
|
+
]): string;
|
|
171
|
+
encodeFunctionData(functionFragment: "registerPool", values: [BigNumberish]): string;
|
|
172
|
+
encodeFunctionData(functionFragment: "registerTokens", values: [BytesLike, AddressLike[], AddressLike[]]): string;
|
|
173
|
+
encodeFunctionData(functionFragment: "setAuthorizer", values: [AddressLike]): string;
|
|
174
|
+
encodeFunctionData(functionFragment: "setPaused", values: [boolean]): string;
|
|
175
|
+
encodeFunctionData(functionFragment: "setRelayerApproval", values: [AddressLike, AddressLike, boolean]): string;
|
|
176
|
+
encodeFunctionData(functionFragment: "swap", values: [
|
|
177
|
+
IVault.SingleSwapStruct,
|
|
178
|
+
IVault.FundManagementStruct,
|
|
179
|
+
BigNumberish,
|
|
180
|
+
BigNumberish
|
|
181
|
+
]): string;
|
|
182
|
+
decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: "batchSwap", data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: "deregisterTokens", data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: "exitPool", data: BytesLike): Result;
|
|
186
|
+
decodeFunctionResult(functionFragment: "flashLoan", data: BytesLike): Result;
|
|
187
|
+
decodeFunctionResult(functionFragment: "getActionId", data: BytesLike): Result;
|
|
188
|
+
decodeFunctionResult(functionFragment: "getAuthorizer", data: BytesLike): Result;
|
|
189
|
+
decodeFunctionResult(functionFragment: "getDomainSeparator", data: BytesLike): Result;
|
|
190
|
+
decodeFunctionResult(functionFragment: "getInternalBalance", data: BytesLike): Result;
|
|
191
|
+
decodeFunctionResult(functionFragment: "getNextNonce", data: BytesLike): Result;
|
|
192
|
+
decodeFunctionResult(functionFragment: "getPausedState", data: BytesLike): Result;
|
|
193
|
+
decodeFunctionResult(functionFragment: "getPool", data: BytesLike): Result;
|
|
194
|
+
decodeFunctionResult(functionFragment: "getPoolTokenInfo", data: BytesLike): Result;
|
|
195
|
+
decodeFunctionResult(functionFragment: "getPoolTokens", data: BytesLike): Result;
|
|
196
|
+
decodeFunctionResult(functionFragment: "getProtocolFeesCollector", data: BytesLike): Result;
|
|
197
|
+
decodeFunctionResult(functionFragment: "hasApprovedRelayer", data: BytesLike): Result;
|
|
198
|
+
decodeFunctionResult(functionFragment: "joinPool", data: BytesLike): Result;
|
|
199
|
+
decodeFunctionResult(functionFragment: "managePoolBalance", data: BytesLike): Result;
|
|
200
|
+
decodeFunctionResult(functionFragment: "manageUserBalance", data: BytesLike): Result;
|
|
201
|
+
decodeFunctionResult(functionFragment: "queryBatchSwap", data: BytesLike): Result;
|
|
202
|
+
decodeFunctionResult(functionFragment: "registerPool", data: BytesLike): Result;
|
|
203
|
+
decodeFunctionResult(functionFragment: "registerTokens", data: BytesLike): Result;
|
|
204
|
+
decodeFunctionResult(functionFragment: "setAuthorizer", data: BytesLike): Result;
|
|
205
|
+
decodeFunctionResult(functionFragment: "setPaused", data: BytesLike): Result;
|
|
206
|
+
decodeFunctionResult(functionFragment: "setRelayerApproval", data: BytesLike): Result;
|
|
207
|
+
decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
|
|
208
|
+
}
|
|
209
|
+
export declare namespace AuthorizerChangedEvent {
|
|
210
|
+
type InputTuple = [newAuthorizer: AddressLike];
|
|
211
|
+
type OutputTuple = [newAuthorizer: string];
|
|
212
|
+
interface OutputObject {
|
|
213
|
+
newAuthorizer: string;
|
|
214
|
+
}
|
|
215
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
216
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
217
|
+
type Log = TypedEventLog<Event>;
|
|
218
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
219
|
+
}
|
|
220
|
+
export declare namespace ExternalBalanceTransferEvent {
|
|
221
|
+
type InputTuple = [
|
|
222
|
+
token: AddressLike,
|
|
223
|
+
sender: AddressLike,
|
|
224
|
+
recipient: AddressLike,
|
|
225
|
+
amount: BigNumberish
|
|
226
|
+
];
|
|
227
|
+
type OutputTuple = [
|
|
228
|
+
token: string,
|
|
229
|
+
sender: string,
|
|
230
|
+
recipient: string,
|
|
231
|
+
amount: bigint
|
|
232
|
+
];
|
|
233
|
+
interface OutputObject {
|
|
234
|
+
token: string;
|
|
235
|
+
sender: string;
|
|
236
|
+
recipient: string;
|
|
237
|
+
amount: bigint;
|
|
238
|
+
}
|
|
239
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
240
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
241
|
+
type Log = TypedEventLog<Event>;
|
|
242
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
243
|
+
}
|
|
244
|
+
export declare namespace FlashLoanEvent {
|
|
245
|
+
type InputTuple = [
|
|
246
|
+
recipient: AddressLike,
|
|
247
|
+
token: AddressLike,
|
|
248
|
+
amount: BigNumberish,
|
|
249
|
+
feeAmount: BigNumberish
|
|
250
|
+
];
|
|
251
|
+
type OutputTuple = [
|
|
252
|
+
recipient: string,
|
|
253
|
+
token: string,
|
|
254
|
+
amount: bigint,
|
|
255
|
+
feeAmount: bigint
|
|
256
|
+
];
|
|
257
|
+
interface OutputObject {
|
|
258
|
+
recipient: string;
|
|
259
|
+
token: string;
|
|
260
|
+
amount: bigint;
|
|
261
|
+
feeAmount: bigint;
|
|
262
|
+
}
|
|
263
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
264
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
265
|
+
type Log = TypedEventLog<Event>;
|
|
266
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
267
|
+
}
|
|
268
|
+
export declare namespace InternalBalanceChangedEvent {
|
|
269
|
+
type InputTuple = [
|
|
270
|
+
user: AddressLike,
|
|
271
|
+
token: AddressLike,
|
|
272
|
+
delta: BigNumberish
|
|
273
|
+
];
|
|
274
|
+
type OutputTuple = [user: string, token: string, delta: bigint];
|
|
275
|
+
interface OutputObject {
|
|
276
|
+
user: string;
|
|
277
|
+
token: string;
|
|
278
|
+
delta: bigint;
|
|
279
|
+
}
|
|
280
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
281
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
282
|
+
type Log = TypedEventLog<Event>;
|
|
283
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
284
|
+
}
|
|
285
|
+
export declare namespace PausedStateChangedEvent {
|
|
286
|
+
type InputTuple = [paused: boolean];
|
|
287
|
+
type OutputTuple = [paused: boolean];
|
|
288
|
+
interface OutputObject {
|
|
289
|
+
paused: boolean;
|
|
290
|
+
}
|
|
291
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
292
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
293
|
+
type Log = TypedEventLog<Event>;
|
|
294
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
295
|
+
}
|
|
296
|
+
export declare namespace PoolBalanceChangedEvent {
|
|
297
|
+
type InputTuple = [
|
|
298
|
+
poolId: BytesLike,
|
|
299
|
+
liquidityProvider: AddressLike,
|
|
300
|
+
tokens: AddressLike[],
|
|
301
|
+
deltas: BigNumberish[],
|
|
302
|
+
protocolFeeAmounts: BigNumberish[]
|
|
303
|
+
];
|
|
304
|
+
type OutputTuple = [
|
|
305
|
+
poolId: string,
|
|
306
|
+
liquidityProvider: string,
|
|
307
|
+
tokens: string[],
|
|
308
|
+
deltas: bigint[],
|
|
309
|
+
protocolFeeAmounts: bigint[]
|
|
310
|
+
];
|
|
311
|
+
interface OutputObject {
|
|
312
|
+
poolId: string;
|
|
313
|
+
liquidityProvider: string;
|
|
314
|
+
tokens: string[];
|
|
315
|
+
deltas: bigint[];
|
|
316
|
+
protocolFeeAmounts: bigint[];
|
|
317
|
+
}
|
|
318
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
319
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
320
|
+
type Log = TypedEventLog<Event>;
|
|
321
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
322
|
+
}
|
|
323
|
+
export declare namespace PoolBalanceManagedEvent {
|
|
324
|
+
type InputTuple = [
|
|
325
|
+
poolId: BytesLike,
|
|
326
|
+
assetManager: AddressLike,
|
|
327
|
+
token: AddressLike,
|
|
328
|
+
cashDelta: BigNumberish,
|
|
329
|
+
managedDelta: BigNumberish
|
|
330
|
+
];
|
|
331
|
+
type OutputTuple = [
|
|
332
|
+
poolId: string,
|
|
333
|
+
assetManager: string,
|
|
334
|
+
token: string,
|
|
335
|
+
cashDelta: bigint,
|
|
336
|
+
managedDelta: bigint
|
|
337
|
+
];
|
|
338
|
+
interface OutputObject {
|
|
339
|
+
poolId: string;
|
|
340
|
+
assetManager: string;
|
|
341
|
+
token: string;
|
|
342
|
+
cashDelta: bigint;
|
|
343
|
+
managedDelta: bigint;
|
|
344
|
+
}
|
|
345
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
346
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
347
|
+
type Log = TypedEventLog<Event>;
|
|
348
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
349
|
+
}
|
|
350
|
+
export declare namespace PoolRegisteredEvent {
|
|
351
|
+
type InputTuple = [
|
|
352
|
+
poolId: BytesLike,
|
|
353
|
+
poolAddress: AddressLike,
|
|
354
|
+
specialization: BigNumberish
|
|
355
|
+
];
|
|
356
|
+
type OutputTuple = [
|
|
357
|
+
poolId: string,
|
|
358
|
+
poolAddress: string,
|
|
359
|
+
specialization: bigint
|
|
360
|
+
];
|
|
361
|
+
interface OutputObject {
|
|
362
|
+
poolId: string;
|
|
363
|
+
poolAddress: string;
|
|
364
|
+
specialization: bigint;
|
|
365
|
+
}
|
|
366
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
367
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
368
|
+
type Log = TypedEventLog<Event>;
|
|
369
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
370
|
+
}
|
|
371
|
+
export declare namespace RelayerApprovalChangedEvent {
|
|
372
|
+
type InputTuple = [
|
|
373
|
+
relayer: AddressLike,
|
|
374
|
+
sender: AddressLike,
|
|
375
|
+
approved: boolean
|
|
376
|
+
];
|
|
377
|
+
type OutputTuple = [
|
|
378
|
+
relayer: string,
|
|
379
|
+
sender: string,
|
|
380
|
+
approved: boolean
|
|
381
|
+
];
|
|
382
|
+
interface OutputObject {
|
|
383
|
+
relayer: string;
|
|
384
|
+
sender: string;
|
|
385
|
+
approved: boolean;
|
|
386
|
+
}
|
|
387
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
388
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
389
|
+
type Log = TypedEventLog<Event>;
|
|
390
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
391
|
+
}
|
|
392
|
+
export declare namespace SwapEvent {
|
|
393
|
+
type InputTuple = [
|
|
394
|
+
poolId: BytesLike,
|
|
395
|
+
tokenIn: AddressLike,
|
|
396
|
+
tokenOut: AddressLike,
|
|
397
|
+
amountIn: BigNumberish,
|
|
398
|
+
amountOut: BigNumberish
|
|
399
|
+
];
|
|
400
|
+
type OutputTuple = [
|
|
401
|
+
poolId: string,
|
|
402
|
+
tokenIn: string,
|
|
403
|
+
tokenOut: string,
|
|
404
|
+
amountIn: bigint,
|
|
405
|
+
amountOut: bigint
|
|
406
|
+
];
|
|
407
|
+
interface OutputObject {
|
|
408
|
+
poolId: string;
|
|
409
|
+
tokenIn: string;
|
|
410
|
+
tokenOut: string;
|
|
411
|
+
amountIn: bigint;
|
|
412
|
+
amountOut: bigint;
|
|
413
|
+
}
|
|
414
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
415
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
416
|
+
type Log = TypedEventLog<Event>;
|
|
417
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
418
|
+
}
|
|
419
|
+
export declare namespace TokensDeregisteredEvent {
|
|
420
|
+
type InputTuple = [poolId: BytesLike, tokens: AddressLike[]];
|
|
421
|
+
type OutputTuple = [poolId: string, tokens: string[]];
|
|
422
|
+
interface OutputObject {
|
|
423
|
+
poolId: string;
|
|
424
|
+
tokens: string[];
|
|
425
|
+
}
|
|
426
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
427
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
428
|
+
type Log = TypedEventLog<Event>;
|
|
429
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
430
|
+
}
|
|
431
|
+
export declare namespace TokensRegisteredEvent {
|
|
432
|
+
type InputTuple = [
|
|
433
|
+
poolId: BytesLike,
|
|
434
|
+
tokens: AddressLike[],
|
|
435
|
+
assetManagers: AddressLike[]
|
|
436
|
+
];
|
|
437
|
+
type OutputTuple = [
|
|
438
|
+
poolId: string,
|
|
439
|
+
tokens: string[],
|
|
440
|
+
assetManagers: string[]
|
|
441
|
+
];
|
|
442
|
+
interface OutputObject {
|
|
443
|
+
poolId: string;
|
|
444
|
+
tokens: string[];
|
|
445
|
+
assetManagers: string[];
|
|
446
|
+
}
|
|
447
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
448
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
449
|
+
type Log = TypedEventLog<Event>;
|
|
450
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
451
|
+
}
|
|
452
|
+
export interface IVault extends BaseContract {
|
|
453
|
+
connect(runner?: ContractRunner | null): IVault;
|
|
454
|
+
waitForDeployment(): Promise<this>;
|
|
455
|
+
interface: IVaultInterface;
|
|
456
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
457
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
458
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
459
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
460
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
461
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
462
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
463
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
464
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
465
|
+
WETH: TypedContractMethod<[], [string], "view">;
|
|
466
|
+
batchSwap: TypedContractMethod<[
|
|
467
|
+
kind: BigNumberish,
|
|
468
|
+
swaps: IVault.BatchSwapStepStruct[],
|
|
469
|
+
assets: AddressLike[],
|
|
470
|
+
funds: IVault.FundManagementStruct,
|
|
471
|
+
limits: BigNumberish[],
|
|
472
|
+
deadline: BigNumberish
|
|
473
|
+
], [
|
|
474
|
+
bigint[]
|
|
475
|
+
], "payable">;
|
|
476
|
+
deregisterTokens: TypedContractMethod<[
|
|
477
|
+
poolId: BytesLike,
|
|
478
|
+
tokens: AddressLike[]
|
|
479
|
+
], [
|
|
480
|
+
void
|
|
481
|
+
], "nonpayable">;
|
|
482
|
+
exitPool: TypedContractMethod<[
|
|
483
|
+
poolId: BytesLike,
|
|
484
|
+
sender: AddressLike,
|
|
485
|
+
recipient: AddressLike,
|
|
486
|
+
request: IVault.ExitPoolRequestStruct
|
|
487
|
+
], [
|
|
488
|
+
void
|
|
489
|
+
], "nonpayable">;
|
|
490
|
+
flashLoan: TypedContractMethod<[
|
|
491
|
+
recipient: AddressLike,
|
|
492
|
+
tokens: AddressLike[],
|
|
493
|
+
amounts: BigNumberish[],
|
|
494
|
+
userData: BytesLike
|
|
495
|
+
], [
|
|
496
|
+
void
|
|
497
|
+
], "nonpayable">;
|
|
498
|
+
getActionId: TypedContractMethod<[selector: BytesLike], [string], "view">;
|
|
499
|
+
getAuthorizer: TypedContractMethod<[], [string], "view">;
|
|
500
|
+
getDomainSeparator: TypedContractMethod<[], [string], "view">;
|
|
501
|
+
getInternalBalance: TypedContractMethod<[
|
|
502
|
+
user: AddressLike,
|
|
503
|
+
tokens: AddressLike[]
|
|
504
|
+
], [
|
|
505
|
+
bigint[]
|
|
506
|
+
], "view">;
|
|
507
|
+
getNextNonce: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
508
|
+
getPausedState: TypedContractMethod<[
|
|
509
|
+
], [
|
|
510
|
+
[
|
|
511
|
+
boolean,
|
|
512
|
+
bigint,
|
|
513
|
+
bigint
|
|
514
|
+
] & {
|
|
515
|
+
paused: boolean;
|
|
516
|
+
pauseWindowEndTime: bigint;
|
|
517
|
+
bufferPeriodEndTime: bigint;
|
|
518
|
+
}
|
|
519
|
+
], "view">;
|
|
520
|
+
getPool: TypedContractMethod<[poolId: BytesLike], [[string, bigint]], "view">;
|
|
521
|
+
getPoolTokenInfo: TypedContractMethod<[
|
|
522
|
+
poolId: BytesLike,
|
|
523
|
+
token: AddressLike
|
|
524
|
+
], [
|
|
525
|
+
[
|
|
526
|
+
bigint,
|
|
527
|
+
bigint,
|
|
528
|
+
bigint,
|
|
529
|
+
string
|
|
530
|
+
] & {
|
|
531
|
+
cash: bigint;
|
|
532
|
+
managed: bigint;
|
|
533
|
+
lastChangeBlock: bigint;
|
|
534
|
+
assetManager: string;
|
|
535
|
+
}
|
|
536
|
+
], "view">;
|
|
537
|
+
getPoolTokens: TypedContractMethod<[
|
|
538
|
+
poolId: BytesLike
|
|
539
|
+
], [
|
|
540
|
+
[
|
|
541
|
+
string[],
|
|
542
|
+
bigint[],
|
|
543
|
+
bigint
|
|
544
|
+
] & {
|
|
545
|
+
tokens: string[];
|
|
546
|
+
balances: bigint[];
|
|
547
|
+
lastChangeBlock: bigint;
|
|
548
|
+
}
|
|
549
|
+
], "view">;
|
|
550
|
+
getProtocolFeesCollector: TypedContractMethod<[], [string], "view">;
|
|
551
|
+
hasApprovedRelayer: TypedContractMethod<[
|
|
552
|
+
user: AddressLike,
|
|
553
|
+
relayer: AddressLike
|
|
554
|
+
], [
|
|
555
|
+
boolean
|
|
556
|
+
], "view">;
|
|
557
|
+
joinPool: TypedContractMethod<[
|
|
558
|
+
poolId: BytesLike,
|
|
559
|
+
sender: AddressLike,
|
|
560
|
+
recipient: AddressLike,
|
|
561
|
+
request: IVault.JoinPoolRequestStruct
|
|
562
|
+
], [
|
|
563
|
+
void
|
|
564
|
+
], "payable">;
|
|
565
|
+
managePoolBalance: TypedContractMethod<[
|
|
566
|
+
ops: IVault.PoolBalanceOpStruct[]
|
|
567
|
+
], [
|
|
568
|
+
void
|
|
569
|
+
], "nonpayable">;
|
|
570
|
+
manageUserBalance: TypedContractMethod<[
|
|
571
|
+
ops: IVault.UserBalanceOpStruct[]
|
|
572
|
+
], [
|
|
573
|
+
void
|
|
574
|
+
], "payable">;
|
|
575
|
+
queryBatchSwap: TypedContractMethod<[
|
|
576
|
+
kind: BigNumberish,
|
|
577
|
+
swaps: IVault.BatchSwapStepStruct[],
|
|
578
|
+
assets: AddressLike[],
|
|
579
|
+
funds: IVault.FundManagementStruct
|
|
580
|
+
], [
|
|
581
|
+
bigint[]
|
|
582
|
+
], "nonpayable">;
|
|
583
|
+
registerPool: TypedContractMethod<[
|
|
584
|
+
specialization: BigNumberish
|
|
585
|
+
], [
|
|
586
|
+
string
|
|
587
|
+
], "nonpayable">;
|
|
588
|
+
registerTokens: TypedContractMethod<[
|
|
589
|
+
poolId: BytesLike,
|
|
590
|
+
tokens: AddressLike[],
|
|
591
|
+
assetManagers: AddressLike[]
|
|
592
|
+
], [
|
|
593
|
+
void
|
|
594
|
+
], "nonpayable">;
|
|
595
|
+
setAuthorizer: TypedContractMethod<[
|
|
596
|
+
newAuthorizer: AddressLike
|
|
597
|
+
], [
|
|
598
|
+
void
|
|
599
|
+
], "nonpayable">;
|
|
600
|
+
setPaused: TypedContractMethod<[paused: boolean], [void], "nonpayable">;
|
|
601
|
+
setRelayerApproval: TypedContractMethod<[
|
|
602
|
+
sender: AddressLike,
|
|
603
|
+
relayer: AddressLike,
|
|
604
|
+
approved: boolean
|
|
605
|
+
], [
|
|
606
|
+
void
|
|
607
|
+
], "nonpayable">;
|
|
608
|
+
swap: TypedContractMethod<[
|
|
609
|
+
singleSwap: IVault.SingleSwapStruct,
|
|
610
|
+
funds: IVault.FundManagementStruct,
|
|
611
|
+
limit: BigNumberish,
|
|
612
|
+
deadline: BigNumberish
|
|
613
|
+
], [
|
|
614
|
+
bigint
|
|
615
|
+
], "payable">;
|
|
616
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
617
|
+
getFunction(nameOrSignature: "WETH"): TypedContractMethod<[], [string], "view">;
|
|
618
|
+
getFunction(nameOrSignature: "batchSwap"): TypedContractMethod<[
|
|
619
|
+
kind: BigNumberish,
|
|
620
|
+
swaps: IVault.BatchSwapStepStruct[],
|
|
621
|
+
assets: AddressLike[],
|
|
622
|
+
funds: IVault.FundManagementStruct,
|
|
623
|
+
limits: BigNumberish[],
|
|
624
|
+
deadline: BigNumberish
|
|
625
|
+
], [
|
|
626
|
+
bigint[]
|
|
627
|
+
], "payable">;
|
|
628
|
+
getFunction(nameOrSignature: "deregisterTokens"): TypedContractMethod<[
|
|
629
|
+
poolId: BytesLike,
|
|
630
|
+
tokens: AddressLike[]
|
|
631
|
+
], [
|
|
632
|
+
void
|
|
633
|
+
], "nonpayable">;
|
|
634
|
+
getFunction(nameOrSignature: "exitPool"): TypedContractMethod<[
|
|
635
|
+
poolId: BytesLike,
|
|
636
|
+
sender: AddressLike,
|
|
637
|
+
recipient: AddressLike,
|
|
638
|
+
request: IVault.ExitPoolRequestStruct
|
|
639
|
+
], [
|
|
640
|
+
void
|
|
641
|
+
], "nonpayable">;
|
|
642
|
+
getFunction(nameOrSignature: "flashLoan"): TypedContractMethod<[
|
|
643
|
+
recipient: AddressLike,
|
|
644
|
+
tokens: AddressLike[],
|
|
645
|
+
amounts: BigNumberish[],
|
|
646
|
+
userData: BytesLike
|
|
647
|
+
], [
|
|
648
|
+
void
|
|
649
|
+
], "nonpayable">;
|
|
650
|
+
getFunction(nameOrSignature: "getActionId"): TypedContractMethod<[selector: BytesLike], [string], "view">;
|
|
651
|
+
getFunction(nameOrSignature: "getAuthorizer"): TypedContractMethod<[], [string], "view">;
|
|
652
|
+
getFunction(nameOrSignature: "getDomainSeparator"): TypedContractMethod<[], [string], "view">;
|
|
653
|
+
getFunction(nameOrSignature: "getInternalBalance"): TypedContractMethod<[
|
|
654
|
+
user: AddressLike,
|
|
655
|
+
tokens: AddressLike[]
|
|
656
|
+
], [
|
|
657
|
+
bigint[]
|
|
658
|
+
], "view">;
|
|
659
|
+
getFunction(nameOrSignature: "getNextNonce"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
660
|
+
getFunction(nameOrSignature: "getPausedState"): TypedContractMethod<[
|
|
661
|
+
], [
|
|
662
|
+
[
|
|
663
|
+
boolean,
|
|
664
|
+
bigint,
|
|
665
|
+
bigint
|
|
666
|
+
] & {
|
|
667
|
+
paused: boolean;
|
|
668
|
+
pauseWindowEndTime: bigint;
|
|
669
|
+
bufferPeriodEndTime: bigint;
|
|
670
|
+
}
|
|
671
|
+
], "view">;
|
|
672
|
+
getFunction(nameOrSignature: "getPool"): TypedContractMethod<[poolId: BytesLike], [[string, bigint]], "view">;
|
|
673
|
+
getFunction(nameOrSignature: "getPoolTokenInfo"): TypedContractMethod<[
|
|
674
|
+
poolId: BytesLike,
|
|
675
|
+
token: AddressLike
|
|
676
|
+
], [
|
|
677
|
+
[
|
|
678
|
+
bigint,
|
|
679
|
+
bigint,
|
|
680
|
+
bigint,
|
|
681
|
+
string
|
|
682
|
+
] & {
|
|
683
|
+
cash: bigint;
|
|
684
|
+
managed: bigint;
|
|
685
|
+
lastChangeBlock: bigint;
|
|
686
|
+
assetManager: string;
|
|
687
|
+
}
|
|
688
|
+
], "view">;
|
|
689
|
+
getFunction(nameOrSignature: "getPoolTokens"): TypedContractMethod<[
|
|
690
|
+
poolId: BytesLike
|
|
691
|
+
], [
|
|
692
|
+
[
|
|
693
|
+
string[],
|
|
694
|
+
bigint[],
|
|
695
|
+
bigint
|
|
696
|
+
] & {
|
|
697
|
+
tokens: string[];
|
|
698
|
+
balances: bigint[];
|
|
699
|
+
lastChangeBlock: bigint;
|
|
700
|
+
}
|
|
701
|
+
], "view">;
|
|
702
|
+
getFunction(nameOrSignature: "getProtocolFeesCollector"): TypedContractMethod<[], [string], "view">;
|
|
703
|
+
getFunction(nameOrSignature: "hasApprovedRelayer"): TypedContractMethod<[
|
|
704
|
+
user: AddressLike,
|
|
705
|
+
relayer: AddressLike
|
|
706
|
+
], [
|
|
707
|
+
boolean
|
|
708
|
+
], "view">;
|
|
709
|
+
getFunction(nameOrSignature: "joinPool"): TypedContractMethod<[
|
|
710
|
+
poolId: BytesLike,
|
|
711
|
+
sender: AddressLike,
|
|
712
|
+
recipient: AddressLike,
|
|
713
|
+
request: IVault.JoinPoolRequestStruct
|
|
714
|
+
], [
|
|
715
|
+
void
|
|
716
|
+
], "payable">;
|
|
717
|
+
getFunction(nameOrSignature: "managePoolBalance"): TypedContractMethod<[
|
|
718
|
+
ops: IVault.PoolBalanceOpStruct[]
|
|
719
|
+
], [
|
|
720
|
+
void
|
|
721
|
+
], "nonpayable">;
|
|
722
|
+
getFunction(nameOrSignature: "manageUserBalance"): TypedContractMethod<[
|
|
723
|
+
ops: IVault.UserBalanceOpStruct[]
|
|
724
|
+
], [
|
|
725
|
+
void
|
|
726
|
+
], "payable">;
|
|
727
|
+
getFunction(nameOrSignature: "queryBatchSwap"): TypedContractMethod<[
|
|
728
|
+
kind: BigNumberish,
|
|
729
|
+
swaps: IVault.BatchSwapStepStruct[],
|
|
730
|
+
assets: AddressLike[],
|
|
731
|
+
funds: IVault.FundManagementStruct
|
|
732
|
+
], [
|
|
733
|
+
bigint[]
|
|
734
|
+
], "nonpayable">;
|
|
735
|
+
getFunction(nameOrSignature: "registerPool"): TypedContractMethod<[
|
|
736
|
+
specialization: BigNumberish
|
|
737
|
+
], [
|
|
738
|
+
string
|
|
739
|
+
], "nonpayable">;
|
|
740
|
+
getFunction(nameOrSignature: "registerTokens"): TypedContractMethod<[
|
|
741
|
+
poolId: BytesLike,
|
|
742
|
+
tokens: AddressLike[],
|
|
743
|
+
assetManagers: AddressLike[]
|
|
744
|
+
], [
|
|
745
|
+
void
|
|
746
|
+
], "nonpayable">;
|
|
747
|
+
getFunction(nameOrSignature: "setAuthorizer"): TypedContractMethod<[newAuthorizer: AddressLike], [void], "nonpayable">;
|
|
748
|
+
getFunction(nameOrSignature: "setPaused"): TypedContractMethod<[paused: boolean], [void], "nonpayable">;
|
|
749
|
+
getFunction(nameOrSignature: "setRelayerApproval"): TypedContractMethod<[
|
|
750
|
+
sender: AddressLike,
|
|
751
|
+
relayer: AddressLike,
|
|
752
|
+
approved: boolean
|
|
753
|
+
], [
|
|
754
|
+
void
|
|
755
|
+
], "nonpayable">;
|
|
756
|
+
getFunction(nameOrSignature: "swap"): TypedContractMethod<[
|
|
757
|
+
singleSwap: IVault.SingleSwapStruct,
|
|
758
|
+
funds: IVault.FundManagementStruct,
|
|
759
|
+
limit: BigNumberish,
|
|
760
|
+
deadline: BigNumberish
|
|
761
|
+
], [
|
|
762
|
+
bigint
|
|
763
|
+
], "payable">;
|
|
764
|
+
getEvent(key: "AuthorizerChanged"): TypedContractEvent<AuthorizerChangedEvent.InputTuple, AuthorizerChangedEvent.OutputTuple, AuthorizerChangedEvent.OutputObject>;
|
|
765
|
+
getEvent(key: "ExternalBalanceTransfer"): TypedContractEvent<ExternalBalanceTransferEvent.InputTuple, ExternalBalanceTransferEvent.OutputTuple, ExternalBalanceTransferEvent.OutputObject>;
|
|
766
|
+
getEvent(key: "FlashLoan"): TypedContractEvent<FlashLoanEvent.InputTuple, FlashLoanEvent.OutputTuple, FlashLoanEvent.OutputObject>;
|
|
767
|
+
getEvent(key: "InternalBalanceChanged"): TypedContractEvent<InternalBalanceChangedEvent.InputTuple, InternalBalanceChangedEvent.OutputTuple, InternalBalanceChangedEvent.OutputObject>;
|
|
768
|
+
getEvent(key: "PausedStateChanged"): TypedContractEvent<PausedStateChangedEvent.InputTuple, PausedStateChangedEvent.OutputTuple, PausedStateChangedEvent.OutputObject>;
|
|
769
|
+
getEvent(key: "PoolBalanceChanged"): TypedContractEvent<PoolBalanceChangedEvent.InputTuple, PoolBalanceChangedEvent.OutputTuple, PoolBalanceChangedEvent.OutputObject>;
|
|
770
|
+
getEvent(key: "PoolBalanceManaged"): TypedContractEvent<PoolBalanceManagedEvent.InputTuple, PoolBalanceManagedEvent.OutputTuple, PoolBalanceManagedEvent.OutputObject>;
|
|
771
|
+
getEvent(key: "PoolRegistered"): TypedContractEvent<PoolRegisteredEvent.InputTuple, PoolRegisteredEvent.OutputTuple, PoolRegisteredEvent.OutputObject>;
|
|
772
|
+
getEvent(key: "RelayerApprovalChanged"): TypedContractEvent<RelayerApprovalChangedEvent.InputTuple, RelayerApprovalChangedEvent.OutputTuple, RelayerApprovalChangedEvent.OutputObject>;
|
|
773
|
+
getEvent(key: "Swap"): TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
|
|
774
|
+
getEvent(key: "TokensDeregistered"): TypedContractEvent<TokensDeregisteredEvent.InputTuple, TokensDeregisteredEvent.OutputTuple, TokensDeregisteredEvent.OutputObject>;
|
|
775
|
+
getEvent(key: "TokensRegistered"): TypedContractEvent<TokensRegisteredEvent.InputTuple, TokensRegisteredEvent.OutputTuple, TokensRegisteredEvent.OutputObject>;
|
|
776
|
+
filters: {
|
|
777
|
+
"AuthorizerChanged(address)": TypedContractEvent<AuthorizerChangedEvent.InputTuple, AuthorizerChangedEvent.OutputTuple, AuthorizerChangedEvent.OutputObject>;
|
|
778
|
+
AuthorizerChanged: TypedContractEvent<AuthorizerChangedEvent.InputTuple, AuthorizerChangedEvent.OutputTuple, AuthorizerChangedEvent.OutputObject>;
|
|
779
|
+
"ExternalBalanceTransfer(address,address,address,uint256)": TypedContractEvent<ExternalBalanceTransferEvent.InputTuple, ExternalBalanceTransferEvent.OutputTuple, ExternalBalanceTransferEvent.OutputObject>;
|
|
780
|
+
ExternalBalanceTransfer: TypedContractEvent<ExternalBalanceTransferEvent.InputTuple, ExternalBalanceTransferEvent.OutputTuple, ExternalBalanceTransferEvent.OutputObject>;
|
|
781
|
+
"FlashLoan(address,address,uint256,uint256)": TypedContractEvent<FlashLoanEvent.InputTuple, FlashLoanEvent.OutputTuple, FlashLoanEvent.OutputObject>;
|
|
782
|
+
FlashLoan: TypedContractEvent<FlashLoanEvent.InputTuple, FlashLoanEvent.OutputTuple, FlashLoanEvent.OutputObject>;
|
|
783
|
+
"InternalBalanceChanged(address,address,int256)": TypedContractEvent<InternalBalanceChangedEvent.InputTuple, InternalBalanceChangedEvent.OutputTuple, InternalBalanceChangedEvent.OutputObject>;
|
|
784
|
+
InternalBalanceChanged: TypedContractEvent<InternalBalanceChangedEvent.InputTuple, InternalBalanceChangedEvent.OutputTuple, InternalBalanceChangedEvent.OutputObject>;
|
|
785
|
+
"PausedStateChanged(bool)": TypedContractEvent<PausedStateChangedEvent.InputTuple, PausedStateChangedEvent.OutputTuple, PausedStateChangedEvent.OutputObject>;
|
|
786
|
+
PausedStateChanged: TypedContractEvent<PausedStateChangedEvent.InputTuple, PausedStateChangedEvent.OutputTuple, PausedStateChangedEvent.OutputObject>;
|
|
787
|
+
"PoolBalanceChanged(bytes32,address,address[],int256[],uint256[])": TypedContractEvent<PoolBalanceChangedEvent.InputTuple, PoolBalanceChangedEvent.OutputTuple, PoolBalanceChangedEvent.OutputObject>;
|
|
788
|
+
PoolBalanceChanged: TypedContractEvent<PoolBalanceChangedEvent.InputTuple, PoolBalanceChangedEvent.OutputTuple, PoolBalanceChangedEvent.OutputObject>;
|
|
789
|
+
"PoolBalanceManaged(bytes32,address,address,int256,int256)": TypedContractEvent<PoolBalanceManagedEvent.InputTuple, PoolBalanceManagedEvent.OutputTuple, PoolBalanceManagedEvent.OutputObject>;
|
|
790
|
+
PoolBalanceManaged: TypedContractEvent<PoolBalanceManagedEvent.InputTuple, PoolBalanceManagedEvent.OutputTuple, PoolBalanceManagedEvent.OutputObject>;
|
|
791
|
+
"PoolRegistered(bytes32,address,uint8)": TypedContractEvent<PoolRegisteredEvent.InputTuple, PoolRegisteredEvent.OutputTuple, PoolRegisteredEvent.OutputObject>;
|
|
792
|
+
PoolRegistered: TypedContractEvent<PoolRegisteredEvent.InputTuple, PoolRegisteredEvent.OutputTuple, PoolRegisteredEvent.OutputObject>;
|
|
793
|
+
"RelayerApprovalChanged(address,address,bool)": TypedContractEvent<RelayerApprovalChangedEvent.InputTuple, RelayerApprovalChangedEvent.OutputTuple, RelayerApprovalChangedEvent.OutputObject>;
|
|
794
|
+
RelayerApprovalChanged: TypedContractEvent<RelayerApprovalChangedEvent.InputTuple, RelayerApprovalChangedEvent.OutputTuple, RelayerApprovalChangedEvent.OutputObject>;
|
|
795
|
+
"Swap(bytes32,address,address,uint256,uint256)": TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
|
|
796
|
+
Swap: TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
|
|
797
|
+
"TokensDeregistered(bytes32,address[])": TypedContractEvent<TokensDeregisteredEvent.InputTuple, TokensDeregisteredEvent.OutputTuple, TokensDeregisteredEvent.OutputObject>;
|
|
798
|
+
TokensDeregistered: TypedContractEvent<TokensDeregisteredEvent.InputTuple, TokensDeregisteredEvent.OutputTuple, TokensDeregisteredEvent.OutputObject>;
|
|
799
|
+
"TokensRegistered(bytes32,address[],address[])": TypedContractEvent<TokensRegisteredEvent.InputTuple, TokensRegisteredEvent.OutputTuple, TokensRegisteredEvent.OutputObject>;
|
|
800
|
+
TokensRegistered: TypedContractEvent<TokensRegisteredEvent.InputTuple, TokensRegisteredEvent.OutputTuple, TokensRegisteredEvent.OutputObject>;
|
|
801
|
+
};
|
|
802
|
+
}
|