@towns-protocol/generated 0.0.227 → 0.0.229
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/DropFacet.abi.json +11 -16
- package/dev/abis/DropFacet.abi.ts +11 -16
- package/dev/abis/IAppRegistry.abi.json +362 -0
- package/dev/abis/IAppRegistry.abi.ts +362 -0
- package/dev/abis/IAppRegistryBase.abi.json +136 -0
- package/dev/abis/IAppRegistryBase.abi.ts +136 -0
- package/dev/abis/ISwapFacet.abi.json +8 -3
- package/dev/abis/ISwapFacet.abi.ts +8 -3
- package/dev/abis/ISwapRouter.abi.json +51 -2
- package/dev/abis/ISwapRouter.abi.ts +51 -2
- package/dev/abis/ISwapRouterBase.abi.json +7 -2
- package/dev/abis/ISwapRouterBase.abi.ts +7 -2
- package/dev/abis/PlatformRequirementsFacet.abi.json +3 -3
- package/dev/abis/PlatformRequirementsFacet.abi.ts +3 -3
- package/dev/typings/DropFacet.ts +38 -36
- package/dev/typings/IAppRegistry.ts +513 -0
- package/dev/typings/IDropFacet.ts +37 -35
- package/dev/typings/ISwapFacet.ts +9 -9
- package/dev/typings/ISwapRouter.ts +78 -8
- package/dev/typings/PlatformRequirementsFacet.ts +11 -11
- package/dev/typings/factories/DropFacet__factory.ts +12 -17
- package/dev/typings/factories/IAppRegistry__factory.ts +383 -0
- package/dev/typings/factories/IDropFacet__factory.ts +10 -15
- package/dev/typings/factories/ISwapFacet__factory.ts +8 -3
- package/dev/typings/factories/ISwapRouter__factory.ts +51 -2
- package/dev/typings/factories/MembershipFacet__factory.ts +1 -1
- package/dev/typings/factories/PlatformRequirementsFacet__factory.ts +3 -3
- package/dev/typings/factories/index.ts +1 -0
- package/dev/typings/index.ts +2 -0
- package/package.json +2 -2
- package/dev/abis/Architect.json +0 -1
- package/dev/abis/Channels.json +0 -1
- package/dev/abis/Diamond.json +0 -1
- package/dev/abis/DiamondCutFacet.json +0 -1
- package/dev/abis/DropFacet.json +0 -1
- package/dev/abis/ERC721A__IERC721ReceiverUpgradeable.json +0 -1
- package/dev/abis/EntitlementsManager.json +0 -1
- package/dev/abis/IBanning.json +0 -1
- package/dev/abis/IBanningBase.json +0 -1
- package/dev/abis/ICreateSpace.json +0 -1
- package/dev/abis/ICrossChainEntitlement.json +0 -1
- package/dev/abis/IERC5267.json +0 -1
- package/dev/abis/IERC721A.json +0 -1
- package/dev/abis/IERC721ABase.json +0 -1
- package/dev/abis/IERC721AQueryable.json +0 -1
- package/dev/abis/IEntitlementChecker.json +0 -1
- package/dev/abis/IEntitlementCheckerBase.json +0 -1
- package/dev/abis/IEntitlementDataQueryable.json +0 -1
- package/dev/abis/IEntitlementDataQueryableBase.json +0 -1
- package/dev/abis/IEntitlementGated.json +0 -1
- package/dev/abis/IEntitlementGatedBase.json +0 -1
- package/dev/abis/IMembershipMetadata.json +0 -1
- package/dev/abis/IMulticall.json +0 -1
- package/dev/abis/INodeOperator.json +0 -1
- package/dev/abis/INodeOperatorBase.json +0 -1
- package/dev/abis/IPausable.json +0 -1
- package/dev/abis/IPausableBase.json +0 -1
- package/dev/abis/IPricingModules.json +0 -1
- package/dev/abis/IPricingModulesBase.json +0 -1
- package/dev/abis/IReview.json +0 -1
- package/dev/abis/IReviewBase.json +0 -1
- package/dev/abis/IRuleEntitlement.json +0 -1
- package/dev/abis/IRuleEntitlementBase.json +0 -1
- package/dev/abis/IRuleEntitlementV2.json +0 -1
- package/dev/abis/ISpaceDelegation.json +0 -1
- package/dev/abis/ISpaceDelegationBase.json +0 -1
- package/dev/abis/ISwapFacet.json +0 -1
- package/dev/abis/ISwapFacetBase.json +0 -1
- package/dev/abis/ISwapRouter.json +0 -1
- package/dev/abis/ISwapRouterBase.json +0 -1
- package/dev/abis/ITipping.json +0 -1
- package/dev/abis/ITippingBase.json +0 -1
- package/dev/abis/ITownsPoints.json +0 -1
- package/dev/abis/ITownsPointsBase.json +0 -1
- package/dev/abis/ITreasury.json +0 -1
- package/dev/abis/Member.json +0 -1
- package/dev/abis/MembershipFacet.json +0 -1
- package/dev/abis/MockCrossChainEntitlement.json +0 -1
- package/dev/abis/MockERC721A.json +0 -1
- package/dev/abis/MockEntitlementGated.json +0 -1
- package/dev/abis/MockLegacyArchitect.json +0 -1
- package/dev/abis/MockRiverRegistry.json +0 -1
- package/dev/abis/MockWalletLink.json +0 -1
- package/dev/abis/MockWalletLinkStorage.json +0 -1
- package/dev/abis/NodeRegistry.json +0 -1
- package/dev/abis/OperatorRegistry.json +0 -1
- package/dev/abis/OwnableFacet.json +0 -1
- package/dev/abis/PlatformRequirementsFacet.json +0 -1
- package/dev/abis/PrepayFacet.json +0 -1
- package/dev/abis/ProxyManager.json +0 -1
- package/dev/abis/Roles.json +0 -1
- package/dev/abis/SpaceOwner.json +0 -1
- package/dev/abis/StreamFlags.json +0 -1
- package/dev/abis/StreamRegistry.json +0 -1
- package/dev/abis/TokenPausableFacet.json +0 -1
- package/dev/abis/UserEntitlement.json +0 -1
- package/dev/abis/WalletLink.json +0 -1
|
@@ -27,7 +27,7 @@ import type {
|
|
|
27
27
|
PromiseOrValue,
|
|
28
28
|
} from "./common";
|
|
29
29
|
|
|
30
|
-
export declare namespace
|
|
30
|
+
export declare namespace DropGroup {
|
|
31
31
|
export type ClaimConditionStruct = {
|
|
32
32
|
currency: PromiseOrValue<string>;
|
|
33
33
|
startTimestamp: PromiseOrValue<BigNumberish>;
|
|
@@ -55,7 +55,9 @@ export declare namespace DropClaimLib {
|
|
|
55
55
|
supplyClaimed: BigNumber;
|
|
56
56
|
merkleRoot: string;
|
|
57
57
|
};
|
|
58
|
+
}
|
|
58
59
|
|
|
60
|
+
export declare namespace DropClaim {
|
|
59
61
|
export type ClaimStruct = {
|
|
60
62
|
conditionId: PromiseOrValue<BigNumberish>;
|
|
61
63
|
account: PromiseOrValue<string>;
|
|
@@ -107,12 +109,12 @@ export interface IDropFacetInterface extends utils.Interface {
|
|
|
107
109
|
|
|
108
110
|
encodeFunctionData(
|
|
109
111
|
functionFragment: "addClaimCondition",
|
|
110
|
-
values: [
|
|
112
|
+
values: [DropGroup.ClaimConditionStruct]
|
|
111
113
|
): string;
|
|
112
114
|
encodeFunctionData(
|
|
113
115
|
functionFragment: "claimAndStake",
|
|
114
116
|
values: [
|
|
115
|
-
|
|
117
|
+
DropClaim.ClaimStruct,
|
|
116
118
|
PromiseOrValue<string>,
|
|
117
119
|
PromiseOrValue<BigNumberish>,
|
|
118
120
|
PromiseOrValue<BytesLike>
|
|
@@ -120,7 +122,7 @@ export interface IDropFacetInterface extends utils.Interface {
|
|
|
120
122
|
): string;
|
|
121
123
|
encodeFunctionData(
|
|
122
124
|
functionFragment: "claimWithPenalty",
|
|
123
|
-
values: [
|
|
125
|
+
values: [DropClaim.ClaimStruct, PromiseOrValue<BigNumberish>]
|
|
124
126
|
): string;
|
|
125
127
|
encodeFunctionData(
|
|
126
128
|
functionFragment: "getActiveClaimConditionId",
|
|
@@ -144,7 +146,7 @@ export interface IDropFacetInterface extends utils.Interface {
|
|
|
144
146
|
): string;
|
|
145
147
|
encodeFunctionData(
|
|
146
148
|
functionFragment: "setClaimConditions",
|
|
147
|
-
values: [
|
|
149
|
+
values: [DropGroup.ClaimConditionStruct[]]
|
|
148
150
|
): string;
|
|
149
151
|
|
|
150
152
|
decodeFunctionResult(
|
|
@@ -207,10 +209,10 @@ export interface IDropFacetInterface extends utils.Interface {
|
|
|
207
209
|
|
|
208
210
|
export interface DropFacet_ClaimConditionAddedEventObject {
|
|
209
211
|
conditionId: BigNumber;
|
|
210
|
-
condition:
|
|
212
|
+
condition: DropGroup.ClaimConditionStructOutput;
|
|
211
213
|
}
|
|
212
214
|
export type DropFacet_ClaimConditionAddedEvent = TypedEvent<
|
|
213
|
-
[BigNumber,
|
|
215
|
+
[BigNumber, DropGroup.ClaimConditionStructOutput],
|
|
214
216
|
DropFacet_ClaimConditionAddedEventObject
|
|
215
217
|
>;
|
|
216
218
|
|
|
@@ -219,10 +221,10 @@ export type DropFacet_ClaimConditionAddedEventFilter =
|
|
|
219
221
|
|
|
220
222
|
export interface DropFacet_ClaimConditionsUpdatedEventObject {
|
|
221
223
|
conditionId: BigNumber;
|
|
222
|
-
conditions:
|
|
224
|
+
conditions: DropGroup.ClaimConditionStructOutput[];
|
|
223
225
|
}
|
|
224
226
|
export type DropFacet_ClaimConditionsUpdatedEvent = TypedEvent<
|
|
225
|
-
[BigNumber,
|
|
227
|
+
[BigNumber, DropGroup.ClaimConditionStructOutput[]],
|
|
226
228
|
DropFacet_ClaimConditionsUpdatedEventObject
|
|
227
229
|
>;
|
|
228
230
|
|
|
@@ -285,12 +287,12 @@ export interface IDropFacet extends BaseContract {
|
|
|
285
287
|
|
|
286
288
|
functions: {
|
|
287
289
|
addClaimCondition(
|
|
288
|
-
condition:
|
|
290
|
+
condition: DropGroup.ClaimConditionStruct,
|
|
289
291
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
290
292
|
): Promise<ContractTransaction>;
|
|
291
293
|
|
|
292
294
|
claimAndStake(
|
|
293
|
-
|
|
295
|
+
req: DropClaim.ClaimStruct,
|
|
294
296
|
delegatee: PromiseOrValue<string>,
|
|
295
297
|
deadline: PromiseOrValue<BigNumberish>,
|
|
296
298
|
signature: PromiseOrValue<BytesLike>,
|
|
@@ -298,7 +300,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
298
300
|
): Promise<ContractTransaction>;
|
|
299
301
|
|
|
300
302
|
claimWithPenalty(
|
|
301
|
-
|
|
303
|
+
req: DropClaim.ClaimStruct,
|
|
302
304
|
expectedPenaltyBps: PromiseOrValue<BigNumberish>,
|
|
303
305
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
304
306
|
): Promise<ContractTransaction>;
|
|
@@ -308,11 +310,11 @@ export interface IDropFacet extends BaseContract {
|
|
|
308
310
|
getClaimConditionById(
|
|
309
311
|
conditionId: PromiseOrValue<BigNumberish>,
|
|
310
312
|
overrides?: CallOverrides
|
|
311
|
-
): Promise<[
|
|
313
|
+
): Promise<[DropGroup.ClaimConditionStructOutput]>;
|
|
312
314
|
|
|
313
315
|
getClaimConditions(
|
|
314
316
|
overrides?: CallOverrides
|
|
315
|
-
): Promise<[
|
|
317
|
+
): Promise<[DropGroup.ClaimConditionStructOutput[]]>;
|
|
316
318
|
|
|
317
319
|
getDepositIdByWallet(
|
|
318
320
|
account: PromiseOrValue<string>,
|
|
@@ -327,18 +329,18 @@ export interface IDropFacet extends BaseContract {
|
|
|
327
329
|
): Promise<[BigNumber]>;
|
|
328
330
|
|
|
329
331
|
setClaimConditions(
|
|
330
|
-
conditions:
|
|
332
|
+
conditions: DropGroup.ClaimConditionStruct[],
|
|
331
333
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
332
334
|
): Promise<ContractTransaction>;
|
|
333
335
|
};
|
|
334
336
|
|
|
335
337
|
addClaimCondition(
|
|
336
|
-
condition:
|
|
338
|
+
condition: DropGroup.ClaimConditionStruct,
|
|
337
339
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
338
340
|
): Promise<ContractTransaction>;
|
|
339
341
|
|
|
340
342
|
claimAndStake(
|
|
341
|
-
|
|
343
|
+
req: DropClaim.ClaimStruct,
|
|
342
344
|
delegatee: PromiseOrValue<string>,
|
|
343
345
|
deadline: PromiseOrValue<BigNumberish>,
|
|
344
346
|
signature: PromiseOrValue<BytesLike>,
|
|
@@ -346,7 +348,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
346
348
|
): Promise<ContractTransaction>;
|
|
347
349
|
|
|
348
350
|
claimWithPenalty(
|
|
349
|
-
|
|
351
|
+
req: DropClaim.ClaimStruct,
|
|
350
352
|
expectedPenaltyBps: PromiseOrValue<BigNumberish>,
|
|
351
353
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
352
354
|
): Promise<ContractTransaction>;
|
|
@@ -356,11 +358,11 @@ export interface IDropFacet extends BaseContract {
|
|
|
356
358
|
getClaimConditionById(
|
|
357
359
|
conditionId: PromiseOrValue<BigNumberish>,
|
|
358
360
|
overrides?: CallOverrides
|
|
359
|
-
): Promise<
|
|
361
|
+
): Promise<DropGroup.ClaimConditionStructOutput>;
|
|
360
362
|
|
|
361
363
|
getClaimConditions(
|
|
362
364
|
overrides?: CallOverrides
|
|
363
|
-
): Promise<
|
|
365
|
+
): Promise<DropGroup.ClaimConditionStructOutput[]>;
|
|
364
366
|
|
|
365
367
|
getDepositIdByWallet(
|
|
366
368
|
account: PromiseOrValue<string>,
|
|
@@ -375,18 +377,18 @@ export interface IDropFacet extends BaseContract {
|
|
|
375
377
|
): Promise<BigNumber>;
|
|
376
378
|
|
|
377
379
|
setClaimConditions(
|
|
378
|
-
conditions:
|
|
380
|
+
conditions: DropGroup.ClaimConditionStruct[],
|
|
379
381
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
380
382
|
): Promise<ContractTransaction>;
|
|
381
383
|
|
|
382
384
|
callStatic: {
|
|
383
385
|
addClaimCondition(
|
|
384
|
-
condition:
|
|
386
|
+
condition: DropGroup.ClaimConditionStruct,
|
|
385
387
|
overrides?: CallOverrides
|
|
386
388
|
): Promise<void>;
|
|
387
389
|
|
|
388
390
|
claimAndStake(
|
|
389
|
-
|
|
391
|
+
req: DropClaim.ClaimStruct,
|
|
390
392
|
delegatee: PromiseOrValue<string>,
|
|
391
393
|
deadline: PromiseOrValue<BigNumberish>,
|
|
392
394
|
signature: PromiseOrValue<BytesLike>,
|
|
@@ -394,7 +396,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
394
396
|
): Promise<BigNumber>;
|
|
395
397
|
|
|
396
398
|
claimWithPenalty(
|
|
397
|
-
|
|
399
|
+
req: DropClaim.ClaimStruct,
|
|
398
400
|
expectedPenaltyBps: PromiseOrValue<BigNumberish>,
|
|
399
401
|
overrides?: CallOverrides
|
|
400
402
|
): Promise<BigNumber>;
|
|
@@ -404,11 +406,11 @@ export interface IDropFacet extends BaseContract {
|
|
|
404
406
|
getClaimConditionById(
|
|
405
407
|
conditionId: PromiseOrValue<BigNumberish>,
|
|
406
408
|
overrides?: CallOverrides
|
|
407
|
-
): Promise<
|
|
409
|
+
): Promise<DropGroup.ClaimConditionStructOutput>;
|
|
408
410
|
|
|
409
411
|
getClaimConditions(
|
|
410
412
|
overrides?: CallOverrides
|
|
411
|
-
): Promise<
|
|
413
|
+
): Promise<DropGroup.ClaimConditionStructOutput[]>;
|
|
412
414
|
|
|
413
415
|
getDepositIdByWallet(
|
|
414
416
|
account: PromiseOrValue<string>,
|
|
@@ -423,7 +425,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
423
425
|
): Promise<BigNumber>;
|
|
424
426
|
|
|
425
427
|
setClaimConditions(
|
|
426
|
-
conditions:
|
|
428
|
+
conditions: DropGroup.ClaimConditionStruct[],
|
|
427
429
|
overrides?: CallOverrides
|
|
428
430
|
): Promise<void>;
|
|
429
431
|
};
|
|
@@ -476,12 +478,12 @@ export interface IDropFacet extends BaseContract {
|
|
|
476
478
|
|
|
477
479
|
estimateGas: {
|
|
478
480
|
addClaimCondition(
|
|
479
|
-
condition:
|
|
481
|
+
condition: DropGroup.ClaimConditionStruct,
|
|
480
482
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
481
483
|
): Promise<BigNumber>;
|
|
482
484
|
|
|
483
485
|
claimAndStake(
|
|
484
|
-
|
|
486
|
+
req: DropClaim.ClaimStruct,
|
|
485
487
|
delegatee: PromiseOrValue<string>,
|
|
486
488
|
deadline: PromiseOrValue<BigNumberish>,
|
|
487
489
|
signature: PromiseOrValue<BytesLike>,
|
|
@@ -489,7 +491,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
489
491
|
): Promise<BigNumber>;
|
|
490
492
|
|
|
491
493
|
claimWithPenalty(
|
|
492
|
-
|
|
494
|
+
req: DropClaim.ClaimStruct,
|
|
493
495
|
expectedPenaltyBps: PromiseOrValue<BigNumberish>,
|
|
494
496
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
495
497
|
): Promise<BigNumber>;
|
|
@@ -516,19 +518,19 @@ export interface IDropFacet extends BaseContract {
|
|
|
516
518
|
): Promise<BigNumber>;
|
|
517
519
|
|
|
518
520
|
setClaimConditions(
|
|
519
|
-
conditions:
|
|
521
|
+
conditions: DropGroup.ClaimConditionStruct[],
|
|
520
522
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
521
523
|
): Promise<BigNumber>;
|
|
522
524
|
};
|
|
523
525
|
|
|
524
526
|
populateTransaction: {
|
|
525
527
|
addClaimCondition(
|
|
526
|
-
condition:
|
|
528
|
+
condition: DropGroup.ClaimConditionStruct,
|
|
527
529
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
528
530
|
): Promise<PopulatedTransaction>;
|
|
529
531
|
|
|
530
532
|
claimAndStake(
|
|
531
|
-
|
|
533
|
+
req: DropClaim.ClaimStruct,
|
|
532
534
|
delegatee: PromiseOrValue<string>,
|
|
533
535
|
deadline: PromiseOrValue<BigNumberish>,
|
|
534
536
|
signature: PromiseOrValue<BytesLike>,
|
|
@@ -536,7 +538,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
536
538
|
): Promise<PopulatedTransaction>;
|
|
537
539
|
|
|
538
540
|
claimWithPenalty(
|
|
539
|
-
|
|
541
|
+
req: DropClaim.ClaimStruct,
|
|
540
542
|
expectedPenaltyBps: PromiseOrValue<BigNumberish>,
|
|
541
543
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
542
544
|
): Promise<PopulatedTransaction>;
|
|
@@ -567,7 +569,7 @@ export interface IDropFacet extends BaseContract {
|
|
|
567
569
|
): Promise<PopulatedTransaction>;
|
|
568
570
|
|
|
569
571
|
setClaimConditions(
|
|
570
|
-
conditions:
|
|
572
|
+
conditions: DropGroup.ClaimConditionStruct[],
|
|
571
573
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
572
574
|
): Promise<PopulatedTransaction>;
|
|
573
575
|
};
|
|
@@ -135,9 +135,9 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
135
135
|
|
|
136
136
|
export interface FeeDistributionEventObject {
|
|
137
137
|
token: string;
|
|
138
|
-
|
|
138
|
+
protocol: string;
|
|
139
139
|
poster: string;
|
|
140
|
-
|
|
140
|
+
protocolAmount: BigNumber;
|
|
141
141
|
posterAmount: BigNumber;
|
|
142
142
|
}
|
|
143
143
|
export type FeeDistributionEvent = TypedEvent<
|
|
@@ -239,7 +239,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
239
239
|
overrides?: CallOverrides
|
|
240
240
|
): Promise<
|
|
241
241
|
[number, number, boolean] & {
|
|
242
|
-
|
|
242
|
+
protocolBps: number;
|
|
243
243
|
posterBps: number;
|
|
244
244
|
collectPosterFeeToSpace: boolean;
|
|
245
245
|
}
|
|
@@ -265,7 +265,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
265
265
|
overrides?: CallOverrides
|
|
266
266
|
): Promise<
|
|
267
267
|
[number, number, boolean] & {
|
|
268
|
-
|
|
268
|
+
protocolBps: number;
|
|
269
269
|
posterBps: number;
|
|
270
270
|
collectPosterFeeToSpace: boolean;
|
|
271
271
|
}
|
|
@@ -291,7 +291,7 @@ export interface ISwapFacet extends BaseContract {
|
|
|
291
291
|
overrides?: CallOverrides
|
|
292
292
|
): Promise<
|
|
293
293
|
[number, number, boolean] & {
|
|
294
|
-
|
|
294
|
+
protocolBps: number;
|
|
295
295
|
posterBps: number;
|
|
296
296
|
collectPosterFeeToSpace: boolean;
|
|
297
297
|
}
|
|
@@ -309,16 +309,16 @@ export interface ISwapFacet extends BaseContract {
|
|
|
309
309
|
filters: {
|
|
310
310
|
"FeeDistribution(address,address,address,uint256,uint256)"(
|
|
311
311
|
token?: PromiseOrValue<string> | null,
|
|
312
|
-
|
|
312
|
+
protocol?: PromiseOrValue<string> | null,
|
|
313
313
|
poster?: PromiseOrValue<string> | null,
|
|
314
|
-
|
|
314
|
+
protocolAmount?: null,
|
|
315
315
|
posterAmount?: null
|
|
316
316
|
): FeeDistributionEventFilter;
|
|
317
317
|
FeeDistribution(
|
|
318
318
|
token?: PromiseOrValue<string> | null,
|
|
319
|
-
|
|
319
|
+
protocol?: PromiseOrValue<string> | null,
|
|
320
320
|
poster?: PromiseOrValue<string> | null,
|
|
321
|
-
|
|
321
|
+
protocolAmount?: null,
|
|
322
322
|
posterAmount?: null
|
|
323
323
|
): FeeDistributionEventFilter;
|
|
324
324
|
|
|
@@ -66,9 +66,12 @@ export declare namespace ISwapRouterBase {
|
|
|
66
66
|
export interface ISwapRouterInterface extends utils.Interface {
|
|
67
67
|
functions: {
|
|
68
68
|
"executeSwap((address,address,uint256,uint256,address),(address,address,bytes),address)": FunctionFragment;
|
|
69
|
+
"getETHInputFees(uint256,address,address)": FunctionFragment;
|
|
69
70
|
};
|
|
70
71
|
|
|
71
|
-
getFunction(
|
|
72
|
+
getFunction(
|
|
73
|
+
nameOrSignatureOrTopic: "executeSwap" | "getETHInputFees"
|
|
74
|
+
): FunctionFragment;
|
|
72
75
|
|
|
73
76
|
encodeFunctionData(
|
|
74
77
|
functionFragment: "executeSwap",
|
|
@@ -78,11 +81,23 @@ export interface ISwapRouterInterface extends utils.Interface {
|
|
|
78
81
|
PromiseOrValue<string>
|
|
79
82
|
]
|
|
80
83
|
): string;
|
|
84
|
+
encodeFunctionData(
|
|
85
|
+
functionFragment: "getETHInputFees",
|
|
86
|
+
values: [
|
|
87
|
+
PromiseOrValue<BigNumberish>,
|
|
88
|
+
PromiseOrValue<string>,
|
|
89
|
+
PromiseOrValue<string>
|
|
90
|
+
]
|
|
91
|
+
): string;
|
|
81
92
|
|
|
82
93
|
decodeFunctionResult(
|
|
83
94
|
functionFragment: "executeSwap",
|
|
84
95
|
data: BytesLike
|
|
85
96
|
): Result;
|
|
97
|
+
decodeFunctionResult(
|
|
98
|
+
functionFragment: "getETHInputFees",
|
|
99
|
+
data: BytesLike
|
|
100
|
+
): Result;
|
|
86
101
|
|
|
87
102
|
events: {
|
|
88
103
|
"FeeDistribution(address,address,address,uint256,uint256)": EventFragment;
|
|
@@ -97,9 +112,9 @@ export interface ISwapRouterInterface extends utils.Interface {
|
|
|
97
112
|
|
|
98
113
|
export interface FeeDistributionEventObject {
|
|
99
114
|
token: string;
|
|
100
|
-
|
|
115
|
+
protocol: string;
|
|
101
116
|
poster: string;
|
|
102
|
-
|
|
117
|
+
protocolAmount: BigNumber;
|
|
103
118
|
posterAmount: BigNumber;
|
|
104
119
|
}
|
|
105
120
|
export type FeeDistributionEvent = TypedEvent<
|
|
@@ -169,6 +184,19 @@ export interface ISwapRouter extends BaseContract {
|
|
|
169
184
|
poster: PromiseOrValue<string>,
|
|
170
185
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
171
186
|
): Promise<ContractTransaction>;
|
|
187
|
+
|
|
188
|
+
getETHInputFees(
|
|
189
|
+
amountIn: PromiseOrValue<BigNumberish>,
|
|
190
|
+
caller: PromiseOrValue<string>,
|
|
191
|
+
poster: PromiseOrValue<string>,
|
|
192
|
+
overrides?: CallOverrides
|
|
193
|
+
): Promise<
|
|
194
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
195
|
+
amountInAfterFees: BigNumber;
|
|
196
|
+
protocolFee: BigNumber;
|
|
197
|
+
posterFee: BigNumber;
|
|
198
|
+
}
|
|
199
|
+
>;
|
|
172
200
|
};
|
|
173
201
|
|
|
174
202
|
executeSwap(
|
|
@@ -178,28 +206,56 @@ export interface ISwapRouter extends BaseContract {
|
|
|
178
206
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
179
207
|
): Promise<ContractTransaction>;
|
|
180
208
|
|
|
209
|
+
getETHInputFees(
|
|
210
|
+
amountIn: PromiseOrValue<BigNumberish>,
|
|
211
|
+
caller: PromiseOrValue<string>,
|
|
212
|
+
poster: PromiseOrValue<string>,
|
|
213
|
+
overrides?: CallOverrides
|
|
214
|
+
): Promise<
|
|
215
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
216
|
+
amountInAfterFees: BigNumber;
|
|
217
|
+
protocolFee: BigNumber;
|
|
218
|
+
posterFee: BigNumber;
|
|
219
|
+
}
|
|
220
|
+
>;
|
|
221
|
+
|
|
181
222
|
callStatic: {
|
|
182
223
|
executeSwap(
|
|
183
224
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
184
225
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
185
226
|
poster: PromiseOrValue<string>,
|
|
186
227
|
overrides?: CallOverrides
|
|
187
|
-
): Promise<
|
|
228
|
+
): Promise<
|
|
229
|
+
[BigNumber, BigNumber] & { amountOut: BigNumber; protocolFee: BigNumber }
|
|
230
|
+
>;
|
|
231
|
+
|
|
232
|
+
getETHInputFees(
|
|
233
|
+
amountIn: PromiseOrValue<BigNumberish>,
|
|
234
|
+
caller: PromiseOrValue<string>,
|
|
235
|
+
poster: PromiseOrValue<string>,
|
|
236
|
+
overrides?: CallOverrides
|
|
237
|
+
): Promise<
|
|
238
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
239
|
+
amountInAfterFees: BigNumber;
|
|
240
|
+
protocolFee: BigNumber;
|
|
241
|
+
posterFee: BigNumber;
|
|
242
|
+
}
|
|
243
|
+
>;
|
|
188
244
|
};
|
|
189
245
|
|
|
190
246
|
filters: {
|
|
191
247
|
"FeeDistribution(address,address,address,uint256,uint256)"(
|
|
192
248
|
token?: PromiseOrValue<string> | null,
|
|
193
|
-
|
|
249
|
+
protocol?: PromiseOrValue<string> | null,
|
|
194
250
|
poster?: PromiseOrValue<string> | null,
|
|
195
|
-
|
|
251
|
+
protocolAmount?: null,
|
|
196
252
|
posterAmount?: null
|
|
197
253
|
): FeeDistributionEventFilter;
|
|
198
254
|
FeeDistribution(
|
|
199
255
|
token?: PromiseOrValue<string> | null,
|
|
200
|
-
|
|
256
|
+
protocol?: PromiseOrValue<string> | null,
|
|
201
257
|
poster?: PromiseOrValue<string> | null,
|
|
202
|
-
|
|
258
|
+
protocolAmount?: null,
|
|
203
259
|
posterAmount?: null
|
|
204
260
|
): FeeDistributionEventFilter;
|
|
205
261
|
|
|
@@ -237,6 +293,13 @@ export interface ISwapRouter extends BaseContract {
|
|
|
237
293
|
poster: PromiseOrValue<string>,
|
|
238
294
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
239
295
|
): Promise<BigNumber>;
|
|
296
|
+
|
|
297
|
+
getETHInputFees(
|
|
298
|
+
amountIn: PromiseOrValue<BigNumberish>,
|
|
299
|
+
caller: PromiseOrValue<string>,
|
|
300
|
+
poster: PromiseOrValue<string>,
|
|
301
|
+
overrides?: CallOverrides
|
|
302
|
+
): Promise<BigNumber>;
|
|
240
303
|
};
|
|
241
304
|
|
|
242
305
|
populateTransaction: {
|
|
@@ -246,5 +309,12 @@ export interface ISwapRouter extends BaseContract {
|
|
|
246
309
|
poster: PromiseOrValue<string>,
|
|
247
310
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
248
311
|
): Promise<PopulatedTransaction>;
|
|
312
|
+
|
|
313
|
+
getETHInputFees(
|
|
314
|
+
amountIn: PromiseOrValue<BigNumberish>,
|
|
315
|
+
caller: PromiseOrValue<string>,
|
|
316
|
+
poster: PromiseOrValue<string>,
|
|
317
|
+
overrides?: CallOverrides
|
|
318
|
+
): Promise<PopulatedTransaction>;
|
|
249
319
|
};
|
|
250
320
|
}
|
|
@@ -366,7 +366,7 @@ export type PlatformMembershipMintLimitSetEventFilter =
|
|
|
366
366
|
TypedEventFilter<PlatformMembershipMintLimitSetEvent>;
|
|
367
367
|
|
|
368
368
|
export interface PlatformSwapFeesSetEventObject {
|
|
369
|
-
|
|
369
|
+
protocolBps: number;
|
|
370
370
|
posterBps: number;
|
|
371
371
|
}
|
|
372
372
|
export type PlatformSwapFeesSetEvent = TypedEvent<
|
|
@@ -442,7 +442,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
442
442
|
|
|
443
443
|
getSwapFees(
|
|
444
444
|
overrides?: CallOverrides
|
|
445
|
-
): Promise<[number, number] & {
|
|
445
|
+
): Promise<[number, number] & { protocolBps: number; posterBps: number }>;
|
|
446
446
|
|
|
447
447
|
isRouterWhitelisted(
|
|
448
448
|
router: PromiseOrValue<string>,
|
|
@@ -486,7 +486,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
486
486
|
): Promise<ContractTransaction>;
|
|
487
487
|
|
|
488
488
|
setSwapFees(
|
|
489
|
-
|
|
489
|
+
protocolBps: PromiseOrValue<BigNumberish>,
|
|
490
490
|
posterBps: PromiseOrValue<BigNumberish>,
|
|
491
491
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
492
492
|
): Promise<ContractTransaction>;
|
|
@@ -518,7 +518,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
518
518
|
|
|
519
519
|
getSwapFees(
|
|
520
520
|
overrides?: CallOverrides
|
|
521
|
-
): Promise<[number, number] & {
|
|
521
|
+
): Promise<[number, number] & { protocolBps: number; posterBps: number }>;
|
|
522
522
|
|
|
523
523
|
isRouterWhitelisted(
|
|
524
524
|
router: PromiseOrValue<string>,
|
|
@@ -562,7 +562,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
562
562
|
): Promise<ContractTransaction>;
|
|
563
563
|
|
|
564
564
|
setSwapFees(
|
|
565
|
-
|
|
565
|
+
protocolBps: PromiseOrValue<BigNumberish>,
|
|
566
566
|
posterBps: PromiseOrValue<BigNumberish>,
|
|
567
567
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
568
568
|
): Promise<ContractTransaction>;
|
|
@@ -594,7 +594,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
594
594
|
|
|
595
595
|
getSwapFees(
|
|
596
596
|
overrides?: CallOverrides
|
|
597
|
-
): Promise<[number, number] & {
|
|
597
|
+
): Promise<[number, number] & { protocolBps: number; posterBps: number }>;
|
|
598
598
|
|
|
599
599
|
isRouterWhitelisted(
|
|
600
600
|
router: PromiseOrValue<string>,
|
|
@@ -638,7 +638,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
638
638
|
): Promise<void>;
|
|
639
639
|
|
|
640
640
|
setSwapFees(
|
|
641
|
-
|
|
641
|
+
protocolBps: PromiseOrValue<BigNumberish>,
|
|
642
642
|
posterBps: PromiseOrValue<BigNumberish>,
|
|
643
643
|
overrides?: CallOverrides
|
|
644
644
|
): Promise<void>;
|
|
@@ -710,11 +710,11 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
710
710
|
): PlatformMembershipMintLimitSetEventFilter;
|
|
711
711
|
|
|
712
712
|
"PlatformSwapFeesSet(uint16,uint16)"(
|
|
713
|
-
|
|
713
|
+
protocolBps?: null,
|
|
714
714
|
posterBps?: null
|
|
715
715
|
): PlatformSwapFeesSetEventFilter;
|
|
716
716
|
PlatformSwapFeesSet(
|
|
717
|
-
|
|
717
|
+
protocolBps?: null,
|
|
718
718
|
posterBps?: null
|
|
719
719
|
): PlatformSwapFeesSetEventFilter;
|
|
720
720
|
|
|
@@ -797,7 +797,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
797
797
|
): Promise<BigNumber>;
|
|
798
798
|
|
|
799
799
|
setSwapFees(
|
|
800
|
-
|
|
800
|
+
protocolBps: PromiseOrValue<BigNumberish>,
|
|
801
801
|
posterBps: PromiseOrValue<BigNumberish>,
|
|
802
802
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
803
803
|
): Promise<BigNumber>;
|
|
@@ -878,7 +878,7 @@ export interface PlatformRequirementsFacet extends BaseContract {
|
|
|
878
878
|
): Promise<PopulatedTransaction>;
|
|
879
879
|
|
|
880
880
|
setSwapFees(
|
|
881
|
-
|
|
881
|
+
protocolBps: PromiseOrValue<BigNumberish>,
|
|
882
882
|
posterBps: PromiseOrValue<BigNumberish>,
|
|
883
883
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
884
884
|
): Promise<PopulatedTransaction>;
|