@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-fe34d97-357
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +72 -4
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +46 -3
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +540 -401
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +640 -469
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +18 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +17 -48
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +18 -49
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +2 -2
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +1 -1
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +36 -88
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +65 -38
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +123 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +145 -5
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +166 -168
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +167 -169
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +21 -21
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +71 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +6 -6
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +97 -26
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +72 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +90 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/contracts/components/BaseComponent.sol +7 -1
- package/contracts/components/Pool.sol +20 -3
- package/contracts/components/Product.sol +69 -5
- package/contracts/instance/IInstance.sol +3 -4
- package/contracts/instance/Instance.sol +7 -4
- package/contracts/instance/base/IInstanceBase.sol +5 -0
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +6 -2
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +18 -17
- package/contracts/instance/module/bundle/BundleModule.sol +10 -11
- package/contracts/instance/module/bundle/IBundle.sol +4 -11
- package/contracts/instance/module/compensation/CompensationModule.sol +11 -2
- package/contracts/instance/module/component/ComponentModule.sol +39 -53
- package/contracts/instance/module/component/IComponent.sol +6 -30
- package/contracts/instance/module/policy/IPolicy.sol +11 -9
- package/contracts/instance/module/policy/PolicyModule.sol +35 -19
- package/contracts/instance/module/pool/IPoolModule.sol +0 -1
- package/contracts/instance/module/pool/PoolModule.sol +12 -9
- package/contracts/instance/module/risk/IRisk.sol +19 -2
- package/contracts/instance/module/risk/RiskModule.sol +64 -2
- package/contracts/instance/module/treasury/ITreasury.sol +35 -42
- package/contracts/instance/module/treasury/TreasuryModule.sol +96 -77
- package/contracts/instance/service/ComponentOwnerService.sol +19 -34
- package/contracts/instance/service/IProductService.sol +21 -1
- package/contracts/instance/service/PoolService.sol +10 -4
- package/contracts/instance/service/ProductService.sol +120 -68
- package/contracts/registry/Registry.sol +2 -2
- package/contracts/test/TestPool.sol +4 -2
- package/contracts/test/TestProduct.sol +25 -3
- package/contracts/types/ObjectType.sol +20 -8
- package/contracts/types/RiskId.sol +43 -0
- package/package.json +1 -1
@@ -84,22 +84,65 @@
|
|
84
84
|
"inputs": [
|
85
85
|
{
|
86
86
|
"internalType": "NftId",
|
87
|
-
"name": "
|
87
|
+
"name": "componentNftId",
|
88
|
+
"type": "uint96"
|
89
|
+
}
|
90
|
+
],
|
91
|
+
"name": "getProductNftId",
|
92
|
+
"outputs": [
|
93
|
+
{
|
94
|
+
"internalType": "NftId",
|
95
|
+
"name": "productNftId",
|
96
|
+
"type": "uint96"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"stateMutability": "view",
|
100
|
+
"type": "function"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"inputs": [
|
104
|
+
{
|
105
|
+
"internalType": "NftId",
|
106
|
+
"name": "componentNftId",
|
107
|
+
"type": "uint96"
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"name": "getTokenHandler",
|
111
|
+
"outputs": [
|
112
|
+
{
|
113
|
+
"internalType": "contract TokenHandler",
|
114
|
+
"name": "tokenHandler",
|
115
|
+
"type": "address"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"stateMutability": "view",
|
119
|
+
"type": "function"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"inputs": [
|
123
|
+
{
|
124
|
+
"internalType": "NftId",
|
125
|
+
"name": "productNftId",
|
88
126
|
"type": "uint96"
|
89
127
|
}
|
90
128
|
],
|
91
|
-
"name": "
|
129
|
+
"name": "getTreasuryInfo",
|
92
130
|
"outputs": [
|
93
131
|
{
|
94
132
|
"components": [
|
133
|
+
{
|
134
|
+
"internalType": "NftId",
|
135
|
+
"name": "compensationNftId",
|
136
|
+
"type": "uint96"
|
137
|
+
},
|
95
138
|
{
|
96
139
|
"internalType": "NftId",
|
97
140
|
"name": "poolNftId",
|
98
141
|
"type": "uint96"
|
99
142
|
},
|
100
143
|
{
|
101
|
-
"internalType": "
|
102
|
-
"name": "
|
144
|
+
"internalType": "contract IERC20Metadata",
|
145
|
+
"name": "token",
|
103
146
|
"type": "address"
|
104
147
|
},
|
105
148
|
{
|
@@ -116,7 +159,7 @@
|
|
116
159
|
}
|
117
160
|
],
|
118
161
|
"internalType": "struct Fee",
|
119
|
-
"name": "
|
162
|
+
"name": "commissionFee",
|
120
163
|
"type": "tuple"
|
121
164
|
},
|
122
165
|
{
|
@@ -133,54 +176,25 @@
|
|
133
176
|
}
|
134
177
|
],
|
135
178
|
"internalType": "struct Fee",
|
136
|
-
"name": "
|
179
|
+
"name": "policyFee",
|
137
180
|
"type": "tuple"
|
138
|
-
}
|
139
|
-
],
|
140
|
-
"internalType": "struct ITreasury.PoolSetup",
|
141
|
-
"name": "setup",
|
142
|
-
"type": "tuple"
|
143
|
-
}
|
144
|
-
],
|
145
|
-
"stateMutability": "view",
|
146
|
-
"type": "function"
|
147
|
-
},
|
148
|
-
{
|
149
|
-
"inputs": [
|
150
|
-
{
|
151
|
-
"internalType": "NftId",
|
152
|
-
"name": "productNftId",
|
153
|
-
"type": "uint96"
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"name": "getProductSetup",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"components": [
|
160
|
-
{
|
161
|
-
"internalType": "NftId",
|
162
|
-
"name": "productNftId",
|
163
|
-
"type": "uint96"
|
164
181
|
},
|
165
182
|
{
|
166
|
-
"
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
"
|
179
|
-
|
180
|
-
|
181
|
-
"internalType": "address",
|
182
|
-
"name": "wallet",
|
183
|
-
"type": "address"
|
183
|
+
"components": [
|
184
|
+
{
|
185
|
+
"internalType": "UFixed",
|
186
|
+
"name": "fractionalFee",
|
187
|
+
"type": "uint256"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "fixedFee",
|
192
|
+
"type": "uint256"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"internalType": "struct Fee",
|
196
|
+
"name": "processingFee",
|
197
|
+
"type": "tuple"
|
184
198
|
},
|
185
199
|
{
|
186
200
|
"components": [
|
@@ -196,7 +210,7 @@
|
|
196
210
|
}
|
197
211
|
],
|
198
212
|
"internalType": "struct Fee",
|
199
|
-
"name": "
|
213
|
+
"name": "stakingFee",
|
200
214
|
"type": "tuple"
|
201
215
|
},
|
202
216
|
{
|
@@ -213,37 +227,18 @@
|
|
213
227
|
}
|
214
228
|
],
|
215
229
|
"internalType": "struct Fee",
|
216
|
-
"name": "
|
230
|
+
"name": "performanceFee",
|
217
231
|
"type": "tuple"
|
218
232
|
}
|
219
233
|
],
|
220
|
-
"internalType": "struct ITreasury.
|
221
|
-
"name": "
|
234
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
235
|
+
"name": "info",
|
222
236
|
"type": "tuple"
|
223
237
|
}
|
224
238
|
],
|
225
239
|
"stateMutability": "view",
|
226
240
|
"type": "function"
|
227
241
|
},
|
228
|
-
{
|
229
|
-
"inputs": [
|
230
|
-
{
|
231
|
-
"internalType": "NftId",
|
232
|
-
"name": "componentNftId",
|
233
|
-
"type": "uint96"
|
234
|
-
}
|
235
|
-
],
|
236
|
-
"name": "getTokenHandler",
|
237
|
-
"outputs": [
|
238
|
-
{
|
239
|
-
"internalType": "contract TokenHandler",
|
240
|
-
"name": "tokenHandler",
|
241
|
-
"type": "address"
|
242
|
-
}
|
243
|
-
],
|
244
|
-
"stateMutability": "view",
|
245
|
-
"type": "function"
|
246
|
-
},
|
247
242
|
{
|
248
243
|
"inputs": [
|
249
244
|
{
|
@@ -309,59 +304,7 @@
|
|
309
304
|
"type": "tuple"
|
310
305
|
}
|
311
306
|
],
|
312
|
-
"stateMutability": "
|
313
|
-
"type": "function"
|
314
|
-
},
|
315
|
-
{
|
316
|
-
"inputs": [
|
317
|
-
{
|
318
|
-
"internalType": "NftId",
|
319
|
-
"name": "poolNftId",
|
320
|
-
"type": "uint96"
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"internalType": "address",
|
324
|
-
"name": "wallet",
|
325
|
-
"type": "address"
|
326
|
-
},
|
327
|
-
{
|
328
|
-
"components": [
|
329
|
-
{
|
330
|
-
"internalType": "UFixed",
|
331
|
-
"name": "fractionalFee",
|
332
|
-
"type": "uint256"
|
333
|
-
},
|
334
|
-
{
|
335
|
-
"internalType": "uint256",
|
336
|
-
"name": "fixedFee",
|
337
|
-
"type": "uint256"
|
338
|
-
}
|
339
|
-
],
|
340
|
-
"internalType": "struct Fee",
|
341
|
-
"name": "stakingFee",
|
342
|
-
"type": "tuple"
|
343
|
-
},
|
344
|
-
{
|
345
|
-
"components": [
|
346
|
-
{
|
347
|
-
"internalType": "UFixed",
|
348
|
-
"name": "fractionalFee",
|
349
|
-
"type": "uint256"
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"internalType": "uint256",
|
353
|
-
"name": "fixedFee",
|
354
|
-
"type": "uint256"
|
355
|
-
}
|
356
|
-
],
|
357
|
-
"internalType": "struct Fee",
|
358
|
-
"name": "performanceFee",
|
359
|
-
"type": "tuple"
|
360
|
-
}
|
361
|
-
],
|
362
|
-
"name": "registerPool",
|
363
|
-
"outputs": [],
|
364
|
-
"stateMutability": "nonpayable",
|
307
|
+
"stateMutability": "view",
|
365
308
|
"type": "function"
|
366
309
|
},
|
367
310
|
{
|
@@ -373,7 +316,7 @@
|
|
373
316
|
},
|
374
317
|
{
|
375
318
|
"internalType": "NftId",
|
376
|
-
"name": "
|
319
|
+
"name": "compensationNftId",
|
377
320
|
"type": "uint96"
|
378
321
|
},
|
379
322
|
{
|
@@ -386,11 +329,6 @@
|
|
386
329
|
"name": "token",
|
387
330
|
"type": "address"
|
388
331
|
},
|
389
|
-
{
|
390
|
-
"internalType": "address",
|
391
|
-
"name": "wallet",
|
392
|
-
"type": "address"
|
393
|
-
},
|
394
332
|
{
|
395
333
|
"components": [
|
396
334
|
{
|
@@ -424,19 +362,6 @@
|
|
424
362
|
"internalType": "struct Fee",
|
425
363
|
"name": "processingFee",
|
426
364
|
"type": "tuple"
|
427
|
-
}
|
428
|
-
],
|
429
|
-
"name": "registerProduct",
|
430
|
-
"outputs": [],
|
431
|
-
"stateMutability": "nonpayable",
|
432
|
-
"type": "function"
|
433
|
-
},
|
434
|
-
{
|
435
|
-
"inputs": [
|
436
|
-
{
|
437
|
-
"internalType": "NftId",
|
438
|
-
"name": "poolNftId",
|
439
|
-
"type": "uint96"
|
440
365
|
},
|
441
366
|
{
|
442
367
|
"components": [
|
@@ -473,7 +398,7 @@
|
|
473
398
|
"type": "tuple"
|
474
399
|
}
|
475
400
|
],
|
476
|
-
"name": "
|
401
|
+
"name": "registerProductSetup",
|
477
402
|
"outputs": [],
|
478
403
|
"stateMutability": "nonpayable",
|
479
404
|
"type": "function"
|
@@ -488,39 +413,112 @@
|
|
488
413
|
{
|
489
414
|
"components": [
|
490
415
|
{
|
491
|
-
"internalType": "
|
492
|
-
"name": "
|
493
|
-
"type": "
|
416
|
+
"internalType": "NftId",
|
417
|
+
"name": "compensationNftId",
|
418
|
+
"type": "uint96"
|
494
419
|
},
|
495
420
|
{
|
496
|
-
"internalType": "
|
497
|
-
"name": "
|
498
|
-
"type": "
|
499
|
-
}
|
500
|
-
],
|
501
|
-
"internalType": "struct Fee",
|
502
|
-
"name": "policyFee",
|
503
|
-
"type": "tuple"
|
504
|
-
},
|
505
|
-
{
|
506
|
-
"components": [
|
421
|
+
"internalType": "NftId",
|
422
|
+
"name": "poolNftId",
|
423
|
+
"type": "uint96"
|
424
|
+
},
|
507
425
|
{
|
508
|
-
"internalType": "
|
509
|
-
"name": "
|
510
|
-
"type": "
|
426
|
+
"internalType": "contract IERC20Metadata",
|
427
|
+
"name": "token",
|
428
|
+
"type": "address"
|
511
429
|
},
|
512
430
|
{
|
513
|
-
"
|
514
|
-
|
515
|
-
|
431
|
+
"components": [
|
432
|
+
{
|
433
|
+
"internalType": "UFixed",
|
434
|
+
"name": "fractionalFee",
|
435
|
+
"type": "uint256"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"internalType": "uint256",
|
439
|
+
"name": "fixedFee",
|
440
|
+
"type": "uint256"
|
441
|
+
}
|
442
|
+
],
|
443
|
+
"internalType": "struct Fee",
|
444
|
+
"name": "commissionFee",
|
445
|
+
"type": "tuple"
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"components": [
|
449
|
+
{
|
450
|
+
"internalType": "UFixed",
|
451
|
+
"name": "fractionalFee",
|
452
|
+
"type": "uint256"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"internalType": "uint256",
|
456
|
+
"name": "fixedFee",
|
457
|
+
"type": "uint256"
|
458
|
+
}
|
459
|
+
],
|
460
|
+
"internalType": "struct Fee",
|
461
|
+
"name": "policyFee",
|
462
|
+
"type": "tuple"
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"components": [
|
466
|
+
{
|
467
|
+
"internalType": "UFixed",
|
468
|
+
"name": "fractionalFee",
|
469
|
+
"type": "uint256"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"internalType": "uint256",
|
473
|
+
"name": "fixedFee",
|
474
|
+
"type": "uint256"
|
475
|
+
}
|
476
|
+
],
|
477
|
+
"internalType": "struct Fee",
|
478
|
+
"name": "processingFee",
|
479
|
+
"type": "tuple"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"components": [
|
483
|
+
{
|
484
|
+
"internalType": "UFixed",
|
485
|
+
"name": "fractionalFee",
|
486
|
+
"type": "uint256"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"internalType": "uint256",
|
490
|
+
"name": "fixedFee",
|
491
|
+
"type": "uint256"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"internalType": "struct Fee",
|
495
|
+
"name": "stakingFee",
|
496
|
+
"type": "tuple"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"components": [
|
500
|
+
{
|
501
|
+
"internalType": "UFixed",
|
502
|
+
"name": "fractionalFee",
|
503
|
+
"type": "uint256"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"internalType": "uint256",
|
507
|
+
"name": "fixedFee",
|
508
|
+
"type": "uint256"
|
509
|
+
}
|
510
|
+
],
|
511
|
+
"internalType": "struct Fee",
|
512
|
+
"name": "performanceFee",
|
513
|
+
"type": "tuple"
|
516
514
|
}
|
517
515
|
],
|
518
|
-
"internalType": "struct
|
519
|
-
"name": "
|
516
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
517
|
+
"name": "info",
|
520
518
|
"type": "tuple"
|
521
519
|
}
|
522
520
|
],
|
523
|
-
"name": "
|
521
|
+
"name": "setTreasuryInfo",
|
524
522
|
"outputs": [],
|
525
523
|
"stateMutability": "nonpayable",
|
526
524
|
"type": "function"
|