@etherisc/gif-next 0.0.2-78bf628-134 → 0.0.2-7b53731-256
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/README.md +38 -7
- 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 +545 -393
- 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 +672 -456
- 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 +32 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- 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 +32 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +14 -14
- 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 +12 -7
- 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 +12 -7
- 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 +53 -40
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +53 -40
- 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 +28 -20
- 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/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +495 -0
- 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/Proxy.sol/Proxy.dbg.json +4 -0
- package/artifacts/contracts/shared/Proxy.sol/Proxy.json +178 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +4 -0
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.json +129 -0
- 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/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +4 -0
- package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +187 -0
- 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 +2 -2
- 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/TestVersionable.sol/TestVersionable.json +2 -2
- 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 +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- 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 +47 -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 -4
- package/contracts/instance/Instance.sol +11 -4
- package/contracts/instance/base/IInstanceBase.sol +3 -0
- package/contracts/instance/base/InstanceBase.sol +7 -0
- package/contracts/instance/base/Lifecycle.sol +10 -2
- package/contracts/instance/base/ModuleBase.sol +22 -17
- package/contracts/instance/module/access/Access.sol +3 -3
- 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 +15 -20
- package/contracts/instance/module/component/IComponent.sol +3 -2
- 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 +10 -8
- package/contracts/instance/module/policy/PolicyModule.sol +33 -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 +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 +19 -24
- 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 +229 -74
- package/contracts/registry/Registry.sol +3 -3
- package/contracts/registry/RegistryUpgradeable.sol +416 -0
- package/contracts/shared/Proxy.sol +83 -0
- package/contracts/shared/Versionable.sol +1 -1
- package/contracts/shared/VersionableUpgradeable.sol +108 -0
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestPool.sol +5 -2
- package/contracts/test/TestProduct.sol +35 -7
- package/contracts/types/Fee.sol +8 -3
- package/contracts/types/ObjectType.sol +17 -5
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +2 -2
- 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",
|
@@ -443,12 +505,12 @@
|
|
443
505
|
"type": "uint96"
|
444
506
|
}
|
445
507
|
],
|
446
|
-
"name": "
|
508
|
+
"name": "getComponentToken",
|
447
509
|
"outputs": [
|
448
510
|
{
|
449
|
-
"internalType": "
|
450
|
-
"name": "
|
451
|
-
"type": "
|
511
|
+
"internalType": "contract IERC20Metadata",
|
512
|
+
"name": "token",
|
513
|
+
"type": "address"
|
452
514
|
}
|
453
515
|
],
|
454
516
|
"stateMutability": "view",
|
@@ -462,11 +524,11 @@
|
|
462
524
|
"type": "uint96"
|
463
525
|
}
|
464
526
|
],
|
465
|
-
"name": "
|
527
|
+
"name": "getComponentWallet",
|
466
528
|
"outputs": [
|
467
529
|
{
|
468
|
-
"internalType": "
|
469
|
-
"name": "
|
530
|
+
"internalType": "address",
|
531
|
+
"name": "wallet",
|
470
532
|
"type": "address"
|
471
533
|
}
|
472
534
|
],
|
@@ -486,6 +548,19 @@
|
|
486
548
|
"stateMutability": "view",
|
487
549
|
"type": "function"
|
488
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
|
+
},
|
489
564
|
{
|
490
565
|
"inputs": [
|
491
566
|
{
|
@@ -586,11 +661,6 @@
|
|
586
661
|
"outputs": [
|
587
662
|
{
|
588
663
|
"components": [
|
589
|
-
{
|
590
|
-
"internalType": "NftId",
|
591
|
-
"name": "nftId",
|
592
|
-
"type": "uint96"
|
593
|
-
},
|
594
664
|
{
|
595
665
|
"internalType": "NftId",
|
596
666
|
"name": "productNftId",
|
@@ -601,15 +671,20 @@
|
|
601
671
|
"name": "bundleNftId",
|
602
672
|
"type": "uint96"
|
603
673
|
},
|
674
|
+
{
|
675
|
+
"internalType": "ReferralId",
|
676
|
+
"name": "referralId",
|
677
|
+
"type": "bytes8"
|
678
|
+
},
|
604
679
|
{
|
605
680
|
"internalType": "address",
|
606
681
|
"name": "beneficiary",
|
607
682
|
"type": "address"
|
608
683
|
},
|
609
684
|
{
|
610
|
-
"internalType": "
|
611
|
-
"name": "
|
612
|
-
"type": "
|
685
|
+
"internalType": "RiskId",
|
686
|
+
"name": "riskId",
|
687
|
+
"type": "bytes8"
|
613
688
|
},
|
614
689
|
{
|
615
690
|
"internalType": "uint256",
|
@@ -641,11 +716,6 @@
|
|
641
716
|
"name": "policyData",
|
642
717
|
"type": "bytes"
|
643
718
|
},
|
644
|
-
{
|
645
|
-
"internalType": "Timestamp",
|
646
|
-
"name": "createdAt",
|
647
|
-
"type": "uint40"
|
648
|
-
},
|
649
719
|
{
|
650
720
|
"internalType": "Timestamp",
|
651
721
|
"name": "activatedAt",
|
@@ -660,11 +730,6 @@
|
|
660
730
|
"internalType": "Timestamp",
|
661
731
|
"name": "closedAt",
|
662
732
|
"type": "uint40"
|
663
|
-
},
|
664
|
-
{
|
665
|
-
"internalType": "Blocknumber",
|
666
|
-
"name": "updatedIn",
|
667
|
-
"type": "uint32"
|
668
733
|
}
|
669
734
|
],
|
670
735
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -687,11 +752,6 @@
|
|
687
752
|
"outputs": [
|
688
753
|
{
|
689
754
|
"components": [
|
690
|
-
{
|
691
|
-
"internalType": "NftId",
|
692
|
-
"name": "nftId",
|
693
|
-
"type": "uint96"
|
694
|
-
},
|
695
755
|
{
|
696
756
|
"internalType": "bool",
|
697
757
|
"name": "isVerifying",
|
@@ -728,62 +788,16 @@
|
|
728
788
|
"inputs": [
|
729
789
|
{
|
730
790
|
"internalType": "NftId",
|
731
|
-
"name": "
|
791
|
+
"name": "componentNftId",
|
732
792
|
"type": "uint96"
|
733
793
|
}
|
734
794
|
],
|
735
|
-
"name": "
|
795
|
+
"name": "getProductNftId",
|
736
796
|
"outputs": [
|
737
797
|
{
|
738
|
-
"
|
739
|
-
|
740
|
-
|
741
|
-
"name": "poolNftId",
|
742
|
-
"type": "uint96"
|
743
|
-
},
|
744
|
-
{
|
745
|
-
"internalType": "address",
|
746
|
-
"name": "wallet",
|
747
|
-
"type": "address"
|
748
|
-
},
|
749
|
-
{
|
750
|
-
"components": [
|
751
|
-
{
|
752
|
-
"internalType": "UFixed",
|
753
|
-
"name": "fractionalFee",
|
754
|
-
"type": "uint256"
|
755
|
-
},
|
756
|
-
{
|
757
|
-
"internalType": "uint256",
|
758
|
-
"name": "fixedFee",
|
759
|
-
"type": "uint256"
|
760
|
-
}
|
761
|
-
],
|
762
|
-
"internalType": "struct Fee",
|
763
|
-
"name": "stakingFee",
|
764
|
-
"type": "tuple"
|
765
|
-
},
|
766
|
-
{
|
767
|
-
"components": [
|
768
|
-
{
|
769
|
-
"internalType": "UFixed",
|
770
|
-
"name": "fractionalFee",
|
771
|
-
"type": "uint256"
|
772
|
-
},
|
773
|
-
{
|
774
|
-
"internalType": "uint256",
|
775
|
-
"name": "fixedFee",
|
776
|
-
"type": "uint256"
|
777
|
-
}
|
778
|
-
],
|
779
|
-
"internalType": "struct Fee",
|
780
|
-
"name": "performanceFee",
|
781
|
-
"type": "tuple"
|
782
|
-
}
|
783
|
-
],
|
784
|
-
"internalType": "struct ITreasury.PoolSetup",
|
785
|
-
"name": "setup",
|
786
|
-
"type": "tuple"
|
798
|
+
"internalType": "NftId",
|
799
|
+
"name": "productNftId",
|
800
|
+
"type": "uint96"
|
787
801
|
}
|
788
802
|
],
|
789
803
|
"stateMutability": "view",
|
@@ -802,15 +816,28 @@
|
|
802
816
|
"stateMutability": "view",
|
803
817
|
"type": "function"
|
804
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
|
+
},
|
805
832
|
{
|
806
833
|
"inputs": [
|
807
834
|
{
|
808
|
-
"internalType": "
|
809
|
-
"name": "
|
810
|
-
"type": "
|
835
|
+
"internalType": "RiskId",
|
836
|
+
"name": "riskId",
|
837
|
+
"type": "bytes8"
|
811
838
|
}
|
812
839
|
],
|
813
|
-
"name": "
|
840
|
+
"name": "getRiskInfo",
|
814
841
|
"outputs": [
|
815
842
|
{
|
816
843
|
"components": [
|
@@ -820,81 +847,19 @@
|
|
820
847
|
"type": "uint96"
|
821
848
|
},
|
822
849
|
{
|
823
|
-
"internalType": "
|
824
|
-
"name": "
|
825
|
-
"type": "
|
826
|
-
},
|
827
|
-
{
|
828
|
-
"internalType": "NftId",
|
829
|
-
"name": "poolNftId",
|
830
|
-
"type": "uint96"
|
831
|
-
},
|
832
|
-
{
|
833
|
-
"internalType": "contract IERC20Metadata",
|
834
|
-
"name": "token",
|
835
|
-
"type": "address"
|
836
|
-
},
|
837
|
-
{
|
838
|
-
"internalType": "address",
|
839
|
-
"name": "wallet",
|
840
|
-
"type": "address"
|
841
|
-
},
|
842
|
-
{
|
843
|
-
"components": [
|
844
|
-
{
|
845
|
-
"internalType": "UFixed",
|
846
|
-
"name": "fractionalFee",
|
847
|
-
"type": "uint256"
|
848
|
-
},
|
849
|
-
{
|
850
|
-
"internalType": "uint256",
|
851
|
-
"name": "fixedFee",
|
852
|
-
"type": "uint256"
|
853
|
-
}
|
854
|
-
],
|
855
|
-
"internalType": "struct Fee",
|
856
|
-
"name": "policyFee",
|
857
|
-
"type": "tuple"
|
858
|
-
},
|
859
|
-
{
|
860
|
-
"components": [
|
861
|
-
{
|
862
|
-
"internalType": "UFixed",
|
863
|
-
"name": "fractionalFee",
|
864
|
-
"type": "uint256"
|
865
|
-
},
|
866
|
-
{
|
867
|
-
"internalType": "uint256",
|
868
|
-
"name": "fixedFee",
|
869
|
-
"type": "uint256"
|
870
|
-
}
|
871
|
-
],
|
872
|
-
"internalType": "struct Fee",
|
873
|
-
"name": "processingFee",
|
874
|
-
"type": "tuple"
|
850
|
+
"internalType": "bytes",
|
851
|
+
"name": "data",
|
852
|
+
"type": "bytes"
|
875
853
|
}
|
876
854
|
],
|
877
|
-
"internalType": "struct
|
878
|
-
"name": "
|
855
|
+
"internalType": "struct IRisk.RiskInfo",
|
856
|
+
"name": "info",
|
879
857
|
"type": "tuple"
|
880
858
|
}
|
881
859
|
],
|
882
860
|
"stateMutability": "view",
|
883
861
|
"type": "function"
|
884
862
|
},
|
885
|
-
{
|
886
|
-
"inputs": [],
|
887
|
-
"name": "getRegistry",
|
888
|
-
"outputs": [
|
889
|
-
{
|
890
|
-
"internalType": "contract IRegistry",
|
891
|
-
"name": "registry",
|
892
|
-
"type": "address"
|
893
|
-
}
|
894
|
-
],
|
895
|
-
"stateMutability": "view",
|
896
|
-
"type": "function"
|
897
|
-
},
|
898
863
|
{
|
899
864
|
"inputs": [
|
900
865
|
{
|
@@ -1025,6 +990,25 @@
|
|
1025
990
|
"stateMutability": "view",
|
1026
991
|
"type": "function"
|
1027
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
|
+
},
|
1028
1012
|
{
|
1029
1013
|
"inputs": [
|
1030
1014
|
{
|
@@ -1044,6 +1028,144 @@
|
|
1044
1028
|
"stateMutability": "view",
|
1045
1029
|
"type": "function"
|
1046
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
|
+
},
|
1047
1169
|
{
|
1048
1170
|
"inputs": [],
|
1049
1171
|
"name": "getType",
|
@@ -1213,7 +1335,7 @@
|
|
1213
1335
|
"type": "tuple"
|
1214
1336
|
}
|
1215
1337
|
],
|
1216
|
-
"stateMutability": "
|
1338
|
+
"stateMutability": "view",
|
1217
1339
|
"type": "function"
|
1218
1340
|
},
|
1219
1341
|
{
|
@@ -1258,6 +1380,25 @@
|
|
1258
1380
|
"stateMutability": "view",
|
1259
1381
|
"type": "function"
|
1260
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",
|
1396
|
+
"type": "bool"
|
1397
|
+
}
|
1398
|
+
],
|
1399
|
+
"stateMutability": "view",
|
1400
|
+
"type": "function"
|
1401
|
+
},
|
1261
1402
|
{
|
1262
1403
|
"inputs": [
|
1263
1404
|
{
|
@@ -1301,6 +1442,11 @@
|
|
1301
1442
|
"internalType": "contract IERC20Metadata",
|
1302
1443
|
"name": "token",
|
1303
1444
|
"type": "address"
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"internalType": "address",
|
1448
|
+
"name": "wallet",
|
1449
|
+
"type": "address"
|
1304
1450
|
}
|
1305
1451
|
],
|
1306
1452
|
"name": "registerComponent",
|
@@ -1316,43 +1462,14 @@
|
|
1316
1462
|
"type": "uint96"
|
1317
1463
|
},
|
1318
1464
|
{
|
1319
|
-
"internalType": "
|
1320
|
-
"name": "
|
1321
|
-
"type": "
|
1322
|
-
},
|
1323
|
-
{
|
1324
|
-
"components": [
|
1325
|
-
{
|
1326
|
-
"internalType": "UFixed",
|
1327
|
-
"name": "fractionalFee",
|
1328
|
-
"type": "uint256"
|
1329
|
-
},
|
1330
|
-
{
|
1331
|
-
"internalType": "uint256",
|
1332
|
-
"name": "fixedFee",
|
1333
|
-
"type": "uint256"
|
1334
|
-
}
|
1335
|
-
],
|
1336
|
-
"internalType": "struct Fee",
|
1337
|
-
"name": "stakingFee",
|
1338
|
-
"type": "tuple"
|
1465
|
+
"internalType": "bool",
|
1466
|
+
"name": "isVerifying",
|
1467
|
+
"type": "bool"
|
1339
1468
|
},
|
1340
1469
|
{
|
1341
|
-
"
|
1342
|
-
|
1343
|
-
|
1344
|
-
"name": "fractionalFee",
|
1345
|
-
"type": "uint256"
|
1346
|
-
},
|
1347
|
-
{
|
1348
|
-
"internalType": "uint256",
|
1349
|
-
"name": "fixedFee",
|
1350
|
-
"type": "uint256"
|
1351
|
-
}
|
1352
|
-
],
|
1353
|
-
"internalType": "struct Fee",
|
1354
|
-
"name": "performanceFee",
|
1355
|
-
"type": "tuple"
|
1470
|
+
"internalType": "UFixed",
|
1471
|
+
"name": "collateralizationLevel",
|
1472
|
+
"type": "uint256"
|
1356
1473
|
}
|
1357
1474
|
],
|
1358
1475
|
"name": "registerPool",
|
@@ -1363,22 +1480,22 @@
|
|
1363
1480
|
{
|
1364
1481
|
"inputs": [
|
1365
1482
|
{
|
1366
|
-
"internalType": "
|
1367
|
-
"name": "
|
1368
|
-
"type": "
|
1483
|
+
"internalType": "contract IProductComponent",
|
1484
|
+
"name": "product",
|
1485
|
+
"type": "address"
|
1369
1486
|
},
|
1370
1487
|
{
|
1371
|
-
"internalType": "
|
1372
|
-
"name": "
|
1373
|
-
"type": "
|
1488
|
+
"internalType": "contract IPoolComponent",
|
1489
|
+
"name": "pool",
|
1490
|
+
"type": "address"
|
1374
1491
|
},
|
1375
1492
|
{
|
1376
|
-
"internalType": "
|
1377
|
-
"name": "
|
1378
|
-
"type": "
|
1493
|
+
"internalType": "contract IDistributionComponent",
|
1494
|
+
"name": "distribution",
|
1495
|
+
"type": "address"
|
1379
1496
|
}
|
1380
1497
|
],
|
1381
|
-
"name": "
|
1498
|
+
"name": "registerProductSetup",
|
1382
1499
|
"outputs": [],
|
1383
1500
|
"stateMutability": "nonpayable",
|
1384
1501
|
"type": "function"
|
@@ -1387,84 +1504,17 @@
|
|
1387
1504
|
"inputs": [
|
1388
1505
|
{
|
1389
1506
|
"internalType": "NftId",
|
1390
|
-
"name": "
|
1391
|
-
"type": "uint96"
|
1392
|
-
},
|
1393
|
-
{
|
1394
|
-
"internalType": "NftId",
|
1395
|
-
"name": "distributorNftId",
|
1507
|
+
"name": "bundleNftId",
|
1396
1508
|
"type": "uint96"
|
1397
1509
|
},
|
1398
1510
|
{
|
1399
1511
|
"internalType": "NftId",
|
1400
|
-
"name": "
|
1512
|
+
"name": "policyNftId",
|
1401
1513
|
"type": "uint96"
|
1402
|
-
}
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
"type": "address"
|
1407
|
-
},
|
1408
|
-
{
|
1409
|
-
"internalType": "address",
|
1410
|
-
"name": "wallet",
|
1411
|
-
"type": "address"
|
1412
|
-
},
|
1413
|
-
{
|
1414
|
-
"components": [
|
1415
|
-
{
|
1416
|
-
"internalType": "UFixed",
|
1417
|
-
"name": "fractionalFee",
|
1418
|
-
"type": "uint256"
|
1419
|
-
},
|
1420
|
-
{
|
1421
|
-
"internalType": "uint256",
|
1422
|
-
"name": "fixedFee",
|
1423
|
-
"type": "uint256"
|
1424
|
-
}
|
1425
|
-
],
|
1426
|
-
"internalType": "struct Fee",
|
1427
|
-
"name": "policyFee",
|
1428
|
-
"type": "tuple"
|
1429
|
-
},
|
1430
|
-
{
|
1431
|
-
"components": [
|
1432
|
-
{
|
1433
|
-
"internalType": "UFixed",
|
1434
|
-
"name": "fractionalFee",
|
1435
|
-
"type": "uint256"
|
1436
|
-
},
|
1437
|
-
{
|
1438
|
-
"internalType": "uint256",
|
1439
|
-
"name": "fixedFee",
|
1440
|
-
"type": "uint256"
|
1441
|
-
}
|
1442
|
-
],
|
1443
|
-
"internalType": "struct Fee",
|
1444
|
-
"name": "processingFee",
|
1445
|
-
"type": "tuple"
|
1446
|
-
}
|
1447
|
-
],
|
1448
|
-
"name": "registerProduct",
|
1449
|
-
"outputs": [],
|
1450
|
-
"stateMutability": "nonpayable",
|
1451
|
-
"type": "function"
|
1452
|
-
},
|
1453
|
-
{
|
1454
|
-
"inputs": [
|
1455
|
-
{
|
1456
|
-
"internalType": "NftId",
|
1457
|
-
"name": "bundleNftId",
|
1458
|
-
"type": "uint96"
|
1459
|
-
},
|
1460
|
-
{
|
1461
|
-
"internalType": "NftId",
|
1462
|
-
"name": "policyNftId",
|
1463
|
-
"type": "uint96"
|
1464
|
-
}
|
1465
|
-
],
|
1466
|
-
"name": "releasePolicy",
|
1467
|
-
"outputs": [
|
1514
|
+
}
|
1515
|
+
],
|
1516
|
+
"name": "releasePolicy",
|
1517
|
+
"outputs": [
|
1468
1518
|
{
|
1469
1519
|
"internalType": "uint256",
|
1470
1520
|
"name": "collateralAmount",
|
@@ -1513,17 +1563,34 @@
|
|
1513
1563
|
},
|
1514
1564
|
{
|
1515
1565
|
"inputs": [
|
1566
|
+
{
|
1567
|
+
"internalType": "NftId",
|
1568
|
+
"name": "nftId",
|
1569
|
+
"type": "uint96"
|
1570
|
+
},
|
1516
1571
|
{
|
1517
1572
|
"components": [
|
1518
1573
|
{
|
1519
1574
|
"internalType": "NftId",
|
1520
|
-
"name": "
|
1575
|
+
"name": "poolNftId",
|
1521
1576
|
"type": "uint96"
|
1522
1577
|
},
|
1523
1578
|
{
|
1524
|
-
"
|
1525
|
-
|
1526
|
-
|
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"
|
1527
1594
|
},
|
1528
1595
|
{
|
1529
1596
|
"internalType": "bytes",
|
@@ -1568,13 +1635,13 @@
|
|
1568
1635
|
},
|
1569
1636
|
{
|
1570
1637
|
"inputs": [
|
1638
|
+
{
|
1639
|
+
"internalType": "NftId",
|
1640
|
+
"name": "policyNftId",
|
1641
|
+
"type": "uint96"
|
1642
|
+
},
|
1571
1643
|
{
|
1572
1644
|
"components": [
|
1573
|
-
{
|
1574
|
-
"internalType": "NftId",
|
1575
|
-
"name": "nftId",
|
1576
|
-
"type": "uint96"
|
1577
|
-
},
|
1578
1645
|
{
|
1579
1646
|
"internalType": "NftId",
|
1580
1647
|
"name": "productNftId",
|
@@ -1585,15 +1652,20 @@
|
|
1585
1652
|
"name": "bundleNftId",
|
1586
1653
|
"type": "uint96"
|
1587
1654
|
},
|
1655
|
+
{
|
1656
|
+
"internalType": "ReferralId",
|
1657
|
+
"name": "referralId",
|
1658
|
+
"type": "bytes8"
|
1659
|
+
},
|
1588
1660
|
{
|
1589
1661
|
"internalType": "address",
|
1590
1662
|
"name": "beneficiary",
|
1591
1663
|
"type": "address"
|
1592
1664
|
},
|
1593
1665
|
{
|
1594
|
-
"internalType": "
|
1595
|
-
"name": "
|
1596
|
-
"type": "
|
1666
|
+
"internalType": "RiskId",
|
1667
|
+
"name": "riskId",
|
1668
|
+
"type": "bytes8"
|
1597
1669
|
},
|
1598
1670
|
{
|
1599
1671
|
"internalType": "uint256",
|
@@ -1625,11 +1697,6 @@
|
|
1625
1697
|
"name": "policyData",
|
1626
1698
|
"type": "bytes"
|
1627
1699
|
},
|
1628
|
-
{
|
1629
|
-
"internalType": "Timestamp",
|
1630
|
-
"name": "createdAt",
|
1631
|
-
"type": "uint40"
|
1632
|
-
},
|
1633
1700
|
{
|
1634
1701
|
"internalType": "Timestamp",
|
1635
1702
|
"name": "activatedAt",
|
@@ -1644,15 +1711,10 @@
|
|
1644
1711
|
"internalType": "Timestamp",
|
1645
1712
|
"name": "closedAt",
|
1646
1713
|
"type": "uint40"
|
1647
|
-
},
|
1648
|
-
{
|
1649
|
-
"internalType": "Blocknumber",
|
1650
|
-
"name": "updatedIn",
|
1651
|
-
"type": "uint32"
|
1652
1714
|
}
|
1653
1715
|
],
|
1654
1716
|
"internalType": "struct IPolicy.PolicyInfo",
|
1655
|
-
"name": "
|
1717
|
+
"name": "info",
|
1656
1718
|
"type": "tuple"
|
1657
1719
|
}
|
1658
1720
|
],
|
@@ -1664,46 +1726,47 @@
|
|
1664
1726
|
{
|
1665
1727
|
"inputs": [
|
1666
1728
|
{
|
1667
|
-
"internalType": "
|
1668
|
-
"name": "
|
1669
|
-
"type": "
|
1729
|
+
"internalType": "RiskId",
|
1730
|
+
"name": "riskId",
|
1731
|
+
"type": "bytes8"
|
1670
1732
|
},
|
1671
1733
|
{
|
1672
1734
|
"components": [
|
1673
1735
|
{
|
1674
|
-
"internalType": "
|
1675
|
-
"name": "
|
1676
|
-
"type": "
|
1736
|
+
"internalType": "NftId",
|
1737
|
+
"name": "productNftId",
|
1738
|
+
"type": "uint96"
|
1677
1739
|
},
|
1678
1740
|
{
|
1679
|
-
"internalType": "
|
1680
|
-
"name": "
|
1681
|
-
"type": "
|
1741
|
+
"internalType": "bytes",
|
1742
|
+
"name": "data",
|
1743
|
+
"type": "bytes"
|
1682
1744
|
}
|
1683
1745
|
],
|
1684
|
-
"internalType": "struct
|
1685
|
-
"name": "
|
1746
|
+
"internalType": "struct IRisk.RiskInfo",
|
1747
|
+
"name": "info",
|
1686
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"
|
1687
1762
|
},
|
1688
1763
|
{
|
1689
|
-
"
|
1690
|
-
|
1691
|
-
|
1692
|
-
"name": "fractionalFee",
|
1693
|
-
"type": "uint256"
|
1694
|
-
},
|
1695
|
-
{
|
1696
|
-
"internalType": "uint256",
|
1697
|
-
"name": "fixedFee",
|
1698
|
-
"type": "uint256"
|
1699
|
-
}
|
1700
|
-
],
|
1701
|
-
"internalType": "struct Fee",
|
1702
|
-
"name": "performanceFee",
|
1703
|
-
"type": "tuple"
|
1764
|
+
"internalType": "bool",
|
1765
|
+
"name": "active",
|
1766
|
+
"type": "bool"
|
1704
1767
|
}
|
1705
1768
|
],
|
1706
|
-
"name": "
|
1769
|
+
"name": "setRoleState",
|
1707
1770
|
"outputs": [],
|
1708
1771
|
"stateMutability": "nonpayable",
|
1709
1772
|
"type": "function"
|
@@ -1718,57 +1781,129 @@
|
|
1718
1781
|
{
|
1719
1782
|
"components": [
|
1720
1783
|
{
|
1721
|
-
"internalType": "
|
1722
|
-
"name": "
|
1723
|
-
"type": "
|
1784
|
+
"internalType": "NftId",
|
1785
|
+
"name": "poolNftId",
|
1786
|
+
"type": "uint96"
|
1724
1787
|
},
|
1725
1788
|
{
|
1726
|
-
"internalType": "
|
1727
|
-
"name": "
|
1728
|
-
"type": "
|
1729
|
-
}
|
1730
|
-
],
|
1731
|
-
"internalType": "struct Fee",
|
1732
|
-
"name": "policyFee",
|
1733
|
-
"type": "tuple"
|
1734
|
-
},
|
1735
|
-
{
|
1736
|
-
"components": [
|
1789
|
+
"internalType": "NftId",
|
1790
|
+
"name": "distributionNftId",
|
1791
|
+
"type": "uint96"
|
1792
|
+
},
|
1737
1793
|
{
|
1738
|
-
"internalType": "
|
1739
|
-
"name": "
|
1740
|
-
"type": "
|
1794
|
+
"internalType": "contract IERC20Metadata",
|
1795
|
+
"name": "token",
|
1796
|
+
"type": "address"
|
1741
1797
|
},
|
1742
1798
|
{
|
1743
|
-
"
|
1744
|
-
|
1745
|
-
|
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"
|
1746
1899
|
}
|
1747
1900
|
],
|
1748
|
-
"internalType": "struct
|
1749
|
-
"name": "
|
1901
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1902
|
+
"name": "info",
|
1750
1903
|
"type": "tuple"
|
1751
1904
|
}
|
1752
1905
|
],
|
1753
|
-
"name": "
|
1754
|
-
"outputs": [],
|
1755
|
-
"stateMutability": "nonpayable",
|
1756
|
-
"type": "function"
|
1757
|
-
},
|
1758
|
-
{
|
1759
|
-
"inputs": [
|
1760
|
-
{
|
1761
|
-
"internalType": "RoleId",
|
1762
|
-
"name": "role",
|
1763
|
-
"type": "bytes8"
|
1764
|
-
},
|
1765
|
-
{
|
1766
|
-
"internalType": "bool",
|
1767
|
-
"name": "active",
|
1768
|
-
"type": "bool"
|
1769
|
-
}
|
1770
|
-
],
|
1771
|
-
"name": "setRoleState",
|
1906
|
+
"name": "setTreasuryInfo",
|
1772
1907
|
"outputs": [],
|
1773
1908
|
"stateMutability": "nonpayable",
|
1774
1909
|
"type": "function"
|
@@ -1796,26 +1931,25 @@
|
|
1796
1931
|
"inputs": [
|
1797
1932
|
{
|
1798
1933
|
"internalType": "NftId",
|
1799
|
-
"name": "
|
1934
|
+
"name": "nftId",
|
1800
1935
|
"type": "uint96"
|
1801
|
-
}
|
1802
|
-
],
|
1803
|
-
"name": "toBundleKey32",
|
1804
|
-
"outputs": [
|
1936
|
+
},
|
1805
1937
|
{
|
1806
|
-
"internalType": "
|
1807
|
-
"name": "
|
1808
|
-
"type": "
|
1938
|
+
"internalType": "StateId",
|
1939
|
+
"name": "state",
|
1940
|
+
"type": "uint8"
|
1809
1941
|
}
|
1810
1942
|
],
|
1811
|
-
"
|
1943
|
+
"name": "updateBundleState",
|
1944
|
+
"outputs": [],
|
1945
|
+
"stateMutability": "nonpayable",
|
1812
1946
|
"type": "function"
|
1813
1947
|
},
|
1814
1948
|
{
|
1815
1949
|
"inputs": [
|
1816
1950
|
{
|
1817
1951
|
"internalType": "NftId",
|
1818
|
-
"name": "
|
1952
|
+
"name": "nftId",
|
1819
1953
|
"type": "uint96"
|
1820
1954
|
},
|
1821
1955
|
{
|
@@ -1824,7 +1958,25 @@
|
|
1824
1958
|
"type": "uint8"
|
1825
1959
|
}
|
1826
1960
|
],
|
1827
|
-
"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",
|
1828
1980
|
"outputs": [],
|
1829
1981
|
"stateMutability": "nonpayable",
|
1830
1982
|
"type": "function"
|