@etherisc/gif-next 0.0.2-d3ee0cc-268 → 0.0.2-d408403-475
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +38 -11
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +340 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +131 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +109 -18
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +194 -3
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +160 -21
- 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 +592 -451
- 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 +735 -506
- 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 +50 -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 +50 -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 +55 -54
- 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 +56 -55
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
- 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 +22 -93
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensation.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
- 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 +61 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -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 +104 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -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 +209 -231
- 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 +209 -231
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +55 -15
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +420 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +325 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +64 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +160 -7
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +84 -12
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +216 -31
- 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/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +194 -3
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +209 -27
- 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/TestRoleId.sol/TestRoleId.json +38 -4
- 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/Fee.sol/FeeLib.json +50 -11
- 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/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
- 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 +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
- 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/Distribution.sol +132 -0
- package/contracts/components/IDistributionComponent.sol +48 -0
- package/contracts/components/IPoolComponent.sol +14 -0
- package/contracts/components/IProductComponent.sol +24 -5
- package/contracts/components/Pool.sol +64 -3
- package/contracts/components/Product.sol +123 -13
- package/contracts/instance/IInstance.sol +7 -6
- package/contracts/instance/Instance.sol +12 -6
- package/contracts/instance/base/IInstanceBase.sol +8 -0
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +13 -2
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +22 -17
- package/contracts/instance/module/access/Access.sol +6 -6
- package/contracts/instance/module/bundle/BundleModule.sol +10 -12
- package/contracts/instance/module/bundle/IBundle.sol +6 -11
- package/contracts/instance/module/component/ComponentModule.sol +29 -54
- package/contracts/instance/module/component/IComponent.sol +5 -30
- package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
- package/contracts/instance/module/distribution/IDistribution.sol +10 -0
- package/contracts/instance/module/policy/IPolicy.sol +12 -9
- package/contracts/instance/module/policy/PolicyModule.sol +35 -20
- 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 +18 -2
- package/contracts/instance/module/risk/RiskModule.sol +56 -2
- package/contracts/instance/module/treasury/ITreasury.sol +29 -50
- package/contracts/instance/module/treasury/TreasuryModule.sol +71 -85
- package/contracts/instance/service/ComponentOwnerService.sol +29 -42
- package/contracts/instance/service/DistributionService.sol +59 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +7 -0
- package/contracts/instance/service/IProductService.sol +56 -7
- package/contracts/instance/service/PoolService.sol +30 -4
- package/contracts/instance/service/ProductService.sol +230 -75
- package/contracts/registry/Registry.sol +3 -2
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestPool.sol +5 -2
- package/contracts/test/TestProduct.sol +35 -7
- package/contracts/test/TestRoleId.sol +2 -2
- package/contracts/types/Fee.sol +8 -3
- package/contracts/types/ObjectType.sol +24 -8
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +12 -10
- package/package.json +1 -1
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
@@ -200,22 +200,34 @@
|
|
200
200
|
"inputs": [
|
201
201
|
{
|
202
202
|
"internalType": "NftId",
|
203
|
-
"name": "
|
203
|
+
"name": "bundleNftId",
|
204
204
|
"type": "uint96"
|
205
205
|
},
|
206
206
|
{
|
207
207
|
"internalType": "NftId",
|
208
|
-
"name": "
|
208
|
+
"name": "poolNftId",
|
209
209
|
"type": "uint96"
|
210
210
|
},
|
211
211
|
{
|
212
|
-
"
|
213
|
-
|
214
|
-
|
212
|
+
"components": [
|
213
|
+
{
|
214
|
+
"internalType": "UFixed",
|
215
|
+
"name": "fractionalFee",
|
216
|
+
"type": "uint256"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "fixedFee",
|
221
|
+
"type": "uint256"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"internalType": "struct Fee",
|
225
|
+
"name": "fee",
|
226
|
+
"type": "tuple"
|
215
227
|
},
|
216
228
|
{
|
217
229
|
"internalType": "uint256",
|
218
|
-
"name": "
|
230
|
+
"name": "amount",
|
219
231
|
"type": "uint256"
|
220
232
|
},
|
221
233
|
{
|
@@ -224,12 +236,12 @@
|
|
224
236
|
"type": "uint256"
|
225
237
|
},
|
226
238
|
{
|
227
|
-
"internalType": "
|
228
|
-
"name": "
|
229
|
-
"type": "
|
239
|
+
"internalType": "bytes",
|
240
|
+
"name": "filter",
|
241
|
+
"type": "bytes"
|
230
242
|
}
|
231
243
|
],
|
232
|
-
"name": "
|
244
|
+
"name": "createBundleInfo",
|
233
245
|
"outputs": [],
|
234
246
|
"stateMutability": "nonpayable",
|
235
247
|
"type": "function"
|
@@ -238,17 +250,32 @@
|
|
238
250
|
"inputs": [
|
239
251
|
{
|
240
252
|
"internalType": "NftId",
|
241
|
-
"name": "
|
253
|
+
"name": "policyNftId",
|
242
254
|
"type": "uint96"
|
243
255
|
},
|
244
256
|
{
|
245
257
|
"internalType": "NftId",
|
246
|
-
"name": "
|
258
|
+
"name": "productNftId",
|
247
259
|
"type": "uint96"
|
248
260
|
},
|
261
|
+
{
|
262
|
+
"internalType": "ReferralId",
|
263
|
+
"name": "referralId",
|
264
|
+
"type": "bytes8"
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"internalType": "RiskId",
|
268
|
+
"name": "riskId",
|
269
|
+
"type": "bytes8"
|
270
|
+
},
|
249
271
|
{
|
250
272
|
"internalType": "uint256",
|
251
|
-
"name": "
|
273
|
+
"name": "sumInsuredAmount",
|
274
|
+
"type": "uint256"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"internalType": "uint256",
|
278
|
+
"name": "premiumAmount",
|
252
279
|
"type": "uint256"
|
253
280
|
},
|
254
281
|
{
|
@@ -256,13 +283,36 @@
|
|
256
283
|
"name": "lifetime",
|
257
284
|
"type": "uint256"
|
258
285
|
},
|
286
|
+
{
|
287
|
+
"internalType": "NftId",
|
288
|
+
"name": "bundleNftId",
|
289
|
+
"type": "uint96"
|
290
|
+
}
|
291
|
+
],
|
292
|
+
"name": "createPolicyInfo",
|
293
|
+
"outputs": [],
|
294
|
+
"stateMutability": "nonpayable",
|
295
|
+
"type": "function"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"inputs": [
|
299
|
+
{
|
300
|
+
"internalType": "RiskId",
|
301
|
+
"name": "riskId",
|
302
|
+
"type": "bytes8"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "NftId",
|
306
|
+
"name": "productNftId",
|
307
|
+
"type": "uint96"
|
308
|
+
},
|
259
309
|
{
|
260
310
|
"internalType": "bytes",
|
261
|
-
"name": "
|
311
|
+
"name": "data",
|
262
312
|
"type": "bytes"
|
263
313
|
}
|
264
314
|
],
|
265
|
-
"name": "
|
315
|
+
"name": "createRisk",
|
266
316
|
"outputs": [],
|
267
317
|
"stateMutability": "nonpayable",
|
268
318
|
"type": "function"
|
@@ -309,7 +359,7 @@
|
|
309
359
|
"inputs": [
|
310
360
|
{
|
311
361
|
"internalType": "NftId",
|
312
|
-
"name": "
|
362
|
+
"name": "nftId",
|
313
363
|
"type": "uint96"
|
314
364
|
}
|
315
365
|
],
|
@@ -319,13 +369,25 @@
|
|
319
369
|
"components": [
|
320
370
|
{
|
321
371
|
"internalType": "NftId",
|
322
|
-
"name": "
|
372
|
+
"name": "poolNftId",
|
323
373
|
"type": "uint96"
|
324
374
|
},
|
325
375
|
{
|
326
|
-
"
|
327
|
-
|
328
|
-
|
376
|
+
"components": [
|
377
|
+
{
|
378
|
+
"internalType": "UFixed",
|
379
|
+
"name": "fractionalFee",
|
380
|
+
"type": "uint256"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"internalType": "uint256",
|
384
|
+
"name": "fixedFee",
|
385
|
+
"type": "uint256"
|
386
|
+
}
|
387
|
+
],
|
388
|
+
"internalType": "struct Fee",
|
389
|
+
"name": "fee",
|
390
|
+
"type": "tuple"
|
329
391
|
},
|
330
392
|
{
|
331
393
|
"internalType": "bytes",
|
@@ -422,6 +484,19 @@
|
|
422
484
|
"stateMutability": "view",
|
423
485
|
"type": "function"
|
424
486
|
},
|
487
|
+
{
|
488
|
+
"inputs": [],
|
489
|
+
"name": "getComponentOwnerService",
|
490
|
+
"outputs": [
|
491
|
+
{
|
492
|
+
"internalType": "contract IComponentOwnerService",
|
493
|
+
"name": "",
|
494
|
+
"type": "address"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"stateMutability": "view",
|
498
|
+
"type": "function"
|
499
|
+
},
|
425
500
|
{
|
426
501
|
"inputs": [
|
427
502
|
{
|
@@ -430,41 +505,30 @@
|
|
430
505
|
"type": "uint96"
|
431
506
|
}
|
432
507
|
],
|
433
|
-
"name": "
|
508
|
+
"name": "getComponentToken",
|
434
509
|
"outputs": [
|
435
510
|
{
|
436
|
-
"
|
437
|
-
|
438
|
-
|
439
|
-
"name": "nftId",
|
440
|
-
"type": "uint96"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
"internalType": "StateId",
|
444
|
-
"name": "state",
|
445
|
-
"type": "uint8"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "contract IERC20Metadata",
|
449
|
-
"name": "token",
|
450
|
-
"type": "address"
|
451
|
-
}
|
452
|
-
],
|
453
|
-
"internalType": "struct IComponent.ComponentInfo",
|
454
|
-
"name": "info",
|
455
|
-
"type": "tuple"
|
511
|
+
"internalType": "contract IERC20Metadata",
|
512
|
+
"name": "token",
|
513
|
+
"type": "address"
|
456
514
|
}
|
457
515
|
],
|
458
516
|
"stateMutability": "view",
|
459
517
|
"type": "function"
|
460
518
|
},
|
461
519
|
{
|
462
|
-
"inputs": [
|
463
|
-
|
520
|
+
"inputs": [
|
521
|
+
{
|
522
|
+
"internalType": "NftId",
|
523
|
+
"name": "nftId",
|
524
|
+
"type": "uint96"
|
525
|
+
}
|
526
|
+
],
|
527
|
+
"name": "getComponentWallet",
|
464
528
|
"outputs": [
|
465
529
|
{
|
466
|
-
"internalType": "
|
467
|
-
"name": "",
|
530
|
+
"internalType": "address",
|
531
|
+
"name": "wallet",
|
468
532
|
"type": "address"
|
469
533
|
}
|
470
534
|
],
|
@@ -484,6 +548,19 @@
|
|
484
548
|
"stateMutability": "view",
|
485
549
|
"type": "function"
|
486
550
|
},
|
551
|
+
{
|
552
|
+
"inputs": [],
|
553
|
+
"name": "getDistributionService",
|
554
|
+
"outputs": [
|
555
|
+
{
|
556
|
+
"internalType": "contract IDistributionService",
|
557
|
+
"name": "",
|
558
|
+
"type": "address"
|
559
|
+
}
|
560
|
+
],
|
561
|
+
"stateMutability": "view",
|
562
|
+
"type": "function"
|
563
|
+
},
|
487
564
|
{
|
488
565
|
"inputs": [
|
489
566
|
{
|
@@ -584,11 +661,6 @@
|
|
584
661
|
"outputs": [
|
585
662
|
{
|
586
663
|
"components": [
|
587
|
-
{
|
588
|
-
"internalType": "NftId",
|
589
|
-
"name": "nftId",
|
590
|
-
"type": "uint96"
|
591
|
-
},
|
592
664
|
{
|
593
665
|
"internalType": "NftId",
|
594
666
|
"name": "productNftId",
|
@@ -599,15 +671,20 @@
|
|
599
671
|
"name": "bundleNftId",
|
600
672
|
"type": "uint96"
|
601
673
|
},
|
674
|
+
{
|
675
|
+
"internalType": "ReferralId",
|
676
|
+
"name": "referralId",
|
677
|
+
"type": "bytes8"
|
678
|
+
},
|
602
679
|
{
|
603
680
|
"internalType": "address",
|
604
681
|
"name": "beneficiary",
|
605
682
|
"type": "address"
|
606
683
|
},
|
607
684
|
{
|
608
|
-
"internalType": "
|
609
|
-
"name": "
|
610
|
-
"type": "
|
685
|
+
"internalType": "RiskId",
|
686
|
+
"name": "riskId",
|
687
|
+
"type": "bytes8"
|
611
688
|
},
|
612
689
|
{
|
613
690
|
"internalType": "uint256",
|
@@ -631,13 +708,13 @@
|
|
631
708
|
},
|
632
709
|
{
|
633
710
|
"internalType": "bytes",
|
634
|
-
"name": "
|
711
|
+
"name": "applicationData",
|
635
712
|
"type": "bytes"
|
636
713
|
},
|
637
714
|
{
|
638
|
-
"internalType": "
|
639
|
-
"name": "
|
640
|
-
"type": "
|
715
|
+
"internalType": "bytes",
|
716
|
+
"name": "policyData",
|
717
|
+
"type": "bytes"
|
641
718
|
},
|
642
719
|
{
|
643
720
|
"internalType": "Timestamp",
|
@@ -653,11 +730,6 @@
|
|
653
730
|
"internalType": "Timestamp",
|
654
731
|
"name": "closedAt",
|
655
732
|
"type": "uint40"
|
656
|
-
},
|
657
|
-
{
|
658
|
-
"internalType": "Blocknumber",
|
659
|
-
"name": "updatedIn",
|
660
|
-
"type": "uint32"
|
661
733
|
}
|
662
734
|
],
|
663
735
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -680,11 +752,6 @@
|
|
680
752
|
"outputs": [
|
681
753
|
{
|
682
754
|
"components": [
|
683
|
-
{
|
684
|
-
"internalType": "NftId",
|
685
|
-
"name": "nftId",
|
686
|
-
"type": "uint96"
|
687
|
-
},
|
688
755
|
{
|
689
756
|
"internalType": "bool",
|
690
757
|
"name": "isVerifying",
|
@@ -721,62 +788,16 @@
|
|
721
788
|
"inputs": [
|
722
789
|
{
|
723
790
|
"internalType": "NftId",
|
724
|
-
"name": "
|
791
|
+
"name": "componentNftId",
|
725
792
|
"type": "uint96"
|
726
793
|
}
|
727
794
|
],
|
728
|
-
"name": "
|
795
|
+
"name": "getProductNftId",
|
729
796
|
"outputs": [
|
730
797
|
{
|
731
|
-
"
|
732
|
-
|
733
|
-
|
734
|
-
"name": "poolNftId",
|
735
|
-
"type": "uint96"
|
736
|
-
},
|
737
|
-
{
|
738
|
-
"internalType": "address",
|
739
|
-
"name": "wallet",
|
740
|
-
"type": "address"
|
741
|
-
},
|
742
|
-
{
|
743
|
-
"components": [
|
744
|
-
{
|
745
|
-
"internalType": "UFixed",
|
746
|
-
"name": "fractionalFee",
|
747
|
-
"type": "uint256"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"internalType": "uint256",
|
751
|
-
"name": "fixedFee",
|
752
|
-
"type": "uint256"
|
753
|
-
}
|
754
|
-
],
|
755
|
-
"internalType": "struct Fee",
|
756
|
-
"name": "stakingFee",
|
757
|
-
"type": "tuple"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"components": [
|
761
|
-
{
|
762
|
-
"internalType": "UFixed",
|
763
|
-
"name": "fractionalFee",
|
764
|
-
"type": "uint256"
|
765
|
-
},
|
766
|
-
{
|
767
|
-
"internalType": "uint256",
|
768
|
-
"name": "fixedFee",
|
769
|
-
"type": "uint256"
|
770
|
-
}
|
771
|
-
],
|
772
|
-
"internalType": "struct Fee",
|
773
|
-
"name": "performanceFee",
|
774
|
-
"type": "tuple"
|
775
|
-
}
|
776
|
-
],
|
777
|
-
"internalType": "struct ITreasury.PoolSetup",
|
778
|
-
"name": "setup",
|
779
|
-
"type": "tuple"
|
798
|
+
"internalType": "NftId",
|
799
|
+
"name": "productNftId",
|
800
|
+
"type": "uint96"
|
780
801
|
}
|
781
802
|
],
|
782
803
|
"stateMutability": "view",
|
@@ -795,15 +816,28 @@
|
|
795
816
|
"stateMutability": "view",
|
796
817
|
"type": "function"
|
797
818
|
},
|
819
|
+
{
|
820
|
+
"inputs": [],
|
821
|
+
"name": "getRegistry",
|
822
|
+
"outputs": [
|
823
|
+
{
|
824
|
+
"internalType": "contract IRegistry",
|
825
|
+
"name": "registry",
|
826
|
+
"type": "address"
|
827
|
+
}
|
828
|
+
],
|
829
|
+
"stateMutability": "view",
|
830
|
+
"type": "function"
|
831
|
+
},
|
798
832
|
{
|
799
833
|
"inputs": [
|
800
834
|
{
|
801
|
-
"internalType": "
|
802
|
-
"name": "
|
803
|
-
"type": "
|
835
|
+
"internalType": "RiskId",
|
836
|
+
"name": "riskId",
|
837
|
+
"type": "bytes8"
|
804
838
|
}
|
805
839
|
],
|
806
|
-
"name": "
|
840
|
+
"name": "getRiskInfo",
|
807
841
|
"outputs": [
|
808
842
|
{
|
809
843
|
"components": [
|
@@ -813,81 +847,19 @@
|
|
813
847
|
"type": "uint96"
|
814
848
|
},
|
815
849
|
{
|
816
|
-
"internalType": "
|
817
|
-
"name": "
|
818
|
-
"type": "
|
819
|
-
},
|
820
|
-
{
|
821
|
-
"internalType": "NftId",
|
822
|
-
"name": "poolNftId",
|
823
|
-
"type": "uint96"
|
824
|
-
},
|
825
|
-
{
|
826
|
-
"internalType": "contract IERC20Metadata",
|
827
|
-
"name": "token",
|
828
|
-
"type": "address"
|
829
|
-
},
|
830
|
-
{
|
831
|
-
"internalType": "address",
|
832
|
-
"name": "wallet",
|
833
|
-
"type": "address"
|
834
|
-
},
|
835
|
-
{
|
836
|
-
"components": [
|
837
|
-
{
|
838
|
-
"internalType": "UFixed",
|
839
|
-
"name": "fractionalFee",
|
840
|
-
"type": "uint256"
|
841
|
-
},
|
842
|
-
{
|
843
|
-
"internalType": "uint256",
|
844
|
-
"name": "fixedFee",
|
845
|
-
"type": "uint256"
|
846
|
-
}
|
847
|
-
],
|
848
|
-
"internalType": "struct Fee",
|
849
|
-
"name": "policyFee",
|
850
|
-
"type": "tuple"
|
851
|
-
},
|
852
|
-
{
|
853
|
-
"components": [
|
854
|
-
{
|
855
|
-
"internalType": "UFixed",
|
856
|
-
"name": "fractionalFee",
|
857
|
-
"type": "uint256"
|
858
|
-
},
|
859
|
-
{
|
860
|
-
"internalType": "uint256",
|
861
|
-
"name": "fixedFee",
|
862
|
-
"type": "uint256"
|
863
|
-
}
|
864
|
-
],
|
865
|
-
"internalType": "struct Fee",
|
866
|
-
"name": "processingFee",
|
867
|
-
"type": "tuple"
|
850
|
+
"internalType": "bytes",
|
851
|
+
"name": "data",
|
852
|
+
"type": "bytes"
|
868
853
|
}
|
869
854
|
],
|
870
|
-
"internalType": "struct
|
871
|
-
"name": "
|
855
|
+
"internalType": "struct IRisk.RiskInfo",
|
856
|
+
"name": "info",
|
872
857
|
"type": "tuple"
|
873
858
|
}
|
874
859
|
],
|
875
860
|
"stateMutability": "view",
|
876
861
|
"type": "function"
|
877
862
|
},
|
878
|
-
{
|
879
|
-
"inputs": [],
|
880
|
-
"name": "getRegistry",
|
881
|
-
"outputs": [
|
882
|
-
{
|
883
|
-
"internalType": "contract IRegistry",
|
884
|
-
"name": "registry",
|
885
|
-
"type": "address"
|
886
|
-
}
|
887
|
-
],
|
888
|
-
"stateMutability": "view",
|
889
|
-
"type": "function"
|
890
|
-
},
|
891
863
|
{
|
892
864
|
"inputs": [
|
893
865
|
{
|
@@ -1018,6 +990,25 @@
|
|
1018
990
|
"stateMutability": "view",
|
1019
991
|
"type": "function"
|
1020
992
|
},
|
993
|
+
{
|
994
|
+
"inputs": [
|
995
|
+
{
|
996
|
+
"internalType": "Key32",
|
997
|
+
"name": "key",
|
998
|
+
"type": "bytes32"
|
999
|
+
}
|
1000
|
+
],
|
1001
|
+
"name": "getState",
|
1002
|
+
"outputs": [
|
1003
|
+
{
|
1004
|
+
"internalType": "StateId",
|
1005
|
+
"name": "state",
|
1006
|
+
"type": "uint8"
|
1007
|
+
}
|
1008
|
+
],
|
1009
|
+
"stateMutability": "view",
|
1010
|
+
"type": "function"
|
1011
|
+
},
|
1021
1012
|
{
|
1022
1013
|
"inputs": [
|
1023
1014
|
{
|
@@ -1037,6 +1028,144 @@
|
|
1037
1028
|
"stateMutability": "view",
|
1038
1029
|
"type": "function"
|
1039
1030
|
},
|
1031
|
+
{
|
1032
|
+
"inputs": [
|
1033
|
+
{
|
1034
|
+
"internalType": "NftId",
|
1035
|
+
"name": "productNftId",
|
1036
|
+
"type": "uint96"
|
1037
|
+
}
|
1038
|
+
],
|
1039
|
+
"name": "getTreasuryInfo",
|
1040
|
+
"outputs": [
|
1041
|
+
{
|
1042
|
+
"components": [
|
1043
|
+
{
|
1044
|
+
"internalType": "NftId",
|
1045
|
+
"name": "poolNftId",
|
1046
|
+
"type": "uint96"
|
1047
|
+
},
|
1048
|
+
{
|
1049
|
+
"internalType": "NftId",
|
1050
|
+
"name": "distributionNftId",
|
1051
|
+
"type": "uint96"
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
"internalType": "contract IERC20Metadata",
|
1055
|
+
"name": "token",
|
1056
|
+
"type": "address"
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"components": [
|
1060
|
+
{
|
1061
|
+
"internalType": "UFixed",
|
1062
|
+
"name": "fractionalFee",
|
1063
|
+
"type": "uint256"
|
1064
|
+
},
|
1065
|
+
{
|
1066
|
+
"internalType": "uint256",
|
1067
|
+
"name": "fixedFee",
|
1068
|
+
"type": "uint256"
|
1069
|
+
}
|
1070
|
+
],
|
1071
|
+
"internalType": "struct Fee",
|
1072
|
+
"name": "productFee",
|
1073
|
+
"type": "tuple"
|
1074
|
+
},
|
1075
|
+
{
|
1076
|
+
"components": [
|
1077
|
+
{
|
1078
|
+
"internalType": "UFixed",
|
1079
|
+
"name": "fractionalFee",
|
1080
|
+
"type": "uint256"
|
1081
|
+
},
|
1082
|
+
{
|
1083
|
+
"internalType": "uint256",
|
1084
|
+
"name": "fixedFee",
|
1085
|
+
"type": "uint256"
|
1086
|
+
}
|
1087
|
+
],
|
1088
|
+
"internalType": "struct Fee",
|
1089
|
+
"name": "processingFee",
|
1090
|
+
"type": "tuple"
|
1091
|
+
},
|
1092
|
+
{
|
1093
|
+
"components": [
|
1094
|
+
{
|
1095
|
+
"internalType": "UFixed",
|
1096
|
+
"name": "fractionalFee",
|
1097
|
+
"type": "uint256"
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
"internalType": "uint256",
|
1101
|
+
"name": "fixedFee",
|
1102
|
+
"type": "uint256"
|
1103
|
+
}
|
1104
|
+
],
|
1105
|
+
"internalType": "struct Fee",
|
1106
|
+
"name": "poolFee",
|
1107
|
+
"type": "tuple"
|
1108
|
+
},
|
1109
|
+
{
|
1110
|
+
"components": [
|
1111
|
+
{
|
1112
|
+
"internalType": "UFixed",
|
1113
|
+
"name": "fractionalFee",
|
1114
|
+
"type": "uint256"
|
1115
|
+
},
|
1116
|
+
{
|
1117
|
+
"internalType": "uint256",
|
1118
|
+
"name": "fixedFee",
|
1119
|
+
"type": "uint256"
|
1120
|
+
}
|
1121
|
+
],
|
1122
|
+
"internalType": "struct Fee",
|
1123
|
+
"name": "stakingFee",
|
1124
|
+
"type": "tuple"
|
1125
|
+
},
|
1126
|
+
{
|
1127
|
+
"components": [
|
1128
|
+
{
|
1129
|
+
"internalType": "UFixed",
|
1130
|
+
"name": "fractionalFee",
|
1131
|
+
"type": "uint256"
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
"internalType": "uint256",
|
1135
|
+
"name": "fixedFee",
|
1136
|
+
"type": "uint256"
|
1137
|
+
}
|
1138
|
+
],
|
1139
|
+
"internalType": "struct Fee",
|
1140
|
+
"name": "performanceFee",
|
1141
|
+
"type": "tuple"
|
1142
|
+
},
|
1143
|
+
{
|
1144
|
+
"components": [
|
1145
|
+
{
|
1146
|
+
"internalType": "UFixed",
|
1147
|
+
"name": "fractionalFee",
|
1148
|
+
"type": "uint256"
|
1149
|
+
},
|
1150
|
+
{
|
1151
|
+
"internalType": "uint256",
|
1152
|
+
"name": "fixedFee",
|
1153
|
+
"type": "uint256"
|
1154
|
+
}
|
1155
|
+
],
|
1156
|
+
"internalType": "struct Fee",
|
1157
|
+
"name": "distributionFee",
|
1158
|
+
"type": "tuple"
|
1159
|
+
}
|
1160
|
+
],
|
1161
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1162
|
+
"name": "info",
|
1163
|
+
"type": "tuple"
|
1164
|
+
}
|
1165
|
+
],
|
1166
|
+
"stateMutability": "view",
|
1167
|
+
"type": "function"
|
1168
|
+
},
|
1040
1169
|
{
|
1041
1170
|
"inputs": [],
|
1042
1171
|
"name": "getType",
|
@@ -1206,7 +1335,7 @@
|
|
1206
1335
|
"type": "tuple"
|
1207
1336
|
}
|
1208
1337
|
],
|
1209
|
-
"stateMutability": "
|
1338
|
+
"stateMutability": "view",
|
1210
1339
|
"type": "function"
|
1211
1340
|
},
|
1212
1341
|
{
|
@@ -1244,7 +1373,26 @@
|
|
1244
1373
|
"outputs": [
|
1245
1374
|
{
|
1246
1375
|
"internalType": "bool",
|
1247
|
-
"name": "
|
1376
|
+
"name": "",
|
1377
|
+
"type": "bool"
|
1378
|
+
}
|
1379
|
+
],
|
1380
|
+
"stateMutability": "view",
|
1381
|
+
"type": "function"
|
1382
|
+
},
|
1383
|
+
{
|
1384
|
+
"inputs": [
|
1385
|
+
{
|
1386
|
+
"internalType": "NftId",
|
1387
|
+
"name": "productNftId",
|
1388
|
+
"type": "uint96"
|
1389
|
+
}
|
1390
|
+
],
|
1391
|
+
"name": "hasTreasuryInfo",
|
1392
|
+
"outputs": [
|
1393
|
+
{
|
1394
|
+
"internalType": "bool",
|
1395
|
+
"name": "hasInfo",
|
1248
1396
|
"type": "bool"
|
1249
1397
|
}
|
1250
1398
|
],
|
@@ -1290,15 +1438,15 @@
|
|
1290
1438
|
"name": "nftId",
|
1291
1439
|
"type": "uint96"
|
1292
1440
|
},
|
1293
|
-
{
|
1294
|
-
"internalType": "ObjectType",
|
1295
|
-
"name": "objectType",
|
1296
|
-
"type": "uint8"
|
1297
|
-
},
|
1298
1441
|
{
|
1299
1442
|
"internalType": "contract IERC20Metadata",
|
1300
1443
|
"name": "token",
|
1301
1444
|
"type": "address"
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"internalType": "address",
|
1448
|
+
"name": "wallet",
|
1449
|
+
"type": "address"
|
1302
1450
|
}
|
1303
1451
|
],
|
1304
1452
|
"name": "registerComponent",
|
@@ -1314,136 +1462,40 @@
|
|
1314
1462
|
"type": "uint96"
|
1315
1463
|
},
|
1316
1464
|
{
|
1317
|
-
"internalType": "
|
1318
|
-
"name": "
|
1465
|
+
"internalType": "bool",
|
1466
|
+
"name": "isVerifying",
|
1467
|
+
"type": "bool"
|
1468
|
+
},
|
1469
|
+
{
|
1470
|
+
"internalType": "UFixed",
|
1471
|
+
"name": "collateralizationLevel",
|
1472
|
+
"type": "uint256"
|
1473
|
+
}
|
1474
|
+
],
|
1475
|
+
"name": "registerPool",
|
1476
|
+
"outputs": [],
|
1477
|
+
"stateMutability": "nonpayable",
|
1478
|
+
"type": "function"
|
1479
|
+
},
|
1480
|
+
{
|
1481
|
+
"inputs": [
|
1482
|
+
{
|
1483
|
+
"internalType": "contract IProductComponent",
|
1484
|
+
"name": "product",
|
1319
1485
|
"type": "address"
|
1320
1486
|
},
|
1321
1487
|
{
|
1322
|
-
"
|
1323
|
-
|
1324
|
-
"internalType": "UFixed",
|
1325
|
-
"name": "fractionalFee",
|
1326
|
-
"type": "uint256"
|
1327
|
-
},
|
1328
|
-
{
|
1329
|
-
"internalType": "uint256",
|
1330
|
-
"name": "fixedFee",
|
1331
|
-
"type": "uint256"
|
1332
|
-
}
|
1333
|
-
],
|
1334
|
-
"internalType": "struct Fee",
|
1335
|
-
"name": "stakingFee",
|
1336
|
-
"type": "tuple"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"components": [
|
1340
|
-
{
|
1341
|
-
"internalType": "UFixed",
|
1342
|
-
"name": "fractionalFee",
|
1343
|
-
"type": "uint256"
|
1344
|
-
},
|
1345
|
-
{
|
1346
|
-
"internalType": "uint256",
|
1347
|
-
"name": "fixedFee",
|
1348
|
-
"type": "uint256"
|
1349
|
-
}
|
1350
|
-
],
|
1351
|
-
"internalType": "struct Fee",
|
1352
|
-
"name": "performanceFee",
|
1353
|
-
"type": "tuple"
|
1354
|
-
}
|
1355
|
-
],
|
1356
|
-
"name": "registerPool",
|
1357
|
-
"outputs": [],
|
1358
|
-
"stateMutability": "nonpayable",
|
1359
|
-
"type": "function"
|
1360
|
-
},
|
1361
|
-
{
|
1362
|
-
"inputs": [
|
1363
|
-
{
|
1364
|
-
"internalType": "NftId",
|
1365
|
-
"name": "poolNftId",
|
1366
|
-
"type": "uint96"
|
1367
|
-
},
|
1368
|
-
{
|
1369
|
-
"internalType": "bool",
|
1370
|
-
"name": "isVerifying",
|
1371
|
-
"type": "bool"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"internalType": "UFixed",
|
1375
|
-
"name": "collateralizationLevel",
|
1376
|
-
"type": "uint256"
|
1377
|
-
}
|
1378
|
-
],
|
1379
|
-
"name": "registerPool",
|
1380
|
-
"outputs": [],
|
1381
|
-
"stateMutability": "nonpayable",
|
1382
|
-
"type": "function"
|
1383
|
-
},
|
1384
|
-
{
|
1385
|
-
"inputs": [
|
1386
|
-
{
|
1387
|
-
"internalType": "NftId",
|
1388
|
-
"name": "productNftId",
|
1389
|
-
"type": "uint96"
|
1390
|
-
},
|
1391
|
-
{
|
1392
|
-
"internalType": "NftId",
|
1393
|
-
"name": "distributorNftId",
|
1394
|
-
"type": "uint96"
|
1395
|
-
},
|
1396
|
-
{
|
1397
|
-
"internalType": "NftId",
|
1398
|
-
"name": "poolNftId",
|
1399
|
-
"type": "uint96"
|
1400
|
-
},
|
1401
|
-
{
|
1402
|
-
"internalType": "contract IERC20Metadata",
|
1403
|
-
"name": "token",
|
1488
|
+
"internalType": "contract IPoolComponent",
|
1489
|
+
"name": "pool",
|
1404
1490
|
"type": "address"
|
1405
1491
|
},
|
1406
1492
|
{
|
1407
|
-
"internalType": "
|
1408
|
-
"name": "
|
1493
|
+
"internalType": "contract IDistributionComponent",
|
1494
|
+
"name": "distribution",
|
1409
1495
|
"type": "address"
|
1410
|
-
},
|
1411
|
-
{
|
1412
|
-
"components": [
|
1413
|
-
{
|
1414
|
-
"internalType": "UFixed",
|
1415
|
-
"name": "fractionalFee",
|
1416
|
-
"type": "uint256"
|
1417
|
-
},
|
1418
|
-
{
|
1419
|
-
"internalType": "uint256",
|
1420
|
-
"name": "fixedFee",
|
1421
|
-
"type": "uint256"
|
1422
|
-
}
|
1423
|
-
],
|
1424
|
-
"internalType": "struct Fee",
|
1425
|
-
"name": "policyFee",
|
1426
|
-
"type": "tuple"
|
1427
|
-
},
|
1428
|
-
{
|
1429
|
-
"components": [
|
1430
|
-
{
|
1431
|
-
"internalType": "UFixed",
|
1432
|
-
"name": "fractionalFee",
|
1433
|
-
"type": "uint256"
|
1434
|
-
},
|
1435
|
-
{
|
1436
|
-
"internalType": "uint256",
|
1437
|
-
"name": "fixedFee",
|
1438
|
-
"type": "uint256"
|
1439
|
-
}
|
1440
|
-
],
|
1441
|
-
"internalType": "struct Fee",
|
1442
|
-
"name": "processingFee",
|
1443
|
-
"type": "tuple"
|
1444
1496
|
}
|
1445
1497
|
],
|
1446
|
-
"name": "
|
1498
|
+
"name": "registerProductSetup",
|
1447
1499
|
"outputs": [],
|
1448
1500
|
"stateMutability": "nonpayable",
|
1449
1501
|
"type": "function"
|
@@ -1511,17 +1563,34 @@
|
|
1511
1563
|
},
|
1512
1564
|
{
|
1513
1565
|
"inputs": [
|
1566
|
+
{
|
1567
|
+
"internalType": "NftId",
|
1568
|
+
"name": "nftId",
|
1569
|
+
"type": "uint96"
|
1570
|
+
},
|
1514
1571
|
{
|
1515
1572
|
"components": [
|
1516
1573
|
{
|
1517
1574
|
"internalType": "NftId",
|
1518
|
-
"name": "
|
1575
|
+
"name": "poolNftId",
|
1519
1576
|
"type": "uint96"
|
1520
1577
|
},
|
1521
1578
|
{
|
1522
|
-
"
|
1523
|
-
|
1524
|
-
|
1579
|
+
"components": [
|
1580
|
+
{
|
1581
|
+
"internalType": "UFixed",
|
1582
|
+
"name": "fractionalFee",
|
1583
|
+
"type": "uint256"
|
1584
|
+
},
|
1585
|
+
{
|
1586
|
+
"internalType": "uint256",
|
1587
|
+
"name": "fixedFee",
|
1588
|
+
"type": "uint256"
|
1589
|
+
}
|
1590
|
+
],
|
1591
|
+
"internalType": "struct Fee",
|
1592
|
+
"name": "fee",
|
1593
|
+
"type": "tuple"
|
1525
1594
|
},
|
1526
1595
|
{
|
1527
1596
|
"internalType": "bytes",
|
@@ -1566,49 +1635,13 @@
|
|
1566
1635
|
},
|
1567
1636
|
{
|
1568
1637
|
"inputs": [
|
1569
|
-
{
|
1570
|
-
"components": [
|
1571
|
-
{
|
1572
|
-
"internalType": "NftId",
|
1573
|
-
"name": "nftId",
|
1574
|
-
"type": "uint96"
|
1575
|
-
},
|
1576
|
-
{
|
1577
|
-
"internalType": "StateId",
|
1578
|
-
"name": "state",
|
1579
|
-
"type": "uint8"
|
1580
|
-
},
|
1581
|
-
{
|
1582
|
-
"internalType": "contract IERC20Metadata",
|
1583
|
-
"name": "token",
|
1584
|
-
"type": "address"
|
1585
|
-
}
|
1586
|
-
],
|
1587
|
-
"internalType": "struct IComponent.ComponentInfo",
|
1588
|
-
"name": "info",
|
1589
|
-
"type": "tuple"
|
1590
|
-
}
|
1591
|
-
],
|
1592
|
-
"name": "setComponentInfo",
|
1593
|
-
"outputs": [
|
1594
1638
|
{
|
1595
1639
|
"internalType": "NftId",
|
1596
|
-
"name": "
|
1640
|
+
"name": "policyNftId",
|
1597
1641
|
"type": "uint96"
|
1598
|
-
}
|
1599
|
-
],
|
1600
|
-
"stateMutability": "nonpayable",
|
1601
|
-
"type": "function"
|
1602
|
-
},
|
1603
|
-
{
|
1604
|
-
"inputs": [
|
1642
|
+
},
|
1605
1643
|
{
|
1606
1644
|
"components": [
|
1607
|
-
{
|
1608
|
-
"internalType": "NftId",
|
1609
|
-
"name": "nftId",
|
1610
|
-
"type": "uint96"
|
1611
|
-
},
|
1612
1645
|
{
|
1613
1646
|
"internalType": "NftId",
|
1614
1647
|
"name": "productNftId",
|
@@ -1619,15 +1652,20 @@
|
|
1619
1652
|
"name": "bundleNftId",
|
1620
1653
|
"type": "uint96"
|
1621
1654
|
},
|
1655
|
+
{
|
1656
|
+
"internalType": "ReferralId",
|
1657
|
+
"name": "referralId",
|
1658
|
+
"type": "bytes8"
|
1659
|
+
},
|
1622
1660
|
{
|
1623
1661
|
"internalType": "address",
|
1624
1662
|
"name": "beneficiary",
|
1625
1663
|
"type": "address"
|
1626
1664
|
},
|
1627
1665
|
{
|
1628
|
-
"internalType": "
|
1629
|
-
"name": "
|
1630
|
-
"type": "
|
1666
|
+
"internalType": "RiskId",
|
1667
|
+
"name": "riskId",
|
1668
|
+
"type": "bytes8"
|
1631
1669
|
},
|
1632
1670
|
{
|
1633
1671
|
"internalType": "uint256",
|
@@ -1651,13 +1689,13 @@
|
|
1651
1689
|
},
|
1652
1690
|
{
|
1653
1691
|
"internalType": "bytes",
|
1654
|
-
"name": "
|
1692
|
+
"name": "applicationData",
|
1655
1693
|
"type": "bytes"
|
1656
1694
|
},
|
1657
1695
|
{
|
1658
|
-
"internalType": "
|
1659
|
-
"name": "
|
1660
|
-
"type": "
|
1696
|
+
"internalType": "bytes",
|
1697
|
+
"name": "policyData",
|
1698
|
+
"type": "bytes"
|
1661
1699
|
},
|
1662
1700
|
{
|
1663
1701
|
"internalType": "Timestamp",
|
@@ -1673,15 +1711,10 @@
|
|
1673
1711
|
"internalType": "Timestamp",
|
1674
1712
|
"name": "closedAt",
|
1675
1713
|
"type": "uint40"
|
1676
|
-
},
|
1677
|
-
{
|
1678
|
-
"internalType": "Blocknumber",
|
1679
|
-
"name": "updatedIn",
|
1680
|
-
"type": "uint32"
|
1681
1714
|
}
|
1682
1715
|
],
|
1683
1716
|
"internalType": "struct IPolicy.PolicyInfo",
|
1684
|
-
"name": "
|
1717
|
+
"name": "info",
|
1685
1718
|
"type": "tuple"
|
1686
1719
|
}
|
1687
1720
|
],
|
@@ -1693,46 +1726,47 @@
|
|
1693
1726
|
{
|
1694
1727
|
"inputs": [
|
1695
1728
|
{
|
1696
|
-
"internalType": "
|
1697
|
-
"name": "
|
1698
|
-
"type": "
|
1729
|
+
"internalType": "RiskId",
|
1730
|
+
"name": "riskId",
|
1731
|
+
"type": "bytes8"
|
1699
1732
|
},
|
1700
1733
|
{
|
1701
1734
|
"components": [
|
1702
1735
|
{
|
1703
|
-
"internalType": "
|
1704
|
-
"name": "
|
1705
|
-
"type": "
|
1736
|
+
"internalType": "NftId",
|
1737
|
+
"name": "productNftId",
|
1738
|
+
"type": "uint96"
|
1706
1739
|
},
|
1707
1740
|
{
|
1708
|
-
"internalType": "
|
1709
|
-
"name": "
|
1710
|
-
"type": "
|
1741
|
+
"internalType": "bytes",
|
1742
|
+
"name": "data",
|
1743
|
+
"type": "bytes"
|
1711
1744
|
}
|
1712
1745
|
],
|
1713
|
-
"internalType": "struct
|
1714
|
-
"name": "
|
1746
|
+
"internalType": "struct IRisk.RiskInfo",
|
1747
|
+
"name": "info",
|
1715
1748
|
"type": "tuple"
|
1749
|
+
}
|
1750
|
+
],
|
1751
|
+
"name": "setRiskInfo",
|
1752
|
+
"outputs": [],
|
1753
|
+
"stateMutability": "nonpayable",
|
1754
|
+
"type": "function"
|
1755
|
+
},
|
1756
|
+
{
|
1757
|
+
"inputs": [
|
1758
|
+
{
|
1759
|
+
"internalType": "RoleId",
|
1760
|
+
"name": "role",
|
1761
|
+
"type": "bytes8"
|
1716
1762
|
},
|
1717
1763
|
{
|
1718
|
-
"
|
1719
|
-
|
1720
|
-
|
1721
|
-
"name": "fractionalFee",
|
1722
|
-
"type": "uint256"
|
1723
|
-
},
|
1724
|
-
{
|
1725
|
-
"internalType": "uint256",
|
1726
|
-
"name": "fixedFee",
|
1727
|
-
"type": "uint256"
|
1728
|
-
}
|
1729
|
-
],
|
1730
|
-
"internalType": "struct Fee",
|
1731
|
-
"name": "performanceFee",
|
1732
|
-
"type": "tuple"
|
1764
|
+
"internalType": "bool",
|
1765
|
+
"name": "active",
|
1766
|
+
"type": "bool"
|
1733
1767
|
}
|
1734
1768
|
],
|
1735
|
-
"name": "
|
1769
|
+
"name": "setRoleState",
|
1736
1770
|
"outputs": [],
|
1737
1771
|
"stateMutability": "nonpayable",
|
1738
1772
|
"type": "function"
|
@@ -1747,57 +1781,129 @@
|
|
1747
1781
|
{
|
1748
1782
|
"components": [
|
1749
1783
|
{
|
1750
|
-
"internalType": "
|
1751
|
-
"name": "
|
1752
|
-
"type": "
|
1784
|
+
"internalType": "NftId",
|
1785
|
+
"name": "poolNftId",
|
1786
|
+
"type": "uint96"
|
1753
1787
|
},
|
1754
1788
|
{
|
1755
|
-
"internalType": "
|
1756
|
-
"name": "
|
1757
|
-
"type": "
|
1758
|
-
}
|
1759
|
-
],
|
1760
|
-
"internalType": "struct Fee",
|
1761
|
-
"name": "policyFee",
|
1762
|
-
"type": "tuple"
|
1763
|
-
},
|
1764
|
-
{
|
1765
|
-
"components": [
|
1789
|
+
"internalType": "NftId",
|
1790
|
+
"name": "distributionNftId",
|
1791
|
+
"type": "uint96"
|
1792
|
+
},
|
1766
1793
|
{
|
1767
|
-
"internalType": "
|
1768
|
-
"name": "
|
1769
|
-
"type": "
|
1794
|
+
"internalType": "contract IERC20Metadata",
|
1795
|
+
"name": "token",
|
1796
|
+
"type": "address"
|
1770
1797
|
},
|
1771
1798
|
{
|
1772
|
-
"
|
1773
|
-
|
1774
|
-
|
1799
|
+
"components": [
|
1800
|
+
{
|
1801
|
+
"internalType": "UFixed",
|
1802
|
+
"name": "fractionalFee",
|
1803
|
+
"type": "uint256"
|
1804
|
+
},
|
1805
|
+
{
|
1806
|
+
"internalType": "uint256",
|
1807
|
+
"name": "fixedFee",
|
1808
|
+
"type": "uint256"
|
1809
|
+
}
|
1810
|
+
],
|
1811
|
+
"internalType": "struct Fee",
|
1812
|
+
"name": "productFee",
|
1813
|
+
"type": "tuple"
|
1814
|
+
},
|
1815
|
+
{
|
1816
|
+
"components": [
|
1817
|
+
{
|
1818
|
+
"internalType": "UFixed",
|
1819
|
+
"name": "fractionalFee",
|
1820
|
+
"type": "uint256"
|
1821
|
+
},
|
1822
|
+
{
|
1823
|
+
"internalType": "uint256",
|
1824
|
+
"name": "fixedFee",
|
1825
|
+
"type": "uint256"
|
1826
|
+
}
|
1827
|
+
],
|
1828
|
+
"internalType": "struct Fee",
|
1829
|
+
"name": "processingFee",
|
1830
|
+
"type": "tuple"
|
1831
|
+
},
|
1832
|
+
{
|
1833
|
+
"components": [
|
1834
|
+
{
|
1835
|
+
"internalType": "UFixed",
|
1836
|
+
"name": "fractionalFee",
|
1837
|
+
"type": "uint256"
|
1838
|
+
},
|
1839
|
+
{
|
1840
|
+
"internalType": "uint256",
|
1841
|
+
"name": "fixedFee",
|
1842
|
+
"type": "uint256"
|
1843
|
+
}
|
1844
|
+
],
|
1845
|
+
"internalType": "struct Fee",
|
1846
|
+
"name": "poolFee",
|
1847
|
+
"type": "tuple"
|
1848
|
+
},
|
1849
|
+
{
|
1850
|
+
"components": [
|
1851
|
+
{
|
1852
|
+
"internalType": "UFixed",
|
1853
|
+
"name": "fractionalFee",
|
1854
|
+
"type": "uint256"
|
1855
|
+
},
|
1856
|
+
{
|
1857
|
+
"internalType": "uint256",
|
1858
|
+
"name": "fixedFee",
|
1859
|
+
"type": "uint256"
|
1860
|
+
}
|
1861
|
+
],
|
1862
|
+
"internalType": "struct Fee",
|
1863
|
+
"name": "stakingFee",
|
1864
|
+
"type": "tuple"
|
1865
|
+
},
|
1866
|
+
{
|
1867
|
+
"components": [
|
1868
|
+
{
|
1869
|
+
"internalType": "UFixed",
|
1870
|
+
"name": "fractionalFee",
|
1871
|
+
"type": "uint256"
|
1872
|
+
},
|
1873
|
+
{
|
1874
|
+
"internalType": "uint256",
|
1875
|
+
"name": "fixedFee",
|
1876
|
+
"type": "uint256"
|
1877
|
+
}
|
1878
|
+
],
|
1879
|
+
"internalType": "struct Fee",
|
1880
|
+
"name": "performanceFee",
|
1881
|
+
"type": "tuple"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"components": [
|
1885
|
+
{
|
1886
|
+
"internalType": "UFixed",
|
1887
|
+
"name": "fractionalFee",
|
1888
|
+
"type": "uint256"
|
1889
|
+
},
|
1890
|
+
{
|
1891
|
+
"internalType": "uint256",
|
1892
|
+
"name": "fixedFee",
|
1893
|
+
"type": "uint256"
|
1894
|
+
}
|
1895
|
+
],
|
1896
|
+
"internalType": "struct Fee",
|
1897
|
+
"name": "distributionFee",
|
1898
|
+
"type": "tuple"
|
1775
1899
|
}
|
1776
1900
|
],
|
1777
|
-
"internalType": "struct
|
1778
|
-
"name": "
|
1901
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1902
|
+
"name": "info",
|
1779
1903
|
"type": "tuple"
|
1780
1904
|
}
|
1781
1905
|
],
|
1782
|
-
"name": "
|
1783
|
-
"outputs": [],
|
1784
|
-
"stateMutability": "nonpayable",
|
1785
|
-
"type": "function"
|
1786
|
-
},
|
1787
|
-
{
|
1788
|
-
"inputs": [
|
1789
|
-
{
|
1790
|
-
"internalType": "RoleId",
|
1791
|
-
"name": "role",
|
1792
|
-
"type": "bytes8"
|
1793
|
-
},
|
1794
|
-
{
|
1795
|
-
"internalType": "bool",
|
1796
|
-
"name": "active",
|
1797
|
-
"type": "bool"
|
1798
|
-
}
|
1799
|
-
],
|
1800
|
-
"name": "setRoleState",
|
1906
|
+
"name": "setTreasuryInfo",
|
1801
1907
|
"outputs": [],
|
1802
1908
|
"stateMutability": "nonpayable",
|
1803
1909
|
"type": "function"
|
@@ -1825,26 +1931,25 @@
|
|
1825
1931
|
"inputs": [
|
1826
1932
|
{
|
1827
1933
|
"internalType": "NftId",
|
1828
|
-
"name": "
|
1934
|
+
"name": "nftId",
|
1829
1935
|
"type": "uint96"
|
1830
|
-
}
|
1831
|
-
],
|
1832
|
-
"name": "toBundleKey32",
|
1833
|
-
"outputs": [
|
1936
|
+
},
|
1834
1937
|
{
|
1835
|
-
"internalType": "
|
1836
|
-
"name": "
|
1837
|
-
"type": "
|
1938
|
+
"internalType": "StateId",
|
1939
|
+
"name": "state",
|
1940
|
+
"type": "uint8"
|
1838
1941
|
}
|
1839
1942
|
],
|
1840
|
-
"
|
1943
|
+
"name": "updateBundleState",
|
1944
|
+
"outputs": [],
|
1945
|
+
"stateMutability": "nonpayable",
|
1841
1946
|
"type": "function"
|
1842
1947
|
},
|
1843
1948
|
{
|
1844
1949
|
"inputs": [
|
1845
1950
|
{
|
1846
1951
|
"internalType": "NftId",
|
1847
|
-
"name": "
|
1952
|
+
"name": "nftId",
|
1848
1953
|
"type": "uint96"
|
1849
1954
|
},
|
1850
1955
|
{
|
@@ -1853,7 +1958,43 @@
|
|
1853
1958
|
"type": "uint8"
|
1854
1959
|
}
|
1855
1960
|
],
|
1856
|
-
"name": "
|
1961
|
+
"name": "updatePolicyState",
|
1962
|
+
"outputs": [],
|
1963
|
+
"stateMutability": "nonpayable",
|
1964
|
+
"type": "function"
|
1965
|
+
},
|
1966
|
+
{
|
1967
|
+
"inputs": [
|
1968
|
+
{
|
1969
|
+
"internalType": "RiskId",
|
1970
|
+
"name": "riskId",
|
1971
|
+
"type": "bytes8"
|
1972
|
+
},
|
1973
|
+
{
|
1974
|
+
"internalType": "StateId",
|
1975
|
+
"name": "state",
|
1976
|
+
"type": "uint8"
|
1977
|
+
}
|
1978
|
+
],
|
1979
|
+
"name": "updateRiskState",
|
1980
|
+
"outputs": [],
|
1981
|
+
"stateMutability": "nonpayable",
|
1982
|
+
"type": "function"
|
1983
|
+
},
|
1984
|
+
{
|
1985
|
+
"inputs": [
|
1986
|
+
{
|
1987
|
+
"internalType": "Key32",
|
1988
|
+
"name": "key",
|
1989
|
+
"type": "bytes32"
|
1990
|
+
},
|
1991
|
+
{
|
1992
|
+
"internalType": "StateId",
|
1993
|
+
"name": "state",
|
1994
|
+
"type": "uint8"
|
1995
|
+
}
|
1996
|
+
],
|
1997
|
+
"name": "updateState",
|
1857
1998
|
"outputs": [],
|
1858
1999
|
"stateMutability": "nonpayable",
|
1859
2000
|
"type": "function"
|