@etherisc/gif-next 0.0.2-f08d150-296 → 0.0.2-f29e479-370
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +314 -11
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +853 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +1346 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +284 -223
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +900 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +607 -76
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +587 -60
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1092 -157
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +1028 -87
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1713 -1095
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +509 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2449 -1257
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1046 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +552 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +55 -245
- 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/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +869 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +657 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1096 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1318 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +769 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +473 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +633 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +671 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +583 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +136 -165
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +139 -232
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1120 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +416 -160
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +401 -297
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +466 -34
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +890 -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 +470 -103
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1177 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -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 +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +38 -74
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +100 -33
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/IService.sol/IService.json} +121 -152
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +16 -125
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +256 -25
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/Service.sol/Service.json} +220 -159
- 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 +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +29 -115
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +272 -26
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +281 -139
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +38 -140
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
- 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/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
- 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 +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
- 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 +26 -3
- 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/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
- 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 +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
- 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 +15 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
- package/contracts/components/Component.sol +241 -0
- package/contracts/components/Distribution.sol +287 -0
- package/contracts/components/IComponent.sol +54 -0
- package/contracts/components/IDistributionComponent.sol +92 -0
- package/contracts/components/IPoolComponent.sol +65 -35
- package/contracts/components/IProductComponent.sol +29 -9
- package/contracts/components/Pool.sol +180 -100
- package/contracts/components/Product.sol +210 -42
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +85 -45
- package/contracts/instance/IInstanceService.sol +59 -0
- package/contracts/instance/Instance.sol +276 -53
- package/contracts/instance/InstanceAccessManager.sol +297 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +476 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/base/IKeyValueStore.sol +13 -13
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +53 -37
- package/contracts/instance/base/Lifecycle.sol +16 -11
- package/contracts/instance/module/IAccess.sol +47 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +40 -0
- package/contracts/instance/module/IPolicy.sol +47 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +48 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +298 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +375 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +83 -0
- package/contracts/instance/service/IPolicyService.sol +89 -0
- package/contracts/instance/service/IPoolService.sol +8 -18
- package/contracts/instance/service/IProductService.sol +21 -39
- package/contracts/instance/service/PolicyService.sol +476 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +78 -92
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +168 -289
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +79 -36
- package/contracts/registry/IRegistry.sol +66 -24
- package/contracts/registry/IRegistryService.sol +67 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +366 -283
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +283 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +322 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +14 -8
- package/contracts/shared/INftOwnable.sol +23 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +10 -19
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +18 -0
- package/contracts/shared/IVersionable.sol +38 -37
- package/contracts/shared/NftOwnable.sol +120 -0
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +169 -0
- package/contracts/shared/Registerable.sol +54 -66
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +58 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +38 -68
- package/contracts/test/TestFee.sol +2 -2
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestRoleId.sol +1 -1
- package/contracts/test/TestService.sol +7 -14
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +10 -5
- package/contracts/types/Key32.sol +8 -3
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +55 -14
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +62 -10
- package/contracts/types/StateId.sol +5 -1
- package/contracts/types/Timestamp.sol +7 -3
- package/contracts/types/UFixed.sol +128 -12
- package/contracts/types/Version.sol +13 -1
- package/package.json +6 -5
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +0 -326
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
- 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/ICompensation.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -88
- package/contracts/components/IBaseComponent.sol +0 -19
- package/contracts/experiment/errors/Require.sol +0 -38
- package/contracts/experiment/errors/Revert.sol +0 -44
- package/contracts/experiment/inheritance/A.sol +0 -53
- package/contracts/experiment/inheritance/B.sol +0 -28
- package/contracts/experiment/inheritance/C.sol +0 -34
- package/contracts/experiment/inheritance/IA.sol +0 -13
- package/contracts/experiment/inheritance/IB.sol +0 -10
- package/contracts/experiment/inheritance/IC.sol +0 -12
- package/contracts/experiment/statemachine/Dummy.sol +0 -27
- package/contracts/experiment/statemachine/ISM.sol +0 -25
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/experiment/statemachine/SM.sol +0 -57
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
- package/contracts/experiment/types/TypeA.sol +0 -47
- package/contracts/experiment/types/TypeB.sol +0 -29
- package/contracts/instance/IInstanceLinked.sol +0 -8
- package/contracts/instance/base/ComponentServiceBase.sol +0 -42
- package/contracts/instance/base/IInstanceBase.sol +0 -14
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/InstanceBase.sol +0 -80
- package/contracts/instance/base/ModuleBase.sol +0 -52
- package/contracts/instance/base/ServiceBase.sol +0 -37
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/bundle/BundleModule.sol +0 -136
- package/contracts/instance/module/bundle/IBundle.sol +0 -58
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/instance/module/component/ComponentModule.sol +0 -95
- package/contracts/instance/module/component/IComponent.sol +0 -53
- package/contracts/instance/module/policy/IPolicy.sol +0 -60
- package/contracts/instance/module/policy/PolicyModule.sol +0 -76
- package/contracts/instance/module/pool/IPoolModule.sol +0 -41
- package/contracts/instance/module/pool/PoolModule.sol +0 -87
- package/contracts/instance/module/risk/IRisk.sol +0 -10
- package/contracts/instance/module/risk/RiskModule.sol +0 -8
- package/contracts/instance/module/treasury/ITreasury.sol +0 -103
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
- package/contracts/instance/service/ComponentOwnerService.sol +0 -170
- package/contracts/instance/service/IComponentOwnerService.sol +0 -22
- package/contracts/registry/IChainNft.sol +0 -21
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
- package/contracts/test/TestPool.sol +0 -22
- package/contracts/test/TestProduct.sol +0 -44
@@ -3,14 +3,330 @@
|
|
3
3
|
"contractName": "IProductComponent",
|
4
4
|
"sourceName": "contracts/components/IProductComponent.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "caller",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorComponentNotChainNft",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "NftId",
|
21
|
+
"name": "instanceNftId",
|
22
|
+
"type": "uint96"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"internalType": "address",
|
26
|
+
"name": "instance",
|
27
|
+
"type": "address"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "ErrorComponentNotInstance",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "ErrorComponentNotProductService",
|
42
|
+
"type": "error"
|
43
|
+
},
|
6
44
|
{
|
7
45
|
"inputs": [],
|
8
|
-
"name": "
|
46
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
47
|
+
"type": "error"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"inputs": [
|
51
|
+
{
|
52
|
+
"internalType": "address",
|
53
|
+
"name": "caller",
|
54
|
+
"type": "address"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "uint64",
|
58
|
+
"name": "requiredRoleIdNum",
|
59
|
+
"type": "uint64"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"name": "ErrorComponentUnauthorized",
|
63
|
+
"type": "error"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "address",
|
69
|
+
"name": "newWallet",
|
70
|
+
"type": "address"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [],
|
78
|
+
"name": "ErrorComponentWalletAddressZero",
|
79
|
+
"type": "error"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "address",
|
85
|
+
"name": "oldWallet",
|
86
|
+
"type": "address"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"internalType": "address",
|
90
|
+
"name": "newWallet",
|
91
|
+
"type": "address"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"internalType": "uint256",
|
95
|
+
"name": "allowance",
|
96
|
+
"type": "uint256"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"internalType": "uint256",
|
100
|
+
"name": "balance",
|
101
|
+
"type": "uint256"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
105
|
+
"type": "error"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"inputs": [
|
109
|
+
{
|
110
|
+
"internalType": "NftId",
|
111
|
+
"name": "nftId",
|
112
|
+
"type": "uint96"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
116
|
+
"type": "error"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"inputs": [
|
120
|
+
{
|
121
|
+
"internalType": "address",
|
122
|
+
"name": "contractAddress",
|
123
|
+
"type": "address"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
127
|
+
"type": "error"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [],
|
131
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
132
|
+
"type": "error"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"inputs": [
|
136
|
+
{
|
137
|
+
"internalType": "address",
|
138
|
+
"name": "account",
|
139
|
+
"type": "address"
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"name": "ErrorNftOwnableNotOwner",
|
143
|
+
"type": "error"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"inputs": [
|
147
|
+
{
|
148
|
+
"internalType": "address",
|
149
|
+
"name": "registryAddress",
|
150
|
+
"type": "address"
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"name": "ErrorNotRegistry",
|
154
|
+
"type": "error"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"anonymous": false,
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "newWallet",
|
163
|
+
"type": "address"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"name": "LogComponentWalletAddressChanged",
|
167
|
+
"type": "event"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"anonymous": false,
|
171
|
+
"inputs": [
|
172
|
+
{
|
173
|
+
"indexed": false,
|
174
|
+
"internalType": "address",
|
175
|
+
"name": "from",
|
176
|
+
"type": "address"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"indexed": false,
|
180
|
+
"internalType": "address",
|
181
|
+
"name": "to",
|
182
|
+
"type": "address"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"indexed": false,
|
186
|
+
"internalType": "uint256",
|
187
|
+
"name": "amount",
|
188
|
+
"type": "uint256"
|
189
|
+
}
|
190
|
+
],
|
191
|
+
"name": "LogComponentWalletTokensTransferred",
|
192
|
+
"type": "event"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"inputs": [
|
196
|
+
{
|
197
|
+
"internalType": "uint256",
|
198
|
+
"name": "sumInsuredAmount",
|
199
|
+
"type": "uint256"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"internalType": "RiskId",
|
203
|
+
"name": "riskId",
|
204
|
+
"type": "bytes8"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"internalType": "uint256",
|
208
|
+
"name": "lifetime",
|
209
|
+
"type": "uint256"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"internalType": "bytes",
|
213
|
+
"name": "applicationData",
|
214
|
+
"type": "bytes"
|
215
|
+
}
|
216
|
+
],
|
217
|
+
"name": "calculateNetPremium",
|
9
218
|
"outputs": [
|
219
|
+
{
|
220
|
+
"internalType": "uint256",
|
221
|
+
"name": "netPremiumAmount",
|
222
|
+
"type": "uint256"
|
223
|
+
}
|
224
|
+
],
|
225
|
+
"stateMutability": "view",
|
226
|
+
"type": "function"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"inputs": [
|
230
|
+
{
|
231
|
+
"internalType": "uint256",
|
232
|
+
"name": "sumInsuredAmount",
|
233
|
+
"type": "uint256"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"internalType": "RiskId",
|
237
|
+
"name": "riskId",
|
238
|
+
"type": "bytes8"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"internalType": "uint256",
|
242
|
+
"name": "lifetime",
|
243
|
+
"type": "uint256"
|
244
|
+
},
|
10
245
|
{
|
11
246
|
"internalType": "bytes",
|
12
|
-
"name": "
|
247
|
+
"name": "applicationData",
|
13
248
|
"type": "bytes"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"internalType": "NftId",
|
252
|
+
"name": "bundleNftId",
|
253
|
+
"type": "uint96"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"internalType": "ReferralId",
|
257
|
+
"name": "referralId",
|
258
|
+
"type": "bytes8"
|
259
|
+
}
|
260
|
+
],
|
261
|
+
"name": "calculatePremium",
|
262
|
+
"outputs": [
|
263
|
+
{
|
264
|
+
"internalType": "uint256",
|
265
|
+
"name": "premiumAmount",
|
266
|
+
"type": "uint256"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
"stateMutability": "view",
|
270
|
+
"type": "function"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"inputs": [],
|
274
|
+
"name": "getDistributionNftId",
|
275
|
+
"outputs": [
|
276
|
+
{
|
277
|
+
"internalType": "NftId",
|
278
|
+
"name": "distributionNftId",
|
279
|
+
"type": "uint96"
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"stateMutability": "view",
|
283
|
+
"type": "function"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"inputs": [],
|
287
|
+
"name": "getInitialInfo",
|
288
|
+
"outputs": [
|
289
|
+
{
|
290
|
+
"components": [
|
291
|
+
{
|
292
|
+
"internalType": "NftId",
|
293
|
+
"name": "nftId",
|
294
|
+
"type": "uint96"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"internalType": "NftId",
|
298
|
+
"name": "parentNftId",
|
299
|
+
"type": "uint96"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"internalType": "ObjectType",
|
303
|
+
"name": "objectType",
|
304
|
+
"type": "uint8"
|
305
|
+
},
|
306
|
+
{
|
307
|
+
"internalType": "bool",
|
308
|
+
"name": "isInterceptor",
|
309
|
+
"type": "bool"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"internalType": "address",
|
313
|
+
"name": "objectAddress",
|
314
|
+
"type": "address"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"internalType": "address",
|
318
|
+
"name": "initialOwner",
|
319
|
+
"type": "address"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"internalType": "bytes",
|
323
|
+
"name": "data",
|
324
|
+
"type": "bytes"
|
325
|
+
}
|
326
|
+
],
|
327
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
328
|
+
"name": "",
|
329
|
+
"type": "tuple"
|
14
330
|
}
|
15
331
|
],
|
16
332
|
"stateMutability": "view",
|
@@ -31,12 +347,12 @@
|
|
31
347
|
},
|
32
348
|
{
|
33
349
|
"inputs": [],
|
34
|
-
"name": "
|
350
|
+
"name": "getInstanceService",
|
35
351
|
"outputs": [
|
36
352
|
{
|
37
|
-
"internalType": "
|
38
|
-
"name": "
|
39
|
-
"type": "
|
353
|
+
"internalType": "contract IInstanceService",
|
354
|
+
"name": "",
|
355
|
+
"type": "address"
|
40
356
|
}
|
41
357
|
],
|
42
358
|
"stateMutability": "view",
|
@@ -44,12 +360,12 @@
|
|
44
360
|
},
|
45
361
|
{
|
46
362
|
"inputs": [],
|
47
|
-
"name": "
|
363
|
+
"name": "getName",
|
48
364
|
"outputs": [
|
49
365
|
{
|
50
|
-
"internalType": "
|
51
|
-
"name": "
|
52
|
-
"type": "
|
366
|
+
"internalType": "string",
|
367
|
+
"name": "name",
|
368
|
+
"type": "string"
|
53
369
|
}
|
54
370
|
],
|
55
371
|
"stateMutability": "view",
|
@@ -57,11 +373,11 @@
|
|
57
373
|
},
|
58
374
|
{
|
59
375
|
"inputs": [],
|
60
|
-
"name": "
|
376
|
+
"name": "getNftId",
|
61
377
|
"outputs": [
|
62
378
|
{
|
63
379
|
"internalType": "NftId",
|
64
|
-
"name": "
|
380
|
+
"name": "",
|
65
381
|
"type": "uint96"
|
66
382
|
}
|
67
383
|
],
|
@@ -70,24 +386,12 @@
|
|
70
386
|
},
|
71
387
|
{
|
72
388
|
"inputs": [],
|
73
|
-
"name": "
|
389
|
+
"name": "getOwner",
|
74
390
|
"outputs": [
|
75
391
|
{
|
76
|
-
"
|
77
|
-
|
78
|
-
|
79
|
-
"name": "fractionalFee",
|
80
|
-
"type": "uint256"
|
81
|
-
},
|
82
|
-
{
|
83
|
-
"internalType": "uint256",
|
84
|
-
"name": "fixedFee",
|
85
|
-
"type": "uint256"
|
86
|
-
}
|
87
|
-
],
|
88
|
-
"internalType": "struct Fee",
|
89
|
-
"name": "policyFee",
|
90
|
-
"type": "tuple"
|
392
|
+
"internalType": "address",
|
393
|
+
"name": "",
|
394
|
+
"type": "address"
|
91
395
|
}
|
92
396
|
],
|
93
397
|
"stateMutability": "view",
|
@@ -108,24 +412,12 @@
|
|
108
412
|
},
|
109
413
|
{
|
110
414
|
"inputs": [],
|
111
|
-
"name": "
|
415
|
+
"name": "getProductNftId",
|
112
416
|
"outputs": [
|
113
417
|
{
|
114
|
-
"
|
115
|
-
|
116
|
-
|
117
|
-
"name": "fractionalFee",
|
118
|
-
"type": "uint256"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"internalType": "uint256",
|
122
|
-
"name": "fixedFee",
|
123
|
-
"type": "uint256"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"internalType": "struct Fee",
|
127
|
-
"name": "processingFee",
|
128
|
-
"type": "tuple"
|
418
|
+
"internalType": "NftId",
|
419
|
+
"name": "productNftId",
|
420
|
+
"type": "uint96"
|
129
421
|
}
|
130
422
|
],
|
131
423
|
"stateMutability": "view",
|
@@ -133,11 +425,11 @@
|
|
133
425
|
},
|
134
426
|
{
|
135
427
|
"inputs": [],
|
136
|
-
"name": "
|
428
|
+
"name": "getProductService",
|
137
429
|
"outputs": [
|
138
430
|
{
|
139
|
-
"internalType": "contract
|
140
|
-
"name": "
|
431
|
+
"internalType": "contract IProductService",
|
432
|
+
"name": "",
|
141
433
|
"type": "address"
|
142
434
|
}
|
143
435
|
],
|
@@ -146,11 +438,11 @@
|
|
146
438
|
},
|
147
439
|
{
|
148
440
|
"inputs": [],
|
149
|
-
"name": "
|
441
|
+
"name": "getRegistry",
|
150
442
|
"outputs": [
|
151
443
|
{
|
152
|
-
"internalType": "contract
|
153
|
-
"name": "
|
444
|
+
"internalType": "contract IRegistry",
|
445
|
+
"name": "",
|
154
446
|
"type": "address"
|
155
447
|
}
|
156
448
|
],
|
@@ -159,15 +451,194 @@
|
|
159
451
|
},
|
160
452
|
{
|
161
453
|
"inputs": [],
|
162
|
-
"name": "
|
454
|
+
"name": "getRegistryAddress",
|
163
455
|
"outputs": [
|
456
|
+
{
|
457
|
+
"internalType": "address",
|
458
|
+
"name": "",
|
459
|
+
"type": "address"
|
460
|
+
}
|
461
|
+
],
|
462
|
+
"stateMutability": "view",
|
463
|
+
"type": "function"
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"inputs": [
|
164
467
|
{
|
165
468
|
"internalType": "ObjectType",
|
166
|
-
"name": "
|
469
|
+
"name": "domain",
|
167
470
|
"type": "uint8"
|
168
471
|
}
|
169
472
|
],
|
170
|
-
"
|
473
|
+
"name": "getServiceAddress",
|
474
|
+
"outputs": [
|
475
|
+
{
|
476
|
+
"internalType": "address",
|
477
|
+
"name": "service",
|
478
|
+
"type": "address"
|
479
|
+
}
|
480
|
+
],
|
481
|
+
"stateMutability": "view",
|
482
|
+
"type": "function"
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"inputs": [],
|
486
|
+
"name": "getSetupInfo",
|
487
|
+
"outputs": [
|
488
|
+
{
|
489
|
+
"components": [
|
490
|
+
{
|
491
|
+
"internalType": "contract IERC20Metadata",
|
492
|
+
"name": "token",
|
493
|
+
"type": "address"
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"internalType": "contract TokenHandler",
|
497
|
+
"name": "tokenHandler",
|
498
|
+
"type": "address"
|
499
|
+
},
|
500
|
+
{
|
501
|
+
"internalType": "NftId",
|
502
|
+
"name": "distributionNftId",
|
503
|
+
"type": "uint96"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"internalType": "NftId",
|
507
|
+
"name": "poolNftId",
|
508
|
+
"type": "uint96"
|
509
|
+
},
|
510
|
+
{
|
511
|
+
"components": [
|
512
|
+
{
|
513
|
+
"internalType": "UFixed",
|
514
|
+
"name": "fractionalFee",
|
515
|
+
"type": "uint256"
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"internalType": "uint256",
|
519
|
+
"name": "fixedFee",
|
520
|
+
"type": "uint256"
|
521
|
+
}
|
522
|
+
],
|
523
|
+
"internalType": "struct Fee",
|
524
|
+
"name": "distributionFee",
|
525
|
+
"type": "tuple"
|
526
|
+
},
|
527
|
+
{
|
528
|
+
"components": [
|
529
|
+
{
|
530
|
+
"internalType": "UFixed",
|
531
|
+
"name": "fractionalFee",
|
532
|
+
"type": "uint256"
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"internalType": "uint256",
|
536
|
+
"name": "fixedFee",
|
537
|
+
"type": "uint256"
|
538
|
+
}
|
539
|
+
],
|
540
|
+
"internalType": "struct Fee",
|
541
|
+
"name": "productFee",
|
542
|
+
"type": "tuple"
|
543
|
+
},
|
544
|
+
{
|
545
|
+
"components": [
|
546
|
+
{
|
547
|
+
"internalType": "UFixed",
|
548
|
+
"name": "fractionalFee",
|
549
|
+
"type": "uint256"
|
550
|
+
},
|
551
|
+
{
|
552
|
+
"internalType": "uint256",
|
553
|
+
"name": "fixedFee",
|
554
|
+
"type": "uint256"
|
555
|
+
}
|
556
|
+
],
|
557
|
+
"internalType": "struct Fee",
|
558
|
+
"name": "processingFee",
|
559
|
+
"type": "tuple"
|
560
|
+
},
|
561
|
+
{
|
562
|
+
"components": [
|
563
|
+
{
|
564
|
+
"internalType": "UFixed",
|
565
|
+
"name": "fractionalFee",
|
566
|
+
"type": "uint256"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"internalType": "uint256",
|
570
|
+
"name": "fixedFee",
|
571
|
+
"type": "uint256"
|
572
|
+
}
|
573
|
+
],
|
574
|
+
"internalType": "struct Fee",
|
575
|
+
"name": "poolFee",
|
576
|
+
"type": "tuple"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"components": [
|
580
|
+
{
|
581
|
+
"internalType": "UFixed",
|
582
|
+
"name": "fractionalFee",
|
583
|
+
"type": "uint256"
|
584
|
+
},
|
585
|
+
{
|
586
|
+
"internalType": "uint256",
|
587
|
+
"name": "fixedFee",
|
588
|
+
"type": "uint256"
|
589
|
+
}
|
590
|
+
],
|
591
|
+
"internalType": "struct Fee",
|
592
|
+
"name": "stakingFee",
|
593
|
+
"type": "tuple"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"components": [
|
597
|
+
{
|
598
|
+
"internalType": "UFixed",
|
599
|
+
"name": "fractionalFee",
|
600
|
+
"type": "uint256"
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"internalType": "uint256",
|
604
|
+
"name": "fixedFee",
|
605
|
+
"type": "uint256"
|
606
|
+
}
|
607
|
+
],
|
608
|
+
"internalType": "struct Fee",
|
609
|
+
"name": "performanceFee",
|
610
|
+
"type": "tuple"
|
611
|
+
},
|
612
|
+
{
|
613
|
+
"internalType": "bool",
|
614
|
+
"name": "isIntercepting",
|
615
|
+
"type": "bool"
|
616
|
+
},
|
617
|
+
{
|
618
|
+
"internalType": "address",
|
619
|
+
"name": "wallet",
|
620
|
+
"type": "address"
|
621
|
+
}
|
622
|
+
],
|
623
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
624
|
+
"name": "setupInfo",
|
625
|
+
"type": "tuple"
|
626
|
+
}
|
627
|
+
],
|
628
|
+
"stateMutability": "view",
|
629
|
+
"type": "function"
|
630
|
+
},
|
631
|
+
{
|
632
|
+
"inputs": [],
|
633
|
+
"name": "getToken",
|
634
|
+
"outputs": [
|
635
|
+
{
|
636
|
+
"internalType": "contract IERC20Metadata",
|
637
|
+
"name": "token",
|
638
|
+
"type": "address"
|
639
|
+
}
|
640
|
+
],
|
641
|
+
"stateMutability": "view",
|
171
642
|
"type": "function"
|
172
643
|
},
|
173
644
|
{
|
@@ -185,21 +656,51 @@
|
|
185
656
|
},
|
186
657
|
{
|
187
658
|
"inputs": [],
|
188
|
-
"name": "
|
659
|
+
"name": "isNftInterceptor",
|
660
|
+
"outputs": [
|
661
|
+
{
|
662
|
+
"internalType": "bool",
|
663
|
+
"name": "isInterceptor",
|
664
|
+
"type": "bool"
|
665
|
+
}
|
666
|
+
],
|
667
|
+
"stateMutability": "view",
|
668
|
+
"type": "function"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"inputs": [],
|
672
|
+
"name": "linkToRegisteredNftId",
|
189
673
|
"outputs": [],
|
190
674
|
"stateMutability": "nonpayable",
|
191
675
|
"type": "function"
|
192
676
|
},
|
193
677
|
{
|
194
678
|
"inputs": [],
|
195
|
-
"name": "
|
196
|
-
"outputs": [
|
679
|
+
"name": "lock",
|
680
|
+
"outputs": [],
|
681
|
+
"stateMutability": "nonpayable",
|
682
|
+
"type": "function"
|
683
|
+
},
|
684
|
+
{
|
685
|
+
"inputs": [
|
197
686
|
{
|
198
|
-
"internalType": "
|
199
|
-
"name": "
|
200
|
-
"type": "
|
687
|
+
"internalType": "address",
|
688
|
+
"name": "from",
|
689
|
+
"type": "address"
|
690
|
+
},
|
691
|
+
{
|
692
|
+
"internalType": "address",
|
693
|
+
"name": "to",
|
694
|
+
"type": "address"
|
695
|
+
},
|
696
|
+
{
|
697
|
+
"internalType": "uint256",
|
698
|
+
"name": "tokenId",
|
699
|
+
"type": "uint256"
|
201
700
|
}
|
202
701
|
],
|
702
|
+
"name": "nftTransferFrom",
|
703
|
+
"outputs": [],
|
203
704
|
"stateMutability": "nonpayable",
|
204
705
|
"type": "function"
|
205
706
|
},
|
@@ -219,7 +720,7 @@
|
|
219
720
|
}
|
220
721
|
],
|
221
722
|
"internalType": "struct Fee",
|
222
|
-
"name": "
|
723
|
+
"name": "productFee",
|
223
724
|
"type": "tuple"
|
224
725
|
},
|
225
726
|
{
|
@@ -245,6 +746,32 @@
|
|
245
746
|
"stateMutability": "nonpayable",
|
246
747
|
"type": "function"
|
247
748
|
},
|
749
|
+
{
|
750
|
+
"inputs": [
|
751
|
+
{
|
752
|
+
"internalType": "NftId",
|
753
|
+
"name": "productNftId",
|
754
|
+
"type": "uint96"
|
755
|
+
}
|
756
|
+
],
|
757
|
+
"name": "setProductNftId",
|
758
|
+
"outputs": [],
|
759
|
+
"stateMutability": "nonpayable",
|
760
|
+
"type": "function"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"inputs": [
|
764
|
+
{
|
765
|
+
"internalType": "address",
|
766
|
+
"name": "walletAddress",
|
767
|
+
"type": "address"
|
768
|
+
}
|
769
|
+
],
|
770
|
+
"name": "setWallet",
|
771
|
+
"outputs": [],
|
772
|
+
"stateMutability": "nonpayable",
|
773
|
+
"type": "function"
|
774
|
+
},
|
248
775
|
{
|
249
776
|
"inputs": [
|
250
777
|
{
|