@towns-protocol/generated 0.0.213 → 0.0.214
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/deployments/gamma/base/addresses/swapRouter.json +3 -0
- package/deployments/omega/base/addresses/swapRouter.json +3 -0
- package/dev/abis/ISwapFacet.abi.json +320 -0
- package/dev/abis/ISwapFacet.abi.ts +320 -0
- package/dev/abis/ISwapFacetBase.abi.json +79 -0
- package/dev/abis/ISwapFacetBase.abi.ts +79 -0
- package/dev/abis/ISwapRouter.abi.json +189 -0
- package/dev/abis/ISwapRouter.abi.ts +189 -0
- package/dev/abis/ISwapRouterBase.abi.json +116 -0
- package/dev/abis/ISwapRouterBase.abi.ts +116 -0
- package/dev/typings/ISwapFacet.ts +415 -0
- package/dev/typings/ISwapRouter.ts +250 -0
- package/dev/typings/factories/ISwapFacet__factory.ts +341 -0
- package/dev/typings/factories/ISwapRouter__factory.ts +210 -0
- package/dev/typings/factories/Roles__factory.ts +1 -1
- package/dev/typings/factories/index.ts +2 -0
- package/dev/typings/index.ts +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "FeeDistribution",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "token",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": true,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "treasury",
|
|
14
|
+
"type": "address",
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "poster",
|
|
20
|
+
"type": "address",
|
|
21
|
+
"indexed": true,
|
|
22
|
+
"internalType": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "treasuryAmount",
|
|
26
|
+
"type": "uint256",
|
|
27
|
+
"indexed": false,
|
|
28
|
+
"internalType": "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "posterAmount",
|
|
32
|
+
"type": "uint256",
|
|
33
|
+
"indexed": false,
|
|
34
|
+
"internalType": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"anonymous": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "event",
|
|
41
|
+
"name": "Swap",
|
|
42
|
+
"inputs": [
|
|
43
|
+
{
|
|
44
|
+
"name": "router",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"indexed": true,
|
|
47
|
+
"internalType": "address"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "caller",
|
|
51
|
+
"type": "address",
|
|
52
|
+
"indexed": true,
|
|
53
|
+
"internalType": "address"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "tokenIn",
|
|
57
|
+
"type": "address",
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "address"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "tokenOut",
|
|
63
|
+
"type": "address",
|
|
64
|
+
"indexed": false,
|
|
65
|
+
"internalType": "address"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "amountIn",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"indexed": false,
|
|
71
|
+
"internalType": "uint256"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "amountOut",
|
|
75
|
+
"type": "uint256",
|
|
76
|
+
"indexed": false,
|
|
77
|
+
"internalType": "uint256"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "recipient",
|
|
81
|
+
"type": "address",
|
|
82
|
+
"indexed": false,
|
|
83
|
+
"internalType": "address"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"anonymous": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "event",
|
|
90
|
+
"name": "SwapRouterInitialized",
|
|
91
|
+
"inputs": [
|
|
92
|
+
{
|
|
93
|
+
"name": "spaceFactory",
|
|
94
|
+
"type": "address",
|
|
95
|
+
"indexed": false,
|
|
96
|
+
"internalType": "address"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"anonymous": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "error",
|
|
103
|
+
"name": "SwapRouter__InsufficientOutput",
|
|
104
|
+
"inputs": []
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "error",
|
|
108
|
+
"name": "SwapRouter__InvalidAmount",
|
|
109
|
+
"inputs": []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "error",
|
|
113
|
+
"name": "SwapRouter__InvalidRouter",
|
|
114
|
+
"inputs": []
|
|
115
|
+
}
|
|
116
|
+
] as const
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PayableOverrides,
|
|
13
|
+
PopulatedTransaction,
|
|
14
|
+
Signer,
|
|
15
|
+
utils,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type {
|
|
18
|
+
FunctionFragment,
|
|
19
|
+
Result,
|
|
20
|
+
EventFragment,
|
|
21
|
+
} from "@ethersproject/abi";
|
|
22
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
23
|
+
import type {
|
|
24
|
+
TypedEventFilter,
|
|
25
|
+
TypedEvent,
|
|
26
|
+
TypedListener,
|
|
27
|
+
OnEvent,
|
|
28
|
+
PromiseOrValue,
|
|
29
|
+
} from "./common";
|
|
30
|
+
|
|
31
|
+
export declare namespace ISwapRouterBase {
|
|
32
|
+
export type ExactInputParamsStruct = {
|
|
33
|
+
tokenIn: PromiseOrValue<string>;
|
|
34
|
+
tokenOut: PromiseOrValue<string>;
|
|
35
|
+
amountIn: PromiseOrValue<BigNumberish>;
|
|
36
|
+
minAmountOut: PromiseOrValue<BigNumberish>;
|
|
37
|
+
recipient: PromiseOrValue<string>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type ExactInputParamsStructOutput = [
|
|
41
|
+
string,
|
|
42
|
+
string,
|
|
43
|
+
BigNumber,
|
|
44
|
+
BigNumber,
|
|
45
|
+
string
|
|
46
|
+
] & {
|
|
47
|
+
tokenIn: string;
|
|
48
|
+
tokenOut: string;
|
|
49
|
+
amountIn: BigNumber;
|
|
50
|
+
minAmountOut: BigNumber;
|
|
51
|
+
recipient: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type RouterParamsStruct = {
|
|
55
|
+
router: PromiseOrValue<string>;
|
|
56
|
+
approveTarget: PromiseOrValue<string>;
|
|
57
|
+
swapData: PromiseOrValue<BytesLike>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type RouterParamsStructOutput = [string, string, string] & {
|
|
61
|
+
router: string;
|
|
62
|
+
approveTarget: string;
|
|
63
|
+
swapData: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ISwapFacetInterface extends utils.Interface {
|
|
68
|
+
functions: {
|
|
69
|
+
"executeSwap((address,address,uint256,uint256,address),(address,address,bytes),address)": FunctionFragment;
|
|
70
|
+
"getSwapFees()": FunctionFragment;
|
|
71
|
+
"getSwapRouter()": FunctionFragment;
|
|
72
|
+
"setSwapFeeConfig(uint16,bool)": FunctionFragment;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
getFunction(
|
|
76
|
+
nameOrSignatureOrTopic:
|
|
77
|
+
| "executeSwap"
|
|
78
|
+
| "getSwapFees"
|
|
79
|
+
| "getSwapRouter"
|
|
80
|
+
| "setSwapFeeConfig"
|
|
81
|
+
): FunctionFragment;
|
|
82
|
+
|
|
83
|
+
encodeFunctionData(
|
|
84
|
+
functionFragment: "executeSwap",
|
|
85
|
+
values: [
|
|
86
|
+
ISwapRouterBase.ExactInputParamsStruct,
|
|
87
|
+
ISwapRouterBase.RouterParamsStruct,
|
|
88
|
+
PromiseOrValue<string>
|
|
89
|
+
]
|
|
90
|
+
): string;
|
|
91
|
+
encodeFunctionData(
|
|
92
|
+
functionFragment: "getSwapFees",
|
|
93
|
+
values?: undefined
|
|
94
|
+
): string;
|
|
95
|
+
encodeFunctionData(
|
|
96
|
+
functionFragment: "getSwapRouter",
|
|
97
|
+
values?: undefined
|
|
98
|
+
): string;
|
|
99
|
+
encodeFunctionData(
|
|
100
|
+
functionFragment: "setSwapFeeConfig",
|
|
101
|
+
values: [PromiseOrValue<BigNumberish>, PromiseOrValue<boolean>]
|
|
102
|
+
): string;
|
|
103
|
+
|
|
104
|
+
decodeFunctionResult(
|
|
105
|
+
functionFragment: "executeSwap",
|
|
106
|
+
data: BytesLike
|
|
107
|
+
): Result;
|
|
108
|
+
decodeFunctionResult(
|
|
109
|
+
functionFragment: "getSwapFees",
|
|
110
|
+
data: BytesLike
|
|
111
|
+
): Result;
|
|
112
|
+
decodeFunctionResult(
|
|
113
|
+
functionFragment: "getSwapRouter",
|
|
114
|
+
data: BytesLike
|
|
115
|
+
): Result;
|
|
116
|
+
decodeFunctionResult(
|
|
117
|
+
functionFragment: "setSwapFeeConfig",
|
|
118
|
+
data: BytesLike
|
|
119
|
+
): Result;
|
|
120
|
+
|
|
121
|
+
events: {
|
|
122
|
+
"FeeDistribution(address,address,address,uint256,uint256)": EventFragment;
|
|
123
|
+
"Swap(address,address,address,address,uint256,uint256,address)": EventFragment;
|
|
124
|
+
"SwapExecuted(address,address,address,uint256,uint256,address)": EventFragment;
|
|
125
|
+
"SwapFeeConfigUpdated(uint16,bool)": EventFragment;
|
|
126
|
+
"SwapRouterInitialized(address)": EventFragment;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
getEvent(nameOrSignatureOrTopic: "FeeDistribution"): EventFragment;
|
|
130
|
+
getEvent(nameOrSignatureOrTopic: "Swap"): EventFragment;
|
|
131
|
+
getEvent(nameOrSignatureOrTopic: "SwapExecuted"): EventFragment;
|
|
132
|
+
getEvent(nameOrSignatureOrTopic: "SwapFeeConfigUpdated"): EventFragment;
|
|
133
|
+
getEvent(nameOrSignatureOrTopic: "SwapRouterInitialized"): EventFragment;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface FeeDistributionEventObject {
|
|
137
|
+
token: string;
|
|
138
|
+
treasury: string;
|
|
139
|
+
poster: string;
|
|
140
|
+
treasuryAmount: BigNumber;
|
|
141
|
+
posterAmount: BigNumber;
|
|
142
|
+
}
|
|
143
|
+
export type FeeDistributionEvent = TypedEvent<
|
|
144
|
+
[string, string, string, BigNumber, BigNumber],
|
|
145
|
+
FeeDistributionEventObject
|
|
146
|
+
>;
|
|
147
|
+
|
|
148
|
+
export type FeeDistributionEventFilter = TypedEventFilter<FeeDistributionEvent>;
|
|
149
|
+
|
|
150
|
+
export interface SwapEventObject {
|
|
151
|
+
router: string;
|
|
152
|
+
caller: string;
|
|
153
|
+
tokenIn: string;
|
|
154
|
+
tokenOut: string;
|
|
155
|
+
amountIn: BigNumber;
|
|
156
|
+
amountOut: BigNumber;
|
|
157
|
+
recipient: string;
|
|
158
|
+
}
|
|
159
|
+
export type SwapEvent = TypedEvent<
|
|
160
|
+
[string, string, string, string, BigNumber, BigNumber, string],
|
|
161
|
+
SwapEventObject
|
|
162
|
+
>;
|
|
163
|
+
|
|
164
|
+
export type SwapEventFilter = TypedEventFilter<SwapEvent>;
|
|
165
|
+
|
|
166
|
+
export interface SwapExecutedEventObject {
|
|
167
|
+
recipient: string;
|
|
168
|
+
tokenIn: string;
|
|
169
|
+
tokenOut: string;
|
|
170
|
+
amountIn: BigNumber;
|
|
171
|
+
amountOut: BigNumber;
|
|
172
|
+
poster: string;
|
|
173
|
+
}
|
|
174
|
+
export type SwapExecutedEvent = TypedEvent<
|
|
175
|
+
[string, string, string, BigNumber, BigNumber, string],
|
|
176
|
+
SwapExecutedEventObject
|
|
177
|
+
>;
|
|
178
|
+
|
|
179
|
+
export type SwapExecutedEventFilter = TypedEventFilter<SwapExecutedEvent>;
|
|
180
|
+
|
|
181
|
+
export interface SwapFeeConfigUpdatedEventObject {
|
|
182
|
+
posterFeeBps: number;
|
|
183
|
+
collectPosterFeeToSpace: boolean;
|
|
184
|
+
}
|
|
185
|
+
export type SwapFeeConfigUpdatedEvent = TypedEvent<
|
|
186
|
+
[number, boolean],
|
|
187
|
+
SwapFeeConfigUpdatedEventObject
|
|
188
|
+
>;
|
|
189
|
+
|
|
190
|
+
export type SwapFeeConfigUpdatedEventFilter =
|
|
191
|
+
TypedEventFilter<SwapFeeConfigUpdatedEvent>;
|
|
192
|
+
|
|
193
|
+
export interface SwapRouterInitializedEventObject {
|
|
194
|
+
spaceFactory: string;
|
|
195
|
+
}
|
|
196
|
+
export type SwapRouterInitializedEvent = TypedEvent<
|
|
197
|
+
[string],
|
|
198
|
+
SwapRouterInitializedEventObject
|
|
199
|
+
>;
|
|
200
|
+
|
|
201
|
+
export type SwapRouterInitializedEventFilter =
|
|
202
|
+
TypedEventFilter<SwapRouterInitializedEvent>;
|
|
203
|
+
|
|
204
|
+
export interface ISwapFacet extends BaseContract {
|
|
205
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
206
|
+
attach(addressOrName: string): this;
|
|
207
|
+
deployed(): Promise<this>;
|
|
208
|
+
|
|
209
|
+
interface: ISwapFacetInterface;
|
|
210
|
+
|
|
211
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
212
|
+
event: TypedEventFilter<TEvent>,
|
|
213
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
214
|
+
toBlock?: string | number | undefined
|
|
215
|
+
): Promise<Array<TEvent>>;
|
|
216
|
+
|
|
217
|
+
listeners<TEvent extends TypedEvent>(
|
|
218
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
219
|
+
): Array<TypedListener<TEvent>>;
|
|
220
|
+
listeners(eventName?: string): Array<Listener>;
|
|
221
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
222
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
223
|
+
): this;
|
|
224
|
+
removeAllListeners(eventName?: string): this;
|
|
225
|
+
off: OnEvent<this>;
|
|
226
|
+
on: OnEvent<this>;
|
|
227
|
+
once: OnEvent<this>;
|
|
228
|
+
removeListener: OnEvent<this>;
|
|
229
|
+
|
|
230
|
+
functions: {
|
|
231
|
+
executeSwap(
|
|
232
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
233
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
234
|
+
poster: PromiseOrValue<string>,
|
|
235
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
236
|
+
): Promise<ContractTransaction>;
|
|
237
|
+
|
|
238
|
+
getSwapFees(
|
|
239
|
+
overrides?: CallOverrides
|
|
240
|
+
): Promise<
|
|
241
|
+
[number, number, boolean] & {
|
|
242
|
+
treasuryBps: number;
|
|
243
|
+
posterBps: number;
|
|
244
|
+
collectPosterFeeToSpace: boolean;
|
|
245
|
+
}
|
|
246
|
+
>;
|
|
247
|
+
|
|
248
|
+
getSwapRouter(overrides?: CallOverrides): Promise<[string]>;
|
|
249
|
+
|
|
250
|
+
setSwapFeeConfig(
|
|
251
|
+
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
252
|
+
collectPosterFeeToSpace: PromiseOrValue<boolean>,
|
|
253
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
254
|
+
): Promise<ContractTransaction>;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
executeSwap(
|
|
258
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
259
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
260
|
+
poster: PromiseOrValue<string>,
|
|
261
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
262
|
+
): Promise<ContractTransaction>;
|
|
263
|
+
|
|
264
|
+
getSwapFees(
|
|
265
|
+
overrides?: CallOverrides
|
|
266
|
+
): Promise<
|
|
267
|
+
[number, number, boolean] & {
|
|
268
|
+
treasuryBps: number;
|
|
269
|
+
posterBps: number;
|
|
270
|
+
collectPosterFeeToSpace: boolean;
|
|
271
|
+
}
|
|
272
|
+
>;
|
|
273
|
+
|
|
274
|
+
getSwapRouter(overrides?: CallOverrides): Promise<string>;
|
|
275
|
+
|
|
276
|
+
setSwapFeeConfig(
|
|
277
|
+
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
278
|
+
collectPosterFeeToSpace: PromiseOrValue<boolean>,
|
|
279
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
280
|
+
): Promise<ContractTransaction>;
|
|
281
|
+
|
|
282
|
+
callStatic: {
|
|
283
|
+
executeSwap(
|
|
284
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
285
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
286
|
+
poster: PromiseOrValue<string>,
|
|
287
|
+
overrides?: CallOverrides
|
|
288
|
+
): Promise<BigNumber>;
|
|
289
|
+
|
|
290
|
+
getSwapFees(
|
|
291
|
+
overrides?: CallOverrides
|
|
292
|
+
): Promise<
|
|
293
|
+
[number, number, boolean] & {
|
|
294
|
+
treasuryBps: number;
|
|
295
|
+
posterBps: number;
|
|
296
|
+
collectPosterFeeToSpace: boolean;
|
|
297
|
+
}
|
|
298
|
+
>;
|
|
299
|
+
|
|
300
|
+
getSwapRouter(overrides?: CallOverrides): Promise<string>;
|
|
301
|
+
|
|
302
|
+
setSwapFeeConfig(
|
|
303
|
+
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
304
|
+
collectPosterFeeToSpace: PromiseOrValue<boolean>,
|
|
305
|
+
overrides?: CallOverrides
|
|
306
|
+
): Promise<void>;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
filters: {
|
|
310
|
+
"FeeDistribution(address,address,address,uint256,uint256)"(
|
|
311
|
+
token?: PromiseOrValue<string> | null,
|
|
312
|
+
treasury?: PromiseOrValue<string> | null,
|
|
313
|
+
poster?: PromiseOrValue<string> | null,
|
|
314
|
+
treasuryAmount?: null,
|
|
315
|
+
posterAmount?: null
|
|
316
|
+
): FeeDistributionEventFilter;
|
|
317
|
+
FeeDistribution(
|
|
318
|
+
token?: PromiseOrValue<string> | null,
|
|
319
|
+
treasury?: PromiseOrValue<string> | null,
|
|
320
|
+
poster?: PromiseOrValue<string> | null,
|
|
321
|
+
treasuryAmount?: null,
|
|
322
|
+
posterAmount?: null
|
|
323
|
+
): FeeDistributionEventFilter;
|
|
324
|
+
|
|
325
|
+
"Swap(address,address,address,address,uint256,uint256,address)"(
|
|
326
|
+
router?: PromiseOrValue<string> | null,
|
|
327
|
+
caller?: PromiseOrValue<string> | null,
|
|
328
|
+
tokenIn?: null,
|
|
329
|
+
tokenOut?: null,
|
|
330
|
+
amountIn?: null,
|
|
331
|
+
amountOut?: null,
|
|
332
|
+
recipient?: null
|
|
333
|
+
): SwapEventFilter;
|
|
334
|
+
Swap(
|
|
335
|
+
router?: PromiseOrValue<string> | null,
|
|
336
|
+
caller?: PromiseOrValue<string> | null,
|
|
337
|
+
tokenIn?: null,
|
|
338
|
+
tokenOut?: null,
|
|
339
|
+
amountIn?: null,
|
|
340
|
+
amountOut?: null,
|
|
341
|
+
recipient?: null
|
|
342
|
+
): SwapEventFilter;
|
|
343
|
+
|
|
344
|
+
"SwapExecuted(address,address,address,uint256,uint256,address)"(
|
|
345
|
+
recipient?: PromiseOrValue<string> | null,
|
|
346
|
+
tokenIn?: PromiseOrValue<string> | null,
|
|
347
|
+
tokenOut?: PromiseOrValue<string> | null,
|
|
348
|
+
amountIn?: null,
|
|
349
|
+
amountOut?: null,
|
|
350
|
+
poster?: null
|
|
351
|
+
): SwapExecutedEventFilter;
|
|
352
|
+
SwapExecuted(
|
|
353
|
+
recipient?: PromiseOrValue<string> | null,
|
|
354
|
+
tokenIn?: PromiseOrValue<string> | null,
|
|
355
|
+
tokenOut?: PromiseOrValue<string> | null,
|
|
356
|
+
amountIn?: null,
|
|
357
|
+
amountOut?: null,
|
|
358
|
+
poster?: null
|
|
359
|
+
): SwapExecutedEventFilter;
|
|
360
|
+
|
|
361
|
+
"SwapFeeConfigUpdated(uint16,bool)"(
|
|
362
|
+
posterFeeBps?: null,
|
|
363
|
+
collectPosterFeeToSpace?: null
|
|
364
|
+
): SwapFeeConfigUpdatedEventFilter;
|
|
365
|
+
SwapFeeConfigUpdated(
|
|
366
|
+
posterFeeBps?: null,
|
|
367
|
+
collectPosterFeeToSpace?: null
|
|
368
|
+
): SwapFeeConfigUpdatedEventFilter;
|
|
369
|
+
|
|
370
|
+
"SwapRouterInitialized(address)"(
|
|
371
|
+
spaceFactory?: null
|
|
372
|
+
): SwapRouterInitializedEventFilter;
|
|
373
|
+
SwapRouterInitialized(
|
|
374
|
+
spaceFactory?: null
|
|
375
|
+
): SwapRouterInitializedEventFilter;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
estimateGas: {
|
|
379
|
+
executeSwap(
|
|
380
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
381
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
382
|
+
poster: PromiseOrValue<string>,
|
|
383
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
384
|
+
): Promise<BigNumber>;
|
|
385
|
+
|
|
386
|
+
getSwapFees(overrides?: CallOverrides): Promise<BigNumber>;
|
|
387
|
+
|
|
388
|
+
getSwapRouter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
389
|
+
|
|
390
|
+
setSwapFeeConfig(
|
|
391
|
+
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
392
|
+
collectPosterFeeToSpace: PromiseOrValue<boolean>,
|
|
393
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
394
|
+
): Promise<BigNumber>;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
populateTransaction: {
|
|
398
|
+
executeSwap(
|
|
399
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
400
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
401
|
+
poster: PromiseOrValue<string>,
|
|
402
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
403
|
+
): Promise<PopulatedTransaction>;
|
|
404
|
+
|
|
405
|
+
getSwapFees(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
406
|
+
|
|
407
|
+
getSwapRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
408
|
+
|
|
409
|
+
setSwapFeeConfig(
|
|
410
|
+
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
411
|
+
collectPosterFeeToSpace: PromiseOrValue<boolean>,
|
|
412
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
413
|
+
): Promise<PopulatedTransaction>;
|
|
414
|
+
};
|
|
415
|
+
}
|