@etherisc/gif-next 0.0.2-d3543ee-345 → 0.0.2-d372e08-980
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +268 -7
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/ComponentModule.sol/ComponentModule.json → components/BaseComponent.sol/BaseComponent.json} +171 -143
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +618 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +136 -111
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +152 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/policy/IPolicy.sol/IPolicyModule.json → components/IPoolComponent.sol/IPoolComponent.json} +124 -129
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +157 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +536 -77
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +480 -97
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- 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/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1048 -842
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2808 -951
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1422 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +931 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +508 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +540 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +827 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +716 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +444 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +669 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +760 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +971 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +460 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1147 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +484 -27
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +623 -43
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +517 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/{components/Component.sol/Component.json → shared/IRegisterable.sol/IRegisterable.json} +98 -102
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +421 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +442 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +468 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +600 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- 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/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -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 +156 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
- package/contracts/components/BaseComponent.sol +91 -0
- package/contracts/components/Distribution.sol +163 -0
- package/contracts/components/IBaseComponent.sol +25 -0
- package/contracts/components/IDistributionComponent.sol +44 -0
- package/contracts/components/IPoolComponent.sol +62 -0
- package/contracts/components/IProductComponent.sol +35 -0
- package/contracts/components/Pool.sol +220 -25
- package/contracts/components/Product.sol +245 -45
- package/contracts/experiment/cloning/Cloner.sol +47 -0
- package/contracts/instance/AccessManagedSimple.sol +115 -0
- package/contracts/instance/AccessManagerSimple.sol +692 -0
- package/contracts/instance/IAccessManagerSimple.sol +391 -0
- package/contracts/instance/IInstance.sol +53 -24
- package/contracts/instance/IInstanceService.sol +30 -0
- package/contracts/instance/Instance.sol +423 -52
- package/contracts/instance/InstanceAccessManager.sol +288 -0
- package/contracts/instance/InstanceReader.sol +315 -0
- package/contracts/instance/InstanceService.sol +198 -0
- package/contracts/instance/InstanceServiceManager.sol +57 -0
- package/contracts/instance/base/ComponentServiceBase.sol +134 -0
- package/contracts/instance/base/IInstanceBase.sol +23 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/KeyValueStore.sol +172 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/module/IAccess.sol +38 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +39 -0
- package/contracts/instance/module/IPolicy.sol +45 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +47 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ComponentOwnerService.sol +317 -0
- package/contracts/instance/service/DistributionService.sol +88 -0
- package/contracts/instance/service/DistributionServiceManager.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +20 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +43 -0
- package/contracts/instance/service/IProductService.sol +110 -0
- package/contracts/instance/service/PoolService.sol +204 -0
- package/contracts/instance/service/PoolServiceManager.sol +54 -0
- package/contracts/instance/service/ProductService.sol +561 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +129 -62
- package/contracts/registry/IRegistry.sol +57 -43
- package/contracts/registry/IRegistryService.sol +50 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +392 -126
- package/contracts/registry/RegistryService.sol +358 -0
- package/contracts/registry/RegistryServiceManager.sol +80 -0
- package/contracts/registry/TokenRegistry.sol +111 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +25 -0
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +17 -0
- package/contracts/shared/IService.sol +15 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +134 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +90 -0
- package/contracts/shared/RegisterableUpgradable.sol +16 -0
- package/contracts/shared/Service.sol +55 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +147 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestRegisterable.sol +18 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +24 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +44 -20
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +22 -1
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +60 -15
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +90 -0
- package/contracts/types/StateId.sol +18 -4
- package/contracts/types/Timestamp.sol +29 -4
- package/contracts/types/UFixed.sol +150 -31
- package/contracts/types/Version.sol +107 -0
- package/package.json +14 -5
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -254
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
- package/contracts/components/Component.sol +0 -77
- package/contracts/components/IPool.sol +0 -15
- package/contracts/components/IProduct.sol +0 -16
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/instance/access/Access.sol +0 -165
- package/contracts/instance/access/IAccess.sol +0 -63
- package/contracts/instance/component/ComponentModule.sol +0 -274
- package/contracts/instance/component/IComponent.sol +0 -74
- package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
- package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
- package/contracts/instance/policy/IPolicy.sol +0 -50
- package/contracts/instance/policy/PolicyModule.sol +0 -114
- package/contracts/instance/pool/IPoolModule.sol +0 -23
- package/contracts/instance/pool/PoolModule.sol +0 -81
- package/contracts/instance/product/IProductService.sol +0 -36
- package/contracts/instance/product/ProductService.sol +0 -136
- package/contracts/instance/treasury/ITreasury.sol +0 -91
- package/contracts/instance/treasury/TokenHandler.sol +0 -24
- package/contracts/instance/treasury/TreasuryModule.sol +0 -168
- package/contracts/registry/IChainNft.sol +0 -21
@@ -5,11 +5,6 @@
|
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "NftId",
|
10
|
-
"name": "nftId",
|
11
|
-
"type": "uint96"
|
12
|
-
},
|
13
8
|
{
|
14
9
|
"internalType": "ObjectType",
|
15
10
|
"name": "objectType",
|
@@ -50,35 +45,41 @@
|
|
50
45
|
"inputs": [
|
51
46
|
{
|
52
47
|
"indexed": false,
|
53
|
-
"internalType": "
|
54
|
-
"name": "
|
55
|
-
"type": "
|
48
|
+
"internalType": "ObjectType",
|
49
|
+
"name": "objectType",
|
50
|
+
"type": "uint8"
|
56
51
|
},
|
57
52
|
{
|
58
53
|
"indexed": false,
|
59
|
-
"internalType": "
|
60
|
-
"name": "
|
61
|
-
"type": "
|
54
|
+
"internalType": "KeyId",
|
55
|
+
"name": "keyId",
|
56
|
+
"type": "bytes31"
|
62
57
|
},
|
63
58
|
{
|
64
59
|
"indexed": false,
|
65
60
|
"internalType": "StateId",
|
66
|
-
"name": "
|
61
|
+
"name": "state",
|
67
62
|
"type": "uint8"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"indexed": false,
|
66
|
+
"internalType": "address",
|
67
|
+
"name": "createdBy",
|
68
|
+
"type": "address"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"indexed": false,
|
72
|
+
"internalType": "address",
|
73
|
+
"name": "txOrigin",
|
74
|
+
"type": "address"
|
68
75
|
}
|
69
76
|
],
|
70
|
-
"name": "
|
77
|
+
"name": "LogInfoCreated",
|
71
78
|
"type": "event"
|
72
79
|
},
|
73
80
|
{
|
74
81
|
"anonymous": false,
|
75
82
|
"inputs": [
|
76
|
-
{
|
77
|
-
"indexed": false,
|
78
|
-
"internalType": "NftId",
|
79
|
-
"name": "nftId",
|
80
|
-
"type": "uint96"
|
81
|
-
},
|
82
83
|
{
|
83
84
|
"indexed": false,
|
84
85
|
"internalType": "ObjectType",
|
@@ -87,43 +88,36 @@
|
|
87
88
|
},
|
88
89
|
{
|
89
90
|
"indexed": false,
|
90
|
-
"internalType": "
|
91
|
-
"name": "
|
92
|
-
"type": "
|
91
|
+
"internalType": "KeyId",
|
92
|
+
"name": "keyId",
|
93
|
+
"type": "bytes31"
|
93
94
|
},
|
94
95
|
{
|
95
96
|
"indexed": false,
|
96
97
|
"internalType": "StateId",
|
97
|
-
"name": "
|
98
|
+
"name": "state",
|
98
99
|
"type": "uint8"
|
99
|
-
}
|
100
|
-
],
|
101
|
-
"name": "LogComponentStateChanged",
|
102
|
-
"type": "event"
|
103
|
-
},
|
104
|
-
{
|
105
|
-
"anonymous": false,
|
106
|
-
"inputs": [
|
100
|
+
},
|
107
101
|
{
|
108
102
|
"indexed": false,
|
109
|
-
"internalType": "
|
110
|
-
"name": "
|
111
|
-
"type": "
|
103
|
+
"internalType": "address",
|
104
|
+
"name": "updatedBy",
|
105
|
+
"type": "address"
|
112
106
|
},
|
113
107
|
{
|
114
108
|
"indexed": false,
|
115
109
|
"internalType": "address",
|
116
|
-
"name": "
|
110
|
+
"name": "txOrigin",
|
117
111
|
"type": "address"
|
118
112
|
},
|
119
113
|
{
|
120
114
|
"indexed": false,
|
121
|
-
"internalType": "
|
122
|
-
"name": "
|
123
|
-
"type": "
|
115
|
+
"internalType": "Blocknumber",
|
116
|
+
"name": "lastUpdatedIn",
|
117
|
+
"type": "uint32"
|
124
118
|
}
|
125
119
|
],
|
126
|
-
"name": "
|
120
|
+
"name": "LogInfoUpdated",
|
127
121
|
"type": "event"
|
128
122
|
},
|
129
123
|
{
|
@@ -131,244 +125,180 @@
|
|
131
125
|
"inputs": [
|
132
126
|
{
|
133
127
|
"indexed": false,
|
134
|
-
"internalType": "
|
135
|
-
"name": "
|
136
|
-
"type": "
|
128
|
+
"internalType": "ObjectType",
|
129
|
+
"name": "objectType",
|
130
|
+
"type": "uint8"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"indexed": false,
|
134
|
+
"internalType": "KeyId",
|
135
|
+
"name": "keyId",
|
136
|
+
"type": "bytes31"
|
137
137
|
},
|
138
138
|
{
|
139
139
|
"indexed": false,
|
140
140
|
"internalType": "StateId",
|
141
|
-
"name": "
|
141
|
+
"name": "stateOld",
|
142
142
|
"type": "uint8"
|
143
143
|
},
|
144
144
|
{
|
145
145
|
"indexed": false,
|
146
146
|
"internalType": "StateId",
|
147
|
-
"name": "
|
147
|
+
"name": "stateNew",
|
148
148
|
"type": "uint8"
|
149
|
-
}
|
150
|
-
],
|
151
|
-
"name": "LogPolicyStateChanged",
|
152
|
-
"type": "event"
|
153
|
-
},
|
154
|
-
{
|
155
|
-
"inputs": [],
|
156
|
-
"name": "ORACLE_OWNER_ROLE",
|
157
|
-
"outputs": [
|
149
|
+
},
|
158
150
|
{
|
159
|
-
"
|
160
|
-
"
|
161
|
-
"
|
162
|
-
|
163
|
-
|
164
|
-
"stateMutability": "view",
|
165
|
-
"type": "function"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"inputs": [],
|
169
|
-
"name": "POOL_OWNER_ROLE",
|
170
|
-
"outputs": [
|
151
|
+
"indexed": false,
|
152
|
+
"internalType": "address",
|
153
|
+
"name": "updatedBy",
|
154
|
+
"type": "address"
|
155
|
+
},
|
171
156
|
{
|
172
|
-
"
|
173
|
-
"
|
174
|
-
"
|
175
|
-
|
176
|
-
|
177
|
-
"stateMutability": "view",
|
178
|
-
"type": "function"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"inputs": [],
|
182
|
-
"name": "PRODUCT_OWNER_ROLE",
|
183
|
-
"outputs": [
|
157
|
+
"indexed": false,
|
158
|
+
"internalType": "address",
|
159
|
+
"name": "txOrigin",
|
160
|
+
"type": "address"
|
161
|
+
},
|
184
162
|
{
|
185
|
-
"
|
186
|
-
"
|
187
|
-
"
|
163
|
+
"indexed": false,
|
164
|
+
"internalType": "Blocknumber",
|
165
|
+
"name": "lastUpdatedIn",
|
166
|
+
"type": "uint32"
|
188
167
|
}
|
189
168
|
],
|
190
|
-
"
|
191
|
-
"type": "
|
169
|
+
"name": "LogStateUpdated",
|
170
|
+
"type": "event"
|
192
171
|
},
|
193
172
|
{
|
194
173
|
"inputs": [
|
195
174
|
{
|
196
175
|
"internalType": "NftId",
|
197
|
-
"name": "
|
176
|
+
"name": "bundleNftId",
|
198
177
|
"type": "uint96"
|
199
|
-
}
|
200
|
-
],
|
201
|
-
"name": "activate",
|
202
|
-
"outputs": [],
|
203
|
-
"stateMutability": "nonpayable",
|
204
|
-
"type": "function"
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"inputs": [
|
208
|
-
{
|
209
|
-
"internalType": "uint256",
|
210
|
-
"name": "amount",
|
211
|
-
"type": "uint256"
|
212
178
|
},
|
213
179
|
{
|
214
180
|
"components": [
|
215
181
|
{
|
216
|
-
"internalType": "
|
217
|
-
"name": "
|
182
|
+
"internalType": "NftId",
|
183
|
+
"name": "poolNftId",
|
184
|
+
"type": "uint96"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"components": [
|
188
|
+
{
|
189
|
+
"internalType": "UFixed",
|
190
|
+
"name": "fractionalFee",
|
191
|
+
"type": "uint256"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"internalType": "uint256",
|
195
|
+
"name": "fixedFee",
|
196
|
+
"type": "uint256"
|
197
|
+
}
|
198
|
+
],
|
199
|
+
"internalType": "struct Fee",
|
200
|
+
"name": "fee",
|
201
|
+
"type": "tuple"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"internalType": "bytes",
|
205
|
+
"name": "filter",
|
206
|
+
"type": "bytes"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"internalType": "uint256",
|
210
|
+
"name": "capitalAmount",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "lockedAmount",
|
216
|
+
"type": "uint256"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "balanceAmount",
|
218
221
|
"type": "uint256"
|
219
222
|
},
|
220
223
|
{
|
221
224
|
"internalType": "uint256",
|
222
|
-
"name": "
|
225
|
+
"name": "lifetime",
|
223
226
|
"type": "uint256"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"internalType": "Timestamp",
|
230
|
+
"name": "expiredAt",
|
231
|
+
"type": "uint40"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"internalType": "Timestamp",
|
235
|
+
"name": "closedAt",
|
236
|
+
"type": "uint40"
|
224
237
|
}
|
225
238
|
],
|
226
|
-
"internalType": "struct
|
227
|
-
"name": "
|
239
|
+
"internalType": "struct IBundle.BundleInfo",
|
240
|
+
"name": "bundle",
|
228
241
|
"type": "tuple"
|
229
242
|
}
|
230
243
|
],
|
231
|
-
"name": "
|
232
|
-
"outputs": [
|
233
|
-
|
234
|
-
"internalType": "uint256",
|
235
|
-
"name": "feeAmount",
|
236
|
-
"type": "uint256"
|
237
|
-
},
|
238
|
-
{
|
239
|
-
"internalType": "uint256",
|
240
|
-
"name": "netAmount",
|
241
|
-
"type": "uint256"
|
242
|
-
}
|
243
|
-
],
|
244
|
-
"stateMutability": "pure",
|
245
|
-
"type": "function"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"inputs": [],
|
249
|
-
"name": "components",
|
250
|
-
"outputs": [
|
251
|
-
{
|
252
|
-
"internalType": "uint256",
|
253
|
-
"name": "numberOfCompnents",
|
254
|
-
"type": "uint256"
|
255
|
-
}
|
256
|
-
],
|
257
|
-
"stateMutability": "view",
|
244
|
+
"name": "createBundle",
|
245
|
+
"outputs": [],
|
246
|
+
"stateMutability": "nonpayable",
|
258
247
|
"type": "function"
|
259
248
|
},
|
260
249
|
{
|
261
250
|
"inputs": [
|
251
|
+
{
|
252
|
+
"internalType": "NftId",
|
253
|
+
"name": "distributionNftId",
|
254
|
+
"type": "uint96"
|
255
|
+
},
|
262
256
|
{
|
263
257
|
"components": [
|
264
258
|
{
|
265
259
|
"internalType": "NftId",
|
266
|
-
"name": "
|
260
|
+
"name": "productNftId",
|
267
261
|
"type": "uint96"
|
268
262
|
},
|
269
263
|
{
|
270
|
-
"internalType": "
|
271
|
-
"name": "
|
272
|
-
"type": "
|
264
|
+
"internalType": "contract TokenHandler",
|
265
|
+
"name": "tokenHandler",
|
266
|
+
"type": "address"
|
273
267
|
},
|
274
268
|
{
|
275
|
-
"
|
276
|
-
|
277
|
-
|
269
|
+
"components": [
|
270
|
+
{
|
271
|
+
"internalType": "UFixed",
|
272
|
+
"name": "fractionalFee",
|
273
|
+
"type": "uint256"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"internalType": "uint256",
|
277
|
+
"name": "fixedFee",
|
278
|
+
"type": "uint256"
|
279
|
+
}
|
280
|
+
],
|
281
|
+
"internalType": "struct Fee",
|
282
|
+
"name": "distributionFee",
|
283
|
+
"type": "tuple"
|
278
284
|
},
|
279
285
|
{
|
280
|
-
"internalType": "
|
281
|
-
"name": "
|
282
|
-
"type": "
|
286
|
+
"internalType": "bool",
|
287
|
+
"name": "isIntercepting",
|
288
|
+
"type": "bool"
|
283
289
|
},
|
284
290
|
{
|
285
291
|
"internalType": "address",
|
286
|
-
"name": "
|
292
|
+
"name": "wallet",
|
287
293
|
"type": "address"
|
288
294
|
}
|
289
295
|
],
|
290
|
-
"internalType": "struct
|
291
|
-
"name": "
|
296
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
297
|
+
"name": "setup",
|
292
298
|
"type": "tuple"
|
293
|
-
},
|
294
|
-
{
|
295
|
-
"internalType": "address",
|
296
|
-
"name": "applicationOwner",
|
297
|
-
"type": "address"
|
298
|
-
},
|
299
|
-
{
|
300
|
-
"internalType": "uint256",
|
301
|
-
"name": "sumInsuredAmount",
|
302
|
-
"type": "uint256"
|
303
|
-
},
|
304
|
-
{
|
305
|
-
"internalType": "uint256",
|
306
|
-
"name": "premiumAmount",
|
307
|
-
"type": "uint256"
|
308
|
-
},
|
309
|
-
{
|
310
|
-
"internalType": "uint256",
|
311
|
-
"name": "lifetime",
|
312
|
-
"type": "uint256"
|
313
|
-
},
|
314
|
-
{
|
315
|
-
"internalType": "NftId",
|
316
|
-
"name": "bundleNftId",
|
317
|
-
"type": "uint96"
|
318
|
-
}
|
319
|
-
],
|
320
|
-
"name": "createApplication",
|
321
|
-
"outputs": [
|
322
|
-
{
|
323
|
-
"internalType": "NftId",
|
324
|
-
"name": "nftId",
|
325
|
-
"type": "uint96"
|
326
|
-
}
|
327
|
-
],
|
328
|
-
"stateMutability": "nonpayable",
|
329
|
-
"type": "function"
|
330
|
-
},
|
331
|
-
{
|
332
|
-
"inputs": [
|
333
|
-
{
|
334
|
-
"internalType": "string",
|
335
|
-
"name": "roleName",
|
336
|
-
"type": "string"
|
337
|
-
}
|
338
|
-
],
|
339
|
-
"name": "createRole",
|
340
|
-
"outputs": [
|
341
|
-
{
|
342
|
-
"internalType": "bytes32",
|
343
|
-
"name": "role",
|
344
|
-
"type": "bytes32"
|
345
|
-
}
|
346
|
-
],
|
347
|
-
"stateMutability": "nonpayable",
|
348
|
-
"type": "function"
|
349
|
-
},
|
350
|
-
{
|
351
|
-
"inputs": [
|
352
|
-
{
|
353
|
-
"internalType": "bytes32",
|
354
|
-
"name": "role",
|
355
|
-
"type": "bytes32"
|
356
|
-
}
|
357
|
-
],
|
358
|
-
"name": "disableRole",
|
359
|
-
"outputs": [],
|
360
|
-
"stateMutability": "nonpayable",
|
361
|
-
"type": "function"
|
362
|
-
},
|
363
|
-
{
|
364
|
-
"inputs": [
|
365
|
-
{
|
366
|
-
"internalType": "bytes32",
|
367
|
-
"name": "role",
|
368
|
-
"type": "bytes32"
|
369
299
|
}
|
370
300
|
],
|
371
|
-
"name": "
|
301
|
+
"name": "createDistributionSetup",
|
372
302
|
"outputs": [],
|
373
303
|
"stateMutability": "nonpayable",
|
374
304
|
"type": "function"
|
@@ -377,213 +307,30 @@
|
|
377
307
|
"inputs": [
|
378
308
|
{
|
379
309
|
"internalType": "NftId",
|
380
|
-
"name": "
|
310
|
+
"name": "policyNftId",
|
381
311
|
"type": "uint96"
|
382
|
-
}
|
383
|
-
],
|
384
|
-
"name": "getBundleNftForPolicy",
|
385
|
-
"outputs": [
|
386
|
-
{
|
387
|
-
"internalType": "NftId",
|
388
|
-
"name": "bundleNft",
|
389
|
-
"type": "uint96"
|
390
|
-
}
|
391
|
-
],
|
392
|
-
"stateMutability": "view",
|
393
|
-
"type": "function"
|
394
|
-
},
|
395
|
-
{
|
396
|
-
"inputs": [
|
397
|
-
{
|
398
|
-
"internalType": "address",
|
399
|
-
"name": "componentAddress",
|
400
|
-
"type": "address"
|
401
|
-
}
|
402
|
-
],
|
403
|
-
"name": "getComponentId",
|
404
|
-
"outputs": [
|
405
|
-
{
|
406
|
-
"internalType": "NftId",
|
407
|
-
"name": "nftId",
|
408
|
-
"type": "uint96"
|
409
|
-
}
|
410
|
-
],
|
411
|
-
"stateMutability": "view",
|
412
|
-
"type": "function"
|
413
|
-
},
|
414
|
-
{
|
415
|
-
"inputs": [
|
416
|
-
{
|
417
|
-
"internalType": "uint256",
|
418
|
-
"name": "idx",
|
419
|
-
"type": "uint256"
|
420
|
-
}
|
421
|
-
],
|
422
|
-
"name": "getComponentId",
|
423
|
-
"outputs": [
|
424
|
-
{
|
425
|
-
"internalType": "NftId",
|
426
|
-
"name": "nftId",
|
427
|
-
"type": "uint96"
|
428
|
-
}
|
429
|
-
],
|
430
|
-
"stateMutability": "view",
|
431
|
-
"type": "function"
|
432
|
-
},
|
433
|
-
{
|
434
|
-
"inputs": [
|
435
|
-
{
|
436
|
-
"internalType": "NftId",
|
437
|
-
"name": "nftId",
|
438
|
-
"type": "uint96"
|
439
|
-
}
|
440
|
-
],
|
441
|
-
"name": "getComponentInfo",
|
442
|
-
"outputs": [
|
312
|
+
},
|
443
313
|
{
|
444
314
|
"components": [
|
445
315
|
{
|
446
316
|
"internalType": "NftId",
|
447
|
-
"name": "
|
317
|
+
"name": "productNftId",
|
448
318
|
"type": "uint96"
|
449
319
|
},
|
450
|
-
{
|
451
|
-
"internalType": "StateId",
|
452
|
-
"name": "state",
|
453
|
-
"type": "uint8"
|
454
|
-
},
|
455
|
-
{
|
456
|
-
"internalType": "contract IERC20Metadata",
|
457
|
-
"name": "token",
|
458
|
-
"type": "address"
|
459
|
-
}
|
460
|
-
],
|
461
|
-
"internalType": "struct IComponent.ComponentInfo",
|
462
|
-
"name": "info",
|
463
|
-
"type": "tuple"
|
464
|
-
}
|
465
|
-
],
|
466
|
-
"stateMutability": "view",
|
467
|
-
"type": "function"
|
468
|
-
},
|
469
|
-
{
|
470
|
-
"inputs": [],
|
471
|
-
"name": "getComponentOwnerService",
|
472
|
-
"outputs": [
|
473
|
-
{
|
474
|
-
"internalType": "contract IComponentOwnerService",
|
475
|
-
"name": "",
|
476
|
-
"type": "address"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"stateMutability": "view",
|
480
|
-
"type": "function"
|
481
|
-
},
|
482
|
-
{
|
483
|
-
"inputs": [],
|
484
|
-
"name": "getData",
|
485
|
-
"outputs": [
|
486
|
-
{
|
487
|
-
"internalType": "bytes",
|
488
|
-
"name": "data",
|
489
|
-
"type": "bytes"
|
490
|
-
}
|
491
|
-
],
|
492
|
-
"stateMutability": "view",
|
493
|
-
"type": "function"
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"inputs": [],
|
497
|
-
"name": "getInitialOwner",
|
498
|
-
"outputs": [
|
499
|
-
{
|
500
|
-
"internalType": "address",
|
501
|
-
"name": "initialOwner",
|
502
|
-
"type": "address"
|
503
|
-
}
|
504
|
-
],
|
505
|
-
"stateMutability": "view",
|
506
|
-
"type": "function"
|
507
|
-
},
|
508
|
-
{
|
509
|
-
"inputs": [
|
510
|
-
{
|
511
|
-
"internalType": "ObjectType",
|
512
|
-
"name": "objectType",
|
513
|
-
"type": "uint8"
|
514
|
-
}
|
515
|
-
],
|
516
|
-
"name": "getInitialState",
|
517
|
-
"outputs": [
|
518
|
-
{
|
519
|
-
"internalType": "StateId",
|
520
|
-
"name": "",
|
521
|
-
"type": "uint8"
|
522
|
-
}
|
523
|
-
],
|
524
|
-
"stateMutability": "view",
|
525
|
-
"type": "function"
|
526
|
-
},
|
527
|
-
{
|
528
|
-
"inputs": [],
|
529
|
-
"name": "getNftId",
|
530
|
-
"outputs": [
|
531
|
-
{
|
532
|
-
"internalType": "NftId",
|
533
|
-
"name": "nftId",
|
534
|
-
"type": "uint96"
|
535
|
-
}
|
536
|
-
],
|
537
|
-
"stateMutability": "view",
|
538
|
-
"type": "function"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"inputs": [],
|
542
|
-
"name": "getOwner",
|
543
|
-
"outputs": [
|
544
|
-
{
|
545
|
-
"internalType": "address",
|
546
|
-
"name": "owner",
|
547
|
-
"type": "address"
|
548
|
-
}
|
549
|
-
],
|
550
|
-
"stateMutability": "view",
|
551
|
-
"type": "function"
|
552
|
-
},
|
553
|
-
{
|
554
|
-
"inputs": [],
|
555
|
-
"name": "getParentNftId",
|
556
|
-
"outputs": [
|
557
|
-
{
|
558
|
-
"internalType": "NftId",
|
559
|
-
"name": "parentNftId",
|
560
|
-
"type": "uint96"
|
561
|
-
}
|
562
|
-
],
|
563
|
-
"stateMutability": "view",
|
564
|
-
"type": "function"
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"inputs": [
|
568
|
-
{
|
569
|
-
"internalType": "NftId",
|
570
|
-
"name": "nftId",
|
571
|
-
"type": "uint96"
|
572
|
-
}
|
573
|
-
],
|
574
|
-
"name": "getPolicyInfo",
|
575
|
-
"outputs": [
|
576
|
-
{
|
577
|
-
"components": [
|
578
320
|
{
|
579
321
|
"internalType": "NftId",
|
580
|
-
"name": "
|
322
|
+
"name": "bundleNftId",
|
581
323
|
"type": "uint96"
|
582
324
|
},
|
583
325
|
{
|
584
|
-
"internalType": "
|
585
|
-
"name": "
|
586
|
-
"type": "
|
326
|
+
"internalType": "ReferralId",
|
327
|
+
"name": "referralId",
|
328
|
+
"type": "bytes8"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"internalType": "RiskId",
|
332
|
+
"name": "riskId",
|
333
|
+
"type": "bytes8"
|
587
334
|
},
|
588
335
|
{
|
589
336
|
"internalType": "uint256",
|
@@ -606,96 +353,96 @@
|
|
606
353
|
"type": "uint256"
|
607
354
|
},
|
608
355
|
{
|
609
|
-
"internalType": "
|
610
|
-
"name": "
|
611
|
-
"type": "
|
356
|
+
"internalType": "bytes",
|
357
|
+
"name": "applicationData",
|
358
|
+
"type": "bytes"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"internalType": "bytes",
|
362
|
+
"name": "policyData",
|
363
|
+
"type": "bytes"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"internalType": "uint16",
|
367
|
+
"name": "claimsCount",
|
368
|
+
"type": "uint16"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "uint16",
|
372
|
+
"name": "openClaimsCount",
|
373
|
+
"type": "uint16"
|
612
374
|
},
|
613
375
|
{
|
614
376
|
"internalType": "uint256",
|
615
|
-
"name": "
|
377
|
+
"name": "payoutAmount",
|
616
378
|
"type": "uint256"
|
617
379
|
},
|
618
380
|
{
|
619
|
-
"internalType": "
|
381
|
+
"internalType": "Timestamp",
|
620
382
|
"name": "activatedAt",
|
621
|
-
"type": "
|
383
|
+
"type": "uint40"
|
622
384
|
},
|
623
385
|
{
|
624
|
-
"internalType": "
|
386
|
+
"internalType": "Timestamp",
|
625
387
|
"name": "expiredAt",
|
626
|
-
"type": "
|
388
|
+
"type": "uint40"
|
627
389
|
},
|
628
390
|
{
|
629
|
-
"internalType": "
|
391
|
+
"internalType": "Timestamp",
|
630
392
|
"name": "closedAt",
|
631
|
-
"type": "
|
393
|
+
"type": "uint40"
|
632
394
|
}
|
633
395
|
],
|
634
396
|
"internalType": "struct IPolicy.PolicyInfo",
|
635
|
-
"name": "
|
397
|
+
"name": "policy",
|
636
398
|
"type": "tuple"
|
637
399
|
}
|
638
400
|
],
|
639
|
-
"
|
401
|
+
"name": "createPolicy",
|
402
|
+
"outputs": [],
|
403
|
+
"stateMutability": "nonpayable",
|
640
404
|
"type": "function"
|
641
405
|
},
|
642
406
|
{
|
643
407
|
"inputs": [
|
644
408
|
{
|
645
409
|
"internalType": "NftId",
|
646
|
-
"name": "
|
410
|
+
"name": "poolNftId",
|
647
411
|
"type": "uint96"
|
648
|
-
}
|
649
|
-
],
|
650
|
-
"name": "getPoolInfo",
|
651
|
-
"outputs": [
|
412
|
+
},
|
652
413
|
{
|
653
414
|
"components": [
|
654
415
|
{
|
655
416
|
"internalType": "NftId",
|
656
|
-
"name": "
|
417
|
+
"name": "productNftId",
|
657
418
|
"type": "uint96"
|
658
419
|
},
|
659
420
|
{
|
660
|
-
"internalType": "
|
661
|
-
"name": "
|
662
|
-
"type": "
|
421
|
+
"internalType": "contract TokenHandler",
|
422
|
+
"name": "tokenHandler",
|
423
|
+
"type": "address"
|
663
424
|
},
|
664
425
|
{
|
665
|
-
"internalType": "
|
666
|
-
"name": "
|
426
|
+
"internalType": "UFixed",
|
427
|
+
"name": "collateralizationLevel",
|
667
428
|
"type": "uint256"
|
668
|
-
}
|
669
|
-
],
|
670
|
-
"internalType": "struct IPool.PoolInfo",
|
671
|
-
"name": "info",
|
672
|
-
"type": "tuple"
|
673
|
-
}
|
674
|
-
],
|
675
|
-
"stateMutability": "view",
|
676
|
-
"type": "function"
|
677
|
-
},
|
678
|
-
{
|
679
|
-
"inputs": [
|
680
|
-
{
|
681
|
-
"internalType": "NftId",
|
682
|
-
"name": "poolNftId",
|
683
|
-
"type": "uint96"
|
684
|
-
}
|
685
|
-
],
|
686
|
-
"name": "getPoolSetup",
|
687
|
-
"outputs": [
|
688
|
-
{
|
689
|
-
"components": [
|
690
|
-
{
|
691
|
-
"internalType": "NftId",
|
692
|
-
"name": "poolNftId",
|
693
|
-
"type": "uint96"
|
694
429
|
},
|
695
430
|
{
|
696
|
-
"
|
697
|
-
|
698
|
-
|
431
|
+
"components": [
|
432
|
+
{
|
433
|
+
"internalType": "UFixed",
|
434
|
+
"name": "fractionalFee",
|
435
|
+
"type": "uint256"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"internalType": "uint256",
|
439
|
+
"name": "fixedFee",
|
440
|
+
"type": "uint256"
|
441
|
+
}
|
442
|
+
],
|
443
|
+
"internalType": "struct Fee",
|
444
|
+
"name": "poolFee",
|
445
|
+
"type": "tuple"
|
699
446
|
},
|
700
447
|
{
|
701
448
|
"components": [
|
@@ -730,27 +477,31 @@
|
|
730
477
|
"internalType": "struct Fee",
|
731
478
|
"name": "performanceFee",
|
732
479
|
"type": "tuple"
|
733
|
-
}
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"internalType": "bool",
|
483
|
+
"name": "isIntercepting",
|
484
|
+
"type": "bool"
|
485
|
+
},
|
486
|
+
{
|
487
|
+
"internalType": "bool",
|
488
|
+
"name": "isConfirmingApplication",
|
489
|
+
"type": "bool"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"internalType": "address",
|
493
|
+
"name": "wallet",
|
494
|
+
"type": "address"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
498
|
+
"name": "setup",
|
499
|
+
"type": "tuple"
|
751
500
|
}
|
752
501
|
],
|
753
|
-
"
|
502
|
+
"name": "createPoolSetup",
|
503
|
+
"outputs": [],
|
504
|
+
"stateMutability": "nonpayable",
|
754
505
|
"type": "function"
|
755
506
|
},
|
756
507
|
{
|
@@ -759,20 +510,22 @@
|
|
759
510
|
"internalType": "NftId",
|
760
511
|
"name": "productNftId",
|
761
512
|
"type": "uint96"
|
762
|
-
}
|
763
|
-
],
|
764
|
-
"name": "getProductSetup",
|
765
|
-
"outputs": [
|
513
|
+
},
|
766
514
|
{
|
767
515
|
"components": [
|
768
516
|
{
|
769
|
-
"internalType": "
|
770
|
-
"name": "
|
771
|
-
"type": "
|
517
|
+
"internalType": "contract IERC20Metadata",
|
518
|
+
"name": "token",
|
519
|
+
"type": "address"
|
520
|
+
},
|
521
|
+
{
|
522
|
+
"internalType": "contract TokenHandler",
|
523
|
+
"name": "tokenHandler",
|
524
|
+
"type": "address"
|
772
525
|
},
|
773
526
|
{
|
774
527
|
"internalType": "NftId",
|
775
|
-
"name": "
|
528
|
+
"name": "distributionNftId",
|
776
529
|
"type": "uint96"
|
777
530
|
},
|
778
531
|
{
|
@@ -781,19 +534,55 @@
|
|
781
534
|
"type": "uint96"
|
782
535
|
},
|
783
536
|
{
|
784
|
-
"
|
785
|
-
|
786
|
-
|
537
|
+
"components": [
|
538
|
+
{
|
539
|
+
"internalType": "UFixed",
|
540
|
+
"name": "fractionalFee",
|
541
|
+
"type": "uint256"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"internalType": "uint256",
|
545
|
+
"name": "fixedFee",
|
546
|
+
"type": "uint256"
|
547
|
+
}
|
548
|
+
],
|
549
|
+
"internalType": "struct Fee",
|
550
|
+
"name": "distributionFee",
|
551
|
+
"type": "tuple"
|
787
552
|
},
|
788
553
|
{
|
789
|
-
"
|
790
|
-
|
791
|
-
|
554
|
+
"components": [
|
555
|
+
{
|
556
|
+
"internalType": "UFixed",
|
557
|
+
"name": "fractionalFee",
|
558
|
+
"type": "uint256"
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"internalType": "uint256",
|
562
|
+
"name": "fixedFee",
|
563
|
+
"type": "uint256"
|
564
|
+
}
|
565
|
+
],
|
566
|
+
"internalType": "struct Fee",
|
567
|
+
"name": "productFee",
|
568
|
+
"type": "tuple"
|
792
569
|
},
|
793
570
|
{
|
794
|
-
"
|
795
|
-
|
796
|
-
|
571
|
+
"components": [
|
572
|
+
{
|
573
|
+
"internalType": "UFixed",
|
574
|
+
"name": "fractionalFee",
|
575
|
+
"type": "uint256"
|
576
|
+
},
|
577
|
+
{
|
578
|
+
"internalType": "uint256",
|
579
|
+
"name": "fixedFee",
|
580
|
+
"type": "uint256"
|
581
|
+
}
|
582
|
+
],
|
583
|
+
"internalType": "struct Fee",
|
584
|
+
"name": "processingFee",
|
585
|
+
"type": "tuple"
|
797
586
|
},
|
798
587
|
{
|
799
588
|
"components": [
|
@@ -809,7 +598,7 @@
|
|
809
598
|
}
|
810
599
|
],
|
811
600
|
"internalType": "struct Fee",
|
812
|
-
"name": "
|
601
|
+
"name": "poolFee",
|
813
602
|
"type": "tuple"
|
814
603
|
},
|
815
604
|
{
|
@@ -826,112 +615,148 @@
|
|
826
615
|
}
|
827
616
|
],
|
828
617
|
"internalType": "struct Fee",
|
829
|
-
"name": "
|
618
|
+
"name": "stakingFee",
|
619
|
+
"type": "tuple"
|
620
|
+
},
|
621
|
+
{
|
622
|
+
"components": [
|
623
|
+
{
|
624
|
+
"internalType": "UFixed",
|
625
|
+
"name": "fractionalFee",
|
626
|
+
"type": "uint256"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType": "uint256",
|
630
|
+
"name": "fixedFee",
|
631
|
+
"type": "uint256"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"internalType": "struct Fee",
|
635
|
+
"name": "performanceFee",
|
830
636
|
"type": "tuple"
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"internalType": "bool",
|
640
|
+
"name": "isIntercepting",
|
641
|
+
"type": "bool"
|
642
|
+
},
|
643
|
+
{
|
644
|
+
"internalType": "address",
|
645
|
+
"name": "wallet",
|
646
|
+
"type": "address"
|
831
647
|
}
|
832
648
|
],
|
833
|
-
"internalType": "struct
|
649
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
834
650
|
"name": "setup",
|
835
651
|
"type": "tuple"
|
836
652
|
}
|
837
653
|
],
|
838
|
-
"
|
839
|
-
"
|
840
|
-
|
841
|
-
{
|
842
|
-
"inputs": [],
|
843
|
-
"name": "getRegistry",
|
844
|
-
"outputs": [
|
845
|
-
{
|
846
|
-
"internalType": "contract IRegistry",
|
847
|
-
"name": "registry",
|
848
|
-
"type": "address"
|
849
|
-
}
|
850
|
-
],
|
851
|
-
"stateMutability": "view",
|
654
|
+
"name": "createProductSetup",
|
655
|
+
"outputs": [],
|
656
|
+
"stateMutability": "nonpayable",
|
852
657
|
"type": "function"
|
853
658
|
},
|
854
659
|
{
|
855
660
|
"inputs": [
|
856
661
|
{
|
857
|
-
"internalType": "
|
858
|
-
"name": "
|
859
|
-
"type": "
|
860
|
-
}
|
861
|
-
],
|
862
|
-
"name": "getRole",
|
863
|
-
"outputs": [
|
864
|
-
{
|
865
|
-
"internalType": "bytes32",
|
866
|
-
"name": "role",
|
867
|
-
"type": "bytes32"
|
868
|
-
}
|
869
|
-
],
|
870
|
-
"stateMutability": "view",
|
871
|
-
"type": "function"
|
872
|
-
},
|
873
|
-
{
|
874
|
-
"inputs": [],
|
875
|
-
"name": "getRoleCount",
|
876
|
-
"outputs": [
|
662
|
+
"internalType": "RiskId",
|
663
|
+
"name": "riskId",
|
664
|
+
"type": "bytes8"
|
665
|
+
},
|
877
666
|
{
|
878
|
-
"
|
879
|
-
|
880
|
-
|
667
|
+
"components": [
|
668
|
+
{
|
669
|
+
"internalType": "NftId",
|
670
|
+
"name": "productNftId",
|
671
|
+
"type": "uint96"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"internalType": "bytes",
|
675
|
+
"name": "data",
|
676
|
+
"type": "bytes"
|
677
|
+
}
|
678
|
+
],
|
679
|
+
"internalType": "struct IRisk.RiskInfo",
|
680
|
+
"name": "risk",
|
681
|
+
"type": "tuple"
|
881
682
|
}
|
882
683
|
],
|
883
|
-
"
|
684
|
+
"name": "createRisk",
|
685
|
+
"outputs": [],
|
686
|
+
"stateMutability": "nonpayable",
|
884
687
|
"type": "function"
|
885
688
|
},
|
886
689
|
{
|
887
690
|
"inputs": [
|
888
691
|
{
|
889
|
-
"internalType": "
|
890
|
-
"name": "
|
891
|
-
"type": "
|
692
|
+
"internalType": "Key32",
|
693
|
+
"name": "key",
|
694
|
+
"type": "bytes32"
|
892
695
|
}
|
893
696
|
],
|
894
|
-
"name": "
|
697
|
+
"name": "exists",
|
895
698
|
"outputs": [
|
896
699
|
{
|
897
|
-
"internalType": "
|
898
|
-
"name": "
|
899
|
-
"type": "
|
700
|
+
"internalType": "bool",
|
701
|
+
"name": "",
|
702
|
+
"type": "bool"
|
900
703
|
}
|
901
704
|
],
|
902
|
-
"stateMutability": "
|
705
|
+
"stateMutability": "view",
|
903
706
|
"type": "function"
|
904
707
|
},
|
905
708
|
{
|
906
709
|
"inputs": [
|
907
710
|
{
|
908
|
-
"internalType": "
|
909
|
-
"name": "
|
711
|
+
"internalType": "Key32",
|
712
|
+
"name": "key",
|
910
713
|
"type": "bytes32"
|
911
714
|
}
|
912
715
|
],
|
913
|
-
"name": "
|
716
|
+
"name": "get",
|
914
717
|
"outputs": [
|
915
718
|
{
|
916
719
|
"components": [
|
917
720
|
{
|
918
|
-
"
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
721
|
+
"components": [
|
722
|
+
{
|
723
|
+
"internalType": "ObjectType",
|
724
|
+
"name": "objectType",
|
725
|
+
"type": "uint8"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "StateId",
|
729
|
+
"name": "state",
|
730
|
+
"type": "uint8"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"internalType": "address",
|
734
|
+
"name": "updatedBy",
|
735
|
+
"type": "address"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"internalType": "Blocknumber",
|
739
|
+
"name": "updatedIn",
|
740
|
+
"type": "uint32"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"internalType": "Blocknumber",
|
744
|
+
"name": "createdIn",
|
745
|
+
"type": "uint32"
|
746
|
+
}
|
747
|
+
],
|
748
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
749
|
+
"name": "metadata",
|
750
|
+
"type": "tuple"
|
926
751
|
},
|
927
752
|
{
|
928
|
-
"internalType": "
|
929
|
-
"name": "
|
930
|
-
"type": "
|
753
|
+
"internalType": "bytes",
|
754
|
+
"name": "data",
|
755
|
+
"type": "bytes"
|
931
756
|
}
|
932
757
|
],
|
933
|
-
"internalType": "struct
|
934
|
-
"name": "
|
758
|
+
"internalType": "struct IKeyValueStore.Value",
|
759
|
+
"name": "value",
|
935
760
|
"type": "tuple"
|
936
761
|
}
|
937
762
|
],
|
@@ -939,23 +764,12 @@
|
|
939
764
|
"type": "function"
|
940
765
|
},
|
941
766
|
{
|
942
|
-
"inputs": [
|
943
|
-
|
944
|
-
"internalType": "bytes32",
|
945
|
-
"name": "role",
|
946
|
-
"type": "bytes32"
|
947
|
-
},
|
948
|
-
{
|
949
|
-
"internalType": "uint256",
|
950
|
-
"name": "idx",
|
951
|
-
"type": "uint256"
|
952
|
-
}
|
953
|
-
],
|
954
|
-
"name": "getRoleMember",
|
767
|
+
"inputs": [],
|
768
|
+
"name": "getComponentOwnerService",
|
955
769
|
"outputs": [
|
956
770
|
{
|
957
|
-
"internalType": "
|
958
|
-
"name": "
|
771
|
+
"internalType": "contract IComponentOwnerService",
|
772
|
+
"name": "",
|
959
773
|
"type": "address"
|
960
774
|
}
|
961
775
|
],
|
@@ -965,35 +779,29 @@
|
|
965
779
|
{
|
966
780
|
"inputs": [
|
967
781
|
{
|
968
|
-
"internalType": "
|
969
|
-
"name": "
|
782
|
+
"internalType": "Key32",
|
783
|
+
"name": "key",
|
970
784
|
"type": "bytes32"
|
971
785
|
}
|
972
786
|
],
|
973
|
-
"name": "
|
787
|
+
"name": "getData",
|
974
788
|
"outputs": [
|
975
789
|
{
|
976
|
-
"internalType": "
|
977
|
-
"name": "
|
978
|
-
"type": "
|
790
|
+
"internalType": "bytes",
|
791
|
+
"name": "data",
|
792
|
+
"type": "bytes"
|
979
793
|
}
|
980
794
|
],
|
981
795
|
"stateMutability": "view",
|
982
796
|
"type": "function"
|
983
797
|
},
|
984
798
|
{
|
985
|
-
"inputs": [
|
986
|
-
|
987
|
-
"internalType": "NftId",
|
988
|
-
"name": "productNftId",
|
989
|
-
"type": "uint96"
|
990
|
-
}
|
991
|
-
],
|
992
|
-
"name": "getTokenHandler",
|
799
|
+
"inputs": [],
|
800
|
+
"name": "getDistributionService",
|
993
801
|
"outputs": [
|
994
802
|
{
|
995
|
-
"internalType": "contract
|
996
|
-
"name": "
|
803
|
+
"internalType": "contract IDistributionService",
|
804
|
+
"name": "",
|
997
805
|
"type": "address"
|
998
806
|
}
|
999
807
|
],
|
@@ -1001,55 +809,19 @@
|
|
1001
809
|
"type": "function"
|
1002
810
|
},
|
1003
811
|
{
|
1004
|
-
"inputs": [
|
1005
|
-
"name": "getType",
|
1006
|
-
"outputs": [
|
812
|
+
"inputs": [
|
1007
813
|
{
|
1008
814
|
"internalType": "ObjectType",
|
1009
815
|
"name": "objectType",
|
1010
816
|
"type": "uint8"
|
1011
817
|
}
|
1012
818
|
],
|
1013
|
-
"
|
1014
|
-
"type": "function"
|
1015
|
-
},
|
1016
|
-
{
|
1017
|
-
"inputs": [
|
1018
|
-
{
|
1019
|
-
"internalType": "bytes32",
|
1020
|
-
"name": "role",
|
1021
|
-
"type": "bytes32"
|
1022
|
-
},
|
1023
|
-
{
|
1024
|
-
"internalType": "address",
|
1025
|
-
"name": "member",
|
1026
|
-
"type": "address"
|
1027
|
-
}
|
1028
|
-
],
|
1029
|
-
"name": "grantRole",
|
1030
|
-
"outputs": [],
|
1031
|
-
"stateMutability": "nonpayable",
|
1032
|
-
"type": "function"
|
1033
|
-
},
|
1034
|
-
{
|
1035
|
-
"inputs": [
|
1036
|
-
{
|
1037
|
-
"internalType": "bytes32",
|
1038
|
-
"name": "role",
|
1039
|
-
"type": "bytes32"
|
1040
|
-
},
|
1041
|
-
{
|
1042
|
-
"internalType": "address",
|
1043
|
-
"name": "member",
|
1044
|
-
"type": "address"
|
1045
|
-
}
|
1046
|
-
],
|
1047
|
-
"name": "hasRole",
|
819
|
+
"name": "getInitialState",
|
1048
820
|
"outputs": [
|
1049
821
|
{
|
1050
|
-
"internalType": "
|
822
|
+
"internalType": "StateId",
|
1051
823
|
"name": "",
|
1052
|
-
"type": "
|
824
|
+
"type": "uint8"
|
1053
825
|
}
|
1054
826
|
],
|
1055
827
|
"stateMutability": "view",
|
@@ -1057,250 +829,277 @@
|
|
1057
829
|
},
|
1058
830
|
{
|
1059
831
|
"inputs": [],
|
1060
|
-
"name": "
|
832
|
+
"name": "getInstanceReader",
|
1061
833
|
"outputs": [
|
1062
834
|
{
|
1063
|
-
"internalType": "
|
835
|
+
"internalType": "contract InstanceReader",
|
1064
836
|
"name": "",
|
1065
|
-
"type": "
|
837
|
+
"type": "address"
|
1066
838
|
}
|
1067
839
|
],
|
1068
|
-
"stateMutability": "
|
840
|
+
"stateMutability": "view",
|
1069
841
|
"type": "function"
|
1070
842
|
},
|
1071
843
|
{
|
1072
|
-
"inputs": [
|
1073
|
-
"name": "isRegistered",
|
1074
|
-
"outputs": [
|
844
|
+
"inputs": [
|
1075
845
|
{
|
1076
|
-
"internalType": "
|
1077
|
-
"name": "",
|
1078
|
-
"type": "
|
846
|
+
"internalType": "Key32",
|
847
|
+
"name": "key",
|
848
|
+
"type": "bytes32"
|
849
|
+
}
|
850
|
+
],
|
851
|
+
"name": "getMetadata",
|
852
|
+
"outputs": [
|
853
|
+
{
|
854
|
+
"components": [
|
855
|
+
{
|
856
|
+
"internalType": "ObjectType",
|
857
|
+
"name": "objectType",
|
858
|
+
"type": "uint8"
|
859
|
+
},
|
860
|
+
{
|
861
|
+
"internalType": "StateId",
|
862
|
+
"name": "state",
|
863
|
+
"type": "uint8"
|
864
|
+
},
|
865
|
+
{
|
866
|
+
"internalType": "address",
|
867
|
+
"name": "updatedBy",
|
868
|
+
"type": "address"
|
869
|
+
},
|
870
|
+
{
|
871
|
+
"internalType": "Blocknumber",
|
872
|
+
"name": "updatedIn",
|
873
|
+
"type": "uint32"
|
874
|
+
},
|
875
|
+
{
|
876
|
+
"internalType": "Blocknumber",
|
877
|
+
"name": "createdIn",
|
878
|
+
"type": "uint32"
|
879
|
+
}
|
880
|
+
],
|
881
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
882
|
+
"name": "metadata",
|
883
|
+
"type": "tuple"
|
1079
884
|
}
|
1080
885
|
],
|
1081
886
|
"stateMutability": "view",
|
1082
887
|
"type": "function"
|
1083
888
|
},
|
1084
889
|
{
|
1085
|
-
"inputs": [
|
1086
|
-
|
1087
|
-
"internalType": "ObjectType",
|
1088
|
-
"name": "objectType",
|
1089
|
-
"type": "uint8"
|
1090
|
-
},
|
1091
|
-
{
|
1092
|
-
"internalType": "StateId",
|
1093
|
-
"name": "fromId",
|
1094
|
-
"type": "uint8"
|
1095
|
-
},
|
1096
|
-
{
|
1097
|
-
"internalType": "StateId",
|
1098
|
-
"name": "toId",
|
1099
|
-
"type": "uint8"
|
1100
|
-
}
|
1101
|
-
],
|
1102
|
-
"name": "isValidTransition",
|
890
|
+
"inputs": [],
|
891
|
+
"name": "getPoolService",
|
1103
892
|
"outputs": [
|
1104
893
|
{
|
1105
|
-
"internalType": "
|
894
|
+
"internalType": "contract IPoolService",
|
1106
895
|
"name": "",
|
1107
|
-
"type": "
|
896
|
+
"type": "address"
|
1108
897
|
}
|
1109
898
|
],
|
1110
899
|
"stateMutability": "view",
|
1111
900
|
"type": "function"
|
1112
901
|
},
|
1113
902
|
{
|
1114
|
-
"inputs": [
|
903
|
+
"inputs": [],
|
904
|
+
"name": "getProductService",
|
905
|
+
"outputs": [
|
1115
906
|
{
|
1116
|
-
"internalType": "
|
1117
|
-
"name": "
|
1118
|
-
"type": "
|
907
|
+
"internalType": "contract IProductService",
|
908
|
+
"name": "",
|
909
|
+
"type": "address"
|
1119
910
|
}
|
1120
911
|
],
|
1121
|
-
"
|
1122
|
-
"outputs": [],
|
1123
|
-
"stateMutability": "nonpayable",
|
912
|
+
"stateMutability": "view",
|
1124
913
|
"type": "function"
|
1125
914
|
},
|
1126
915
|
{
|
1127
916
|
"inputs": [
|
1128
917
|
{
|
1129
|
-
"internalType": "
|
1130
|
-
"name": "
|
1131
|
-
"type": "
|
1132
|
-
}
|
918
|
+
"internalType": "Key32",
|
919
|
+
"name": "key",
|
920
|
+
"type": "bytes32"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"name": "getState",
|
924
|
+
"outputs": [
|
1133
925
|
{
|
1134
|
-
"internalType": "
|
1135
|
-
"name": "
|
1136
|
-
"type": "
|
926
|
+
"internalType": "StateId",
|
927
|
+
"name": "state",
|
928
|
+
"type": "uint8"
|
1137
929
|
}
|
1138
930
|
],
|
1139
|
-
"
|
1140
|
-
"outputs": [],
|
1141
|
-
"stateMutability": "nonpayable",
|
931
|
+
"stateMutability": "view",
|
1142
932
|
"type": "function"
|
1143
933
|
},
|
1144
934
|
{
|
1145
|
-
"inputs": [
|
1146
|
-
|
935
|
+
"inputs": [
|
936
|
+
{
|
937
|
+
"internalType": "ObjectType",
|
938
|
+
"name": "objectType",
|
939
|
+
"type": "uint8"
|
940
|
+
}
|
941
|
+
],
|
942
|
+
"name": "hasLifecycle",
|
1147
943
|
"outputs": [
|
1148
944
|
{
|
1149
|
-
"internalType": "
|
1150
|
-
"name": "
|
1151
|
-
"type": "
|
945
|
+
"internalType": "bool",
|
946
|
+
"name": "",
|
947
|
+
"type": "bool"
|
1152
948
|
}
|
1153
949
|
],
|
1154
|
-
"stateMutability": "
|
950
|
+
"stateMutability": "view",
|
1155
951
|
"type": "function"
|
1156
952
|
},
|
1157
953
|
{
|
1158
954
|
"inputs": [
|
1159
955
|
{
|
1160
|
-
"internalType": "
|
1161
|
-
"name": "
|
1162
|
-
"type": "
|
956
|
+
"internalType": "ObjectType",
|
957
|
+
"name": "objectType",
|
958
|
+
"type": "uint8"
|
959
|
+
},
|
960
|
+
{
|
961
|
+
"internalType": "StateId",
|
962
|
+
"name": "fromId",
|
963
|
+
"type": "uint8"
|
964
|
+
},
|
965
|
+
{
|
966
|
+
"internalType": "StateId",
|
967
|
+
"name": "toId",
|
968
|
+
"type": "uint8"
|
1163
969
|
}
|
1164
970
|
],
|
1165
|
-
"name": "
|
971
|
+
"name": "isValidTransition",
|
1166
972
|
"outputs": [
|
1167
973
|
{
|
1168
|
-
"internalType": "
|
1169
|
-
"name": "
|
1170
|
-
"type": "
|
974
|
+
"internalType": "bool",
|
975
|
+
"name": "",
|
976
|
+
"type": "bool"
|
1171
977
|
}
|
1172
978
|
],
|
1173
|
-
"stateMutability": "
|
979
|
+
"stateMutability": "view",
|
1174
980
|
"type": "function"
|
1175
981
|
},
|
1176
982
|
{
|
1177
983
|
"inputs": [
|
1178
984
|
{
|
1179
|
-
"internalType": "
|
1180
|
-
"name": "
|
1181
|
-
"type": "
|
985
|
+
"internalType": "bytes4",
|
986
|
+
"name": "interfaceId",
|
987
|
+
"type": "bytes4"
|
1182
988
|
}
|
1183
989
|
],
|
1184
|
-
"name": "
|
1185
|
-
"outputs": [
|
1186
|
-
|
990
|
+
"name": "supportsInterface",
|
991
|
+
"outputs": [
|
992
|
+
{
|
993
|
+
"internalType": "bool",
|
994
|
+
"name": "",
|
995
|
+
"type": "bool"
|
996
|
+
}
|
997
|
+
],
|
998
|
+
"stateMutability": "view",
|
1187
999
|
"type": "function"
|
1188
1000
|
},
|
1189
1001
|
{
|
1190
1002
|
"inputs": [
|
1191
1003
|
{
|
1192
|
-
"internalType": "
|
1193
|
-
"name": "
|
1194
|
-
"type": "
|
1195
|
-
},
|
1196
|
-
{
|
1197
|
-
"internalType": "address",
|
1198
|
-
"name": "wallet",
|
1199
|
-
"type": "address"
|
1004
|
+
"internalType": "ObjectType",
|
1005
|
+
"name": "objectType",
|
1006
|
+
"type": "uint8"
|
1200
1007
|
},
|
1201
1008
|
{
|
1202
|
-
"
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
"internalType": "uint256",
|
1210
|
-
"name": "fixedFee",
|
1211
|
-
"type": "uint256"
|
1212
|
-
}
|
1213
|
-
],
|
1214
|
-
"internalType": "struct Fee",
|
1215
|
-
"name": "stakingFee",
|
1216
|
-
"type": "tuple"
|
1217
|
-
},
|
1009
|
+
"internalType": "KeyId",
|
1010
|
+
"name": "id",
|
1011
|
+
"type": "bytes31"
|
1012
|
+
}
|
1013
|
+
],
|
1014
|
+
"name": "toKey32",
|
1015
|
+
"outputs": [
|
1218
1016
|
{
|
1219
|
-
"
|
1220
|
-
|
1221
|
-
|
1222
|
-
"name": "fractionalFee",
|
1223
|
-
"type": "uint256"
|
1224
|
-
},
|
1225
|
-
{
|
1226
|
-
"internalType": "uint256",
|
1227
|
-
"name": "fixedFee",
|
1228
|
-
"type": "uint256"
|
1229
|
-
}
|
1230
|
-
],
|
1231
|
-
"internalType": "struct Fee",
|
1232
|
-
"name": "performanceFee",
|
1233
|
-
"type": "tuple"
|
1017
|
+
"internalType": "Key32",
|
1018
|
+
"name": "",
|
1019
|
+
"type": "bytes32"
|
1234
1020
|
}
|
1235
1021
|
],
|
1236
|
-
"
|
1237
|
-
"outputs": [],
|
1238
|
-
"stateMutability": "nonpayable",
|
1022
|
+
"stateMutability": "pure",
|
1239
1023
|
"type": "function"
|
1240
1024
|
},
|
1241
1025
|
{
|
1242
1026
|
"inputs": [
|
1243
1027
|
{
|
1244
1028
|
"internalType": "NftId",
|
1245
|
-
"name": "
|
1246
|
-
"type": "uint96"
|
1247
|
-
},
|
1248
|
-
{
|
1249
|
-
"internalType": "NftId",
|
1250
|
-
"name": "distributorNftId",
|
1251
|
-
"type": "uint96"
|
1252
|
-
},
|
1253
|
-
{
|
1254
|
-
"internalType": "NftId",
|
1255
|
-
"name": "poolNftId",
|
1029
|
+
"name": "bundleNftId",
|
1256
1030
|
"type": "uint96"
|
1257
1031
|
},
|
1258
|
-
{
|
1259
|
-
"internalType": "contract IERC20",
|
1260
|
-
"name": "token",
|
1261
|
-
"type": "address"
|
1262
|
-
},
|
1263
|
-
{
|
1264
|
-
"internalType": "address",
|
1265
|
-
"name": "wallet",
|
1266
|
-
"type": "address"
|
1267
|
-
},
|
1268
1032
|
{
|
1269
1033
|
"components": [
|
1270
1034
|
{
|
1271
|
-
"internalType": "
|
1272
|
-
"name": "
|
1035
|
+
"internalType": "NftId",
|
1036
|
+
"name": "poolNftId",
|
1037
|
+
"type": "uint96"
|
1038
|
+
},
|
1039
|
+
{
|
1040
|
+
"components": [
|
1041
|
+
{
|
1042
|
+
"internalType": "UFixed",
|
1043
|
+
"name": "fractionalFee",
|
1044
|
+
"type": "uint256"
|
1045
|
+
},
|
1046
|
+
{
|
1047
|
+
"internalType": "uint256",
|
1048
|
+
"name": "fixedFee",
|
1049
|
+
"type": "uint256"
|
1050
|
+
}
|
1051
|
+
],
|
1052
|
+
"internalType": "struct Fee",
|
1053
|
+
"name": "fee",
|
1054
|
+
"type": "tuple"
|
1055
|
+
},
|
1056
|
+
{
|
1057
|
+
"internalType": "bytes",
|
1058
|
+
"name": "filter",
|
1059
|
+
"type": "bytes"
|
1060
|
+
},
|
1061
|
+
{
|
1062
|
+
"internalType": "uint256",
|
1063
|
+
"name": "capitalAmount",
|
1273
1064
|
"type": "uint256"
|
1274
1065
|
},
|
1275
1066
|
{
|
1276
1067
|
"internalType": "uint256",
|
1277
|
-
"name": "
|
1068
|
+
"name": "lockedAmount",
|
1278
1069
|
"type": "uint256"
|
1279
|
-
}
|
1280
|
-
],
|
1281
|
-
"internalType": "struct Fee",
|
1282
|
-
"name": "policyFee",
|
1283
|
-
"type": "tuple"
|
1284
|
-
},
|
1285
|
-
{
|
1286
|
-
"components": [
|
1070
|
+
},
|
1287
1071
|
{
|
1288
|
-
"internalType": "
|
1289
|
-
"name": "
|
1072
|
+
"internalType": "uint256",
|
1073
|
+
"name": "balanceAmount",
|
1290
1074
|
"type": "uint256"
|
1291
1075
|
},
|
1292
1076
|
{
|
1293
1077
|
"internalType": "uint256",
|
1294
|
-
"name": "
|
1078
|
+
"name": "lifetime",
|
1295
1079
|
"type": "uint256"
|
1080
|
+
},
|
1081
|
+
{
|
1082
|
+
"internalType": "Timestamp",
|
1083
|
+
"name": "expiredAt",
|
1084
|
+
"type": "uint40"
|
1085
|
+
},
|
1086
|
+
{
|
1087
|
+
"internalType": "Timestamp",
|
1088
|
+
"name": "closedAt",
|
1089
|
+
"type": "uint40"
|
1296
1090
|
}
|
1297
1091
|
],
|
1298
|
-
"internalType": "struct
|
1299
|
-
"name": "
|
1092
|
+
"internalType": "struct IBundle.BundleInfo",
|
1093
|
+
"name": "bundle",
|
1300
1094
|
"type": "tuple"
|
1095
|
+
},
|
1096
|
+
{
|
1097
|
+
"internalType": "StateId",
|
1098
|
+
"name": "newState",
|
1099
|
+
"type": "uint8"
|
1301
1100
|
}
|
1302
1101
|
],
|
1303
|
-
"name": "
|
1102
|
+
"name": "updateBundle",
|
1304
1103
|
"outputs": [],
|
1305
1104
|
"stateMutability": "nonpayable",
|
1306
1105
|
"type": "function"
|
@@ -1308,54 +1107,98 @@
|
|
1308
1107
|
{
|
1309
1108
|
"inputs": [
|
1310
1109
|
{
|
1311
|
-
"internalType": "
|
1312
|
-
"name": "
|
1313
|
-
"type": "
|
1110
|
+
"internalType": "NftId",
|
1111
|
+
"name": "bundleNftId",
|
1112
|
+
"type": "uint96"
|
1314
1113
|
},
|
1315
1114
|
{
|
1316
|
-
"internalType": "
|
1317
|
-
"name": "
|
1318
|
-
"type": "
|
1115
|
+
"internalType": "StateId",
|
1116
|
+
"name": "newState",
|
1117
|
+
"type": "uint8"
|
1319
1118
|
}
|
1320
1119
|
],
|
1321
|
-
"name": "
|
1120
|
+
"name": "updateBundleState",
|
1322
1121
|
"outputs": [],
|
1323
1122
|
"stateMutability": "nonpayable",
|
1324
1123
|
"type": "function"
|
1325
1124
|
},
|
1326
1125
|
{
|
1327
1126
|
"inputs": [
|
1127
|
+
{
|
1128
|
+
"internalType": "NftId",
|
1129
|
+
"name": "distributionNftId",
|
1130
|
+
"type": "uint96"
|
1131
|
+
},
|
1328
1132
|
{
|
1329
1133
|
"components": [
|
1330
1134
|
{
|
1331
1135
|
"internalType": "NftId",
|
1332
|
-
"name": "
|
1136
|
+
"name": "productNftId",
|
1333
1137
|
"type": "uint96"
|
1334
1138
|
},
|
1335
1139
|
{
|
1336
|
-
"internalType": "
|
1337
|
-
"name": "
|
1338
|
-
"type": "
|
1140
|
+
"internalType": "contract TokenHandler",
|
1141
|
+
"name": "tokenHandler",
|
1142
|
+
"type": "address"
|
1339
1143
|
},
|
1340
1144
|
{
|
1341
|
-
"
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1145
|
+
"components": [
|
1146
|
+
{
|
1147
|
+
"internalType": "UFixed",
|
1148
|
+
"name": "fractionalFee",
|
1149
|
+
"type": "uint256"
|
1150
|
+
},
|
1151
|
+
{
|
1152
|
+
"internalType": "uint256",
|
1153
|
+
"name": "fixedFee",
|
1154
|
+
"type": "uint256"
|
1155
|
+
}
|
1156
|
+
],
|
1157
|
+
"internalType": "struct Fee",
|
1158
|
+
"name": "distributionFee",
|
1159
|
+
"type": "tuple"
|
1160
|
+
},
|
1161
|
+
{
|
1162
|
+
"internalType": "bool",
|
1163
|
+
"name": "isIntercepting",
|
1164
|
+
"type": "bool"
|
1165
|
+
},
|
1166
|
+
{
|
1167
|
+
"internalType": "address",
|
1168
|
+
"name": "wallet",
|
1169
|
+
"type": "address"
|
1170
|
+
}
|
1171
|
+
],
|
1172
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1173
|
+
"name": "setup",
|
1348
1174
|
"type": "tuple"
|
1175
|
+
},
|
1176
|
+
{
|
1177
|
+
"internalType": "StateId",
|
1178
|
+
"name": "newState",
|
1179
|
+
"type": "uint8"
|
1349
1180
|
}
|
1350
1181
|
],
|
1351
|
-
"name": "
|
1352
|
-
"outputs": [
|
1182
|
+
"name": "updateDistributionSetup",
|
1183
|
+
"outputs": [],
|
1184
|
+
"stateMutability": "nonpayable",
|
1185
|
+
"type": "function"
|
1186
|
+
},
|
1187
|
+
{
|
1188
|
+
"inputs": [
|
1353
1189
|
{
|
1354
1190
|
"internalType": "NftId",
|
1355
|
-
"name": "
|
1191
|
+
"name": "distributionNftId",
|
1356
1192
|
"type": "uint96"
|
1193
|
+
},
|
1194
|
+
{
|
1195
|
+
"internalType": "StateId",
|
1196
|
+
"name": "newState",
|
1197
|
+
"type": "uint8"
|
1357
1198
|
}
|
1358
1199
|
],
|
1200
|
+
"name": "updateDistributionSetupState",
|
1201
|
+
"outputs": [],
|
1359
1202
|
"stateMutability": "nonpayable",
|
1360
1203
|
"type": "function"
|
1361
1204
|
},
|
@@ -1363,45 +1206,245 @@
|
|
1363
1206
|
"inputs": [
|
1364
1207
|
{
|
1365
1208
|
"internalType": "NftId",
|
1366
|
-
"name": "
|
1209
|
+
"name": "policyNftId",
|
1367
1210
|
"type": "uint96"
|
1368
1211
|
},
|
1369
1212
|
{
|
1370
1213
|
"components": [
|
1371
1214
|
{
|
1372
|
-
"internalType": "
|
1373
|
-
"name": "
|
1215
|
+
"internalType": "NftId",
|
1216
|
+
"name": "productNftId",
|
1217
|
+
"type": "uint96"
|
1218
|
+
},
|
1219
|
+
{
|
1220
|
+
"internalType": "NftId",
|
1221
|
+
"name": "bundleNftId",
|
1222
|
+
"type": "uint96"
|
1223
|
+
},
|
1224
|
+
{
|
1225
|
+
"internalType": "ReferralId",
|
1226
|
+
"name": "referralId",
|
1227
|
+
"type": "bytes8"
|
1228
|
+
},
|
1229
|
+
{
|
1230
|
+
"internalType": "RiskId",
|
1231
|
+
"name": "riskId",
|
1232
|
+
"type": "bytes8"
|
1233
|
+
},
|
1234
|
+
{
|
1235
|
+
"internalType": "uint256",
|
1236
|
+
"name": "sumInsuredAmount",
|
1374
1237
|
"type": "uint256"
|
1375
1238
|
},
|
1376
1239
|
{
|
1377
1240
|
"internalType": "uint256",
|
1378
|
-
"name": "
|
1241
|
+
"name": "premiumAmount",
|
1379
1242
|
"type": "uint256"
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
"internalType": "uint256",
|
1246
|
+
"name": "premiumPaidAmount",
|
1247
|
+
"type": "uint256"
|
1248
|
+
},
|
1249
|
+
{
|
1250
|
+
"internalType": "uint256",
|
1251
|
+
"name": "lifetime",
|
1252
|
+
"type": "uint256"
|
1253
|
+
},
|
1254
|
+
{
|
1255
|
+
"internalType": "bytes",
|
1256
|
+
"name": "applicationData",
|
1257
|
+
"type": "bytes"
|
1258
|
+
},
|
1259
|
+
{
|
1260
|
+
"internalType": "bytes",
|
1261
|
+
"name": "policyData",
|
1262
|
+
"type": "bytes"
|
1263
|
+
},
|
1264
|
+
{
|
1265
|
+
"internalType": "uint16",
|
1266
|
+
"name": "claimsCount",
|
1267
|
+
"type": "uint16"
|
1268
|
+
},
|
1269
|
+
{
|
1270
|
+
"internalType": "uint16",
|
1271
|
+
"name": "openClaimsCount",
|
1272
|
+
"type": "uint16"
|
1273
|
+
},
|
1274
|
+
{
|
1275
|
+
"internalType": "uint256",
|
1276
|
+
"name": "payoutAmount",
|
1277
|
+
"type": "uint256"
|
1278
|
+
},
|
1279
|
+
{
|
1280
|
+
"internalType": "Timestamp",
|
1281
|
+
"name": "activatedAt",
|
1282
|
+
"type": "uint40"
|
1283
|
+
},
|
1284
|
+
{
|
1285
|
+
"internalType": "Timestamp",
|
1286
|
+
"name": "expiredAt",
|
1287
|
+
"type": "uint40"
|
1288
|
+
},
|
1289
|
+
{
|
1290
|
+
"internalType": "Timestamp",
|
1291
|
+
"name": "closedAt",
|
1292
|
+
"type": "uint40"
|
1380
1293
|
}
|
1381
1294
|
],
|
1382
|
-
"internalType": "struct
|
1383
|
-
"name": "
|
1295
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1296
|
+
"name": "policy",
|
1384
1297
|
"type": "tuple"
|
1385
1298
|
},
|
1299
|
+
{
|
1300
|
+
"internalType": "StateId",
|
1301
|
+
"name": "newState",
|
1302
|
+
"type": "uint8"
|
1303
|
+
}
|
1304
|
+
],
|
1305
|
+
"name": "updatePolicy",
|
1306
|
+
"outputs": [],
|
1307
|
+
"stateMutability": "nonpayable",
|
1308
|
+
"type": "function"
|
1309
|
+
},
|
1310
|
+
{
|
1311
|
+
"inputs": [
|
1312
|
+
{
|
1313
|
+
"internalType": "NftId",
|
1314
|
+
"name": "policyNftId",
|
1315
|
+
"type": "uint96"
|
1316
|
+
},
|
1317
|
+
{
|
1318
|
+
"internalType": "StateId",
|
1319
|
+
"name": "newState",
|
1320
|
+
"type": "uint8"
|
1321
|
+
}
|
1322
|
+
],
|
1323
|
+
"name": "updatePolicyState",
|
1324
|
+
"outputs": [],
|
1325
|
+
"stateMutability": "nonpayable",
|
1326
|
+
"type": "function"
|
1327
|
+
},
|
1328
|
+
{
|
1329
|
+
"inputs": [
|
1330
|
+
{
|
1331
|
+
"internalType": "NftId",
|
1332
|
+
"name": "poolNftId",
|
1333
|
+
"type": "uint96"
|
1334
|
+
},
|
1386
1335
|
{
|
1387
1336
|
"components": [
|
1337
|
+
{
|
1338
|
+
"internalType": "NftId",
|
1339
|
+
"name": "productNftId",
|
1340
|
+
"type": "uint96"
|
1341
|
+
},
|
1342
|
+
{
|
1343
|
+
"internalType": "contract TokenHandler",
|
1344
|
+
"name": "tokenHandler",
|
1345
|
+
"type": "address"
|
1346
|
+
},
|
1388
1347
|
{
|
1389
1348
|
"internalType": "UFixed",
|
1390
|
-
"name": "
|
1349
|
+
"name": "collateralizationLevel",
|
1391
1350
|
"type": "uint256"
|
1392
1351
|
},
|
1393
1352
|
{
|
1394
|
-
"
|
1395
|
-
|
1396
|
-
|
1353
|
+
"components": [
|
1354
|
+
{
|
1355
|
+
"internalType": "UFixed",
|
1356
|
+
"name": "fractionalFee",
|
1357
|
+
"type": "uint256"
|
1358
|
+
},
|
1359
|
+
{
|
1360
|
+
"internalType": "uint256",
|
1361
|
+
"name": "fixedFee",
|
1362
|
+
"type": "uint256"
|
1363
|
+
}
|
1364
|
+
],
|
1365
|
+
"internalType": "struct Fee",
|
1366
|
+
"name": "poolFee",
|
1367
|
+
"type": "tuple"
|
1368
|
+
},
|
1369
|
+
{
|
1370
|
+
"components": [
|
1371
|
+
{
|
1372
|
+
"internalType": "UFixed",
|
1373
|
+
"name": "fractionalFee",
|
1374
|
+
"type": "uint256"
|
1375
|
+
},
|
1376
|
+
{
|
1377
|
+
"internalType": "uint256",
|
1378
|
+
"name": "fixedFee",
|
1379
|
+
"type": "uint256"
|
1380
|
+
}
|
1381
|
+
],
|
1382
|
+
"internalType": "struct Fee",
|
1383
|
+
"name": "stakingFee",
|
1384
|
+
"type": "tuple"
|
1385
|
+
},
|
1386
|
+
{
|
1387
|
+
"components": [
|
1388
|
+
{
|
1389
|
+
"internalType": "UFixed",
|
1390
|
+
"name": "fractionalFee",
|
1391
|
+
"type": "uint256"
|
1392
|
+
},
|
1393
|
+
{
|
1394
|
+
"internalType": "uint256",
|
1395
|
+
"name": "fixedFee",
|
1396
|
+
"type": "uint256"
|
1397
|
+
}
|
1398
|
+
],
|
1399
|
+
"internalType": "struct Fee",
|
1400
|
+
"name": "performanceFee",
|
1401
|
+
"type": "tuple"
|
1402
|
+
},
|
1403
|
+
{
|
1404
|
+
"internalType": "bool",
|
1405
|
+
"name": "isIntercepting",
|
1406
|
+
"type": "bool"
|
1407
|
+
},
|
1408
|
+
{
|
1409
|
+
"internalType": "bool",
|
1410
|
+
"name": "isConfirmingApplication",
|
1411
|
+
"type": "bool"
|
1412
|
+
},
|
1413
|
+
{
|
1414
|
+
"internalType": "address",
|
1415
|
+
"name": "wallet",
|
1416
|
+
"type": "address"
|
1397
1417
|
}
|
1398
1418
|
],
|
1399
|
-
"internalType": "struct
|
1400
|
-
"name": "
|
1419
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
1420
|
+
"name": "setup",
|
1401
1421
|
"type": "tuple"
|
1422
|
+
},
|
1423
|
+
{
|
1424
|
+
"internalType": "StateId",
|
1425
|
+
"name": "newState",
|
1426
|
+
"type": "uint8"
|
1402
1427
|
}
|
1403
1428
|
],
|
1404
|
-
"name": "
|
1429
|
+
"name": "updatePoolSetup",
|
1430
|
+
"outputs": [],
|
1431
|
+
"stateMutability": "nonpayable",
|
1432
|
+
"type": "function"
|
1433
|
+
},
|
1434
|
+
{
|
1435
|
+
"inputs": [
|
1436
|
+
{
|
1437
|
+
"internalType": "NftId",
|
1438
|
+
"name": "poolNftId",
|
1439
|
+
"type": "uint96"
|
1440
|
+
},
|
1441
|
+
{
|
1442
|
+
"internalType": "StateId",
|
1443
|
+
"name": "newState",
|
1444
|
+
"type": "uint8"
|
1445
|
+
}
|
1446
|
+
],
|
1447
|
+
"name": "updatePoolSetupState",
|
1405
1448
|
"outputs": [],
|
1406
1449
|
"stateMutability": "nonpayable",
|
1407
1450
|
"type": "function"
|
@@ -1416,39 +1459,202 @@
|
|
1416
1459
|
{
|
1417
1460
|
"components": [
|
1418
1461
|
{
|
1419
|
-
"internalType": "
|
1420
|
-
"name": "
|
1421
|
-
"type": "
|
1462
|
+
"internalType": "contract IERC20Metadata",
|
1463
|
+
"name": "token",
|
1464
|
+
"type": "address"
|
1422
1465
|
},
|
1423
1466
|
{
|
1424
|
-
"internalType": "
|
1425
|
-
"name": "
|
1426
|
-
"type": "
|
1467
|
+
"internalType": "contract TokenHandler",
|
1468
|
+
"name": "tokenHandler",
|
1469
|
+
"type": "address"
|
1470
|
+
},
|
1471
|
+
{
|
1472
|
+
"internalType": "NftId",
|
1473
|
+
"name": "distributionNftId",
|
1474
|
+
"type": "uint96"
|
1475
|
+
},
|
1476
|
+
{
|
1477
|
+
"internalType": "NftId",
|
1478
|
+
"name": "poolNftId",
|
1479
|
+
"type": "uint96"
|
1480
|
+
},
|
1481
|
+
{
|
1482
|
+
"components": [
|
1483
|
+
{
|
1484
|
+
"internalType": "UFixed",
|
1485
|
+
"name": "fractionalFee",
|
1486
|
+
"type": "uint256"
|
1487
|
+
},
|
1488
|
+
{
|
1489
|
+
"internalType": "uint256",
|
1490
|
+
"name": "fixedFee",
|
1491
|
+
"type": "uint256"
|
1492
|
+
}
|
1493
|
+
],
|
1494
|
+
"internalType": "struct Fee",
|
1495
|
+
"name": "distributionFee",
|
1496
|
+
"type": "tuple"
|
1497
|
+
},
|
1498
|
+
{
|
1499
|
+
"components": [
|
1500
|
+
{
|
1501
|
+
"internalType": "UFixed",
|
1502
|
+
"name": "fractionalFee",
|
1503
|
+
"type": "uint256"
|
1504
|
+
},
|
1505
|
+
{
|
1506
|
+
"internalType": "uint256",
|
1507
|
+
"name": "fixedFee",
|
1508
|
+
"type": "uint256"
|
1509
|
+
}
|
1510
|
+
],
|
1511
|
+
"internalType": "struct Fee",
|
1512
|
+
"name": "productFee",
|
1513
|
+
"type": "tuple"
|
1514
|
+
},
|
1515
|
+
{
|
1516
|
+
"components": [
|
1517
|
+
{
|
1518
|
+
"internalType": "UFixed",
|
1519
|
+
"name": "fractionalFee",
|
1520
|
+
"type": "uint256"
|
1521
|
+
},
|
1522
|
+
{
|
1523
|
+
"internalType": "uint256",
|
1524
|
+
"name": "fixedFee",
|
1525
|
+
"type": "uint256"
|
1526
|
+
}
|
1527
|
+
],
|
1528
|
+
"internalType": "struct Fee",
|
1529
|
+
"name": "processingFee",
|
1530
|
+
"type": "tuple"
|
1531
|
+
},
|
1532
|
+
{
|
1533
|
+
"components": [
|
1534
|
+
{
|
1535
|
+
"internalType": "UFixed",
|
1536
|
+
"name": "fractionalFee",
|
1537
|
+
"type": "uint256"
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"internalType": "uint256",
|
1541
|
+
"name": "fixedFee",
|
1542
|
+
"type": "uint256"
|
1543
|
+
}
|
1544
|
+
],
|
1545
|
+
"internalType": "struct Fee",
|
1546
|
+
"name": "poolFee",
|
1547
|
+
"type": "tuple"
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"components": [
|
1551
|
+
{
|
1552
|
+
"internalType": "UFixed",
|
1553
|
+
"name": "fractionalFee",
|
1554
|
+
"type": "uint256"
|
1555
|
+
},
|
1556
|
+
{
|
1557
|
+
"internalType": "uint256",
|
1558
|
+
"name": "fixedFee",
|
1559
|
+
"type": "uint256"
|
1560
|
+
}
|
1561
|
+
],
|
1562
|
+
"internalType": "struct Fee",
|
1563
|
+
"name": "stakingFee",
|
1564
|
+
"type": "tuple"
|
1565
|
+
},
|
1566
|
+
{
|
1567
|
+
"components": [
|
1568
|
+
{
|
1569
|
+
"internalType": "UFixed",
|
1570
|
+
"name": "fractionalFee",
|
1571
|
+
"type": "uint256"
|
1572
|
+
},
|
1573
|
+
{
|
1574
|
+
"internalType": "uint256",
|
1575
|
+
"name": "fixedFee",
|
1576
|
+
"type": "uint256"
|
1577
|
+
}
|
1578
|
+
],
|
1579
|
+
"internalType": "struct Fee",
|
1580
|
+
"name": "performanceFee",
|
1581
|
+
"type": "tuple"
|
1582
|
+
},
|
1583
|
+
{
|
1584
|
+
"internalType": "bool",
|
1585
|
+
"name": "isIntercepting",
|
1586
|
+
"type": "bool"
|
1587
|
+
},
|
1588
|
+
{
|
1589
|
+
"internalType": "address",
|
1590
|
+
"name": "wallet",
|
1591
|
+
"type": "address"
|
1427
1592
|
}
|
1428
1593
|
],
|
1429
|
-
"internalType": "struct
|
1430
|
-
"name": "
|
1594
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1595
|
+
"name": "setup",
|
1431
1596
|
"type": "tuple"
|
1432
1597
|
},
|
1598
|
+
{
|
1599
|
+
"internalType": "StateId",
|
1600
|
+
"name": "newState",
|
1601
|
+
"type": "uint8"
|
1602
|
+
}
|
1603
|
+
],
|
1604
|
+
"name": "updateProductSetup",
|
1605
|
+
"outputs": [],
|
1606
|
+
"stateMutability": "nonpayable",
|
1607
|
+
"type": "function"
|
1608
|
+
},
|
1609
|
+
{
|
1610
|
+
"inputs": [
|
1611
|
+
{
|
1612
|
+
"internalType": "NftId",
|
1613
|
+
"name": "productNftId",
|
1614
|
+
"type": "uint96"
|
1615
|
+
},
|
1616
|
+
{
|
1617
|
+
"internalType": "StateId",
|
1618
|
+
"name": "newState",
|
1619
|
+
"type": "uint8"
|
1620
|
+
}
|
1621
|
+
],
|
1622
|
+
"name": "updateProductSetupState",
|
1623
|
+
"outputs": [],
|
1624
|
+
"stateMutability": "nonpayable",
|
1625
|
+
"type": "function"
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
"inputs": [
|
1629
|
+
{
|
1630
|
+
"internalType": "RiskId",
|
1631
|
+
"name": "riskId",
|
1632
|
+
"type": "bytes8"
|
1633
|
+
},
|
1433
1634
|
{
|
1434
1635
|
"components": [
|
1435
1636
|
{
|
1436
|
-
"internalType": "
|
1437
|
-
"name": "
|
1438
|
-
"type": "
|
1637
|
+
"internalType": "NftId",
|
1638
|
+
"name": "productNftId",
|
1639
|
+
"type": "uint96"
|
1439
1640
|
},
|
1440
1641
|
{
|
1441
|
-
"internalType": "
|
1442
|
-
"name": "
|
1443
|
-
"type": "
|
1642
|
+
"internalType": "bytes",
|
1643
|
+
"name": "data",
|
1644
|
+
"type": "bytes"
|
1444
1645
|
}
|
1445
1646
|
],
|
1446
|
-
"internalType": "struct
|
1447
|
-
"name": "
|
1647
|
+
"internalType": "struct IRisk.RiskInfo",
|
1648
|
+
"name": "risk",
|
1448
1649
|
"type": "tuple"
|
1650
|
+
},
|
1651
|
+
{
|
1652
|
+
"internalType": "StateId",
|
1653
|
+
"name": "newState",
|
1654
|
+
"type": "uint8"
|
1449
1655
|
}
|
1450
1656
|
],
|
1451
|
-
"name": "
|
1657
|
+
"name": "updateRisk",
|
1452
1658
|
"outputs": [],
|
1453
1659
|
"stateMutability": "nonpayable",
|
1454
1660
|
"type": "function"
|
@@ -1456,17 +1662,17 @@
|
|
1456
1662
|
{
|
1457
1663
|
"inputs": [
|
1458
1664
|
{
|
1459
|
-
"internalType": "
|
1460
|
-
"name": "
|
1461
|
-
"type": "
|
1665
|
+
"internalType": "RiskId",
|
1666
|
+
"name": "riskId",
|
1667
|
+
"type": "bytes8"
|
1462
1668
|
},
|
1463
1669
|
{
|
1464
|
-
"internalType": "
|
1465
|
-
"name": "
|
1466
|
-
"type": "
|
1670
|
+
"internalType": "StateId",
|
1671
|
+
"name": "newState",
|
1672
|
+
"type": "uint8"
|
1467
1673
|
}
|
1468
1674
|
],
|
1469
|
-
"name": "
|
1675
|
+
"name": "updateRiskState",
|
1470
1676
|
"outputs": [],
|
1471
1677
|
"stateMutability": "nonpayable",
|
1472
1678
|
"type": "function"
|