@towns-protocol/generated 0.0.255 → 0.0.257
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/dev/abis/IAppRegistry.abi.json +38 -0
- package/dev/abis/IAppRegistry.abi.ts +38 -0
- package/dev/abis/ISwapFacet.abi.json +113 -3
- package/dev/abis/ISwapFacet.abi.ts +113 -3
- package/dev/abis/ISwapFacetBase.abi.json +6 -1
- package/dev/abis/ISwapFacetBase.abi.ts +6 -1
- package/dev/abis/ISwapRouter.abi.json +222 -0
- package/dev/abis/ISwapRouter.abi.ts +222 -0
- package/dev/abis/ISwapRouterBase.abi.json +5 -0
- package/dev/abis/ISwapRouterBase.abi.ts +5 -0
- package/dev/typings/IAppRegistry.ts +70 -0
- package/dev/typings/ISwapFacet.ts +85 -11
- package/dev/typings/ISwapRouter.ts +186 -1
- package/dev/typings/factories/Channels__factory.ts +1 -1
- package/dev/typings/factories/EntitlementsManager__factory.ts +1 -1
- package/dev/typings/factories/IAppRegistry__factory.ts +38 -0
- package/dev/typings/factories/ISwapFacet__factory.ts +113 -3
- package/dev/typings/factories/ISwapRouter__factory.ts +222 -0
- package/dev/typings/factories/MembershipFacet__factory.ts +1 -1
- package/dev/typings/factories/PrepayFacet__factory.ts +1 -1
- package/dev/typings/factories/Roles__factory.ts +1 -1
- package/package.json +2 -2
|
@@ -77,6 +77,111 @@ export default [
|
|
|
77
77
|
],
|
|
78
78
|
"stateMutability": "payable"
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"type": "function",
|
|
82
|
+
"name": "executeSwapWithPermit",
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"name": "params",
|
|
86
|
+
"type": "tuple",
|
|
87
|
+
"internalType": "struct ISwapRouterBase.ExactInputParams",
|
|
88
|
+
"components": [
|
|
89
|
+
{
|
|
90
|
+
"name": "tokenIn",
|
|
91
|
+
"type": "address",
|
|
92
|
+
"internalType": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "tokenOut",
|
|
96
|
+
"type": "address",
|
|
97
|
+
"internalType": "address"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "amountIn",
|
|
101
|
+
"type": "uint256",
|
|
102
|
+
"internalType": "uint256"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "minAmountOut",
|
|
106
|
+
"type": "uint256",
|
|
107
|
+
"internalType": "uint256"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "recipient",
|
|
111
|
+
"type": "address",
|
|
112
|
+
"internalType": "address"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "routerParams",
|
|
118
|
+
"type": "tuple",
|
|
119
|
+
"internalType": "struct ISwapRouterBase.RouterParams",
|
|
120
|
+
"components": [
|
|
121
|
+
{
|
|
122
|
+
"name": "router",
|
|
123
|
+
"type": "address",
|
|
124
|
+
"internalType": "address"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "approveTarget",
|
|
128
|
+
"type": "address",
|
|
129
|
+
"internalType": "address"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "swapData",
|
|
133
|
+
"type": "bytes",
|
|
134
|
+
"internalType": "bytes"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "permit",
|
|
140
|
+
"type": "tuple",
|
|
141
|
+
"internalType": "struct ISwapRouterBase.Permit2Params",
|
|
142
|
+
"components": [
|
|
143
|
+
{
|
|
144
|
+
"name": "owner",
|
|
145
|
+
"type": "address",
|
|
146
|
+
"internalType": "address"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "nonce",
|
|
150
|
+
"type": "uint256",
|
|
151
|
+
"internalType": "uint256"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "deadline",
|
|
155
|
+
"type": "uint256",
|
|
156
|
+
"internalType": "uint256"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "signature",
|
|
160
|
+
"type": "bytes",
|
|
161
|
+
"internalType": "bytes"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "poster",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"internalType": "address"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"outputs": [
|
|
172
|
+
{
|
|
173
|
+
"name": "amountOut",
|
|
174
|
+
"type": "uint256",
|
|
175
|
+
"internalType": "uint256"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "protocolFee",
|
|
179
|
+
"type": "uint256",
|
|
180
|
+
"internalType": "uint256"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"stateMutability": "payable"
|
|
184
|
+
},
|
|
80
185
|
{
|
|
81
186
|
"type": "function",
|
|
82
187
|
"name": "getETHInputFees",
|
|
@@ -116,6 +221,118 @@ export default [
|
|
|
116
221
|
],
|
|
117
222
|
"stateMutability": "view"
|
|
118
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"type": "function",
|
|
226
|
+
"name": "getPermit2MessageHash",
|
|
227
|
+
"inputs": [
|
|
228
|
+
{
|
|
229
|
+
"name": "params",
|
|
230
|
+
"type": "tuple",
|
|
231
|
+
"internalType": "struct ISwapRouterBase.ExactInputParams",
|
|
232
|
+
"components": [
|
|
233
|
+
{
|
|
234
|
+
"name": "tokenIn",
|
|
235
|
+
"type": "address",
|
|
236
|
+
"internalType": "address"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "tokenOut",
|
|
240
|
+
"type": "address",
|
|
241
|
+
"internalType": "address"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "amountIn",
|
|
245
|
+
"type": "uint256",
|
|
246
|
+
"internalType": "uint256"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "minAmountOut",
|
|
250
|
+
"type": "uint256",
|
|
251
|
+
"internalType": "uint256"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "recipient",
|
|
255
|
+
"type": "address",
|
|
256
|
+
"internalType": "address"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "routerParams",
|
|
262
|
+
"type": "tuple",
|
|
263
|
+
"internalType": "struct ISwapRouterBase.RouterParams",
|
|
264
|
+
"components": [
|
|
265
|
+
{
|
|
266
|
+
"name": "router",
|
|
267
|
+
"type": "address",
|
|
268
|
+
"internalType": "address"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "approveTarget",
|
|
272
|
+
"type": "address",
|
|
273
|
+
"internalType": "address"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "swapData",
|
|
277
|
+
"type": "bytes",
|
|
278
|
+
"internalType": "bytes"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "poster",
|
|
284
|
+
"type": "address",
|
|
285
|
+
"internalType": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "amount",
|
|
289
|
+
"type": "uint256",
|
|
290
|
+
"internalType": "uint256"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "nonce",
|
|
294
|
+
"type": "uint256",
|
|
295
|
+
"internalType": "uint256"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "deadline",
|
|
299
|
+
"type": "uint256",
|
|
300
|
+
"internalType": "uint256"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"outputs": [
|
|
304
|
+
{
|
|
305
|
+
"name": "messageHash",
|
|
306
|
+
"type": "bytes32",
|
|
307
|
+
"internalType": "bytes32"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"stateMutability": "view"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "function",
|
|
314
|
+
"name": "getPermit2Nonce",
|
|
315
|
+
"inputs": [
|
|
316
|
+
{
|
|
317
|
+
"name": "owner",
|
|
318
|
+
"type": "address",
|
|
319
|
+
"internalType": "address"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "startNonce",
|
|
323
|
+
"type": "uint256",
|
|
324
|
+
"internalType": "uint256"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"outputs": [
|
|
328
|
+
{
|
|
329
|
+
"name": "nonce",
|
|
330
|
+
"type": "uint256",
|
|
331
|
+
"internalType": "uint256"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"stateMutability": "view"
|
|
335
|
+
},
|
|
119
336
|
{
|
|
120
337
|
"type": "event",
|
|
121
338
|
"name": "FeeDistribution",
|
|
@@ -240,6 +457,11 @@ export default [
|
|
|
240
457
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
241
458
|
"inputs": []
|
|
242
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"type": "error",
|
|
462
|
+
"name": "SwapRouter__RecipientRequired",
|
|
463
|
+
"inputs": []
|
|
464
|
+
},
|
|
243
465
|
{
|
|
244
466
|
"type": "error",
|
|
245
467
|
"name": "SwapRouter__UnexpectedETH",
|
|
@@ -123,6 +123,11 @@
|
|
|
123
123
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
124
124
|
"inputs": []
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"type": "error",
|
|
128
|
+
"name": "SwapRouter__RecipientRequired",
|
|
129
|
+
"inputs": []
|
|
130
|
+
},
|
|
126
131
|
{
|
|
127
132
|
"type": "error",
|
|
128
133
|
"name": "SwapRouter__UnexpectedETH",
|
|
@@ -123,6 +123,11 @@ export default [
|
|
|
123
123
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
124
124
|
"inputs": []
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"type": "error",
|
|
128
|
+
"name": "SwapRouter__RecipientRequired",
|
|
129
|
+
"inputs": []
|
|
130
|
+
},
|
|
126
131
|
{
|
|
127
132
|
"type": "error",
|
|
128
133
|
"name": "SwapRouter__UnexpectedETH",
|
|
@@ -138,6 +138,8 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
138
138
|
"createApp((string,bytes32[],address,uint256,uint48))": FunctionFragment;
|
|
139
139
|
"getAppByClient(address)": FunctionFragment;
|
|
140
140
|
"getAppById(bytes32)": FunctionFragment;
|
|
141
|
+
"getAppDuration(address)": FunctionFragment;
|
|
142
|
+
"getAppPrice(address)": FunctionFragment;
|
|
141
143
|
"getAppSchema()": FunctionFragment;
|
|
142
144
|
"getAppSchemaId()": FunctionFragment;
|
|
143
145
|
"getLatestAppId(address)": FunctionFragment;
|
|
@@ -156,6 +158,8 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
156
158
|
| "createApp"
|
|
157
159
|
| "getAppByClient"
|
|
158
160
|
| "getAppById"
|
|
161
|
+
| "getAppDuration"
|
|
162
|
+
| "getAppPrice"
|
|
159
163
|
| "getAppSchema"
|
|
160
164
|
| "getAppSchemaId"
|
|
161
165
|
| "getLatestAppId"
|
|
@@ -191,6 +195,14 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
191
195
|
functionFragment: "getAppById",
|
|
192
196
|
values: [PromiseOrValue<BytesLike>]
|
|
193
197
|
): string;
|
|
198
|
+
encodeFunctionData(
|
|
199
|
+
functionFragment: "getAppDuration",
|
|
200
|
+
values: [PromiseOrValue<string>]
|
|
201
|
+
): string;
|
|
202
|
+
encodeFunctionData(
|
|
203
|
+
functionFragment: "getAppPrice",
|
|
204
|
+
values: [PromiseOrValue<string>]
|
|
205
|
+
): string;
|
|
194
206
|
encodeFunctionData(
|
|
195
207
|
functionFragment: "getAppSchema",
|
|
196
208
|
values?: undefined
|
|
@@ -254,6 +266,14 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
254
266
|
data: BytesLike
|
|
255
267
|
): Result;
|
|
256
268
|
decodeFunctionResult(functionFragment: "getAppById", data: BytesLike): Result;
|
|
269
|
+
decodeFunctionResult(
|
|
270
|
+
functionFragment: "getAppDuration",
|
|
271
|
+
data: BytesLike
|
|
272
|
+
): Result;
|
|
273
|
+
decodeFunctionResult(
|
|
274
|
+
functionFragment: "getAppPrice",
|
|
275
|
+
data: BytesLike
|
|
276
|
+
): Result;
|
|
257
277
|
decodeFunctionResult(
|
|
258
278
|
functionFragment: "getAppSchema",
|
|
259
279
|
data: BytesLike
|
|
@@ -454,6 +474,16 @@ export interface IAppRegistry extends BaseContract {
|
|
|
454
474
|
overrides?: CallOverrides
|
|
455
475
|
): Promise<[IAppRegistryBase.AppStructOutput]>;
|
|
456
476
|
|
|
477
|
+
getAppDuration(
|
|
478
|
+
app: PromiseOrValue<string>,
|
|
479
|
+
overrides?: CallOverrides
|
|
480
|
+
): Promise<[number]>;
|
|
481
|
+
|
|
482
|
+
getAppPrice(
|
|
483
|
+
app: PromiseOrValue<string>,
|
|
484
|
+
overrides?: CallOverrides
|
|
485
|
+
): Promise<[BigNumber]>;
|
|
486
|
+
|
|
457
487
|
getAppSchema(overrides?: CallOverrides): Promise<[string]>;
|
|
458
488
|
|
|
459
489
|
getAppSchemaId(overrides?: CallOverrides): Promise<[string]>;
|
|
@@ -528,6 +558,16 @@ export interface IAppRegistry extends BaseContract {
|
|
|
528
558
|
overrides?: CallOverrides
|
|
529
559
|
): Promise<IAppRegistryBase.AppStructOutput>;
|
|
530
560
|
|
|
561
|
+
getAppDuration(
|
|
562
|
+
app: PromiseOrValue<string>,
|
|
563
|
+
overrides?: CallOverrides
|
|
564
|
+
): Promise<number>;
|
|
565
|
+
|
|
566
|
+
getAppPrice(
|
|
567
|
+
app: PromiseOrValue<string>,
|
|
568
|
+
overrides?: CallOverrides
|
|
569
|
+
): Promise<BigNumber>;
|
|
570
|
+
|
|
531
571
|
getAppSchema(overrides?: CallOverrides): Promise<string>;
|
|
532
572
|
|
|
533
573
|
getAppSchemaId(overrides?: CallOverrides): Promise<string>;
|
|
@@ -602,6 +642,16 @@ export interface IAppRegistry extends BaseContract {
|
|
|
602
642
|
overrides?: CallOverrides
|
|
603
643
|
): Promise<IAppRegistryBase.AppStructOutput>;
|
|
604
644
|
|
|
645
|
+
getAppDuration(
|
|
646
|
+
app: PromiseOrValue<string>,
|
|
647
|
+
overrides?: CallOverrides
|
|
648
|
+
): Promise<number>;
|
|
649
|
+
|
|
650
|
+
getAppPrice(
|
|
651
|
+
app: PromiseOrValue<string>,
|
|
652
|
+
overrides?: CallOverrides
|
|
653
|
+
): Promise<BigNumber>;
|
|
654
|
+
|
|
605
655
|
getAppSchema(overrides?: CallOverrides): Promise<string>;
|
|
606
656
|
|
|
607
657
|
getAppSchemaId(overrides?: CallOverrides): Promise<string>;
|
|
@@ -760,6 +810,16 @@ export interface IAppRegistry extends BaseContract {
|
|
|
760
810
|
overrides?: CallOverrides
|
|
761
811
|
): Promise<BigNumber>;
|
|
762
812
|
|
|
813
|
+
getAppDuration(
|
|
814
|
+
app: PromiseOrValue<string>,
|
|
815
|
+
overrides?: CallOverrides
|
|
816
|
+
): Promise<BigNumber>;
|
|
817
|
+
|
|
818
|
+
getAppPrice(
|
|
819
|
+
app: PromiseOrValue<string>,
|
|
820
|
+
overrides?: CallOverrides
|
|
821
|
+
): Promise<BigNumber>;
|
|
822
|
+
|
|
763
823
|
getAppSchema(overrides?: CallOverrides): Promise<BigNumber>;
|
|
764
824
|
|
|
765
825
|
getAppSchemaId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -835,6 +895,16 @@ export interface IAppRegistry extends BaseContract {
|
|
|
835
895
|
overrides?: CallOverrides
|
|
836
896
|
): Promise<PopulatedTransaction>;
|
|
837
897
|
|
|
898
|
+
getAppDuration(
|
|
899
|
+
app: PromiseOrValue<string>,
|
|
900
|
+
overrides?: CallOverrides
|
|
901
|
+
): Promise<PopulatedTransaction>;
|
|
902
|
+
|
|
903
|
+
getAppPrice(
|
|
904
|
+
app: PromiseOrValue<string>,
|
|
905
|
+
overrides?: CallOverrides
|
|
906
|
+
): Promise<PopulatedTransaction>;
|
|
907
|
+
|
|
838
908
|
getAppSchema(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
839
909
|
|
|
840
910
|
getAppSchemaId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -62,11 +62,31 @@ export declare namespace ISwapRouterBase {
|
|
|
62
62
|
approveTarget: string;
|
|
63
63
|
swapData: string;
|
|
64
64
|
};
|
|
65
|
+
|
|
66
|
+
export type Permit2ParamsStruct = {
|
|
67
|
+
owner: PromiseOrValue<string>;
|
|
68
|
+
nonce: PromiseOrValue<BigNumberish>;
|
|
69
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
70
|
+
signature: PromiseOrValue<BytesLike>;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type Permit2ParamsStructOutput = [
|
|
74
|
+
string,
|
|
75
|
+
BigNumber,
|
|
76
|
+
BigNumber,
|
|
77
|
+
string
|
|
78
|
+
] & {
|
|
79
|
+
owner: string;
|
|
80
|
+
nonce: BigNumber;
|
|
81
|
+
deadline: BigNumber;
|
|
82
|
+
signature: string;
|
|
83
|
+
};
|
|
65
84
|
}
|
|
66
85
|
|
|
67
86
|
export interface ISwapFacetInterface extends utils.Interface {
|
|
68
87
|
functions: {
|
|
69
88
|
"executeSwap((address,address,uint256,uint256,address),(address,address,bytes),address)": FunctionFragment;
|
|
89
|
+
"executeSwapWithPermit((address,address,uint256,uint256,address),(address,address,bytes),(address,uint256,uint256,bytes),address)": FunctionFragment;
|
|
70
90
|
"getSwapFees()": FunctionFragment;
|
|
71
91
|
"getSwapRouter()": FunctionFragment;
|
|
72
92
|
"setSwapFeeConfig(uint16,bool)": FunctionFragment;
|
|
@@ -75,6 +95,7 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
75
95
|
getFunction(
|
|
76
96
|
nameOrSignatureOrTopic:
|
|
77
97
|
| "executeSwap"
|
|
98
|
+
| "executeSwapWithPermit"
|
|
78
99
|
| "getSwapFees"
|
|
79
100
|
| "getSwapRouter"
|
|
80
101
|
| "setSwapFeeConfig"
|
|
@@ -88,6 +109,15 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
88
109
|
PromiseOrValue<string>
|
|
89
110
|
]
|
|
90
111
|
): string;
|
|
112
|
+
encodeFunctionData(
|
|
113
|
+
functionFragment: "executeSwapWithPermit",
|
|
114
|
+
values: [
|
|
115
|
+
ISwapRouterBase.ExactInputParamsStruct,
|
|
116
|
+
ISwapRouterBase.RouterParamsStruct,
|
|
117
|
+
ISwapRouterBase.Permit2ParamsStruct,
|
|
118
|
+
PromiseOrValue<string>
|
|
119
|
+
]
|
|
120
|
+
): string;
|
|
91
121
|
encodeFunctionData(
|
|
92
122
|
functionFragment: "getSwapFees",
|
|
93
123
|
values?: undefined
|
|
@@ -105,6 +135,10 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
105
135
|
functionFragment: "executeSwap",
|
|
106
136
|
data: BytesLike
|
|
107
137
|
): Result;
|
|
138
|
+
decodeFunctionResult(
|
|
139
|
+
functionFragment: "executeSwapWithPermit",
|
|
140
|
+
data: BytesLike
|
|
141
|
+
): Result;
|
|
108
142
|
decodeFunctionResult(
|
|
109
143
|
functionFragment: "getSwapFees",
|
|
110
144
|
data: BytesLike
|
|
@@ -180,7 +214,7 @@ export type SwapExecutedEventFilter = TypedEventFilter<SwapExecutedEvent>;
|
|
|
180
214
|
|
|
181
215
|
export interface SwapFeeConfigUpdatedEventObject {
|
|
182
216
|
posterFeeBps: number;
|
|
183
|
-
|
|
217
|
+
forwardPosterFee: boolean;
|
|
184
218
|
}
|
|
185
219
|
export type SwapFeeConfigUpdatedEvent = TypedEvent<
|
|
186
220
|
[number, boolean],
|
|
@@ -235,13 +269,21 @@ export interface ISwapFacet extends BaseContract {
|
|
|
235
269
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
236
270
|
): Promise<ContractTransaction>;
|
|
237
271
|
|
|
272
|
+
executeSwapWithPermit(
|
|
273
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
274
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
275
|
+
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
276
|
+
poster: PromiseOrValue<string>,
|
|
277
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
278
|
+
): Promise<ContractTransaction>;
|
|
279
|
+
|
|
238
280
|
getSwapFees(
|
|
239
281
|
overrides?: CallOverrides
|
|
240
282
|
): Promise<
|
|
241
283
|
[number, number, boolean] & {
|
|
242
284
|
protocolBps: number;
|
|
243
285
|
posterBps: number;
|
|
244
|
-
|
|
286
|
+
forwardPosterFee: boolean;
|
|
245
287
|
}
|
|
246
288
|
>;
|
|
247
289
|
|
|
@@ -249,7 +291,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
249
291
|
|
|
250
292
|
setSwapFeeConfig(
|
|
251
293
|
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
252
|
-
|
|
294
|
+
forwardPosterFee: PromiseOrValue<boolean>,
|
|
253
295
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
254
296
|
): Promise<ContractTransaction>;
|
|
255
297
|
};
|
|
@@ -261,13 +303,21 @@ export interface ISwapFacet extends BaseContract {
|
|
|
261
303
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
262
304
|
): Promise<ContractTransaction>;
|
|
263
305
|
|
|
306
|
+
executeSwapWithPermit(
|
|
307
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
308
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
309
|
+
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
310
|
+
poster: PromiseOrValue<string>,
|
|
311
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
312
|
+
): Promise<ContractTransaction>;
|
|
313
|
+
|
|
264
314
|
getSwapFees(
|
|
265
315
|
overrides?: CallOverrides
|
|
266
316
|
): Promise<
|
|
267
317
|
[number, number, boolean] & {
|
|
268
318
|
protocolBps: number;
|
|
269
319
|
posterBps: number;
|
|
270
|
-
|
|
320
|
+
forwardPosterFee: boolean;
|
|
271
321
|
}
|
|
272
322
|
>;
|
|
273
323
|
|
|
@@ -275,7 +325,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
275
325
|
|
|
276
326
|
setSwapFeeConfig(
|
|
277
327
|
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
278
|
-
|
|
328
|
+
forwardPosterFee: PromiseOrValue<boolean>,
|
|
279
329
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
280
330
|
): Promise<ContractTransaction>;
|
|
281
331
|
|
|
@@ -287,13 +337,21 @@ export interface ISwapFacet extends BaseContract {
|
|
|
287
337
|
overrides?: CallOverrides
|
|
288
338
|
): Promise<BigNumber>;
|
|
289
339
|
|
|
340
|
+
executeSwapWithPermit(
|
|
341
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
342
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
343
|
+
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
344
|
+
poster: PromiseOrValue<string>,
|
|
345
|
+
overrides?: CallOverrides
|
|
346
|
+
): Promise<BigNumber>;
|
|
347
|
+
|
|
290
348
|
getSwapFees(
|
|
291
349
|
overrides?: CallOverrides
|
|
292
350
|
): Promise<
|
|
293
351
|
[number, number, boolean] & {
|
|
294
352
|
protocolBps: number;
|
|
295
353
|
posterBps: number;
|
|
296
|
-
|
|
354
|
+
forwardPosterFee: boolean;
|
|
297
355
|
}
|
|
298
356
|
>;
|
|
299
357
|
|
|
@@ -301,7 +359,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
301
359
|
|
|
302
360
|
setSwapFeeConfig(
|
|
303
361
|
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
304
|
-
|
|
362
|
+
forwardPosterFee: PromiseOrValue<boolean>,
|
|
305
363
|
overrides?: CallOverrides
|
|
306
364
|
): Promise<void>;
|
|
307
365
|
};
|
|
@@ -360,11 +418,11 @@ export interface ISwapFacet extends BaseContract {
|
|
|
360
418
|
|
|
361
419
|
"SwapFeeConfigUpdated(uint16,bool)"(
|
|
362
420
|
posterFeeBps?: null,
|
|
363
|
-
|
|
421
|
+
forwardPosterFee?: null
|
|
364
422
|
): SwapFeeConfigUpdatedEventFilter;
|
|
365
423
|
SwapFeeConfigUpdated(
|
|
366
424
|
posterFeeBps?: null,
|
|
367
|
-
|
|
425
|
+
forwardPosterFee?: null
|
|
368
426
|
): SwapFeeConfigUpdatedEventFilter;
|
|
369
427
|
|
|
370
428
|
"SwapRouterInitialized(address)"(
|
|
@@ -383,13 +441,21 @@ export interface ISwapFacet extends BaseContract {
|
|
|
383
441
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
384
442
|
): Promise<BigNumber>;
|
|
385
443
|
|
|
444
|
+
executeSwapWithPermit(
|
|
445
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
446
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
447
|
+
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
448
|
+
poster: PromiseOrValue<string>,
|
|
449
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
450
|
+
): Promise<BigNumber>;
|
|
451
|
+
|
|
386
452
|
getSwapFees(overrides?: CallOverrides): Promise<BigNumber>;
|
|
387
453
|
|
|
388
454
|
getSwapRouter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
389
455
|
|
|
390
456
|
setSwapFeeConfig(
|
|
391
457
|
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
392
|
-
|
|
458
|
+
forwardPosterFee: PromiseOrValue<boolean>,
|
|
393
459
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
394
460
|
): Promise<BigNumber>;
|
|
395
461
|
};
|
|
@@ -402,13 +468,21 @@ export interface ISwapFacet extends BaseContract {
|
|
|
402
468
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
403
469
|
): Promise<PopulatedTransaction>;
|
|
404
470
|
|
|
471
|
+
executeSwapWithPermit(
|
|
472
|
+
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
473
|
+
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
474
|
+
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
475
|
+
poster: PromiseOrValue<string>,
|
|
476
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
477
|
+
): Promise<PopulatedTransaction>;
|
|
478
|
+
|
|
405
479
|
getSwapFees(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
406
480
|
|
|
407
481
|
getSwapRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
408
482
|
|
|
409
483
|
setSwapFeeConfig(
|
|
410
484
|
posterFeeBps: PromiseOrValue<BigNumberish>,
|
|
411
|
-
|
|
485
|
+
forwardPosterFee: PromiseOrValue<boolean>,
|
|
412
486
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
413
487
|
): Promise<PopulatedTransaction>;
|
|
414
488
|
};
|