@gvnrdao/dh-sdk 0.0.248 → 0.0.252
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/contracts/typechain-contracts/common.d.ts +50 -0
- package/dist/contracts/typechain-contracts/factories/src/psm/SimplePSMV2__factory.d.ts +1458 -0
- package/dist/contracts/typechain-contracts/src/psm/SimplePSMV2.d.ts +863 -0
- package/dist/deployments.js +417 -0
- package/dist/deployments.mjs +383 -0
- package/dist/graphs/diamond-hands.d.ts +9 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2992 -811
- package/dist/index.mjs +2992 -811
- package/dist/modules/contract/contract-manager.module.d.ts +10 -0
- package/dist/modules/diamond-hands-sdk.d.ts +21 -0
- package/dist/modules/loan/loan-creator.module.d.ts +0 -11
- package/dist/modules/pkp/pkp-manager.module.d.ts +1 -1
- package/dist/types/event-types.d.ts +23 -271
- package/dist/types/protocol-event-types.d.ts +81 -0
- package/dist/utils/mint-authorization.utils.d.ts +3 -3
- package/package.json +6 -1
|
@@ -0,0 +1,863 @@
|
|
|
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 interface SimplePSMV2Interface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "BASIS_POINTS" | "DEFAULT_ADMIN_ROLE" | "EXCHANGE_RATE_SCALE" | "MAX_EXIT_FEE" | "MAX_RESERVE_DRIFT" | "UPGRADE_INTERFACE_VERSION" | "addReserves" | "addSupportedStablecoin" | "canRedeem" | "controller" | "exchangeRates" | "exitFees" | "fees" | "forceSyncReserves" | "getAvailableReserves" | "getRedemptionQuote" | "getRoleAdmin" | "getSwapQuote" | "grantRole" | "hasRole" | "initialize" | "initializeV2" | "lastOperationBlock" | "maxRedeemAmounts" | "maxSwapAmounts" | "minRedeemAmounts" | "minSwapAmounts" | "operationCount" | "pause" | "paused" | "proxiableUUID" | "redeem" | "redeemEnabled" | "removeSupportedStablecoin" | "renounceRole" | "reserves" | "revokeRole" | "setRedeemEnabled" | "stablecoinDecimals" | "supportedStablecoins" | "supportsInterface" | "swap" | "syncReserves" | "ucdDecimals" | "ucdToken" | "unpause" | "updateSupportedStablecoin" | "upgradeToAndCall" | "version" | "withdrawStablecoin"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "EntryFeeUpdated" | "ExchangeRateUpdated" | "ExitFeeUpdated" | "Initialized" | "Paused" | "Redeem" | "RedemptionStatusChanged" | "ReserveUpdated" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "StablecoinAdded" | "StablecoinRemoved" | "StablecoinUpdated" | "Swap" | "Unpaused" | "Upgraded"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "BASIS_POINTS", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "EXCHANGE_RATE_SCALE", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "MAX_EXIT_FEE", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "MAX_RESERVE_DRIFT", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "addReserves", values: [AddressLike, BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "addSupportedStablecoin", values: [
|
|
14
|
+
AddressLike,
|
|
15
|
+
BigNumberish,
|
|
16
|
+
BigNumberish,
|
|
17
|
+
BigNumberish,
|
|
18
|
+
BigNumberish,
|
|
19
|
+
BigNumberish,
|
|
20
|
+
BigNumberish,
|
|
21
|
+
BigNumberish,
|
|
22
|
+
BigNumberish
|
|
23
|
+
]): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "canRedeem", values: [AddressLike, BigNumberish]): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "controller", values?: undefined): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "exchangeRates", values: [AddressLike]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "exitFees", values: [AddressLike]): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "fees", values: [AddressLike]): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "forceSyncReserves", values: [AddressLike]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "getAvailableReserves", values: [AddressLike]): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "getRedemptionQuote", values: [AddressLike, BigNumberish]): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "getSwapQuote", values: [AddressLike, BigNumberish]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "initializeV2", values: [boolean, AddressLike[], BigNumberish[]]): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "lastOperationBlock", values: [AddressLike]): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "maxRedeemAmounts", values: [AddressLike]): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "maxSwapAmounts", values: [AddressLike]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "minRedeemAmounts", values: [AddressLike]): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "minSwapAmounts", values: [AddressLike]): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "operationCount", values: [AddressLike]): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "redeem", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "redeemEnabled", values?: undefined): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "removeSupportedStablecoin", values: [AddressLike]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "reserves", values: [AddressLike]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "setRedeemEnabled", values: [boolean]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "stablecoinDecimals", values: [AddressLike]): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "supportedStablecoins", values: [AddressLike]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "swap", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
58
|
+
encodeFunctionData(functionFragment: "syncReserves", values: [AddressLike]): string;
|
|
59
|
+
encodeFunctionData(functionFragment: "ucdDecimals", values?: undefined): string;
|
|
60
|
+
encodeFunctionData(functionFragment: "ucdToken", values?: undefined): string;
|
|
61
|
+
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "updateSupportedStablecoin", values: [
|
|
63
|
+
AddressLike,
|
|
64
|
+
BigNumberish,
|
|
65
|
+
BigNumberish,
|
|
66
|
+
BigNumberish,
|
|
67
|
+
BigNumberish,
|
|
68
|
+
BigNumberish,
|
|
69
|
+
BigNumberish,
|
|
70
|
+
BigNumberish,
|
|
71
|
+
BigNumberish
|
|
72
|
+
]): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
74
|
+
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "withdrawStablecoin", values: [AddressLike, BigNumberish]): string;
|
|
76
|
+
decodeFunctionResult(functionFragment: "BASIS_POINTS", data: BytesLike): Result;
|
|
77
|
+
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
78
|
+
decodeFunctionResult(functionFragment: "EXCHANGE_RATE_SCALE", data: BytesLike): Result;
|
|
79
|
+
decodeFunctionResult(functionFragment: "MAX_EXIT_FEE", data: BytesLike): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "MAX_RESERVE_DRIFT", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
82
|
+
decodeFunctionResult(functionFragment: "addReserves", data: BytesLike): Result;
|
|
83
|
+
decodeFunctionResult(functionFragment: "addSupportedStablecoin", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "canRedeem", data: BytesLike): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(functionFragment: "exchangeRates", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "exitFees", data: BytesLike): Result;
|
|
88
|
+
decodeFunctionResult(functionFragment: "fees", data: BytesLike): Result;
|
|
89
|
+
decodeFunctionResult(functionFragment: "forceSyncReserves", data: BytesLike): Result;
|
|
90
|
+
decodeFunctionResult(functionFragment: "getAvailableReserves", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "getRedemptionQuote", data: BytesLike): Result;
|
|
92
|
+
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "getSwapQuote", data: BytesLike): Result;
|
|
94
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
95
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "initializeV2", data: BytesLike): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "lastOperationBlock", data: BytesLike): Result;
|
|
99
|
+
decodeFunctionResult(functionFragment: "maxRedeemAmounts", data: BytesLike): Result;
|
|
100
|
+
decodeFunctionResult(functionFragment: "maxSwapAmounts", data: BytesLike): Result;
|
|
101
|
+
decodeFunctionResult(functionFragment: "minRedeemAmounts", data: BytesLike): Result;
|
|
102
|
+
decodeFunctionResult(functionFragment: "minSwapAmounts", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "operationCount", data: BytesLike): Result;
|
|
104
|
+
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
|
106
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
107
|
+
decodeFunctionResult(functionFragment: "redeem", data: BytesLike): Result;
|
|
108
|
+
decodeFunctionResult(functionFragment: "redeemEnabled", data: BytesLike): Result;
|
|
109
|
+
decodeFunctionResult(functionFragment: "removeSupportedStablecoin", data: BytesLike): Result;
|
|
110
|
+
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
|
111
|
+
decodeFunctionResult(functionFragment: "reserves", data: BytesLike): Result;
|
|
112
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
113
|
+
decodeFunctionResult(functionFragment: "setRedeemEnabled", data: BytesLike): Result;
|
|
114
|
+
decodeFunctionResult(functionFragment: "stablecoinDecimals", data: BytesLike): Result;
|
|
115
|
+
decodeFunctionResult(functionFragment: "supportedStablecoins", data: BytesLike): Result;
|
|
116
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
117
|
+
decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
|
|
118
|
+
decodeFunctionResult(functionFragment: "syncReserves", data: BytesLike): Result;
|
|
119
|
+
decodeFunctionResult(functionFragment: "ucdDecimals", data: BytesLike): Result;
|
|
120
|
+
decodeFunctionResult(functionFragment: "ucdToken", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
122
|
+
decodeFunctionResult(functionFragment: "updateSupportedStablecoin", data: BytesLike): Result;
|
|
123
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
124
|
+
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "withdrawStablecoin", data: BytesLike): Result;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace EntryFeeUpdatedEvent {
|
|
128
|
+
type InputTuple = [
|
|
129
|
+
stablecoin: AddressLike,
|
|
130
|
+
oldFee: BigNumberish,
|
|
131
|
+
newFee: BigNumberish
|
|
132
|
+
];
|
|
133
|
+
type OutputTuple = [
|
|
134
|
+
stablecoin: string,
|
|
135
|
+
oldFee: bigint,
|
|
136
|
+
newFee: bigint
|
|
137
|
+
];
|
|
138
|
+
interface OutputObject {
|
|
139
|
+
stablecoin: string;
|
|
140
|
+
oldFee: bigint;
|
|
141
|
+
newFee: bigint;
|
|
142
|
+
}
|
|
143
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
144
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
145
|
+
type Log = TypedEventLog<Event>;
|
|
146
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
147
|
+
}
|
|
148
|
+
export declare namespace ExchangeRateUpdatedEvent {
|
|
149
|
+
type InputTuple = [
|
|
150
|
+
stablecoin: AddressLike,
|
|
151
|
+
oldRate: BigNumberish,
|
|
152
|
+
newRate: BigNumberish
|
|
153
|
+
];
|
|
154
|
+
type OutputTuple = [
|
|
155
|
+
stablecoin: string,
|
|
156
|
+
oldRate: bigint,
|
|
157
|
+
newRate: bigint
|
|
158
|
+
];
|
|
159
|
+
interface OutputObject {
|
|
160
|
+
stablecoin: string;
|
|
161
|
+
oldRate: bigint;
|
|
162
|
+
newRate: bigint;
|
|
163
|
+
}
|
|
164
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
165
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
166
|
+
type Log = TypedEventLog<Event>;
|
|
167
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
168
|
+
}
|
|
169
|
+
export declare namespace ExitFeeUpdatedEvent {
|
|
170
|
+
type InputTuple = [
|
|
171
|
+
stablecoin: AddressLike,
|
|
172
|
+
oldFee: BigNumberish,
|
|
173
|
+
newFee: BigNumberish
|
|
174
|
+
];
|
|
175
|
+
type OutputTuple = [
|
|
176
|
+
stablecoin: string,
|
|
177
|
+
oldFee: bigint,
|
|
178
|
+
newFee: bigint
|
|
179
|
+
];
|
|
180
|
+
interface OutputObject {
|
|
181
|
+
stablecoin: string;
|
|
182
|
+
oldFee: bigint;
|
|
183
|
+
newFee: bigint;
|
|
184
|
+
}
|
|
185
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
186
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
187
|
+
type Log = TypedEventLog<Event>;
|
|
188
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
189
|
+
}
|
|
190
|
+
export declare namespace InitializedEvent {
|
|
191
|
+
type InputTuple = [version: BigNumberish];
|
|
192
|
+
type OutputTuple = [version: bigint];
|
|
193
|
+
interface OutputObject {
|
|
194
|
+
version: bigint;
|
|
195
|
+
}
|
|
196
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
197
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
198
|
+
type Log = TypedEventLog<Event>;
|
|
199
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
200
|
+
}
|
|
201
|
+
export declare namespace PausedEvent {
|
|
202
|
+
type InputTuple = [account: AddressLike];
|
|
203
|
+
type OutputTuple = [account: string];
|
|
204
|
+
interface OutputObject {
|
|
205
|
+
account: string;
|
|
206
|
+
}
|
|
207
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
208
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
209
|
+
type Log = TypedEventLog<Event>;
|
|
210
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
211
|
+
}
|
|
212
|
+
export declare namespace RedeemEvent {
|
|
213
|
+
type InputTuple = [
|
|
214
|
+
user: AddressLike,
|
|
215
|
+
stablecoin: AddressLike,
|
|
216
|
+
ucdAmount: BigNumberish,
|
|
217
|
+
stablecoinAmount: BigNumberish,
|
|
218
|
+
exitFee: BigNumberish,
|
|
219
|
+
timestamp: BigNumberish
|
|
220
|
+
];
|
|
221
|
+
type OutputTuple = [
|
|
222
|
+
user: string,
|
|
223
|
+
stablecoin: string,
|
|
224
|
+
ucdAmount: bigint,
|
|
225
|
+
stablecoinAmount: bigint,
|
|
226
|
+
exitFee: bigint,
|
|
227
|
+
timestamp: bigint
|
|
228
|
+
];
|
|
229
|
+
interface OutputObject {
|
|
230
|
+
user: string;
|
|
231
|
+
stablecoin: string;
|
|
232
|
+
ucdAmount: bigint;
|
|
233
|
+
stablecoinAmount: bigint;
|
|
234
|
+
exitFee: bigint;
|
|
235
|
+
timestamp: bigint;
|
|
236
|
+
}
|
|
237
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
238
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
239
|
+
type Log = TypedEventLog<Event>;
|
|
240
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
241
|
+
}
|
|
242
|
+
export declare namespace RedemptionStatusChangedEvent {
|
|
243
|
+
type InputTuple = [enabled: boolean];
|
|
244
|
+
type OutputTuple = [enabled: boolean];
|
|
245
|
+
interface OutputObject {
|
|
246
|
+
enabled: boolean;
|
|
247
|
+
}
|
|
248
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
249
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
250
|
+
type Log = TypedEventLog<Event>;
|
|
251
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
252
|
+
}
|
|
253
|
+
export declare namespace ReserveUpdatedEvent {
|
|
254
|
+
type InputTuple = [
|
|
255
|
+
stablecoin: AddressLike,
|
|
256
|
+
oldReserve: BigNumberish,
|
|
257
|
+
newReserve: BigNumberish
|
|
258
|
+
];
|
|
259
|
+
type OutputTuple = [
|
|
260
|
+
stablecoin: string,
|
|
261
|
+
oldReserve: bigint,
|
|
262
|
+
newReserve: bigint
|
|
263
|
+
];
|
|
264
|
+
interface OutputObject {
|
|
265
|
+
stablecoin: string;
|
|
266
|
+
oldReserve: bigint;
|
|
267
|
+
newReserve: bigint;
|
|
268
|
+
}
|
|
269
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
270
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
271
|
+
type Log = TypedEventLog<Event>;
|
|
272
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
273
|
+
}
|
|
274
|
+
export declare namespace RoleAdminChangedEvent {
|
|
275
|
+
type InputTuple = [
|
|
276
|
+
role: BytesLike,
|
|
277
|
+
previousAdminRole: BytesLike,
|
|
278
|
+
newAdminRole: BytesLike
|
|
279
|
+
];
|
|
280
|
+
type OutputTuple = [
|
|
281
|
+
role: string,
|
|
282
|
+
previousAdminRole: string,
|
|
283
|
+
newAdminRole: string
|
|
284
|
+
];
|
|
285
|
+
interface OutputObject {
|
|
286
|
+
role: string;
|
|
287
|
+
previousAdminRole: string;
|
|
288
|
+
newAdminRole: string;
|
|
289
|
+
}
|
|
290
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
291
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
292
|
+
type Log = TypedEventLog<Event>;
|
|
293
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
294
|
+
}
|
|
295
|
+
export declare namespace RoleGrantedEvent {
|
|
296
|
+
type InputTuple = [
|
|
297
|
+
role: BytesLike,
|
|
298
|
+
account: AddressLike,
|
|
299
|
+
sender: AddressLike
|
|
300
|
+
];
|
|
301
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
302
|
+
interface OutputObject {
|
|
303
|
+
role: string;
|
|
304
|
+
account: string;
|
|
305
|
+
sender: string;
|
|
306
|
+
}
|
|
307
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
308
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
309
|
+
type Log = TypedEventLog<Event>;
|
|
310
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
311
|
+
}
|
|
312
|
+
export declare namespace RoleRevokedEvent {
|
|
313
|
+
type InputTuple = [
|
|
314
|
+
role: BytesLike,
|
|
315
|
+
account: AddressLike,
|
|
316
|
+
sender: AddressLike
|
|
317
|
+
];
|
|
318
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
|
319
|
+
interface OutputObject {
|
|
320
|
+
role: string;
|
|
321
|
+
account: string;
|
|
322
|
+
sender: string;
|
|
323
|
+
}
|
|
324
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
325
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
326
|
+
type Log = TypedEventLog<Event>;
|
|
327
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
328
|
+
}
|
|
329
|
+
export declare namespace StablecoinAddedEvent {
|
|
330
|
+
type InputTuple = [
|
|
331
|
+
stablecoin: AddressLike,
|
|
332
|
+
exchangeRate: BigNumberish,
|
|
333
|
+
fee: BigNumberish
|
|
334
|
+
];
|
|
335
|
+
type OutputTuple = [
|
|
336
|
+
stablecoin: string,
|
|
337
|
+
exchangeRate: bigint,
|
|
338
|
+
fee: bigint
|
|
339
|
+
];
|
|
340
|
+
interface OutputObject {
|
|
341
|
+
stablecoin: string;
|
|
342
|
+
exchangeRate: bigint;
|
|
343
|
+
fee: 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 StablecoinRemovedEvent {
|
|
351
|
+
type InputTuple = [stablecoin: AddressLike];
|
|
352
|
+
type OutputTuple = [stablecoin: string];
|
|
353
|
+
interface OutputObject {
|
|
354
|
+
stablecoin: string;
|
|
355
|
+
}
|
|
356
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
357
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
358
|
+
type Log = TypedEventLog<Event>;
|
|
359
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
360
|
+
}
|
|
361
|
+
export declare namespace StablecoinUpdatedEvent {
|
|
362
|
+
type InputTuple = [
|
|
363
|
+
stablecoin: AddressLike,
|
|
364
|
+
exchangeRate: BigNumberish,
|
|
365
|
+
entryFeeBps: BigNumberish,
|
|
366
|
+
exitFeeBps: BigNumberish,
|
|
367
|
+
decimals: BigNumberish,
|
|
368
|
+
minSwapAmount: BigNumberish,
|
|
369
|
+
minRedeemAmount: BigNumberish,
|
|
370
|
+
maxSwapAmount: BigNumberish,
|
|
371
|
+
maxRedeemAmount: BigNumberish
|
|
372
|
+
];
|
|
373
|
+
type OutputTuple = [
|
|
374
|
+
stablecoin: string,
|
|
375
|
+
exchangeRate: bigint,
|
|
376
|
+
entryFeeBps: bigint,
|
|
377
|
+
exitFeeBps: bigint,
|
|
378
|
+
decimals: bigint,
|
|
379
|
+
minSwapAmount: bigint,
|
|
380
|
+
minRedeemAmount: bigint,
|
|
381
|
+
maxSwapAmount: bigint,
|
|
382
|
+
maxRedeemAmount: bigint
|
|
383
|
+
];
|
|
384
|
+
interface OutputObject {
|
|
385
|
+
stablecoin: string;
|
|
386
|
+
exchangeRate: bigint;
|
|
387
|
+
entryFeeBps: bigint;
|
|
388
|
+
exitFeeBps: bigint;
|
|
389
|
+
decimals: bigint;
|
|
390
|
+
minSwapAmount: bigint;
|
|
391
|
+
minRedeemAmount: bigint;
|
|
392
|
+
maxSwapAmount: bigint;
|
|
393
|
+
maxRedeemAmount: bigint;
|
|
394
|
+
}
|
|
395
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
396
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
397
|
+
type Log = TypedEventLog<Event>;
|
|
398
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
399
|
+
}
|
|
400
|
+
export declare namespace SwapEvent {
|
|
401
|
+
type InputTuple = [
|
|
402
|
+
user: AddressLike,
|
|
403
|
+
stablecoin: AddressLike,
|
|
404
|
+
stablecoinAmount: BigNumberish,
|
|
405
|
+
ucdAmount: BigNumberish,
|
|
406
|
+
fee: BigNumberish,
|
|
407
|
+
timestamp: BigNumberish
|
|
408
|
+
];
|
|
409
|
+
type OutputTuple = [
|
|
410
|
+
user: string,
|
|
411
|
+
stablecoin: string,
|
|
412
|
+
stablecoinAmount: bigint,
|
|
413
|
+
ucdAmount: bigint,
|
|
414
|
+
fee: bigint,
|
|
415
|
+
timestamp: bigint
|
|
416
|
+
];
|
|
417
|
+
interface OutputObject {
|
|
418
|
+
user: string;
|
|
419
|
+
stablecoin: string;
|
|
420
|
+
stablecoinAmount: bigint;
|
|
421
|
+
ucdAmount: bigint;
|
|
422
|
+
fee: bigint;
|
|
423
|
+
timestamp: bigint;
|
|
424
|
+
}
|
|
425
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
426
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
427
|
+
type Log = TypedEventLog<Event>;
|
|
428
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
429
|
+
}
|
|
430
|
+
export declare namespace UnpausedEvent {
|
|
431
|
+
type InputTuple = [account: AddressLike];
|
|
432
|
+
type OutputTuple = [account: string];
|
|
433
|
+
interface OutputObject {
|
|
434
|
+
account: string;
|
|
435
|
+
}
|
|
436
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
437
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
438
|
+
type Log = TypedEventLog<Event>;
|
|
439
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
440
|
+
}
|
|
441
|
+
export declare namespace UpgradedEvent {
|
|
442
|
+
type InputTuple = [implementation: AddressLike];
|
|
443
|
+
type OutputTuple = [implementation: string];
|
|
444
|
+
interface OutputObject {
|
|
445
|
+
implementation: 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 SimplePSMV2 extends BaseContract {
|
|
453
|
+
connect(runner?: ContractRunner | null): SimplePSMV2;
|
|
454
|
+
waitForDeployment(): Promise<this>;
|
|
455
|
+
interface: SimplePSMV2Interface;
|
|
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
|
+
BASIS_POINTS: TypedContractMethod<[], [bigint], "view">;
|
|
466
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
467
|
+
EXCHANGE_RATE_SCALE: TypedContractMethod<[], [bigint], "view">;
|
|
468
|
+
MAX_EXIT_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
469
|
+
MAX_RESERVE_DRIFT: TypedContractMethod<[], [bigint], "view">;
|
|
470
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
471
|
+
addReserves: TypedContractMethod<[
|
|
472
|
+
stablecoin: AddressLike,
|
|
473
|
+
amount: BigNumberish
|
|
474
|
+
], [
|
|
475
|
+
void
|
|
476
|
+
], "nonpayable">;
|
|
477
|
+
addSupportedStablecoin: TypedContractMethod<[
|
|
478
|
+
stablecoin: AddressLike,
|
|
479
|
+
exchangeRate: BigNumberish,
|
|
480
|
+
entryFeeBps: BigNumberish,
|
|
481
|
+
exitFeeBps: BigNumberish,
|
|
482
|
+
decimals: BigNumberish,
|
|
483
|
+
minSwapAmount: BigNumberish,
|
|
484
|
+
minRedeemAmount: BigNumberish,
|
|
485
|
+
maxSwapAmount: BigNumberish,
|
|
486
|
+
maxRedeemAmount: BigNumberish
|
|
487
|
+
], [
|
|
488
|
+
void
|
|
489
|
+
], "nonpayable">;
|
|
490
|
+
canRedeem: TypedContractMethod<[
|
|
491
|
+
stablecoin: AddressLike,
|
|
492
|
+
ucdAmount: BigNumberish
|
|
493
|
+
], [
|
|
494
|
+
boolean
|
|
495
|
+
], "view">;
|
|
496
|
+
controller: TypedContractMethod<[], [string], "view">;
|
|
497
|
+
exchangeRates: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
498
|
+
exitFees: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
499
|
+
fees: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
500
|
+
forceSyncReserves: TypedContractMethod<[
|
|
501
|
+
stablecoin: AddressLike
|
|
502
|
+
], [
|
|
503
|
+
void
|
|
504
|
+
], "nonpayable">;
|
|
505
|
+
getAvailableReserves: TypedContractMethod<[
|
|
506
|
+
stablecoin: AddressLike
|
|
507
|
+
], [
|
|
508
|
+
bigint
|
|
509
|
+
], "view">;
|
|
510
|
+
getRedemptionQuote: TypedContractMethod<[
|
|
511
|
+
stablecoin: AddressLike,
|
|
512
|
+
ucdAmount: BigNumberish
|
|
513
|
+
], [
|
|
514
|
+
[bigint, bigint] & {
|
|
515
|
+
stablecoinOut: bigint;
|
|
516
|
+
exitFee: bigint;
|
|
517
|
+
}
|
|
518
|
+
], "view">;
|
|
519
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
520
|
+
getSwapQuote: TypedContractMethod<[
|
|
521
|
+
stablecoin: AddressLike,
|
|
522
|
+
amountIn: BigNumberish
|
|
523
|
+
], [
|
|
524
|
+
[bigint, bigint] & {
|
|
525
|
+
ucdOut: bigint;
|
|
526
|
+
fee: bigint;
|
|
527
|
+
}
|
|
528
|
+
], "view">;
|
|
529
|
+
grantRole: TypedContractMethod<[
|
|
530
|
+
role: BytesLike,
|
|
531
|
+
account: AddressLike
|
|
532
|
+
], [
|
|
533
|
+
void
|
|
534
|
+
], "nonpayable">;
|
|
535
|
+
hasRole: TypedContractMethod<[
|
|
536
|
+
role: BytesLike,
|
|
537
|
+
account: AddressLike
|
|
538
|
+
], [
|
|
539
|
+
boolean
|
|
540
|
+
], "view">;
|
|
541
|
+
initialize: TypedContractMethod<[
|
|
542
|
+
_controller: AddressLike,
|
|
543
|
+
_ucdToken: AddressLike,
|
|
544
|
+
_admin: AddressLike
|
|
545
|
+
], [
|
|
546
|
+
void
|
|
547
|
+
], "nonpayable">;
|
|
548
|
+
initializeV2: TypedContractMethod<[
|
|
549
|
+
_redeemEnabled: boolean,
|
|
550
|
+
stablecoins: AddressLike[],
|
|
551
|
+
initialExitFees: BigNumberish[]
|
|
552
|
+
], [
|
|
553
|
+
void
|
|
554
|
+
], "nonpayable">;
|
|
555
|
+
lastOperationBlock: TypedContractMethod<[
|
|
556
|
+
arg0: AddressLike
|
|
557
|
+
], [
|
|
558
|
+
bigint
|
|
559
|
+
], "view">;
|
|
560
|
+
maxRedeemAmounts: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
561
|
+
maxSwapAmounts: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
562
|
+
minRedeemAmounts: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
563
|
+
minSwapAmounts: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
564
|
+
operationCount: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
565
|
+
pause: TypedContractMethod<[], [void], "nonpayable">;
|
|
566
|
+
paused: TypedContractMethod<[], [boolean], "view">;
|
|
567
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
568
|
+
redeem: TypedContractMethod<[
|
|
569
|
+
stablecoin: AddressLike,
|
|
570
|
+
ucdAmount: BigNumberish,
|
|
571
|
+
minStablecoinOut: BigNumberish
|
|
572
|
+
], [
|
|
573
|
+
bigint
|
|
574
|
+
], "nonpayable">;
|
|
575
|
+
redeemEnabled: TypedContractMethod<[], [boolean], "view">;
|
|
576
|
+
removeSupportedStablecoin: TypedContractMethod<[
|
|
577
|
+
stablecoin: AddressLike
|
|
578
|
+
], [
|
|
579
|
+
void
|
|
580
|
+
], "nonpayable">;
|
|
581
|
+
renounceRole: TypedContractMethod<[
|
|
582
|
+
role: BytesLike,
|
|
583
|
+
callerConfirmation: AddressLike
|
|
584
|
+
], [
|
|
585
|
+
void
|
|
586
|
+
], "nonpayable">;
|
|
587
|
+
reserves: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
588
|
+
revokeRole: TypedContractMethod<[
|
|
589
|
+
role: BytesLike,
|
|
590
|
+
account: AddressLike
|
|
591
|
+
], [
|
|
592
|
+
void
|
|
593
|
+
], "nonpayable">;
|
|
594
|
+
setRedeemEnabled: TypedContractMethod<[
|
|
595
|
+
enabled: boolean
|
|
596
|
+
], [
|
|
597
|
+
void
|
|
598
|
+
], "nonpayable">;
|
|
599
|
+
stablecoinDecimals: TypedContractMethod<[
|
|
600
|
+
arg0: AddressLike
|
|
601
|
+
], [
|
|
602
|
+
bigint
|
|
603
|
+
], "view">;
|
|
604
|
+
supportedStablecoins: TypedContractMethod<[
|
|
605
|
+
arg0: AddressLike
|
|
606
|
+
], [
|
|
607
|
+
boolean
|
|
608
|
+
], "view">;
|
|
609
|
+
supportsInterface: TypedContractMethod<[
|
|
610
|
+
interfaceId: BytesLike
|
|
611
|
+
], [
|
|
612
|
+
boolean
|
|
613
|
+
], "view">;
|
|
614
|
+
swap: TypedContractMethod<[
|
|
615
|
+
stablecoin: AddressLike,
|
|
616
|
+
amountIn: BigNumberish,
|
|
617
|
+
minUcdOut: BigNumberish
|
|
618
|
+
], [
|
|
619
|
+
bigint
|
|
620
|
+
], "nonpayable">;
|
|
621
|
+
syncReserves: TypedContractMethod<[
|
|
622
|
+
stablecoin: AddressLike
|
|
623
|
+
], [
|
|
624
|
+
void
|
|
625
|
+
], "nonpayable">;
|
|
626
|
+
ucdDecimals: TypedContractMethod<[], [bigint], "view">;
|
|
627
|
+
ucdToken: TypedContractMethod<[], [string], "view">;
|
|
628
|
+
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
629
|
+
updateSupportedStablecoin: TypedContractMethod<[
|
|
630
|
+
stablecoin: AddressLike,
|
|
631
|
+
exchangeRate: BigNumberish,
|
|
632
|
+
entryFeeBps: BigNumberish,
|
|
633
|
+
exitFeeBps: BigNumberish,
|
|
634
|
+
decimals: BigNumberish,
|
|
635
|
+
minSwapAmount: BigNumberish,
|
|
636
|
+
minRedeemAmount: BigNumberish,
|
|
637
|
+
maxSwapAmount: BigNumberish,
|
|
638
|
+
maxRedeemAmount: BigNumberish
|
|
639
|
+
], [
|
|
640
|
+
void
|
|
641
|
+
], "nonpayable">;
|
|
642
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
643
|
+
newImplementation: AddressLike,
|
|
644
|
+
data: BytesLike
|
|
645
|
+
], [
|
|
646
|
+
void
|
|
647
|
+
], "payable">;
|
|
648
|
+
version: TypedContractMethod<[], [string], "view">;
|
|
649
|
+
withdrawStablecoin: TypedContractMethod<[
|
|
650
|
+
stablecoin: AddressLike,
|
|
651
|
+
amount: BigNumberish
|
|
652
|
+
], [
|
|
653
|
+
void
|
|
654
|
+
], "nonpayable">;
|
|
655
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
656
|
+
getFunction(nameOrSignature: "BASIS_POINTS"): TypedContractMethod<[], [bigint], "view">;
|
|
657
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
658
|
+
getFunction(nameOrSignature: "EXCHANGE_RATE_SCALE"): TypedContractMethod<[], [bigint], "view">;
|
|
659
|
+
getFunction(nameOrSignature: "MAX_EXIT_FEE"): TypedContractMethod<[], [bigint], "view">;
|
|
660
|
+
getFunction(nameOrSignature: "MAX_RESERVE_DRIFT"): TypedContractMethod<[], [bigint], "view">;
|
|
661
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
662
|
+
getFunction(nameOrSignature: "addReserves"): TypedContractMethod<[
|
|
663
|
+
stablecoin: AddressLike,
|
|
664
|
+
amount: BigNumberish
|
|
665
|
+
], [
|
|
666
|
+
void
|
|
667
|
+
], "nonpayable">;
|
|
668
|
+
getFunction(nameOrSignature: "addSupportedStablecoin"): TypedContractMethod<[
|
|
669
|
+
stablecoin: AddressLike,
|
|
670
|
+
exchangeRate: BigNumberish,
|
|
671
|
+
entryFeeBps: BigNumberish,
|
|
672
|
+
exitFeeBps: BigNumberish,
|
|
673
|
+
decimals: BigNumberish,
|
|
674
|
+
minSwapAmount: BigNumberish,
|
|
675
|
+
minRedeemAmount: BigNumberish,
|
|
676
|
+
maxSwapAmount: BigNumberish,
|
|
677
|
+
maxRedeemAmount: BigNumberish
|
|
678
|
+
], [
|
|
679
|
+
void
|
|
680
|
+
], "nonpayable">;
|
|
681
|
+
getFunction(nameOrSignature: "canRedeem"): TypedContractMethod<[
|
|
682
|
+
stablecoin: AddressLike,
|
|
683
|
+
ucdAmount: BigNumberish
|
|
684
|
+
], [
|
|
685
|
+
boolean
|
|
686
|
+
], "view">;
|
|
687
|
+
getFunction(nameOrSignature: "controller"): TypedContractMethod<[], [string], "view">;
|
|
688
|
+
getFunction(nameOrSignature: "exchangeRates"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
689
|
+
getFunction(nameOrSignature: "exitFees"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
690
|
+
getFunction(nameOrSignature: "fees"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
691
|
+
getFunction(nameOrSignature: "forceSyncReserves"): TypedContractMethod<[stablecoin: AddressLike], [void], "nonpayable">;
|
|
692
|
+
getFunction(nameOrSignature: "getAvailableReserves"): TypedContractMethod<[stablecoin: AddressLike], [bigint], "view">;
|
|
693
|
+
getFunction(nameOrSignature: "getRedemptionQuote"): TypedContractMethod<[
|
|
694
|
+
stablecoin: AddressLike,
|
|
695
|
+
ucdAmount: BigNumberish
|
|
696
|
+
], [
|
|
697
|
+
[bigint, bigint] & {
|
|
698
|
+
stablecoinOut: bigint;
|
|
699
|
+
exitFee: bigint;
|
|
700
|
+
}
|
|
701
|
+
], "view">;
|
|
702
|
+
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
703
|
+
getFunction(nameOrSignature: "getSwapQuote"): TypedContractMethod<[
|
|
704
|
+
stablecoin: AddressLike,
|
|
705
|
+
amountIn: BigNumberish
|
|
706
|
+
], [
|
|
707
|
+
[bigint, bigint] & {
|
|
708
|
+
ucdOut: bigint;
|
|
709
|
+
fee: bigint;
|
|
710
|
+
}
|
|
711
|
+
], "view">;
|
|
712
|
+
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
713
|
+
role: BytesLike,
|
|
714
|
+
account: AddressLike
|
|
715
|
+
], [
|
|
716
|
+
void
|
|
717
|
+
], "nonpayable">;
|
|
718
|
+
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
719
|
+
role: BytesLike,
|
|
720
|
+
account: AddressLike
|
|
721
|
+
], [
|
|
722
|
+
boolean
|
|
723
|
+
], "view">;
|
|
724
|
+
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
725
|
+
_controller: AddressLike,
|
|
726
|
+
_ucdToken: AddressLike,
|
|
727
|
+
_admin: AddressLike
|
|
728
|
+
], [
|
|
729
|
+
void
|
|
730
|
+
], "nonpayable">;
|
|
731
|
+
getFunction(nameOrSignature: "initializeV2"): TypedContractMethod<[
|
|
732
|
+
_redeemEnabled: boolean,
|
|
733
|
+
stablecoins: AddressLike[],
|
|
734
|
+
initialExitFees: BigNumberish[]
|
|
735
|
+
], [
|
|
736
|
+
void
|
|
737
|
+
], "nonpayable">;
|
|
738
|
+
getFunction(nameOrSignature: "lastOperationBlock"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
739
|
+
getFunction(nameOrSignature: "maxRedeemAmounts"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
740
|
+
getFunction(nameOrSignature: "maxSwapAmounts"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
741
|
+
getFunction(nameOrSignature: "minRedeemAmounts"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
742
|
+
getFunction(nameOrSignature: "minSwapAmounts"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
743
|
+
getFunction(nameOrSignature: "operationCount"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
744
|
+
getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
745
|
+
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
746
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
747
|
+
getFunction(nameOrSignature: "redeem"): TypedContractMethod<[
|
|
748
|
+
stablecoin: AddressLike,
|
|
749
|
+
ucdAmount: BigNumberish,
|
|
750
|
+
minStablecoinOut: BigNumberish
|
|
751
|
+
], [
|
|
752
|
+
bigint
|
|
753
|
+
], "nonpayable">;
|
|
754
|
+
getFunction(nameOrSignature: "redeemEnabled"): TypedContractMethod<[], [boolean], "view">;
|
|
755
|
+
getFunction(nameOrSignature: "removeSupportedStablecoin"): TypedContractMethod<[stablecoin: AddressLike], [void], "nonpayable">;
|
|
756
|
+
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
757
|
+
role: BytesLike,
|
|
758
|
+
callerConfirmation: AddressLike
|
|
759
|
+
], [
|
|
760
|
+
void
|
|
761
|
+
], "nonpayable">;
|
|
762
|
+
getFunction(nameOrSignature: "reserves"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
763
|
+
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
764
|
+
role: BytesLike,
|
|
765
|
+
account: AddressLike
|
|
766
|
+
], [
|
|
767
|
+
void
|
|
768
|
+
], "nonpayable">;
|
|
769
|
+
getFunction(nameOrSignature: "setRedeemEnabled"): TypedContractMethod<[enabled: boolean], [void], "nonpayable">;
|
|
770
|
+
getFunction(nameOrSignature: "stablecoinDecimals"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
771
|
+
getFunction(nameOrSignature: "supportedStablecoins"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
772
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
773
|
+
getFunction(nameOrSignature: "swap"): TypedContractMethod<[
|
|
774
|
+
stablecoin: AddressLike,
|
|
775
|
+
amountIn: BigNumberish,
|
|
776
|
+
minUcdOut: BigNumberish
|
|
777
|
+
], [
|
|
778
|
+
bigint
|
|
779
|
+
], "nonpayable">;
|
|
780
|
+
getFunction(nameOrSignature: "syncReserves"): TypedContractMethod<[stablecoin: AddressLike], [void], "nonpayable">;
|
|
781
|
+
getFunction(nameOrSignature: "ucdDecimals"): TypedContractMethod<[], [bigint], "view">;
|
|
782
|
+
getFunction(nameOrSignature: "ucdToken"): TypedContractMethod<[], [string], "view">;
|
|
783
|
+
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
784
|
+
getFunction(nameOrSignature: "updateSupportedStablecoin"): TypedContractMethod<[
|
|
785
|
+
stablecoin: AddressLike,
|
|
786
|
+
exchangeRate: BigNumberish,
|
|
787
|
+
entryFeeBps: BigNumberish,
|
|
788
|
+
exitFeeBps: BigNumberish,
|
|
789
|
+
decimals: BigNumberish,
|
|
790
|
+
minSwapAmount: BigNumberish,
|
|
791
|
+
minRedeemAmount: BigNumberish,
|
|
792
|
+
maxSwapAmount: BigNumberish,
|
|
793
|
+
maxRedeemAmount: BigNumberish
|
|
794
|
+
], [
|
|
795
|
+
void
|
|
796
|
+
], "nonpayable">;
|
|
797
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
798
|
+
newImplementation: AddressLike,
|
|
799
|
+
data: BytesLike
|
|
800
|
+
], [
|
|
801
|
+
void
|
|
802
|
+
], "payable">;
|
|
803
|
+
getFunction(nameOrSignature: "version"): TypedContractMethod<[], [string], "view">;
|
|
804
|
+
getFunction(nameOrSignature: "withdrawStablecoin"): TypedContractMethod<[
|
|
805
|
+
stablecoin: AddressLike,
|
|
806
|
+
amount: BigNumberish
|
|
807
|
+
], [
|
|
808
|
+
void
|
|
809
|
+
], "nonpayable">;
|
|
810
|
+
getEvent(key: "EntryFeeUpdated"): TypedContractEvent<EntryFeeUpdatedEvent.InputTuple, EntryFeeUpdatedEvent.OutputTuple, EntryFeeUpdatedEvent.OutputObject>;
|
|
811
|
+
getEvent(key: "ExchangeRateUpdated"): TypedContractEvent<ExchangeRateUpdatedEvent.InputTuple, ExchangeRateUpdatedEvent.OutputTuple, ExchangeRateUpdatedEvent.OutputObject>;
|
|
812
|
+
getEvent(key: "ExitFeeUpdated"): TypedContractEvent<ExitFeeUpdatedEvent.InputTuple, ExitFeeUpdatedEvent.OutputTuple, ExitFeeUpdatedEvent.OutputObject>;
|
|
813
|
+
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
814
|
+
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
815
|
+
getEvent(key: "Redeem"): TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
816
|
+
getEvent(key: "RedemptionStatusChanged"): TypedContractEvent<RedemptionStatusChangedEvent.InputTuple, RedemptionStatusChangedEvent.OutputTuple, RedemptionStatusChangedEvent.OutputObject>;
|
|
817
|
+
getEvent(key: "ReserveUpdated"): TypedContractEvent<ReserveUpdatedEvent.InputTuple, ReserveUpdatedEvent.OutputTuple, ReserveUpdatedEvent.OutputObject>;
|
|
818
|
+
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
819
|
+
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
820
|
+
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
821
|
+
getEvent(key: "StablecoinAdded"): TypedContractEvent<StablecoinAddedEvent.InputTuple, StablecoinAddedEvent.OutputTuple, StablecoinAddedEvent.OutputObject>;
|
|
822
|
+
getEvent(key: "StablecoinRemoved"): TypedContractEvent<StablecoinRemovedEvent.InputTuple, StablecoinRemovedEvent.OutputTuple, StablecoinRemovedEvent.OutputObject>;
|
|
823
|
+
getEvent(key: "StablecoinUpdated"): TypedContractEvent<StablecoinUpdatedEvent.InputTuple, StablecoinUpdatedEvent.OutputTuple, StablecoinUpdatedEvent.OutputObject>;
|
|
824
|
+
getEvent(key: "Swap"): TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
|
|
825
|
+
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
826
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
827
|
+
filters: {
|
|
828
|
+
"EntryFeeUpdated(address,uint256,uint256)": TypedContractEvent<EntryFeeUpdatedEvent.InputTuple, EntryFeeUpdatedEvent.OutputTuple, EntryFeeUpdatedEvent.OutputObject>;
|
|
829
|
+
EntryFeeUpdated: TypedContractEvent<EntryFeeUpdatedEvent.InputTuple, EntryFeeUpdatedEvent.OutputTuple, EntryFeeUpdatedEvent.OutputObject>;
|
|
830
|
+
"ExchangeRateUpdated(address,uint256,uint256)": TypedContractEvent<ExchangeRateUpdatedEvent.InputTuple, ExchangeRateUpdatedEvent.OutputTuple, ExchangeRateUpdatedEvent.OutputObject>;
|
|
831
|
+
ExchangeRateUpdated: TypedContractEvent<ExchangeRateUpdatedEvent.InputTuple, ExchangeRateUpdatedEvent.OutputTuple, ExchangeRateUpdatedEvent.OutputObject>;
|
|
832
|
+
"ExitFeeUpdated(address,uint256,uint256)": TypedContractEvent<ExitFeeUpdatedEvent.InputTuple, ExitFeeUpdatedEvent.OutputTuple, ExitFeeUpdatedEvent.OutputObject>;
|
|
833
|
+
ExitFeeUpdated: TypedContractEvent<ExitFeeUpdatedEvent.InputTuple, ExitFeeUpdatedEvent.OutputTuple, ExitFeeUpdatedEvent.OutputObject>;
|
|
834
|
+
"Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
835
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
836
|
+
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
837
|
+
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
838
|
+
"Redeem(address,address,uint256,uint256,uint256,uint256)": TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
839
|
+
Redeem: TypedContractEvent<RedeemEvent.InputTuple, RedeemEvent.OutputTuple, RedeemEvent.OutputObject>;
|
|
840
|
+
"RedemptionStatusChanged(bool)": TypedContractEvent<RedemptionStatusChangedEvent.InputTuple, RedemptionStatusChangedEvent.OutputTuple, RedemptionStatusChangedEvent.OutputObject>;
|
|
841
|
+
RedemptionStatusChanged: TypedContractEvent<RedemptionStatusChangedEvent.InputTuple, RedemptionStatusChangedEvent.OutputTuple, RedemptionStatusChangedEvent.OutputObject>;
|
|
842
|
+
"ReserveUpdated(address,uint256,uint256)": TypedContractEvent<ReserveUpdatedEvent.InputTuple, ReserveUpdatedEvent.OutputTuple, ReserveUpdatedEvent.OutputObject>;
|
|
843
|
+
ReserveUpdated: TypedContractEvent<ReserveUpdatedEvent.InputTuple, ReserveUpdatedEvent.OutputTuple, ReserveUpdatedEvent.OutputObject>;
|
|
844
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
845
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
846
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
847
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
848
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
849
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
850
|
+
"StablecoinAdded(address,uint256,uint256)": TypedContractEvent<StablecoinAddedEvent.InputTuple, StablecoinAddedEvent.OutputTuple, StablecoinAddedEvent.OutputObject>;
|
|
851
|
+
StablecoinAdded: TypedContractEvent<StablecoinAddedEvent.InputTuple, StablecoinAddedEvent.OutputTuple, StablecoinAddedEvent.OutputObject>;
|
|
852
|
+
"StablecoinRemoved(address)": TypedContractEvent<StablecoinRemovedEvent.InputTuple, StablecoinRemovedEvent.OutputTuple, StablecoinRemovedEvent.OutputObject>;
|
|
853
|
+
StablecoinRemoved: TypedContractEvent<StablecoinRemovedEvent.InputTuple, StablecoinRemovedEvent.OutputTuple, StablecoinRemovedEvent.OutputObject>;
|
|
854
|
+
"StablecoinUpdated(address,uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256)": TypedContractEvent<StablecoinUpdatedEvent.InputTuple, StablecoinUpdatedEvent.OutputTuple, StablecoinUpdatedEvent.OutputObject>;
|
|
855
|
+
StablecoinUpdated: TypedContractEvent<StablecoinUpdatedEvent.InputTuple, StablecoinUpdatedEvent.OutputTuple, StablecoinUpdatedEvent.OutputObject>;
|
|
856
|
+
"Swap(address,address,uint256,uint256,uint256,uint256)": TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
|
|
857
|
+
Swap: TypedContractEvent<SwapEvent.InputTuple, SwapEvent.OutputTuple, SwapEvent.OutputObject>;
|
|
858
|
+
"Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
859
|
+
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
860
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
861
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
862
|
+
};
|
|
863
|
+
}
|