@towns-protocol/generated 0.0.359 → 0.0.360
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/.contracts-hash +1 -1
- package/dev/abis/SubscriptionModuleFacet.abi.json +24 -0
- package/dev/abis/SubscriptionModuleFacet.abi.ts +24 -0
- package/dev/typings/Architect.ts +88 -101
- package/dev/typings/Channels.ts +161 -176
- package/dev/typings/DropFacet.ts +121 -129
- package/dev/typings/EntitlementsManager.ts +75 -80
- package/dev/typings/GuardianFacet.ts +54 -57
- package/dev/typings/IAppAccount.ts +160 -229
- package/dev/typings/IAppRegistry.ts +245 -347
- package/dev/typings/IArchitect.ts +55 -61
- package/dev/typings/IBanning.ts +34 -50
- package/dev/typings/IChannel.ts +123 -136
- package/dev/typings/ICreateSpace.ts +68 -69
- package/dev/typings/ICrossChainEntitlement.ts +14 -15
- package/dev/typings/IDiamond.ts +0 -1
- package/dev/typings/IDiamondCut.ts +20 -25
- package/dev/typings/IDropFacet.ts +99 -105
- package/dev/typings/IERC5267.ts +0 -1
- package/dev/typings/IERC721A.ts +152 -190
- package/dev/typings/IERC721AQueryable.ts +60 -71
- package/dev/typings/IEntitlementChecker.ts +98 -134
- package/dev/typings/IEntitlementDataQueryable.ts +30 -31
- package/dev/typings/IEntitlementsManager.ts +71 -76
- package/dev/typings/IMembershipMetadata.ts +10 -17
- package/dev/typings/IMockLegacyArchitect.sol/ILegacyArchitect.ts +36 -40
- package/dev/typings/IMulticall.ts +10 -14
- package/dev/typings/INodeOperator.ts +88 -109
- package/dev/typings/INodeRegistry.ts +86 -122
- package/dev/typings/IOperatorRegistry.ts +30 -54
- package/dev/typings/IPausable.ts +8 -13
- package/dev/typings/IPricingModules.ts +35 -44
- package/dev/typings/IProxyManager.ts +16 -17
- package/dev/typings/IReview.ts +31 -42
- package/dev/typings/IRoles.ts +191 -206
- package/dev/typings/IRuleEntitlement.sol/IRuleEntitlement.ts +71 -85
- package/dev/typings/IRuleEntitlement.sol/IRuleEntitlementV2.ts +71 -85
- package/dev/typings/ISpaceDelegation.ts +61 -67
- package/dev/typings/IStreamRegistry.ts +160 -182
- package/dev/typings/ISwapFacet.ts +58 -62
- package/dev/typings/ISwapRouter.ts +82 -90
- package/dev/typings/ITipping.ts +37 -38
- package/dev/typings/ITownsPoints.ts +54 -72
- package/dev/typings/ITreasury.ts +95 -119
- package/dev/typings/IWalletLink.ts +169 -186
- package/dev/typings/MainnetDelegation.ts +98 -103
- package/dev/typings/Member.ts +242 -314
- package/dev/typings/MembershipFacet.ts +208 -217
- package/dev/typings/MockERC721A.ts +206 -261
- package/dev/typings/MockEntitlementGated.ts +159 -186
- package/dev/typings/MockLegacyArchitect.ts +44 -50
- package/dev/typings/NodeRegistry.ts +86 -122
- package/dev/typings/OperatorRegistry.ts +48 -74
- package/dev/typings/OwnableFacet.ts +28 -34
- package/dev/typings/PlatformRequirementsFacet.ts +148 -151
- package/dev/typings/PrepayFacet.ts +28 -31
- package/dev/typings/RewardsDistributionV2.ts +393 -423
- package/dev/typings/Roles.ts +195 -210
- package/dev/typings/SimpleApp.ts +147 -163
- package/dev/typings/SpaceOwner.ts +383 -486
- package/dev/typings/StreamRegistry.ts +160 -182
- package/dev/typings/SubscriptionModuleFacet.ts +318 -375
- package/dev/typings/TokenPausableFacet.ts +20 -27
- package/dev/typings/Towns.ts +403 -477
- package/dev/typings/UserEntitlement.ts +80 -95
- package/dev/typings/WalletLink.ts +187 -203
- package/dev/typings/common.ts +0 -2
- package/dev/typings/factories/Architect__factory.ts +2 -3
- package/dev/typings/factories/Channels__factory.ts +2 -3
- package/dev/typings/factories/DropFacet__factory.ts +2 -3
- package/dev/typings/factories/EntitlementsManager__factory.ts +2 -3
- package/dev/typings/factories/GuardianFacet__factory.ts +2 -3
- package/dev/typings/factories/MainnetDelegation__factory.ts +2 -3
- package/dev/typings/factories/Member__factory.ts +10 -11
- package/dev/typings/factories/MembershipFacet__factory.ts +2 -3
- package/dev/typings/factories/MockERC721A__factory.ts +2 -3
- package/dev/typings/factories/MockEntitlementGated__factory.ts +4 -5
- package/dev/typings/factories/MockLegacyArchitect__factory.ts +2 -3
- package/dev/typings/factories/NodeRegistry__factory.ts +2 -3
- package/dev/typings/factories/OperatorRegistry__factory.ts +2 -3
- package/dev/typings/factories/OwnableFacet__factory.ts +2 -3
- package/dev/typings/factories/PlatformRequirementsFacet__factory.ts +2 -3
- package/dev/typings/factories/PrepayFacet__factory.ts +2 -3
- package/dev/typings/factories/RewardsDistributionV2__factory.ts +2 -3
- package/dev/typings/factories/Roles__factory.ts +2 -5
- package/dev/typings/factories/SimpleApp__factory.ts +2 -3
- package/dev/typings/factories/SpaceOwner__factory.ts +2 -3
- package/dev/typings/factories/StreamRegistry__factory.ts +2 -3
- package/dev/typings/factories/SubscriptionModuleFacet__factory.ts +27 -4
- package/dev/typings/factories/TokenPausableFacet__factory.ts +2 -3
- package/dev/typings/factories/Towns__factory.ts +2 -5
- package/dev/typings/factories/UserEntitlement__factory.ts +2 -3
- package/dev/typings/factories/WalletLink__factory.ts +2 -3
- package/dev/typings/factories/mainnet/Towns__factory.ts +6 -7
- package/dev/typings/factories/multichain/Towns__factory.ts +10 -11
- package/dev/typings/mainnet/Towns.ts +427 -506
- package/dev/typings/multichain/Towns.ts +318 -378
- package/package.json +9 -5
|
@@ -25,16 +25,15 @@ import type {
|
|
|
25
25
|
TypedEvent,
|
|
26
26
|
TypedListener,
|
|
27
27
|
OnEvent,
|
|
28
|
-
PromiseOrValue,
|
|
29
28
|
} from "./common";
|
|
30
29
|
|
|
31
30
|
export declare namespace ISwapRouterBase {
|
|
32
31
|
export type ExactInputParamsStruct = {
|
|
33
|
-
tokenIn:
|
|
34
|
-
tokenOut:
|
|
35
|
-
amountIn:
|
|
36
|
-
minAmountOut:
|
|
37
|
-
recipient:
|
|
32
|
+
tokenIn: string;
|
|
33
|
+
tokenOut: string;
|
|
34
|
+
amountIn: BigNumberish;
|
|
35
|
+
minAmountOut: BigNumberish;
|
|
36
|
+
recipient: string;
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
export type ExactInputParamsStructOutput = [
|
|
@@ -52,9 +51,9 @@ export declare namespace ISwapRouterBase {
|
|
|
52
51
|
};
|
|
53
52
|
|
|
54
53
|
export type RouterParamsStruct = {
|
|
55
|
-
router:
|
|
56
|
-
approveTarget:
|
|
57
|
-
swapData:
|
|
54
|
+
router: string;
|
|
55
|
+
approveTarget: string;
|
|
56
|
+
swapData: BytesLike;
|
|
58
57
|
};
|
|
59
58
|
|
|
60
59
|
export type RouterParamsStructOutput = [string, string, string] & {
|
|
@@ -63,10 +62,7 @@ export declare namespace ISwapRouterBase {
|
|
|
63
62
|
swapData: string;
|
|
64
63
|
};
|
|
65
64
|
|
|
66
|
-
export type FeeConfigStruct = {
|
|
67
|
-
recipient: PromiseOrValue<string>;
|
|
68
|
-
feeBps: PromiseOrValue<BigNumberish>;
|
|
69
|
-
};
|
|
65
|
+
export type FeeConfigStruct = { recipient: string; feeBps: BigNumberish };
|
|
70
66
|
|
|
71
67
|
export type FeeConfigStructOutput = [string, number] & {
|
|
72
68
|
recipient: string;
|
|
@@ -74,10 +70,10 @@ export declare namespace ISwapRouterBase {
|
|
|
74
70
|
};
|
|
75
71
|
|
|
76
72
|
export type Permit2ParamsStruct = {
|
|
77
|
-
owner:
|
|
78
|
-
nonce:
|
|
79
|
-
deadline:
|
|
80
|
-
signature:
|
|
73
|
+
owner: string;
|
|
74
|
+
nonce: BigNumberish;
|
|
75
|
+
deadline: BigNumberish;
|
|
76
|
+
signature: BytesLike;
|
|
81
77
|
};
|
|
82
78
|
|
|
83
79
|
export type Permit2ParamsStructOutput = [
|
|
@@ -116,7 +112,7 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
116
112
|
values: [
|
|
117
113
|
ISwapRouterBase.ExactInputParamsStruct,
|
|
118
114
|
ISwapRouterBase.RouterParamsStruct,
|
|
119
|
-
|
|
115
|
+
string
|
|
120
116
|
]
|
|
121
117
|
): string;
|
|
122
118
|
encodeFunctionData(
|
|
@@ -138,7 +134,7 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
138
134
|
): string;
|
|
139
135
|
encodeFunctionData(
|
|
140
136
|
functionFragment: "setSwapFeeConfig",
|
|
141
|
-
values: [
|
|
137
|
+
values: [BigNumberish, boolean]
|
|
142
138
|
): string;
|
|
143
139
|
|
|
144
140
|
decodeFunctionResult(
|
|
@@ -275,8 +271,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
275
271
|
executeSwap(
|
|
276
272
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
277
273
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
278
|
-
poster:
|
|
279
|
-
overrides?: PayableOverrides & { from?:
|
|
274
|
+
poster: string,
|
|
275
|
+
overrides?: PayableOverrides & { from?: string }
|
|
280
276
|
): Promise<ContractTransaction>;
|
|
281
277
|
|
|
282
278
|
executeSwapWithPermit(
|
|
@@ -284,7 +280,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
284
280
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
285
281
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
286
282
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
287
|
-
overrides?: PayableOverrides & { from?:
|
|
283
|
+
overrides?: PayableOverrides & { from?: string }
|
|
288
284
|
): Promise<ContractTransaction>;
|
|
289
285
|
|
|
290
286
|
getSwapFees(
|
|
@@ -300,17 +296,17 @@ export interface ISwapFacet extends BaseContract {
|
|
|
300
296
|
getSwapRouter(overrides?: CallOverrides): Promise<[string]>;
|
|
301
297
|
|
|
302
298
|
setSwapFeeConfig(
|
|
303
|
-
posterFeeBps:
|
|
304
|
-
forwardPosterFee:
|
|
305
|
-
overrides?: Overrides & { from?:
|
|
299
|
+
posterFeeBps: BigNumberish,
|
|
300
|
+
forwardPosterFee: boolean,
|
|
301
|
+
overrides?: Overrides & { from?: string }
|
|
306
302
|
): Promise<ContractTransaction>;
|
|
307
303
|
};
|
|
308
304
|
|
|
309
305
|
executeSwap(
|
|
310
306
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
311
307
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
312
|
-
poster:
|
|
313
|
-
overrides?: PayableOverrides & { from?:
|
|
308
|
+
poster: string,
|
|
309
|
+
overrides?: PayableOverrides & { from?: string }
|
|
314
310
|
): Promise<ContractTransaction>;
|
|
315
311
|
|
|
316
312
|
executeSwapWithPermit(
|
|
@@ -318,7 +314,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
318
314
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
319
315
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
320
316
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
321
|
-
overrides?: PayableOverrides & { from?:
|
|
317
|
+
overrides?: PayableOverrides & { from?: string }
|
|
322
318
|
): Promise<ContractTransaction>;
|
|
323
319
|
|
|
324
320
|
getSwapFees(
|
|
@@ -334,16 +330,16 @@ export interface ISwapFacet extends BaseContract {
|
|
|
334
330
|
getSwapRouter(overrides?: CallOverrides): Promise<string>;
|
|
335
331
|
|
|
336
332
|
setSwapFeeConfig(
|
|
337
|
-
posterFeeBps:
|
|
338
|
-
forwardPosterFee:
|
|
339
|
-
overrides?: Overrides & { from?:
|
|
333
|
+
posterFeeBps: BigNumberish,
|
|
334
|
+
forwardPosterFee: boolean,
|
|
335
|
+
overrides?: Overrides & { from?: string }
|
|
340
336
|
): Promise<ContractTransaction>;
|
|
341
337
|
|
|
342
338
|
callStatic: {
|
|
343
339
|
executeSwap(
|
|
344
340
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
345
341
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
346
|
-
poster:
|
|
342
|
+
poster: string,
|
|
347
343
|
overrides?: CallOverrides
|
|
348
344
|
): Promise<BigNumber>;
|
|
349
345
|
|
|
@@ -368,31 +364,31 @@ export interface ISwapFacet extends BaseContract {
|
|
|
368
364
|
getSwapRouter(overrides?: CallOverrides): Promise<string>;
|
|
369
365
|
|
|
370
366
|
setSwapFeeConfig(
|
|
371
|
-
posterFeeBps:
|
|
372
|
-
forwardPosterFee:
|
|
367
|
+
posterFeeBps: BigNumberish,
|
|
368
|
+
forwardPosterFee: boolean,
|
|
373
369
|
overrides?: CallOverrides
|
|
374
370
|
): Promise<void>;
|
|
375
371
|
};
|
|
376
372
|
|
|
377
373
|
filters: {
|
|
378
374
|
"FeeDistribution(address,address,address,uint256,uint256)"(
|
|
379
|
-
token?:
|
|
380
|
-
protocol?:
|
|
381
|
-
poster?:
|
|
375
|
+
token?: string | null,
|
|
376
|
+
protocol?: string | null,
|
|
377
|
+
poster?: string | null,
|
|
382
378
|
protocolAmount?: null,
|
|
383
379
|
posterAmount?: null
|
|
384
380
|
): FeeDistributionEventFilter;
|
|
385
381
|
FeeDistribution(
|
|
386
|
-
token?:
|
|
387
|
-
protocol?:
|
|
388
|
-
poster?:
|
|
382
|
+
token?: string | null,
|
|
383
|
+
protocol?: string | null,
|
|
384
|
+
poster?: string | null,
|
|
389
385
|
protocolAmount?: null,
|
|
390
386
|
posterAmount?: null
|
|
391
387
|
): FeeDistributionEventFilter;
|
|
392
388
|
|
|
393
389
|
"Swap(address,address,address,address,uint256,uint256,address)"(
|
|
394
|
-
router?:
|
|
395
|
-
caller?:
|
|
390
|
+
router?: string | null,
|
|
391
|
+
caller?: string | null,
|
|
396
392
|
tokenIn?: null,
|
|
397
393
|
tokenOut?: null,
|
|
398
394
|
amountIn?: null,
|
|
@@ -400,8 +396,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
400
396
|
recipient?: null
|
|
401
397
|
): SwapEventFilter;
|
|
402
398
|
Swap(
|
|
403
|
-
router?:
|
|
404
|
-
caller?:
|
|
399
|
+
router?: string | null,
|
|
400
|
+
caller?: string | null,
|
|
405
401
|
tokenIn?: null,
|
|
406
402
|
tokenOut?: null,
|
|
407
403
|
amountIn?: null,
|
|
@@ -410,17 +406,17 @@ export interface ISwapFacet extends BaseContract {
|
|
|
410
406
|
): SwapEventFilter;
|
|
411
407
|
|
|
412
408
|
"SwapExecuted(address,address,address,uint256,uint256,address)"(
|
|
413
|
-
recipient?:
|
|
414
|
-
tokenIn?:
|
|
415
|
-
tokenOut?:
|
|
409
|
+
recipient?: string | null,
|
|
410
|
+
tokenIn?: string | null,
|
|
411
|
+
tokenOut?: string | null,
|
|
416
412
|
amountIn?: null,
|
|
417
413
|
amountOut?: null,
|
|
418
414
|
poster?: null
|
|
419
415
|
): SwapExecutedEventFilter;
|
|
420
416
|
SwapExecuted(
|
|
421
|
-
recipient?:
|
|
422
|
-
tokenIn?:
|
|
423
|
-
tokenOut?:
|
|
417
|
+
recipient?: string | null,
|
|
418
|
+
tokenIn?: string | null,
|
|
419
|
+
tokenOut?: string | null,
|
|
424
420
|
amountIn?: null,
|
|
425
421
|
amountOut?: null,
|
|
426
422
|
poster?: null
|
|
@@ -447,8 +443,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
447
443
|
executeSwap(
|
|
448
444
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
449
445
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
450
|
-
poster:
|
|
451
|
-
overrides?: PayableOverrides & { from?:
|
|
446
|
+
poster: string,
|
|
447
|
+
overrides?: PayableOverrides & { from?: string }
|
|
452
448
|
): Promise<BigNumber>;
|
|
453
449
|
|
|
454
450
|
executeSwapWithPermit(
|
|
@@ -456,7 +452,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
456
452
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
457
453
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
458
454
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
459
|
-
overrides?: PayableOverrides & { from?:
|
|
455
|
+
overrides?: PayableOverrides & { from?: string }
|
|
460
456
|
): Promise<BigNumber>;
|
|
461
457
|
|
|
462
458
|
getSwapFees(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -464,9 +460,9 @@ export interface ISwapFacet extends BaseContract {
|
|
|
464
460
|
getSwapRouter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
465
461
|
|
|
466
462
|
setSwapFeeConfig(
|
|
467
|
-
posterFeeBps:
|
|
468
|
-
forwardPosterFee:
|
|
469
|
-
overrides?: Overrides & { from?:
|
|
463
|
+
posterFeeBps: BigNumberish,
|
|
464
|
+
forwardPosterFee: boolean,
|
|
465
|
+
overrides?: Overrides & { from?: string }
|
|
470
466
|
): Promise<BigNumber>;
|
|
471
467
|
};
|
|
472
468
|
|
|
@@ -474,8 +470,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
474
470
|
executeSwap(
|
|
475
471
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
476
472
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
477
|
-
poster:
|
|
478
|
-
overrides?: PayableOverrides & { from?:
|
|
473
|
+
poster: string,
|
|
474
|
+
overrides?: PayableOverrides & { from?: string }
|
|
479
475
|
): Promise<PopulatedTransaction>;
|
|
480
476
|
|
|
481
477
|
executeSwapWithPermit(
|
|
@@ -483,7 +479,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
483
479
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
484
480
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
485
481
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
486
|
-
overrides?: PayableOverrides & { from?:
|
|
482
|
+
overrides?: PayableOverrides & { from?: string }
|
|
487
483
|
): Promise<PopulatedTransaction>;
|
|
488
484
|
|
|
489
485
|
getSwapFees(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -491,9 +487,9 @@ export interface ISwapFacet extends BaseContract {
|
|
|
491
487
|
getSwapRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
492
488
|
|
|
493
489
|
setSwapFeeConfig(
|
|
494
|
-
posterFeeBps:
|
|
495
|
-
forwardPosterFee:
|
|
496
|
-
overrides?: Overrides & { from?:
|
|
490
|
+
posterFeeBps: BigNumberish,
|
|
491
|
+
forwardPosterFee: boolean,
|
|
492
|
+
overrides?: Overrides & { from?: string }
|
|
497
493
|
): Promise<PopulatedTransaction>;
|
|
498
494
|
};
|
|
499
495
|
}
|
|
@@ -24,16 +24,15 @@ import type {
|
|
|
24
24
|
TypedEvent,
|
|
25
25
|
TypedListener,
|
|
26
26
|
OnEvent,
|
|
27
|
-
PromiseOrValue,
|
|
28
27
|
} from "./common";
|
|
29
28
|
|
|
30
29
|
export declare namespace ISwapRouterBase {
|
|
31
30
|
export type ExactInputParamsStruct = {
|
|
32
|
-
tokenIn:
|
|
33
|
-
tokenOut:
|
|
34
|
-
amountIn:
|
|
35
|
-
minAmountOut:
|
|
36
|
-
recipient:
|
|
31
|
+
tokenIn: string;
|
|
32
|
+
tokenOut: string;
|
|
33
|
+
amountIn: BigNumberish;
|
|
34
|
+
minAmountOut: BigNumberish;
|
|
35
|
+
recipient: string;
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
export type ExactInputParamsStructOutput = [
|
|
@@ -51,9 +50,9 @@ export declare namespace ISwapRouterBase {
|
|
|
51
50
|
};
|
|
52
51
|
|
|
53
52
|
export type RouterParamsStruct = {
|
|
54
|
-
router:
|
|
55
|
-
approveTarget:
|
|
56
|
-
swapData:
|
|
53
|
+
router: string;
|
|
54
|
+
approveTarget: string;
|
|
55
|
+
swapData: BytesLike;
|
|
57
56
|
};
|
|
58
57
|
|
|
59
58
|
export type RouterParamsStructOutput = [string, string, string] & {
|
|
@@ -62,10 +61,7 @@ export declare namespace ISwapRouterBase {
|
|
|
62
61
|
swapData: string;
|
|
63
62
|
};
|
|
64
63
|
|
|
65
|
-
export type FeeConfigStruct = {
|
|
66
|
-
recipient: PromiseOrValue<string>;
|
|
67
|
-
feeBps: PromiseOrValue<BigNumberish>;
|
|
68
|
-
};
|
|
64
|
+
export type FeeConfigStruct = { recipient: string; feeBps: BigNumberish };
|
|
69
65
|
|
|
70
66
|
export type FeeConfigStructOutput = [string, number] & {
|
|
71
67
|
recipient: string;
|
|
@@ -73,10 +69,10 @@ export declare namespace ISwapRouterBase {
|
|
|
73
69
|
};
|
|
74
70
|
|
|
75
71
|
export type Permit2ParamsStruct = {
|
|
76
|
-
owner:
|
|
77
|
-
nonce:
|
|
78
|
-
deadline:
|
|
79
|
-
signature:
|
|
72
|
+
owner: string;
|
|
73
|
+
nonce: BigNumberish;
|
|
74
|
+
deadline: BigNumberish;
|
|
75
|
+
signature: BytesLike;
|
|
80
76
|
};
|
|
81
77
|
|
|
82
78
|
export type Permit2ParamsStructOutput = [
|
|
@@ -115,7 +111,7 @@ export interface ISwapRouterInterface extends utils.Interface {
|
|
|
115
111
|
values: [
|
|
116
112
|
ISwapRouterBase.ExactInputParamsStruct,
|
|
117
113
|
ISwapRouterBase.RouterParamsStruct,
|
|
118
|
-
|
|
114
|
+
string
|
|
119
115
|
]
|
|
120
116
|
): string;
|
|
121
117
|
encodeFunctionData(
|
|
@@ -129,11 +125,7 @@ export interface ISwapRouterInterface extends utils.Interface {
|
|
|
129
125
|
): string;
|
|
130
126
|
encodeFunctionData(
|
|
131
127
|
functionFragment: "getETHInputFees",
|
|
132
|
-
values: [
|
|
133
|
-
PromiseOrValue<BigNumberish>,
|
|
134
|
-
PromiseOrValue<string>,
|
|
135
|
-
PromiseOrValue<string>
|
|
136
|
-
]
|
|
128
|
+
values: [BigNumberish, string, string]
|
|
137
129
|
): string;
|
|
138
130
|
encodeFunctionData(
|
|
139
131
|
functionFragment: "getPermit2MessageHash",
|
|
@@ -141,14 +133,14 @@ export interface ISwapRouterInterface extends utils.Interface {
|
|
|
141
133
|
ISwapRouterBase.ExactInputParamsStruct,
|
|
142
134
|
ISwapRouterBase.RouterParamsStruct,
|
|
143
135
|
ISwapRouterBase.FeeConfigStruct,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
BigNumberish,
|
|
137
|
+
BigNumberish,
|
|
138
|
+
BigNumberish
|
|
147
139
|
]
|
|
148
140
|
): string;
|
|
149
141
|
encodeFunctionData(
|
|
150
142
|
functionFragment: "getPermit2Nonce",
|
|
151
|
-
values: [
|
|
143
|
+
values: [string, BigNumberish]
|
|
152
144
|
): string;
|
|
153
145
|
|
|
154
146
|
decodeFunctionResult(
|
|
@@ -254,8 +246,8 @@ export interface ISwapRouter extends BaseContract {
|
|
|
254
246
|
executeSwap(
|
|
255
247
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
256
248
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
257
|
-
poster:
|
|
258
|
-
overrides?: PayableOverrides & { from?:
|
|
249
|
+
poster: string,
|
|
250
|
+
overrides?: PayableOverrides & { from?: string }
|
|
259
251
|
): Promise<ContractTransaction>;
|
|
260
252
|
|
|
261
253
|
executeSwapWithPermit(
|
|
@@ -263,13 +255,13 @@ export interface ISwapRouter extends BaseContract {
|
|
|
263
255
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
264
256
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
265
257
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
266
|
-
overrides?: PayableOverrides & { from?:
|
|
258
|
+
overrides?: PayableOverrides & { from?: string }
|
|
267
259
|
): Promise<ContractTransaction>;
|
|
268
260
|
|
|
269
261
|
getETHInputFees(
|
|
270
|
-
amountIn:
|
|
271
|
-
caller:
|
|
272
|
-
poster:
|
|
262
|
+
amountIn: BigNumberish,
|
|
263
|
+
caller: string,
|
|
264
|
+
poster: string,
|
|
273
265
|
overrides?: CallOverrides
|
|
274
266
|
): Promise<
|
|
275
267
|
[BigNumber, BigNumber, BigNumber] & {
|
|
@@ -283,15 +275,15 @@ export interface ISwapRouter extends BaseContract {
|
|
|
283
275
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
284
276
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
285
277
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
286
|
-
amount:
|
|
287
|
-
nonce:
|
|
288
|
-
deadline:
|
|
278
|
+
amount: BigNumberish,
|
|
279
|
+
nonce: BigNumberish,
|
|
280
|
+
deadline: BigNumberish,
|
|
289
281
|
overrides?: CallOverrides
|
|
290
282
|
): Promise<[string] & { messageHash: string }>;
|
|
291
283
|
|
|
292
284
|
getPermit2Nonce(
|
|
293
|
-
owner:
|
|
294
|
-
startNonce:
|
|
285
|
+
owner: string,
|
|
286
|
+
startNonce: BigNumberish,
|
|
295
287
|
overrides?: CallOverrides
|
|
296
288
|
): Promise<[BigNumber] & { nonce: BigNumber }>;
|
|
297
289
|
};
|
|
@@ -299,8 +291,8 @@ export interface ISwapRouter extends BaseContract {
|
|
|
299
291
|
executeSwap(
|
|
300
292
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
301
293
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
302
|
-
poster:
|
|
303
|
-
overrides?: PayableOverrides & { from?:
|
|
294
|
+
poster: string,
|
|
295
|
+
overrides?: PayableOverrides & { from?: string }
|
|
304
296
|
): Promise<ContractTransaction>;
|
|
305
297
|
|
|
306
298
|
executeSwapWithPermit(
|
|
@@ -308,13 +300,13 @@ export interface ISwapRouter extends BaseContract {
|
|
|
308
300
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
309
301
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
310
302
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
311
|
-
overrides?: PayableOverrides & { from?:
|
|
303
|
+
overrides?: PayableOverrides & { from?: string }
|
|
312
304
|
): Promise<ContractTransaction>;
|
|
313
305
|
|
|
314
306
|
getETHInputFees(
|
|
315
|
-
amountIn:
|
|
316
|
-
caller:
|
|
317
|
-
poster:
|
|
307
|
+
amountIn: BigNumberish,
|
|
308
|
+
caller: string,
|
|
309
|
+
poster: string,
|
|
318
310
|
overrides?: CallOverrides
|
|
319
311
|
): Promise<
|
|
320
312
|
[BigNumber, BigNumber, BigNumber] & {
|
|
@@ -328,15 +320,15 @@ export interface ISwapRouter extends BaseContract {
|
|
|
328
320
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
329
321
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
330
322
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
331
|
-
amount:
|
|
332
|
-
nonce:
|
|
333
|
-
deadline:
|
|
323
|
+
amount: BigNumberish,
|
|
324
|
+
nonce: BigNumberish,
|
|
325
|
+
deadline: BigNumberish,
|
|
334
326
|
overrides?: CallOverrides
|
|
335
327
|
): Promise<string>;
|
|
336
328
|
|
|
337
329
|
getPermit2Nonce(
|
|
338
|
-
owner:
|
|
339
|
-
startNonce:
|
|
330
|
+
owner: string,
|
|
331
|
+
startNonce: BigNumberish,
|
|
340
332
|
overrides?: CallOverrides
|
|
341
333
|
): Promise<BigNumber>;
|
|
342
334
|
|
|
@@ -344,7 +336,7 @@ export interface ISwapRouter extends BaseContract {
|
|
|
344
336
|
executeSwap(
|
|
345
337
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
346
338
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
347
|
-
poster:
|
|
339
|
+
poster: string,
|
|
348
340
|
overrides?: CallOverrides
|
|
349
341
|
): Promise<
|
|
350
342
|
[BigNumber, BigNumber] & { amountOut: BigNumber; protocolFee: BigNumber }
|
|
@@ -361,9 +353,9 @@ export interface ISwapRouter extends BaseContract {
|
|
|
361
353
|
>;
|
|
362
354
|
|
|
363
355
|
getETHInputFees(
|
|
364
|
-
amountIn:
|
|
365
|
-
caller:
|
|
366
|
-
poster:
|
|
356
|
+
amountIn: BigNumberish,
|
|
357
|
+
caller: string,
|
|
358
|
+
poster: string,
|
|
367
359
|
overrides?: CallOverrides
|
|
368
360
|
): Promise<
|
|
369
361
|
[BigNumber, BigNumber, BigNumber] & {
|
|
@@ -377,38 +369,38 @@ export interface ISwapRouter extends BaseContract {
|
|
|
377
369
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
378
370
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
379
371
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
380
|
-
amount:
|
|
381
|
-
nonce:
|
|
382
|
-
deadline:
|
|
372
|
+
amount: BigNumberish,
|
|
373
|
+
nonce: BigNumberish,
|
|
374
|
+
deadline: BigNumberish,
|
|
383
375
|
overrides?: CallOverrides
|
|
384
376
|
): Promise<string>;
|
|
385
377
|
|
|
386
378
|
getPermit2Nonce(
|
|
387
|
-
owner:
|
|
388
|
-
startNonce:
|
|
379
|
+
owner: string,
|
|
380
|
+
startNonce: BigNumberish,
|
|
389
381
|
overrides?: CallOverrides
|
|
390
382
|
): Promise<BigNumber>;
|
|
391
383
|
};
|
|
392
384
|
|
|
393
385
|
filters: {
|
|
394
386
|
"FeeDistribution(address,address,address,uint256,uint256)"(
|
|
395
|
-
token?:
|
|
396
|
-
protocol?:
|
|
397
|
-
poster?:
|
|
387
|
+
token?: string | null,
|
|
388
|
+
protocol?: string | null,
|
|
389
|
+
poster?: string | null,
|
|
398
390
|
protocolAmount?: null,
|
|
399
391
|
posterAmount?: null
|
|
400
392
|
): FeeDistributionEventFilter;
|
|
401
393
|
FeeDistribution(
|
|
402
|
-
token?:
|
|
403
|
-
protocol?:
|
|
404
|
-
poster?:
|
|
394
|
+
token?: string | null,
|
|
395
|
+
protocol?: string | null,
|
|
396
|
+
poster?: string | null,
|
|
405
397
|
protocolAmount?: null,
|
|
406
398
|
posterAmount?: null
|
|
407
399
|
): FeeDistributionEventFilter;
|
|
408
400
|
|
|
409
401
|
"Swap(address,address,address,address,uint256,uint256,address)"(
|
|
410
|
-
router?:
|
|
411
|
-
caller?:
|
|
402
|
+
router?: string | null,
|
|
403
|
+
caller?: string | null,
|
|
412
404
|
tokenIn?: null,
|
|
413
405
|
tokenOut?: null,
|
|
414
406
|
amountIn?: null,
|
|
@@ -416,8 +408,8 @@ export interface ISwapRouter extends BaseContract {
|
|
|
416
408
|
recipient?: null
|
|
417
409
|
): SwapEventFilter;
|
|
418
410
|
Swap(
|
|
419
|
-
router?:
|
|
420
|
-
caller?:
|
|
411
|
+
router?: string | null,
|
|
412
|
+
caller?: string | null,
|
|
421
413
|
tokenIn?: null,
|
|
422
414
|
tokenOut?: null,
|
|
423
415
|
amountIn?: null,
|
|
@@ -437,8 +429,8 @@ export interface ISwapRouter extends BaseContract {
|
|
|
437
429
|
executeSwap(
|
|
438
430
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
439
431
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
440
|
-
poster:
|
|
441
|
-
overrides?: PayableOverrides & { from?:
|
|
432
|
+
poster: string,
|
|
433
|
+
overrides?: PayableOverrides & { from?: string }
|
|
442
434
|
): Promise<BigNumber>;
|
|
443
435
|
|
|
444
436
|
executeSwapWithPermit(
|
|
@@ -446,13 +438,13 @@ export interface ISwapRouter extends BaseContract {
|
|
|
446
438
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
447
439
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
448
440
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
449
|
-
overrides?: PayableOverrides & { from?:
|
|
441
|
+
overrides?: PayableOverrides & { from?: string }
|
|
450
442
|
): Promise<BigNumber>;
|
|
451
443
|
|
|
452
444
|
getETHInputFees(
|
|
453
|
-
amountIn:
|
|
454
|
-
caller:
|
|
455
|
-
poster:
|
|
445
|
+
amountIn: BigNumberish,
|
|
446
|
+
caller: string,
|
|
447
|
+
poster: string,
|
|
456
448
|
overrides?: CallOverrides
|
|
457
449
|
): Promise<BigNumber>;
|
|
458
450
|
|
|
@@ -460,15 +452,15 @@ export interface ISwapRouter extends BaseContract {
|
|
|
460
452
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
461
453
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
462
454
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
463
|
-
amount:
|
|
464
|
-
nonce:
|
|
465
|
-
deadline:
|
|
455
|
+
amount: BigNumberish,
|
|
456
|
+
nonce: BigNumberish,
|
|
457
|
+
deadline: BigNumberish,
|
|
466
458
|
overrides?: CallOverrides
|
|
467
459
|
): Promise<BigNumber>;
|
|
468
460
|
|
|
469
461
|
getPermit2Nonce(
|
|
470
|
-
owner:
|
|
471
|
-
startNonce:
|
|
462
|
+
owner: string,
|
|
463
|
+
startNonce: BigNumberish,
|
|
472
464
|
overrides?: CallOverrides
|
|
473
465
|
): Promise<BigNumber>;
|
|
474
466
|
};
|
|
@@ -477,8 +469,8 @@ export interface ISwapRouter extends BaseContract {
|
|
|
477
469
|
executeSwap(
|
|
478
470
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
479
471
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
480
|
-
poster:
|
|
481
|
-
overrides?: PayableOverrides & { from?:
|
|
472
|
+
poster: string,
|
|
473
|
+
overrides?: PayableOverrides & { from?: string }
|
|
482
474
|
): Promise<PopulatedTransaction>;
|
|
483
475
|
|
|
484
476
|
executeSwapWithPermit(
|
|
@@ -486,13 +478,13 @@ export interface ISwapRouter extends BaseContract {
|
|
|
486
478
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
487
479
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
488
480
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
489
|
-
overrides?: PayableOverrides & { from?:
|
|
481
|
+
overrides?: PayableOverrides & { from?: string }
|
|
490
482
|
): Promise<PopulatedTransaction>;
|
|
491
483
|
|
|
492
484
|
getETHInputFees(
|
|
493
|
-
amountIn:
|
|
494
|
-
caller:
|
|
495
|
-
poster:
|
|
485
|
+
amountIn: BigNumberish,
|
|
486
|
+
caller: string,
|
|
487
|
+
poster: string,
|
|
496
488
|
overrides?: CallOverrides
|
|
497
489
|
): Promise<PopulatedTransaction>;
|
|
498
490
|
|
|
@@ -500,15 +492,15 @@ export interface ISwapRouter extends BaseContract {
|
|
|
500
492
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
501
493
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
502
494
|
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
503
|
-
amount:
|
|
504
|
-
nonce:
|
|
505
|
-
deadline:
|
|
495
|
+
amount: BigNumberish,
|
|
496
|
+
nonce: BigNumberish,
|
|
497
|
+
deadline: BigNumberish,
|
|
506
498
|
overrides?: CallOverrides
|
|
507
499
|
): Promise<PopulatedTransaction>;
|
|
508
500
|
|
|
509
501
|
getPermit2Nonce(
|
|
510
|
-
owner:
|
|
511
|
-
startNonce:
|
|
502
|
+
owner: string,
|
|
503
|
+
startNonce: BigNumberish,
|
|
512
504
|
overrides?: CallOverrides
|
|
513
505
|
): Promise<PopulatedTransaction>;
|
|
514
506
|
};
|