@merkl/contracts 0.9.30 → 0.9.32
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/IchiFactory.d.ts +301 -0
- package/dist/src/IchiFactory.js +2 -0
- package/dist/src/IchiFactory.js.map +1 -0
- package/dist/src/factories/IchiFactory__factory.d.ts +327 -0
- package/dist/src/factories/IchiFactory__factory.js +422 -0
- package/dist/src/factories/IchiFactory__factory.js.map +1 -0
- package/dist/src/factories/index.d.ts +1 -0
- package/dist/src/factories/index.js +1 -0
- package/dist/src/factories/index.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
5
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
6
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common";
|
|
8
|
+
export interface IchiFactoryInterface extends utils.Interface {
|
|
9
|
+
functions: {
|
|
10
|
+
"allVaults(uint256)": FunctionFragment;
|
|
11
|
+
"baseFee()": FunctionFragment;
|
|
12
|
+
"baseFeeSplit()": FunctionFragment;
|
|
13
|
+
"createICHIVault(address,bool,address,bool,uint24)": FunctionFragment;
|
|
14
|
+
"feeRecipient()": FunctionFragment;
|
|
15
|
+
"genKey(address,address,address,uint24,bool,bool)": FunctionFragment;
|
|
16
|
+
"getICHIVault(bytes32)": FunctionFragment;
|
|
17
|
+
"owner()": FunctionFragment;
|
|
18
|
+
"renounceOwnership()": FunctionFragment;
|
|
19
|
+
"setBaseFee(uint256)": FunctionFragment;
|
|
20
|
+
"setBaseFeeSplit(uint256)": FunctionFragment;
|
|
21
|
+
"setFeeRecipient(address)": FunctionFragment;
|
|
22
|
+
"transferOwnership(address)": FunctionFragment;
|
|
23
|
+
"uniswapV3Factory()": FunctionFragment;
|
|
24
|
+
};
|
|
25
|
+
getFunction(nameOrSignatureOrTopic: "allVaults" | "baseFee" | "baseFeeSplit" | "createICHIVault" | "feeRecipient" | "genKey" | "getICHIVault" | "owner" | "renounceOwnership" | "setBaseFee" | "setBaseFeeSplit" | "setFeeRecipient" | "transferOwnership" | "uniswapV3Factory"): FunctionFragment;
|
|
26
|
+
encodeFunctionData(functionFragment: "allVaults", values: [PromiseOrValue<BigNumberish>]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "baseFee", values?: undefined): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "baseFeeSplit", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "createICHIVault", values: [
|
|
30
|
+
PromiseOrValue<string>,
|
|
31
|
+
PromiseOrValue<boolean>,
|
|
32
|
+
PromiseOrValue<string>,
|
|
33
|
+
PromiseOrValue<boolean>,
|
|
34
|
+
PromiseOrValue<BigNumberish>
|
|
35
|
+
]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "feeRecipient", values?: undefined): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "genKey", values: [
|
|
38
|
+
PromiseOrValue<string>,
|
|
39
|
+
PromiseOrValue<string>,
|
|
40
|
+
PromiseOrValue<string>,
|
|
41
|
+
PromiseOrValue<BigNumberish>,
|
|
42
|
+
PromiseOrValue<boolean>,
|
|
43
|
+
PromiseOrValue<boolean>
|
|
44
|
+
]): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "getICHIVault", values: [PromiseOrValue<BytesLike>]): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "setBaseFee", values: [PromiseOrValue<BigNumberish>]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "setBaseFeeSplit", values: [PromiseOrValue<BigNumberish>]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "setFeeRecipient", values: [PromiseOrValue<string>]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "uniswapV3Factory", values?: undefined): string;
|
|
53
|
+
decodeFunctionResult(functionFragment: "allVaults", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(functionFragment: "baseFee", data: BytesLike): Result;
|
|
55
|
+
decodeFunctionResult(functionFragment: "baseFeeSplit", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "createICHIVault", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(functionFragment: "feeRecipient", data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: "genKey", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "getICHIVault", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "setBaseFee", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "setBaseFeeSplit", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "setFeeRecipient", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "uniswapV3Factory", data: BytesLike): Result;
|
|
67
|
+
events: {
|
|
68
|
+
"BaseFee(address,uint256)": EventFragment;
|
|
69
|
+
"BaseFeeSplit(address,uint256)": EventFragment;
|
|
70
|
+
"DeployICHIVaultFactory(address,address)": EventFragment;
|
|
71
|
+
"FeeRecipient(address,address)": EventFragment;
|
|
72
|
+
"ICHIVaultCreated(address,address,address,bool,address,bool,uint24,uint256)": EventFragment;
|
|
73
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
74
|
+
};
|
|
75
|
+
getEvent(nameOrSignatureOrTopic: "BaseFee"): EventFragment;
|
|
76
|
+
getEvent(nameOrSignatureOrTopic: "BaseFeeSplit"): EventFragment;
|
|
77
|
+
getEvent(nameOrSignatureOrTopic: "DeployICHIVaultFactory"): EventFragment;
|
|
78
|
+
getEvent(nameOrSignatureOrTopic: "FeeRecipient"): EventFragment;
|
|
79
|
+
getEvent(nameOrSignatureOrTopic: "ICHIVaultCreated"): EventFragment;
|
|
80
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
81
|
+
}
|
|
82
|
+
export interface BaseFeeEventObject {
|
|
83
|
+
sender: string;
|
|
84
|
+
baseFee: BigNumber;
|
|
85
|
+
}
|
|
86
|
+
export type BaseFeeEvent = TypedEvent<[string, BigNumber], BaseFeeEventObject>;
|
|
87
|
+
export type BaseFeeEventFilter = TypedEventFilter<BaseFeeEvent>;
|
|
88
|
+
export interface BaseFeeSplitEventObject {
|
|
89
|
+
sender: string;
|
|
90
|
+
baseFeeSplit: BigNumber;
|
|
91
|
+
}
|
|
92
|
+
export type BaseFeeSplitEvent = TypedEvent<[
|
|
93
|
+
string,
|
|
94
|
+
BigNumber
|
|
95
|
+
], BaseFeeSplitEventObject>;
|
|
96
|
+
export type BaseFeeSplitEventFilter = TypedEventFilter<BaseFeeSplitEvent>;
|
|
97
|
+
export interface DeployICHIVaultFactoryEventObject {
|
|
98
|
+
sender: string;
|
|
99
|
+
uniswapV3Factory: string;
|
|
100
|
+
}
|
|
101
|
+
export type DeployICHIVaultFactoryEvent = TypedEvent<[
|
|
102
|
+
string,
|
|
103
|
+
string
|
|
104
|
+
], DeployICHIVaultFactoryEventObject>;
|
|
105
|
+
export type DeployICHIVaultFactoryEventFilter = TypedEventFilter<DeployICHIVaultFactoryEvent>;
|
|
106
|
+
export interface FeeRecipientEventObject {
|
|
107
|
+
sender: string;
|
|
108
|
+
feeRecipient: string;
|
|
109
|
+
}
|
|
110
|
+
export type FeeRecipientEvent = TypedEvent<[
|
|
111
|
+
string,
|
|
112
|
+
string
|
|
113
|
+
], FeeRecipientEventObject>;
|
|
114
|
+
export type FeeRecipientEventFilter = TypedEventFilter<FeeRecipientEvent>;
|
|
115
|
+
export interface ICHIVaultCreatedEventObject {
|
|
116
|
+
sender: string;
|
|
117
|
+
ichiVault: string;
|
|
118
|
+
tokenA: string;
|
|
119
|
+
allowTokenA: boolean;
|
|
120
|
+
tokenB: string;
|
|
121
|
+
allowTokenB: boolean;
|
|
122
|
+
fee: number;
|
|
123
|
+
count: BigNumber;
|
|
124
|
+
}
|
|
125
|
+
export type ICHIVaultCreatedEvent = TypedEvent<[
|
|
126
|
+
string,
|
|
127
|
+
string,
|
|
128
|
+
string,
|
|
129
|
+
boolean,
|
|
130
|
+
string,
|
|
131
|
+
boolean,
|
|
132
|
+
number,
|
|
133
|
+
BigNumber
|
|
134
|
+
], ICHIVaultCreatedEventObject>;
|
|
135
|
+
export type ICHIVaultCreatedEventFilter = TypedEventFilter<ICHIVaultCreatedEvent>;
|
|
136
|
+
export interface OwnershipTransferredEventObject {
|
|
137
|
+
previousOwner: string;
|
|
138
|
+
newOwner: string;
|
|
139
|
+
}
|
|
140
|
+
export type OwnershipTransferredEvent = TypedEvent<[
|
|
141
|
+
string,
|
|
142
|
+
string
|
|
143
|
+
], OwnershipTransferredEventObject>;
|
|
144
|
+
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
145
|
+
export interface IchiFactory extends BaseContract {
|
|
146
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
147
|
+
attach(addressOrName: string): this;
|
|
148
|
+
deployed(): Promise<this>;
|
|
149
|
+
interface: IchiFactoryInterface;
|
|
150
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
151
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
152
|
+
listeners(eventName?: string): Array<Listener>;
|
|
153
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
154
|
+
removeAllListeners(eventName?: string): this;
|
|
155
|
+
off: OnEvent<this>;
|
|
156
|
+
on: OnEvent<this>;
|
|
157
|
+
once: OnEvent<this>;
|
|
158
|
+
removeListener: OnEvent<this>;
|
|
159
|
+
functions: {
|
|
160
|
+
allVaults(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string]>;
|
|
161
|
+
baseFee(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
162
|
+
baseFeeSplit(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
163
|
+
createICHIVault(tokenA: PromiseOrValue<string>, allowTokenA: PromiseOrValue<boolean>, tokenB: PromiseOrValue<string>, allowTokenB: PromiseOrValue<boolean>, fee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
164
|
+
from?: PromiseOrValue<string>;
|
|
165
|
+
}): Promise<ContractTransaction>;
|
|
166
|
+
feeRecipient(overrides?: CallOverrides): Promise<[string]>;
|
|
167
|
+
genKey(deployer: PromiseOrValue<string>, token0: PromiseOrValue<string>, token1: PromiseOrValue<string>, fee: PromiseOrValue<BigNumberish>, allowToken0: PromiseOrValue<boolean>, allowToken1: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<[string] & {
|
|
168
|
+
key: string;
|
|
169
|
+
}>;
|
|
170
|
+
getICHIVault(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[string]>;
|
|
171
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
172
|
+
renounceOwnership(overrides?: Overrides & {
|
|
173
|
+
from?: PromiseOrValue<string>;
|
|
174
|
+
}): Promise<ContractTransaction>;
|
|
175
|
+
setBaseFee(_baseFee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
176
|
+
from?: PromiseOrValue<string>;
|
|
177
|
+
}): Promise<ContractTransaction>;
|
|
178
|
+
setBaseFeeSplit(_baseFeeSplit: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
179
|
+
from?: PromiseOrValue<string>;
|
|
180
|
+
}): Promise<ContractTransaction>;
|
|
181
|
+
setFeeRecipient(_feeRecipient: PromiseOrValue<string>, overrides?: Overrides & {
|
|
182
|
+
from?: PromiseOrValue<string>;
|
|
183
|
+
}): Promise<ContractTransaction>;
|
|
184
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
185
|
+
from?: PromiseOrValue<string>;
|
|
186
|
+
}): Promise<ContractTransaction>;
|
|
187
|
+
uniswapV3Factory(overrides?: CallOverrides): Promise<[string]>;
|
|
188
|
+
};
|
|
189
|
+
allVaults(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
190
|
+
baseFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
191
|
+
baseFeeSplit(overrides?: CallOverrides): Promise<BigNumber>;
|
|
192
|
+
createICHIVault(tokenA: PromiseOrValue<string>, allowTokenA: PromiseOrValue<boolean>, tokenB: PromiseOrValue<string>, allowTokenB: PromiseOrValue<boolean>, fee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
193
|
+
from?: PromiseOrValue<string>;
|
|
194
|
+
}): Promise<ContractTransaction>;
|
|
195
|
+
feeRecipient(overrides?: CallOverrides): Promise<string>;
|
|
196
|
+
genKey(deployer: PromiseOrValue<string>, token0: PromiseOrValue<string>, token1: PromiseOrValue<string>, fee: PromiseOrValue<BigNumberish>, allowToken0: PromiseOrValue<boolean>, allowToken1: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<string>;
|
|
197
|
+
getICHIVault(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
198
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
199
|
+
renounceOwnership(overrides?: Overrides & {
|
|
200
|
+
from?: PromiseOrValue<string>;
|
|
201
|
+
}): Promise<ContractTransaction>;
|
|
202
|
+
setBaseFee(_baseFee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
203
|
+
from?: PromiseOrValue<string>;
|
|
204
|
+
}): Promise<ContractTransaction>;
|
|
205
|
+
setBaseFeeSplit(_baseFeeSplit: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
206
|
+
from?: PromiseOrValue<string>;
|
|
207
|
+
}): Promise<ContractTransaction>;
|
|
208
|
+
setFeeRecipient(_feeRecipient: PromiseOrValue<string>, overrides?: Overrides & {
|
|
209
|
+
from?: PromiseOrValue<string>;
|
|
210
|
+
}): Promise<ContractTransaction>;
|
|
211
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
212
|
+
from?: PromiseOrValue<string>;
|
|
213
|
+
}): Promise<ContractTransaction>;
|
|
214
|
+
uniswapV3Factory(overrides?: CallOverrides): Promise<string>;
|
|
215
|
+
callStatic: {
|
|
216
|
+
allVaults(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
217
|
+
baseFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
218
|
+
baseFeeSplit(overrides?: CallOverrides): Promise<BigNumber>;
|
|
219
|
+
createICHIVault(tokenA: PromiseOrValue<string>, allowTokenA: PromiseOrValue<boolean>, tokenB: PromiseOrValue<string>, allowTokenB: PromiseOrValue<boolean>, fee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
220
|
+
feeRecipient(overrides?: CallOverrides): Promise<string>;
|
|
221
|
+
genKey(deployer: PromiseOrValue<string>, token0: PromiseOrValue<string>, token1: PromiseOrValue<string>, fee: PromiseOrValue<BigNumberish>, allowToken0: PromiseOrValue<boolean>, allowToken1: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<string>;
|
|
222
|
+
getICHIVault(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
223
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
224
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
225
|
+
setBaseFee(_baseFee: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
226
|
+
setBaseFeeSplit(_baseFeeSplit: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
227
|
+
setFeeRecipient(_feeRecipient: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
228
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
229
|
+
uniswapV3Factory(overrides?: CallOverrides): Promise<string>;
|
|
230
|
+
};
|
|
231
|
+
filters: {
|
|
232
|
+
"BaseFee(address,uint256)"(sender?: PromiseOrValue<string> | null, baseFee?: null): BaseFeeEventFilter;
|
|
233
|
+
BaseFee(sender?: PromiseOrValue<string> | null, baseFee?: null): BaseFeeEventFilter;
|
|
234
|
+
"BaseFeeSplit(address,uint256)"(sender?: PromiseOrValue<string> | null, baseFeeSplit?: null): BaseFeeSplitEventFilter;
|
|
235
|
+
BaseFeeSplit(sender?: PromiseOrValue<string> | null, baseFeeSplit?: null): BaseFeeSplitEventFilter;
|
|
236
|
+
"DeployICHIVaultFactory(address,address)"(sender?: PromiseOrValue<string> | null, uniswapV3Factory?: null): DeployICHIVaultFactoryEventFilter;
|
|
237
|
+
DeployICHIVaultFactory(sender?: PromiseOrValue<string> | null, uniswapV3Factory?: null): DeployICHIVaultFactoryEventFilter;
|
|
238
|
+
"FeeRecipient(address,address)"(sender?: PromiseOrValue<string> | null, feeRecipient?: null): FeeRecipientEventFilter;
|
|
239
|
+
FeeRecipient(sender?: PromiseOrValue<string> | null, feeRecipient?: null): FeeRecipientEventFilter;
|
|
240
|
+
"ICHIVaultCreated(address,address,address,bool,address,bool,uint24,uint256)"(sender?: PromiseOrValue<string> | null, ichiVault?: null, tokenA?: null, allowTokenA?: null, tokenB?: null, allowTokenB?: null, fee?: null, count?: null): ICHIVaultCreatedEventFilter;
|
|
241
|
+
ICHIVaultCreated(sender?: PromiseOrValue<string> | null, ichiVault?: null, tokenA?: null, allowTokenA?: null, tokenB?: null, allowTokenB?: null, fee?: null, count?: null): ICHIVaultCreatedEventFilter;
|
|
242
|
+
"OwnershipTransferred(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
243
|
+
OwnershipTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
244
|
+
};
|
|
245
|
+
estimateGas: {
|
|
246
|
+
allVaults(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
247
|
+
baseFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
248
|
+
baseFeeSplit(overrides?: CallOverrides): Promise<BigNumber>;
|
|
249
|
+
createICHIVault(tokenA: PromiseOrValue<string>, allowTokenA: PromiseOrValue<boolean>, tokenB: PromiseOrValue<string>, allowTokenB: PromiseOrValue<boolean>, fee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
250
|
+
from?: PromiseOrValue<string>;
|
|
251
|
+
}): Promise<BigNumber>;
|
|
252
|
+
feeRecipient(overrides?: CallOverrides): Promise<BigNumber>;
|
|
253
|
+
genKey(deployer: PromiseOrValue<string>, token0: PromiseOrValue<string>, token1: PromiseOrValue<string>, fee: PromiseOrValue<BigNumberish>, allowToken0: PromiseOrValue<boolean>, allowToken1: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
254
|
+
getICHIVault(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
255
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
256
|
+
renounceOwnership(overrides?: Overrides & {
|
|
257
|
+
from?: PromiseOrValue<string>;
|
|
258
|
+
}): Promise<BigNumber>;
|
|
259
|
+
setBaseFee(_baseFee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
260
|
+
from?: PromiseOrValue<string>;
|
|
261
|
+
}): Promise<BigNumber>;
|
|
262
|
+
setBaseFeeSplit(_baseFeeSplit: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
263
|
+
from?: PromiseOrValue<string>;
|
|
264
|
+
}): Promise<BigNumber>;
|
|
265
|
+
setFeeRecipient(_feeRecipient: PromiseOrValue<string>, overrides?: Overrides & {
|
|
266
|
+
from?: PromiseOrValue<string>;
|
|
267
|
+
}): Promise<BigNumber>;
|
|
268
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
269
|
+
from?: PromiseOrValue<string>;
|
|
270
|
+
}): Promise<BigNumber>;
|
|
271
|
+
uniswapV3Factory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
272
|
+
};
|
|
273
|
+
populateTransaction: {
|
|
274
|
+
allVaults(arg0: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
275
|
+
baseFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
276
|
+
baseFeeSplit(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
277
|
+
createICHIVault(tokenA: PromiseOrValue<string>, allowTokenA: PromiseOrValue<boolean>, tokenB: PromiseOrValue<string>, allowTokenB: PromiseOrValue<boolean>, fee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
278
|
+
from?: PromiseOrValue<string>;
|
|
279
|
+
}): Promise<PopulatedTransaction>;
|
|
280
|
+
feeRecipient(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
281
|
+
genKey(deployer: PromiseOrValue<string>, token0: PromiseOrValue<string>, token1: PromiseOrValue<string>, fee: PromiseOrValue<BigNumberish>, allowToken0: PromiseOrValue<boolean>, allowToken1: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
282
|
+
getICHIVault(arg0: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
283
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
284
|
+
renounceOwnership(overrides?: Overrides & {
|
|
285
|
+
from?: PromiseOrValue<string>;
|
|
286
|
+
}): Promise<PopulatedTransaction>;
|
|
287
|
+
setBaseFee(_baseFee: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
288
|
+
from?: PromiseOrValue<string>;
|
|
289
|
+
}): Promise<PopulatedTransaction>;
|
|
290
|
+
setBaseFeeSplit(_baseFeeSplit: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
291
|
+
from?: PromiseOrValue<string>;
|
|
292
|
+
}): Promise<PopulatedTransaction>;
|
|
293
|
+
setFeeRecipient(_feeRecipient: PromiseOrValue<string>, overrides?: Overrides & {
|
|
294
|
+
from?: PromiseOrValue<string>;
|
|
295
|
+
}): Promise<PopulatedTransaction>;
|
|
296
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
297
|
+
from?: PromiseOrValue<string>;
|
|
298
|
+
}): Promise<PopulatedTransaction>;
|
|
299
|
+
uniswapV3Factory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IchiFactory.js","sourceRoot":"","sources":["../../src/IchiFactory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer } from "ethers";
|
|
5
|
+
import type { Provider } from "@ethersproject/providers";
|
|
6
|
+
import type { IchiFactory, IchiFactoryInterface } from "../IchiFactory";
|
|
7
|
+
export declare class IchiFactory__factory {
|
|
8
|
+
static readonly abi: readonly [{
|
|
9
|
+
readonly inputs: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "_uniswapV3Factory";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "nonpayable";
|
|
15
|
+
readonly type: "constructor";
|
|
16
|
+
}, {
|
|
17
|
+
readonly anonymous: false;
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly indexed: true;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "sender";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly indexed: false;
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
|
+
readonly name: "baseFee";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "BaseFee";
|
|
30
|
+
readonly type: "event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly anonymous: false;
|
|
33
|
+
readonly inputs: readonly [{
|
|
34
|
+
readonly indexed: true;
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "sender";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly indexed: false;
|
|
40
|
+
readonly internalType: "uint256";
|
|
41
|
+
readonly name: "baseFeeSplit";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly name: "BaseFeeSplit";
|
|
45
|
+
readonly type: "event";
|
|
46
|
+
}, {
|
|
47
|
+
readonly anonymous: false;
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly indexed: true;
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
readonly name: "sender";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "uniswapV3Factory";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "DeployICHIVaultFactory";
|
|
60
|
+
readonly type: "event";
|
|
61
|
+
}, {
|
|
62
|
+
readonly anonymous: false;
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly indexed: true;
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "sender";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly indexed: false;
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly name: "feeRecipient";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}];
|
|
74
|
+
readonly name: "FeeRecipient";
|
|
75
|
+
readonly type: "event";
|
|
76
|
+
}, {
|
|
77
|
+
readonly anonymous: false;
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly indexed: true;
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "sender";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}, {
|
|
84
|
+
readonly indexed: false;
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
readonly name: "ichiVault";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly indexed: false;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "tokenA";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "bool";
|
|
96
|
+
readonly name: "allowTokenA";
|
|
97
|
+
readonly type: "bool";
|
|
98
|
+
}, {
|
|
99
|
+
readonly indexed: false;
|
|
100
|
+
readonly internalType: "address";
|
|
101
|
+
readonly name: "tokenB";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly internalType: "bool";
|
|
106
|
+
readonly name: "allowTokenB";
|
|
107
|
+
readonly type: "bool";
|
|
108
|
+
}, {
|
|
109
|
+
readonly indexed: false;
|
|
110
|
+
readonly internalType: "uint24";
|
|
111
|
+
readonly name: "fee";
|
|
112
|
+
readonly type: "uint24";
|
|
113
|
+
}, {
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
readonly internalType: "uint256";
|
|
116
|
+
readonly name: "count";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
}];
|
|
119
|
+
readonly name: "ICHIVaultCreated";
|
|
120
|
+
readonly type: "event";
|
|
121
|
+
}, {
|
|
122
|
+
readonly anonymous: false;
|
|
123
|
+
readonly inputs: readonly [{
|
|
124
|
+
readonly indexed: true;
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly name: "previousOwner";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly indexed: true;
|
|
130
|
+
readonly internalType: "address";
|
|
131
|
+
readonly name: "newOwner";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}];
|
|
134
|
+
readonly name: "OwnershipTransferred";
|
|
135
|
+
readonly type: "event";
|
|
136
|
+
}, {
|
|
137
|
+
readonly inputs: readonly [{
|
|
138
|
+
readonly internalType: "uint256";
|
|
139
|
+
readonly name: "";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "allVaults";
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
}];
|
|
148
|
+
readonly stateMutability: "view";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly name: "baseFee";
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}];
|
|
158
|
+
readonly stateMutability: "view";
|
|
159
|
+
readonly type: "function";
|
|
160
|
+
}, {
|
|
161
|
+
readonly inputs: readonly [];
|
|
162
|
+
readonly name: "baseFeeSplit";
|
|
163
|
+
readonly outputs: readonly [{
|
|
164
|
+
readonly internalType: "uint256";
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "uint256";
|
|
167
|
+
}];
|
|
168
|
+
readonly stateMutability: "view";
|
|
169
|
+
readonly type: "function";
|
|
170
|
+
}, {
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
readonly name: "tokenA";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "bool";
|
|
177
|
+
readonly name: "allowTokenA";
|
|
178
|
+
readonly type: "bool";
|
|
179
|
+
}, {
|
|
180
|
+
readonly internalType: "address";
|
|
181
|
+
readonly name: "tokenB";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly internalType: "bool";
|
|
185
|
+
readonly name: "allowTokenB";
|
|
186
|
+
readonly type: "bool";
|
|
187
|
+
}, {
|
|
188
|
+
readonly internalType: "uint24";
|
|
189
|
+
readonly name: "fee";
|
|
190
|
+
readonly type: "uint24";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "createICHIVault";
|
|
193
|
+
readonly outputs: readonly [{
|
|
194
|
+
readonly internalType: "address";
|
|
195
|
+
readonly name: "ichiVault";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}];
|
|
198
|
+
readonly stateMutability: "nonpayable";
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
}, {
|
|
201
|
+
readonly inputs: readonly [];
|
|
202
|
+
readonly name: "feeRecipient";
|
|
203
|
+
readonly outputs: readonly [{
|
|
204
|
+
readonly internalType: "address";
|
|
205
|
+
readonly name: "";
|
|
206
|
+
readonly type: "address";
|
|
207
|
+
}];
|
|
208
|
+
readonly stateMutability: "view";
|
|
209
|
+
readonly type: "function";
|
|
210
|
+
}, {
|
|
211
|
+
readonly inputs: readonly [{
|
|
212
|
+
readonly internalType: "address";
|
|
213
|
+
readonly name: "deployer";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}, {
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
readonly name: "token0";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
}, {
|
|
220
|
+
readonly internalType: "address";
|
|
221
|
+
readonly name: "token1";
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
}, {
|
|
224
|
+
readonly internalType: "uint24";
|
|
225
|
+
readonly name: "fee";
|
|
226
|
+
readonly type: "uint24";
|
|
227
|
+
}, {
|
|
228
|
+
readonly internalType: "bool";
|
|
229
|
+
readonly name: "allowToken0";
|
|
230
|
+
readonly type: "bool";
|
|
231
|
+
}, {
|
|
232
|
+
readonly internalType: "bool";
|
|
233
|
+
readonly name: "allowToken1";
|
|
234
|
+
readonly type: "bool";
|
|
235
|
+
}];
|
|
236
|
+
readonly name: "genKey";
|
|
237
|
+
readonly outputs: readonly [{
|
|
238
|
+
readonly internalType: "bytes32";
|
|
239
|
+
readonly name: "key";
|
|
240
|
+
readonly type: "bytes32";
|
|
241
|
+
}];
|
|
242
|
+
readonly stateMutability: "pure";
|
|
243
|
+
readonly type: "function";
|
|
244
|
+
}, {
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly internalType: "bytes32";
|
|
247
|
+
readonly name: "";
|
|
248
|
+
readonly type: "bytes32";
|
|
249
|
+
}];
|
|
250
|
+
readonly name: "getICHIVault";
|
|
251
|
+
readonly outputs: readonly [{
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly name: "";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}];
|
|
256
|
+
readonly stateMutability: "view";
|
|
257
|
+
readonly type: "function";
|
|
258
|
+
}, {
|
|
259
|
+
readonly inputs: readonly [];
|
|
260
|
+
readonly name: "owner";
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly internalType: "address";
|
|
263
|
+
readonly name: "";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
}];
|
|
266
|
+
readonly stateMutability: "view";
|
|
267
|
+
readonly type: "function";
|
|
268
|
+
}, {
|
|
269
|
+
readonly inputs: readonly [];
|
|
270
|
+
readonly name: "renounceOwnership";
|
|
271
|
+
readonly outputs: readonly [];
|
|
272
|
+
readonly stateMutability: "nonpayable";
|
|
273
|
+
readonly type: "function";
|
|
274
|
+
}, {
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly internalType: "uint256";
|
|
277
|
+
readonly name: "_baseFee";
|
|
278
|
+
readonly type: "uint256";
|
|
279
|
+
}];
|
|
280
|
+
readonly name: "setBaseFee";
|
|
281
|
+
readonly outputs: readonly [];
|
|
282
|
+
readonly stateMutability: "nonpayable";
|
|
283
|
+
readonly type: "function";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [{
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly name: "_baseFeeSplit";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "setBaseFeeSplit";
|
|
291
|
+
readonly outputs: readonly [];
|
|
292
|
+
readonly stateMutability: "nonpayable";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "_feeRecipient";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}];
|
|
300
|
+
readonly name: "setFeeRecipient";
|
|
301
|
+
readonly outputs: readonly [];
|
|
302
|
+
readonly stateMutability: "nonpayable";
|
|
303
|
+
readonly type: "function";
|
|
304
|
+
}, {
|
|
305
|
+
readonly inputs: readonly [{
|
|
306
|
+
readonly internalType: "address";
|
|
307
|
+
readonly name: "newOwner";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
}];
|
|
310
|
+
readonly name: "transferOwnership";
|
|
311
|
+
readonly outputs: readonly [];
|
|
312
|
+
readonly stateMutability: "nonpayable";
|
|
313
|
+
readonly type: "function";
|
|
314
|
+
}, {
|
|
315
|
+
readonly inputs: readonly [];
|
|
316
|
+
readonly name: "uniswapV3Factory";
|
|
317
|
+
readonly outputs: readonly [{
|
|
318
|
+
readonly internalType: "address";
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
}];
|
|
322
|
+
readonly stateMutability: "view";
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
}];
|
|
325
|
+
static createInterface(): IchiFactoryInterface;
|
|
326
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IchiFactory;
|
|
327
|
+
}
|