@towns-protocol/generated 0.0.227 → 0.0.228
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/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/ISwapFacet.ts +9 -9
- package/dev/typings/ISwapRouter.ts +78 -8
- package/dev/typings/PlatformRequirementsFacet.ts +11 -11
- 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/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
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"inputs": [],
|
|
79
79
|
"outputs": [
|
|
80
80
|
{
|
|
81
|
-
"name": "
|
|
81
|
+
"name": "protocolBps",
|
|
82
82
|
"type": "uint16",
|
|
83
83
|
"internalType": "uint16"
|
|
84
84
|
},
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"internalType": "address"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
"name": "
|
|
140
|
+
"name": "protocol",
|
|
141
141
|
"type": "address",
|
|
142
142
|
"indexed": true,
|
|
143
143
|
"internalType": "address"
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"internalType": "address"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
"name": "
|
|
152
|
+
"name": "protocolAmount",
|
|
153
153
|
"type": "uint256",
|
|
154
154
|
"indexed": false,
|
|
155
155
|
"internalType": "uint256"
|
|
@@ -312,6 +312,11 @@
|
|
|
312
312
|
"name": "SwapRouter__InvalidAmount",
|
|
313
313
|
"inputs": []
|
|
314
314
|
},
|
|
315
|
+
{
|
|
316
|
+
"type": "error",
|
|
317
|
+
"name": "SwapRouter__InvalidBps",
|
|
318
|
+
"inputs": []
|
|
319
|
+
},
|
|
315
320
|
{
|
|
316
321
|
"type": "error",
|
|
317
322
|
"name": "SwapRouter__InvalidRouter",
|
|
@@ -78,7 +78,7 @@ export default [
|
|
|
78
78
|
"inputs": [],
|
|
79
79
|
"outputs": [
|
|
80
80
|
{
|
|
81
|
-
"name": "
|
|
81
|
+
"name": "protocolBps",
|
|
82
82
|
"type": "uint16",
|
|
83
83
|
"internalType": "uint16"
|
|
84
84
|
},
|
|
@@ -137,7 +137,7 @@ export default [
|
|
|
137
137
|
"internalType": "address"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
|
-
"name": "
|
|
140
|
+
"name": "protocol",
|
|
141
141
|
"type": "address",
|
|
142
142
|
"indexed": true,
|
|
143
143
|
"internalType": "address"
|
|
@@ -149,7 +149,7 @@ export default [
|
|
|
149
149
|
"internalType": "address"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
"name": "
|
|
152
|
+
"name": "protocolAmount",
|
|
153
153
|
"type": "uint256",
|
|
154
154
|
"indexed": false,
|
|
155
155
|
"internalType": "uint256"
|
|
@@ -312,6 +312,11 @@ export default [
|
|
|
312
312
|
"name": "SwapRouter__InvalidAmount",
|
|
313
313
|
"inputs": []
|
|
314
314
|
},
|
|
315
|
+
{
|
|
316
|
+
"type": "error",
|
|
317
|
+
"name": "SwapRouter__InvalidBps",
|
|
318
|
+
"inputs": []
|
|
319
|
+
},
|
|
315
320
|
{
|
|
316
321
|
"type": "error",
|
|
317
322
|
"name": "SwapRouter__InvalidRouter",
|
|
@@ -68,10 +68,54 @@
|
|
|
68
68
|
"name": "amountOut",
|
|
69
69
|
"type": "uint256",
|
|
70
70
|
"internalType": "uint256"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "protocolFee",
|
|
74
|
+
"type": "uint256",
|
|
75
|
+
"internalType": "uint256"
|
|
71
76
|
}
|
|
72
77
|
],
|
|
73
78
|
"stateMutability": "payable"
|
|
74
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"type": "function",
|
|
82
|
+
"name": "getETHInputFees",
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"name": "amountIn",
|
|
86
|
+
"type": "uint256",
|
|
87
|
+
"internalType": "uint256"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "caller",
|
|
91
|
+
"type": "address",
|
|
92
|
+
"internalType": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "poster",
|
|
96
|
+
"type": "address",
|
|
97
|
+
"internalType": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"outputs": [
|
|
101
|
+
{
|
|
102
|
+
"name": "amountInAfterFees",
|
|
103
|
+
"type": "uint256",
|
|
104
|
+
"internalType": "uint256"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "protocolFee",
|
|
108
|
+
"type": "uint256",
|
|
109
|
+
"internalType": "uint256"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "posterFee",
|
|
113
|
+
"type": "uint256",
|
|
114
|
+
"internalType": "uint256"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"stateMutability": "view"
|
|
118
|
+
},
|
|
75
119
|
{
|
|
76
120
|
"type": "event",
|
|
77
121
|
"name": "FeeDistribution",
|
|
@@ -83,7 +127,7 @@
|
|
|
83
127
|
"internalType": "address"
|
|
84
128
|
},
|
|
85
129
|
{
|
|
86
|
-
"name": "
|
|
130
|
+
"name": "protocol",
|
|
87
131
|
"type": "address",
|
|
88
132
|
"indexed": true,
|
|
89
133
|
"internalType": "address"
|
|
@@ -95,7 +139,7 @@
|
|
|
95
139
|
"internalType": "address"
|
|
96
140
|
},
|
|
97
141
|
{
|
|
98
|
-
"name": "
|
|
142
|
+
"name": "protocolAmount",
|
|
99
143
|
"type": "uint256",
|
|
100
144
|
"indexed": false,
|
|
101
145
|
"internalType": "uint256"
|
|
@@ -181,6 +225,11 @@
|
|
|
181
225
|
"name": "SwapRouter__InvalidAmount",
|
|
182
226
|
"inputs": []
|
|
183
227
|
},
|
|
228
|
+
{
|
|
229
|
+
"type": "error",
|
|
230
|
+
"name": "SwapRouter__InvalidBps",
|
|
231
|
+
"inputs": []
|
|
232
|
+
},
|
|
184
233
|
{
|
|
185
234
|
"type": "error",
|
|
186
235
|
"name": "SwapRouter__InvalidRouter",
|
|
@@ -68,10 +68,54 @@ export default [
|
|
|
68
68
|
"name": "amountOut",
|
|
69
69
|
"type": "uint256",
|
|
70
70
|
"internalType": "uint256"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "protocolFee",
|
|
74
|
+
"type": "uint256",
|
|
75
|
+
"internalType": "uint256"
|
|
71
76
|
}
|
|
72
77
|
],
|
|
73
78
|
"stateMutability": "payable"
|
|
74
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"type": "function",
|
|
82
|
+
"name": "getETHInputFees",
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"name": "amountIn",
|
|
86
|
+
"type": "uint256",
|
|
87
|
+
"internalType": "uint256"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "caller",
|
|
91
|
+
"type": "address",
|
|
92
|
+
"internalType": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "poster",
|
|
96
|
+
"type": "address",
|
|
97
|
+
"internalType": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"outputs": [
|
|
101
|
+
{
|
|
102
|
+
"name": "amountInAfterFees",
|
|
103
|
+
"type": "uint256",
|
|
104
|
+
"internalType": "uint256"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "protocolFee",
|
|
108
|
+
"type": "uint256",
|
|
109
|
+
"internalType": "uint256"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "posterFee",
|
|
113
|
+
"type": "uint256",
|
|
114
|
+
"internalType": "uint256"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"stateMutability": "view"
|
|
118
|
+
},
|
|
75
119
|
{
|
|
76
120
|
"type": "event",
|
|
77
121
|
"name": "FeeDistribution",
|
|
@@ -83,7 +127,7 @@ export default [
|
|
|
83
127
|
"internalType": "address"
|
|
84
128
|
},
|
|
85
129
|
{
|
|
86
|
-
"name": "
|
|
130
|
+
"name": "protocol",
|
|
87
131
|
"type": "address",
|
|
88
132
|
"indexed": true,
|
|
89
133
|
"internalType": "address"
|
|
@@ -95,7 +139,7 @@ export default [
|
|
|
95
139
|
"internalType": "address"
|
|
96
140
|
},
|
|
97
141
|
{
|
|
98
|
-
"name": "
|
|
142
|
+
"name": "protocolAmount",
|
|
99
143
|
"type": "uint256",
|
|
100
144
|
"indexed": false,
|
|
101
145
|
"internalType": "uint256"
|
|
@@ -181,6 +225,11 @@ export default [
|
|
|
181
225
|
"name": "SwapRouter__InvalidAmount",
|
|
182
226
|
"inputs": []
|
|
183
227
|
},
|
|
228
|
+
{
|
|
229
|
+
"type": "error",
|
|
230
|
+
"name": "SwapRouter__InvalidBps",
|
|
231
|
+
"inputs": []
|
|
232
|
+
},
|
|
184
233
|
{
|
|
185
234
|
"type": "error",
|
|
186
235
|
"name": "SwapRouter__InvalidRouter",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"internalType": "address"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "protocol",
|
|
14
14
|
"type": "address",
|
|
15
15
|
"indexed": true,
|
|
16
16
|
"internalType": "address"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"internalType": "address"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"name": "
|
|
25
|
+
"name": "protocolAmount",
|
|
26
26
|
"type": "uint256",
|
|
27
27
|
"indexed": false,
|
|
28
28
|
"internalType": "uint256"
|
|
@@ -108,6 +108,11 @@
|
|
|
108
108
|
"name": "SwapRouter__InvalidAmount",
|
|
109
109
|
"inputs": []
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"type": "error",
|
|
113
|
+
"name": "SwapRouter__InvalidBps",
|
|
114
|
+
"inputs": []
|
|
115
|
+
},
|
|
111
116
|
{
|
|
112
117
|
"type": "error",
|
|
113
118
|
"name": "SwapRouter__InvalidRouter",
|
|
@@ -10,7 +10,7 @@ export default [
|
|
|
10
10
|
"internalType": "address"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "protocol",
|
|
14
14
|
"type": "address",
|
|
15
15
|
"indexed": true,
|
|
16
16
|
"internalType": "address"
|
|
@@ -22,7 +22,7 @@ export default [
|
|
|
22
22
|
"internalType": "address"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"name": "
|
|
25
|
+
"name": "protocolAmount",
|
|
26
26
|
"type": "uint256",
|
|
27
27
|
"indexed": false,
|
|
28
28
|
"internalType": "uint256"
|
|
@@ -108,6 +108,11 @@ export default [
|
|
|
108
108
|
"name": "SwapRouter__InvalidAmount",
|
|
109
109
|
"inputs": []
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"type": "error",
|
|
113
|
+
"name": "SwapRouter__InvalidBps",
|
|
114
|
+
"inputs": []
|
|
115
|
+
},
|
|
111
116
|
{
|
|
112
117
|
"type": "error",
|
|
113
118
|
"name": "SwapRouter__InvalidRouter",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"inputs": [],
|
|
135
135
|
"outputs": [
|
|
136
136
|
{
|
|
137
|
-
"name": "
|
|
137
|
+
"name": "protocolBps",
|
|
138
138
|
"type": "uint16",
|
|
139
139
|
"internalType": "uint16"
|
|
140
140
|
},
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
"name": "setSwapFees",
|
|
267
267
|
"inputs": [
|
|
268
268
|
{
|
|
269
|
-
"name": "
|
|
269
|
+
"name": "protocolBps",
|
|
270
270
|
"type": "uint16",
|
|
271
271
|
"internalType": "uint16"
|
|
272
272
|
},
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
"name": "PlatformSwapFeesSet",
|
|
421
421
|
"inputs": [
|
|
422
422
|
{
|
|
423
|
-
"name": "
|
|
423
|
+
"name": "protocolBps",
|
|
424
424
|
"type": "uint16",
|
|
425
425
|
"indexed": false,
|
|
426
426
|
"internalType": "uint16"
|
|
@@ -134,7 +134,7 @@ export default [
|
|
|
134
134
|
"inputs": [],
|
|
135
135
|
"outputs": [
|
|
136
136
|
{
|
|
137
|
-
"name": "
|
|
137
|
+
"name": "protocolBps",
|
|
138
138
|
"type": "uint16",
|
|
139
139
|
"internalType": "uint16"
|
|
140
140
|
},
|
|
@@ -266,7 +266,7 @@ export default [
|
|
|
266
266
|
"name": "setSwapFees",
|
|
267
267
|
"inputs": [
|
|
268
268
|
{
|
|
269
|
-
"name": "
|
|
269
|
+
"name": "protocolBps",
|
|
270
270
|
"type": "uint16",
|
|
271
271
|
"internalType": "uint16"
|
|
272
272
|
},
|
|
@@ -420,7 +420,7 @@ export default [
|
|
|
420
420
|
"name": "PlatformSwapFeesSet",
|
|
421
421
|
"inputs": [
|
|
422
422
|
{
|
|
423
|
-
"name": "
|
|
423
|
+
"name": "protocolBps",
|
|
424
424
|
"type": "uint16",
|
|
425
425
|
"indexed": false,
|
|
426
426
|
"internalType": "uint16"
|
|
@@ -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>;
|