@merkl/contracts 0.1.54 → 0.1.56
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/src/StabullCurveFactory.d.ts +252 -0
- package/dist/src/StabullCurveFactory.js +1 -0
- package/dist/src/factories/StabullCurveFactory__factory.d.ts +282 -0
- package/dist/src/factories/StabullCurveFactory__factory.js +372 -0
- package/dist/src/factories/index.d.ts +1 -0
- package/dist/src/factories/index.js +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common";
|
|
5
|
+
export type CurveInfoStruct = {
|
|
6
|
+
_name: PromiseOrValue<string>;
|
|
7
|
+
_symbol: PromiseOrValue<string>;
|
|
8
|
+
_baseCurrency: PromiseOrValue<string>;
|
|
9
|
+
_quoteCurrency: PromiseOrValue<string>;
|
|
10
|
+
_baseWeight: PromiseOrValue<BigNumberish>;
|
|
11
|
+
_quoteWeight: PromiseOrValue<BigNumberish>;
|
|
12
|
+
_baseOracle: PromiseOrValue<string>;
|
|
13
|
+
_quoteOracle: PromiseOrValue<string>;
|
|
14
|
+
_alpha: PromiseOrValue<BigNumberish>;
|
|
15
|
+
_beta: PromiseOrValue<BigNumberish>;
|
|
16
|
+
_feeAtHalt: PromiseOrValue<BigNumberish>;
|
|
17
|
+
_epsilon: PromiseOrValue<BigNumberish>;
|
|
18
|
+
_lambda: PromiseOrValue<BigNumberish>;
|
|
19
|
+
};
|
|
20
|
+
export type CurveInfoStructOutput = [
|
|
21
|
+
string,
|
|
22
|
+
string,
|
|
23
|
+
string,
|
|
24
|
+
string,
|
|
25
|
+
BigNumber,
|
|
26
|
+
BigNumber,
|
|
27
|
+
string,
|
|
28
|
+
string,
|
|
29
|
+
BigNumber,
|
|
30
|
+
BigNumber,
|
|
31
|
+
BigNumber,
|
|
32
|
+
BigNumber,
|
|
33
|
+
BigNumber
|
|
34
|
+
] & {
|
|
35
|
+
_name: string;
|
|
36
|
+
_symbol: string;
|
|
37
|
+
_baseCurrency: string;
|
|
38
|
+
_quoteCurrency: string;
|
|
39
|
+
_baseWeight: BigNumber;
|
|
40
|
+
_quoteWeight: BigNumber;
|
|
41
|
+
_baseOracle: string;
|
|
42
|
+
_quoteOracle: string;
|
|
43
|
+
_alpha: BigNumber;
|
|
44
|
+
_beta: BigNumber;
|
|
45
|
+
_feeAtHalt: BigNumber;
|
|
46
|
+
_epsilon: BigNumber;
|
|
47
|
+
_lambda: BigNumber;
|
|
48
|
+
};
|
|
49
|
+
export interface StabullCurveFactoryInterface extends utils.Interface {
|
|
50
|
+
functions: {
|
|
51
|
+
"assimilatorFactory()": FunctionFragment;
|
|
52
|
+
"config()": FunctionFragment;
|
|
53
|
+
"curves(bytes32)": FunctionFragment;
|
|
54
|
+
"getCurve(address,address)": FunctionFragment;
|
|
55
|
+
"getFlashableState()": FunctionFragment;
|
|
56
|
+
"getGlobalFrozenState()": FunctionFragment;
|
|
57
|
+
"getPoolCap(address)": FunctionFragment;
|
|
58
|
+
"getPoolGuardAmount(address)": FunctionFragment;
|
|
59
|
+
"getProtocolFee()": FunctionFragment;
|
|
60
|
+
"getProtocolTreasury()": FunctionFragment;
|
|
61
|
+
"isPoolGuarded(address)": FunctionFragment;
|
|
62
|
+
"newCurve((string,string,address,address,uint256,uint256,address,address,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
63
|
+
"owner()": FunctionFragment;
|
|
64
|
+
"renounceOwnership()": FunctionFragment;
|
|
65
|
+
"transferOwnership(address)": FunctionFragment;
|
|
66
|
+
};
|
|
67
|
+
getFunction(nameOrSignatureOrTopic: "assimilatorFactory" | "config" | "curves" | "getCurve" | "getFlashableState" | "getGlobalFrozenState" | "getPoolCap" | "getPoolGuardAmount" | "getProtocolFee" | "getProtocolTreasury" | "isPoolGuarded" | "newCurve" | "owner" | "renounceOwnership" | "transferOwnership"): FunctionFragment;
|
|
68
|
+
encodeFunctionData(functionFragment: "assimilatorFactory", values?: undefined): string;
|
|
69
|
+
encodeFunctionData(functionFragment: "config", values?: undefined): string;
|
|
70
|
+
encodeFunctionData(functionFragment: "curves", values: [PromiseOrValue<BytesLike>]): string;
|
|
71
|
+
encodeFunctionData(functionFragment: "getCurve", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
|
|
72
|
+
encodeFunctionData(functionFragment: "getFlashableState", values?: undefined): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "getGlobalFrozenState", values?: undefined): string;
|
|
74
|
+
encodeFunctionData(functionFragment: "getPoolCap", values: [PromiseOrValue<string>]): string;
|
|
75
|
+
encodeFunctionData(functionFragment: "getPoolGuardAmount", values: [PromiseOrValue<string>]): string;
|
|
76
|
+
encodeFunctionData(functionFragment: "getProtocolFee", values?: undefined): string;
|
|
77
|
+
encodeFunctionData(functionFragment: "getProtocolTreasury", values?: undefined): string;
|
|
78
|
+
encodeFunctionData(functionFragment: "isPoolGuarded", values: [PromiseOrValue<string>]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: "newCurve", values: [CurveInfoStruct]): string;
|
|
80
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
81
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
82
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>]): string;
|
|
83
|
+
decodeFunctionResult(functionFragment: "assimilatorFactory", data: BytesLike): Result;
|
|
84
|
+
decodeFunctionResult(functionFragment: "config", data: BytesLike): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "curves", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(functionFragment: "getCurve", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "getFlashableState", data: BytesLike): Result;
|
|
88
|
+
decodeFunctionResult(functionFragment: "getGlobalFrozenState", data: BytesLike): Result;
|
|
89
|
+
decodeFunctionResult(functionFragment: "getPoolCap", data: BytesLike): Result;
|
|
90
|
+
decodeFunctionResult(functionFragment: "getPoolGuardAmount", data: BytesLike): Result;
|
|
91
|
+
decodeFunctionResult(functionFragment: "getProtocolFee", data: BytesLike): Result;
|
|
92
|
+
decodeFunctionResult(functionFragment: "getProtocolTreasury", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "isPoolGuarded", data: BytesLike): Result;
|
|
94
|
+
decodeFunctionResult(functionFragment: "newCurve", data: BytesLike): Result;
|
|
95
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
98
|
+
events: {
|
|
99
|
+
"NewCurve(address,bytes32,address)": EventFragment;
|
|
100
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
101
|
+
};
|
|
102
|
+
getEvent(nameOrSignatureOrTopic: "NewCurve"): EventFragment;
|
|
103
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
104
|
+
}
|
|
105
|
+
export interface NewCurveEventObject {
|
|
106
|
+
caller: string;
|
|
107
|
+
id: string;
|
|
108
|
+
curve: string;
|
|
109
|
+
}
|
|
110
|
+
export type NewCurveEvent = TypedEvent<[
|
|
111
|
+
string,
|
|
112
|
+
string,
|
|
113
|
+
string
|
|
114
|
+
], NewCurveEventObject>;
|
|
115
|
+
export type NewCurveEventFilter = TypedEventFilter<NewCurveEvent>;
|
|
116
|
+
export interface OwnershipTransferredEventObject {
|
|
117
|
+
previousOwner: string;
|
|
118
|
+
newOwner: string;
|
|
119
|
+
}
|
|
120
|
+
export type OwnershipTransferredEvent = TypedEvent<[
|
|
121
|
+
string,
|
|
122
|
+
string
|
|
123
|
+
], OwnershipTransferredEventObject>;
|
|
124
|
+
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
125
|
+
export interface StabullCurveFactory extends BaseContract {
|
|
126
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
127
|
+
attach(addressOrName: string): this;
|
|
128
|
+
deployed(): Promise<this>;
|
|
129
|
+
interface: StabullCurveFactoryInterface;
|
|
130
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
131
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
132
|
+
listeners(eventName?: string): Array<Listener>;
|
|
133
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
134
|
+
removeAllListeners(eventName?: string): this;
|
|
135
|
+
off: OnEvent<this>;
|
|
136
|
+
on: OnEvent<this>;
|
|
137
|
+
once: OnEvent<this>;
|
|
138
|
+
removeListener: OnEvent<this>;
|
|
139
|
+
functions: {
|
|
140
|
+
assimilatorFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
141
|
+
config(overrides?: CallOverrides): Promise<[string]>;
|
|
142
|
+
curves(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[string]>;
|
|
143
|
+
getCurve(_baseCurrency: PromiseOrValue<string>, _quoteCurrency: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[string]>;
|
|
144
|
+
getFlashableState(overrides?: CallOverrides): Promise<[boolean]>;
|
|
145
|
+
getGlobalFrozenState(overrides?: CallOverrides): Promise<[boolean]>;
|
|
146
|
+
getPoolCap(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
147
|
+
getPoolGuardAmount(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
148
|
+
getProtocolFee(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
149
|
+
getProtocolTreasury(overrides?: CallOverrides): Promise<[string]>;
|
|
150
|
+
isPoolGuarded(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
|
|
151
|
+
newCurve(_info: CurveInfoStruct, overrides?: Overrides & {
|
|
152
|
+
from?: PromiseOrValue<string>;
|
|
153
|
+
}): Promise<ContractTransaction>;
|
|
154
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
155
|
+
renounceOwnership(overrides?: Overrides & {
|
|
156
|
+
from?: PromiseOrValue<string>;
|
|
157
|
+
}): Promise<ContractTransaction>;
|
|
158
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
159
|
+
from?: PromiseOrValue<string>;
|
|
160
|
+
}): Promise<ContractTransaction>;
|
|
161
|
+
};
|
|
162
|
+
assimilatorFactory(overrides?: CallOverrides): Promise<string>;
|
|
163
|
+
config(overrides?: CallOverrides): Promise<string>;
|
|
164
|
+
curves(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
165
|
+
getCurve(_baseCurrency: PromiseOrValue<string>, _quoteCurrency: PromiseOrValue<string>, overrides?: CallOverrides): Promise<string>;
|
|
166
|
+
getFlashableState(overrides?: CallOverrides): Promise<boolean>;
|
|
167
|
+
getGlobalFrozenState(overrides?: CallOverrides): Promise<boolean>;
|
|
168
|
+
getPoolCap(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
169
|
+
getPoolGuardAmount(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
170
|
+
getProtocolFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
171
|
+
getProtocolTreasury(overrides?: CallOverrides): Promise<string>;
|
|
172
|
+
isPoolGuarded(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
173
|
+
newCurve(_info: CurveInfoStruct, overrides?: Overrides & {
|
|
174
|
+
from?: PromiseOrValue<string>;
|
|
175
|
+
}): Promise<ContractTransaction>;
|
|
176
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
177
|
+
renounceOwnership(overrides?: Overrides & {
|
|
178
|
+
from?: PromiseOrValue<string>;
|
|
179
|
+
}): Promise<ContractTransaction>;
|
|
180
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
181
|
+
from?: PromiseOrValue<string>;
|
|
182
|
+
}): Promise<ContractTransaction>;
|
|
183
|
+
callStatic: {
|
|
184
|
+
assimilatorFactory(overrides?: CallOverrides): Promise<string>;
|
|
185
|
+
config(overrides?: CallOverrides): Promise<string>;
|
|
186
|
+
curves(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
187
|
+
getCurve(_baseCurrency: PromiseOrValue<string>, _quoteCurrency: PromiseOrValue<string>, overrides?: CallOverrides): Promise<string>;
|
|
188
|
+
getFlashableState(overrides?: CallOverrides): Promise<boolean>;
|
|
189
|
+
getGlobalFrozenState(overrides?: CallOverrides): Promise<boolean>;
|
|
190
|
+
getPoolCap(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
191
|
+
getPoolGuardAmount(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
192
|
+
getProtocolFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
193
|
+
getProtocolTreasury(overrides?: CallOverrides): Promise<string>;
|
|
194
|
+
isPoolGuarded(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
195
|
+
newCurve(_info: CurveInfoStruct, overrides?: CallOverrides): Promise<string>;
|
|
196
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
197
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
198
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
199
|
+
};
|
|
200
|
+
filters: {
|
|
201
|
+
"NewCurve(address,bytes32,address)"(caller?: PromiseOrValue<string> | null, id?: PromiseOrValue<BytesLike> | null, curve?: PromiseOrValue<string> | null): NewCurveEventFilter;
|
|
202
|
+
NewCurve(caller?: PromiseOrValue<string> | null, id?: PromiseOrValue<BytesLike> | null, curve?: PromiseOrValue<string> | null): NewCurveEventFilter;
|
|
203
|
+
"OwnershipTransferred(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
204
|
+
OwnershipTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
205
|
+
};
|
|
206
|
+
estimateGas: {
|
|
207
|
+
assimilatorFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
208
|
+
config(overrides?: CallOverrides): Promise<BigNumber>;
|
|
209
|
+
curves(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
210
|
+
getCurve(_baseCurrency: PromiseOrValue<string>, _quoteCurrency: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
211
|
+
getFlashableState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
212
|
+
getGlobalFrozenState(overrides?: CallOverrides): Promise<BigNumber>;
|
|
213
|
+
getPoolCap(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
214
|
+
getPoolGuardAmount(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
215
|
+
getProtocolFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
216
|
+
getProtocolTreasury(overrides?: CallOverrides): Promise<BigNumber>;
|
|
217
|
+
isPoolGuarded(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
218
|
+
newCurve(_info: CurveInfoStruct, overrides?: Overrides & {
|
|
219
|
+
from?: PromiseOrValue<string>;
|
|
220
|
+
}): Promise<BigNumber>;
|
|
221
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
222
|
+
renounceOwnership(overrides?: Overrides & {
|
|
223
|
+
from?: PromiseOrValue<string>;
|
|
224
|
+
}): Promise<BigNumber>;
|
|
225
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
226
|
+
from?: PromiseOrValue<string>;
|
|
227
|
+
}): Promise<BigNumber>;
|
|
228
|
+
};
|
|
229
|
+
populateTransaction: {
|
|
230
|
+
assimilatorFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
231
|
+
config(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
232
|
+
curves(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
233
|
+
getCurve(_baseCurrency: PromiseOrValue<string>, _quoteCurrency: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
234
|
+
getFlashableState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
235
|
+
getGlobalFrozenState(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
236
|
+
getPoolCap(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
237
|
+
getPoolGuardAmount(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
238
|
+
getProtocolFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
239
|
+
getProtocolTreasury(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
240
|
+
isPoolGuarded(pool: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
241
|
+
newCurve(_info: CurveInfoStruct, overrides?: Overrides & {
|
|
242
|
+
from?: PromiseOrValue<string>;
|
|
243
|
+
}): Promise<PopulatedTransaction>;
|
|
244
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
245
|
+
renounceOwnership(overrides?: Overrides & {
|
|
246
|
+
from?: PromiseOrValue<string>;
|
|
247
|
+
}): Promise<PopulatedTransaction>;
|
|
248
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
249
|
+
from?: PromiseOrValue<string>;
|
|
250
|
+
}): Promise<PopulatedTransaction>;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { StabullCurveFactory, StabullCurveFactoryInterface } from "../StabullCurveFactory";
|
|
4
|
+
export declare class StabullCurveFactory__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "_assimFactory";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "_config";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "nonpayable";
|
|
16
|
+
readonly type: "constructor";
|
|
17
|
+
}, {
|
|
18
|
+
readonly anonymous: false;
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly indexed: true;
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "caller";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly internalType: "bytes32";
|
|
27
|
+
readonly name: "id";
|
|
28
|
+
readonly type: "bytes32";
|
|
29
|
+
}, {
|
|
30
|
+
readonly indexed: true;
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly name: "curve";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "NewCurve";
|
|
36
|
+
readonly type: "event";
|
|
37
|
+
}, {
|
|
38
|
+
readonly anonymous: false;
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly indexed: true;
|
|
41
|
+
readonly internalType: "address";
|
|
42
|
+
readonly name: "previousOwner";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: true;
|
|
46
|
+
readonly internalType: "address";
|
|
47
|
+
readonly name: "newOwner";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}];
|
|
50
|
+
readonly name: "OwnershipTransferred";
|
|
51
|
+
readonly type: "event";
|
|
52
|
+
}, {
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
readonly name: "assimilatorFactory";
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly internalType: "contract IAssimilatorFactory";
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "config";
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly internalType: "contract IConfig";
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
}, {
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly internalType: "bytes32";
|
|
75
|
+
readonly name: "";
|
|
76
|
+
readonly type: "bytes32";
|
|
77
|
+
}];
|
|
78
|
+
readonly name: "curves";
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly stateMutability: "view";
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
}, {
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
readonly name: "_baseCurrency";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}, {
|
|
92
|
+
readonly internalType: "address";
|
|
93
|
+
readonly name: "_quoteCurrency";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
}];
|
|
96
|
+
readonly name: "getCurve";
|
|
97
|
+
readonly outputs: readonly [{
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
readonly name: "";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}];
|
|
102
|
+
readonly stateMutability: "view";
|
|
103
|
+
readonly type: "function";
|
|
104
|
+
}, {
|
|
105
|
+
readonly inputs: readonly [];
|
|
106
|
+
readonly name: "getFlashableState";
|
|
107
|
+
readonly outputs: readonly [{
|
|
108
|
+
readonly internalType: "bool";
|
|
109
|
+
readonly name: "";
|
|
110
|
+
readonly type: "bool";
|
|
111
|
+
}];
|
|
112
|
+
readonly stateMutability: "view";
|
|
113
|
+
readonly type: "function";
|
|
114
|
+
}, {
|
|
115
|
+
readonly inputs: readonly [];
|
|
116
|
+
readonly name: "getGlobalFrozenState";
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly internalType: "bool";
|
|
119
|
+
readonly name: "";
|
|
120
|
+
readonly type: "bool";
|
|
121
|
+
}];
|
|
122
|
+
readonly stateMutability: "view";
|
|
123
|
+
readonly type: "function";
|
|
124
|
+
}, {
|
|
125
|
+
readonly inputs: readonly [{
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
readonly name: "pool";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}];
|
|
130
|
+
readonly name: "getPoolCap";
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
readonly name: "";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
137
|
+
readonly type: "function";
|
|
138
|
+
}, {
|
|
139
|
+
readonly inputs: readonly [{
|
|
140
|
+
readonly internalType: "address";
|
|
141
|
+
readonly name: "pool";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}];
|
|
144
|
+
readonly name: "getPoolGuardAmount";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
readonly name: "";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
readonly type: "function";
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "getProtocolFee";
|
|
155
|
+
readonly outputs: readonly [{
|
|
156
|
+
readonly internalType: "int128";
|
|
157
|
+
readonly name: "";
|
|
158
|
+
readonly type: "int128";
|
|
159
|
+
}];
|
|
160
|
+
readonly stateMutability: "view";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [];
|
|
164
|
+
readonly name: "getProtocolTreasury";
|
|
165
|
+
readonly outputs: readonly [{
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
readonly name: "";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}];
|
|
170
|
+
readonly stateMutability: "view";
|
|
171
|
+
readonly type: "function";
|
|
172
|
+
}, {
|
|
173
|
+
readonly inputs: readonly [{
|
|
174
|
+
readonly internalType: "address";
|
|
175
|
+
readonly name: "pool";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}];
|
|
178
|
+
readonly name: "isPoolGuarded";
|
|
179
|
+
readonly outputs: readonly [{
|
|
180
|
+
readonly internalType: "bool";
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "bool";
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "view";
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly components: readonly [{
|
|
189
|
+
readonly internalType: "string";
|
|
190
|
+
readonly name: "_name";
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
}, {
|
|
193
|
+
readonly internalType: "string";
|
|
194
|
+
readonly name: "_symbol";
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "address";
|
|
198
|
+
readonly name: "_baseCurrency";
|
|
199
|
+
readonly type: "address";
|
|
200
|
+
}, {
|
|
201
|
+
readonly internalType: "address";
|
|
202
|
+
readonly name: "_quoteCurrency";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly name: "_baseWeight";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly name: "_quoteWeight";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "contract IOracle";
|
|
214
|
+
readonly name: "_baseOracle";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "contract IOracle";
|
|
218
|
+
readonly name: "_quoteOracle";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "uint256";
|
|
222
|
+
readonly name: "_alpha";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "uint256";
|
|
226
|
+
readonly name: "_beta";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
}, {
|
|
229
|
+
readonly internalType: "uint256";
|
|
230
|
+
readonly name: "_feeAtHalt";
|
|
231
|
+
readonly type: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "uint256";
|
|
234
|
+
readonly name: "_epsilon";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly name: "_lambda";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
}];
|
|
241
|
+
readonly internalType: "struct CurveInfo";
|
|
242
|
+
readonly name: "_info";
|
|
243
|
+
readonly type: "tuple";
|
|
244
|
+
}];
|
|
245
|
+
readonly name: "newCurve";
|
|
246
|
+
readonly outputs: readonly [{
|
|
247
|
+
readonly internalType: "contract Curve";
|
|
248
|
+
readonly name: "";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
}];
|
|
251
|
+
readonly stateMutability: "nonpayable";
|
|
252
|
+
readonly type: "function";
|
|
253
|
+
}, {
|
|
254
|
+
readonly inputs: readonly [];
|
|
255
|
+
readonly name: "owner";
|
|
256
|
+
readonly outputs: readonly [{
|
|
257
|
+
readonly internalType: "address";
|
|
258
|
+
readonly name: "";
|
|
259
|
+
readonly type: "address";
|
|
260
|
+
}];
|
|
261
|
+
readonly stateMutability: "view";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [];
|
|
265
|
+
readonly name: "renounceOwnership";
|
|
266
|
+
readonly outputs: readonly [];
|
|
267
|
+
readonly stateMutability: "nonpayable";
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
}, {
|
|
270
|
+
readonly inputs: readonly [{
|
|
271
|
+
readonly internalType: "address";
|
|
272
|
+
readonly name: "newOwner";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
}];
|
|
275
|
+
readonly name: "transferOwnership";
|
|
276
|
+
readonly outputs: readonly [];
|
|
277
|
+
readonly stateMutability: "nonpayable";
|
|
278
|
+
readonly type: "function";
|
|
279
|
+
}];
|
|
280
|
+
static createInterface(): StabullCurveFactoryInterface;
|
|
281
|
+
static connect(address: string, signerOrProvider: Signer | Provider): StabullCurveFactory;
|
|
282
|
+
}
|