@etherisc/gif-next 0.0.2-f02157b-803 → 0.0.2-f080b71-868
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +75 -14
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +842 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +948 -229
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +864 -49
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +849 -247
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +637 -224
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +468 -246
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +389 -156
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +445 -2985
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +606 -175
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +252 -210
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +540 -179
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +322 -73
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2677 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +639 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +860 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +641 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1276 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +849 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +641 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1539 -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/{base/ServiceBase.sol/ServiceBase.json → service/IApplicationService.sol/IApplicationService.json} +191 -184
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +680 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +217 -208
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +585 -160
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +648 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +437 -154
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IPricingService.sol/IPricingService.json} +270 -173
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +90 -391
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1166 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +697 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1269 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +988 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +689 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +872 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +373 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -229
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +333 -188
- 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 +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +227 -330
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -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 +1 -1
- 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 +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
- 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 +21 -34
- 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/{components/BaseComponent.sol/BaseComponent.json → shared/IService.sol/IService.json} +98 -77
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
- 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 +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
- 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/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/Service.sol/Service.json} +185 -170
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +210 -214
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/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 +8 -190
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +161 -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/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 +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- 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 +1 -1
- 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 +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -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 +25 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -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 +253 -0
- package/contracts/components/Distribution.sol +200 -86
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -16
- package/contracts/components/IPoolComponent.sol +88 -37
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +225 -181
- package/contracts/components/Product.sol +136 -137
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +127 -0
- package/contracts/instance/Cloneable.sol +51 -0
- package/contracts/instance/IInstance.sol +45 -13
- package/contracts/instance/IInstanceService.sol +74 -7
- package/contracts/instance/Instance.sol +152 -361
- package/contracts/instance/InstanceAccessManager.sol +428 -176
- package/contracts/instance/InstanceAuthorizationsLib.sol +299 -0
- package/contracts/instance/InstanceReader.sol +49 -30
- package/contracts/instance/InstanceService.sol +274 -56
- package/contracts/instance/InstanceServiceManager.sol +11 -13
- package/contracts/instance/InstanceStore.sol +219 -0
- package/contracts/instance/ObjectManager.sol +82 -0
- package/contracts/instance/base/ComponentService.sol +147 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +8 -4
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +9 -19
- package/contracts/instance/service/ApplicationService.sol +183 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +431 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +145 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +346 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +64 -0
- package/contracts/instance/service/IBundleService.sol +94 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +74 -1
- package/contracts/instance/service/IPolicyService.sol +74 -0
- package/contracts/instance/service/IPoolService.sol +80 -18
- package/contracts/instance/service/IPricingService.sol +36 -0
- package/contracts/instance/service/IProductService.sol +7 -74
- package/contracts/instance/service/PolicyService.sol +376 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +303 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +210 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +52 -8
- package/contracts/registry/IRegistryService.sol +53 -20
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +270 -226
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +118 -271
- package/contracts/registry/RegistryServiceManager.sol +24 -26
- package/contracts/registry/ReleaseManager.sol +324 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ERC165.sol +14 -8
- package/contracts/shared/INftOwnable.sol +11 -10
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +67 -83
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -31
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +72 -0
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +6 -7
- package/contracts/types/Amount.sol +60 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +13 -5
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/ObjectType.sol +14 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +26 -11
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +5 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +5 -1
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
- 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/experiment/types/TypeB.sol/TypeBLib.json +0 -10
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1119
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -86
- package/contracts/components/IBaseComponent.sol +0 -24
- package/contracts/experiment/cloning/Cloner.sol +0 -47
- 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/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/AccessManagedSimple.sol +0 -114
- package/contracts/instance/AccessManagerSimple.sol +0 -682
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -49
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/ServiceBase.sol +0 -44
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
@@ -7,16 +7,49 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
11
22
|
"type": "address"
|
12
23
|
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
13
46
|
{
|
14
47
|
"internalType": "NftId",
|
15
48
|
"name": "nftId",
|
16
49
|
"type": "uint96"
|
17
50
|
}
|
18
51
|
],
|
19
|
-
"name": "
|
52
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
20
53
|
"type": "error"
|
21
54
|
},
|
22
55
|
{
|
@@ -27,7 +60,12 @@
|
|
27
60
|
"type": "address"
|
28
61
|
}
|
29
62
|
],
|
30
|
-
"name": "
|
63
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
64
|
+
"type": "error"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"inputs": [],
|
68
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
31
69
|
"type": "error"
|
32
70
|
},
|
33
71
|
{
|
@@ -38,7 +76,7 @@
|
|
38
76
|
"type": "address"
|
39
77
|
}
|
40
78
|
],
|
41
|
-
"name": "
|
79
|
+
"name": "ErrorNftOwnableNotOwner",
|
42
80
|
"type": "error"
|
43
81
|
},
|
44
82
|
{
|
@@ -53,50 +91,164 @@
|
|
53
91
|
"type": "error"
|
54
92
|
},
|
55
93
|
{
|
56
|
-
"inputs": [
|
57
|
-
|
94
|
+
"inputs": [
|
95
|
+
{
|
96
|
+
"internalType": "NftId",
|
97
|
+
"name": "poolNftId",
|
98
|
+
"type": "uint96"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"name": "ErrorPoolServiceBundleOwnerRoleAlreadySet",
|
58
102
|
"type": "error"
|
59
103
|
},
|
60
104
|
{
|
61
105
|
"inputs": [
|
62
106
|
{
|
107
|
+
"internalType": "NftId",
|
108
|
+
"name": "bundlePoolNftId",
|
109
|
+
"type": "uint96"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"internalType": "NftId",
|
113
|
+
"name": "productPoolNftId",
|
114
|
+
"type": "uint96"
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"name": "ErrorPoolServiceBundlePoolMismatch",
|
118
|
+
"type": "error"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"anonymous": false,
|
122
|
+
"inputs": [
|
123
|
+
{
|
124
|
+
"indexed": false,
|
63
125
|
"internalType": "address",
|
64
|
-
"name": "
|
126
|
+
"name": "authority",
|
65
127
|
"type": "address"
|
66
128
|
}
|
67
129
|
],
|
68
|
-
"name": "
|
69
|
-
"type": "
|
130
|
+
"name": "AuthorityUpdated",
|
131
|
+
"type": "event"
|
70
132
|
},
|
71
133
|
{
|
72
|
-
"
|
73
|
-
"
|
74
|
-
|
134
|
+
"anonymous": false,
|
135
|
+
"inputs": [
|
136
|
+
{
|
137
|
+
"indexed": false,
|
138
|
+
"internalType": "NftId",
|
139
|
+
"name": "instanceNftId",
|
140
|
+
"type": "uint96"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"indexed": false,
|
144
|
+
"internalType": "NftId",
|
145
|
+
"name": "poolNftId",
|
146
|
+
"type": "uint96"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"indexed": false,
|
150
|
+
"internalType": "NftId",
|
151
|
+
"name": "bundleNftId",
|
152
|
+
"type": "uint96"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"name": "LogPoolServiceBundleClosed",
|
156
|
+
"type": "event"
|
75
157
|
},
|
76
158
|
{
|
77
159
|
"anonymous": false,
|
78
160
|
"inputs": [
|
79
161
|
{
|
80
162
|
"indexed": false,
|
81
|
-
"internalType": "
|
82
|
-
"name": "
|
83
|
-
"type": "
|
163
|
+
"internalType": "NftId",
|
164
|
+
"name": "instanceNftId",
|
165
|
+
"type": "uint96"
|
84
166
|
},
|
85
167
|
{
|
86
168
|
"indexed": false,
|
87
|
-
"internalType": "
|
88
|
-
"name": "
|
89
|
-
"type": "
|
169
|
+
"internalType": "NftId",
|
170
|
+
"name": "poolNftId",
|
171
|
+
"type": "uint96"
|
90
172
|
},
|
91
173
|
{
|
92
174
|
"indexed": false,
|
175
|
+
"internalType": "NftId",
|
176
|
+
"name": "bundleNftId",
|
177
|
+
"type": "uint96"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"name": "LogPoolServiceBundleCreated",
|
181
|
+
"type": "event"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"anonymous": false,
|
185
|
+
"inputs": [
|
186
|
+
{
|
187
|
+
"indexed": false,
|
188
|
+
"internalType": "NftId",
|
189
|
+
"name": "poolNftId",
|
190
|
+
"type": "uint96"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"indexed": false,
|
194
|
+
"internalType": "RoleId",
|
195
|
+
"name": "bundleOwnerRole",
|
196
|
+
"type": "uint64"
|
197
|
+
}
|
198
|
+
],
|
199
|
+
"name": "LogPoolServiceBundleOwnerRoleSet",
|
200
|
+
"type": "event"
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"anonymous": false,
|
204
|
+
"inputs": [
|
205
|
+
{
|
206
|
+
"indexed": false,
|
207
|
+
"internalType": "NftId",
|
208
|
+
"name": "poolNftId",
|
209
|
+
"type": "uint96"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"indexed": false,
|
213
|
+
"internalType": "uint256",
|
214
|
+
"name": "previousMaxCapitalAmount",
|
215
|
+
"type": "uint256"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"indexed": false,
|
219
|
+
"internalType": "uint256",
|
220
|
+
"name": "currentMaxCapitalAmount",
|
221
|
+
"type": "uint256"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"name": "LogPoolServiceMaxCapitalAmountUpdated",
|
225
|
+
"type": "event"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"inputs": [],
|
229
|
+
"name": "authority",
|
230
|
+
"outputs": [
|
231
|
+
{
|
93
232
|
"internalType": "address",
|
94
|
-
"name": "
|
233
|
+
"name": "",
|
95
234
|
"type": "address"
|
96
235
|
}
|
97
236
|
],
|
98
|
-
"
|
99
|
-
"type": "
|
237
|
+
"stateMutability": "view",
|
238
|
+
"type": "function"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"inputs": [
|
242
|
+
{
|
243
|
+
"internalType": "NftId",
|
244
|
+
"name": "bundleNftId",
|
245
|
+
"type": "uint96"
|
246
|
+
}
|
247
|
+
],
|
248
|
+
"name": "closeBundle",
|
249
|
+
"outputs": [],
|
250
|
+
"stateMutability": "nonpayable",
|
251
|
+
"type": "function"
|
100
252
|
},
|
101
253
|
{
|
102
254
|
"inputs": [
|
@@ -123,14 +275,14 @@
|
|
123
275
|
"type": "tuple"
|
124
276
|
},
|
125
277
|
{
|
126
|
-
"internalType": "
|
127
|
-
"name": "
|
128
|
-
"type": "
|
278
|
+
"internalType": "Amount",
|
279
|
+
"name": "stakingAmount",
|
280
|
+
"type": "uint96"
|
129
281
|
},
|
130
282
|
{
|
131
|
-
"internalType": "
|
283
|
+
"internalType": "Seconds",
|
132
284
|
"name": "lifetime",
|
133
|
-
"type": "
|
285
|
+
"type": "uint40"
|
134
286
|
},
|
135
287
|
{
|
136
288
|
"internalType": "bytes",
|
@@ -149,6 +301,19 @@
|
|
149
301
|
"stateMutability": "nonpayable",
|
150
302
|
"type": "function"
|
151
303
|
},
|
304
|
+
{
|
305
|
+
"inputs": [],
|
306
|
+
"name": "getDomain",
|
307
|
+
"outputs": [
|
308
|
+
{
|
309
|
+
"internalType": "ObjectType",
|
310
|
+
"name": "serviceDomain",
|
311
|
+
"type": "uint8"
|
312
|
+
}
|
313
|
+
],
|
314
|
+
"stateMutability": "pure",
|
315
|
+
"type": "function"
|
316
|
+
},
|
152
317
|
{
|
153
318
|
"inputs": [],
|
154
319
|
"name": "getInitialInfo",
|
@@ -194,11 +359,6 @@
|
|
194
359
|
"internalType": "struct IRegistry.ObjectInfo",
|
195
360
|
"name": "",
|
196
361
|
"type": "tuple"
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"internalType": "bytes",
|
200
|
-
"name": "data",
|
201
|
-
"type": "bytes"
|
202
362
|
}
|
203
363
|
],
|
204
364
|
"stateMutability": "view",
|
@@ -206,25 +366,12 @@
|
|
206
366
|
},
|
207
367
|
{
|
208
368
|
"inputs": [],
|
209
|
-
"name": "
|
369
|
+
"name": "getNftId",
|
210
370
|
"outputs": [
|
211
371
|
{
|
212
|
-
"internalType": "
|
372
|
+
"internalType": "NftId",
|
213
373
|
"name": "",
|
214
|
-
"type": "
|
215
|
-
}
|
216
|
-
],
|
217
|
-
"stateMutability": "view",
|
218
|
-
"type": "function"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"inputs": [],
|
222
|
-
"name": "getMajorVersion",
|
223
|
-
"outputs": [
|
224
|
-
{
|
225
|
-
"internalType": "VersionPart",
|
226
|
-
"name": "majorVersion",
|
227
|
-
"type": "uint8"
|
374
|
+
"type": "uint96"
|
228
375
|
}
|
229
376
|
],
|
230
377
|
"stateMutability": "view",
|
@@ -232,25 +379,12 @@
|
|
232
379
|
},
|
233
380
|
{
|
234
381
|
"inputs": [],
|
235
|
-
"name": "
|
236
|
-
"outputs": [
|
237
|
-
{
|
238
|
-
"internalType": "string",
|
239
|
-
"name": "name",
|
240
|
-
"type": "string"
|
241
|
-
}
|
242
|
-
],
|
243
|
-
"stateMutability": "pure",
|
244
|
-
"type": "function"
|
245
|
-
},
|
246
|
-
{
|
247
|
-
"inputs": [],
|
248
|
-
"name": "getNftId",
|
382
|
+
"name": "getOwner",
|
249
383
|
"outputs": [
|
250
384
|
{
|
251
|
-
"internalType": "
|
385
|
+
"internalType": "address",
|
252
386
|
"name": "",
|
253
|
-
"type": "
|
387
|
+
"type": "address"
|
254
388
|
}
|
255
389
|
],
|
256
390
|
"stateMutability": "view",
|
@@ -258,10 +392,10 @@
|
|
258
392
|
},
|
259
393
|
{
|
260
394
|
"inputs": [],
|
261
|
-
"name": "
|
395
|
+
"name": "getRegistry",
|
262
396
|
"outputs": [
|
263
397
|
{
|
264
|
-
"internalType": "
|
398
|
+
"internalType": "contract IRegistry",
|
265
399
|
"name": "",
|
266
400
|
"type": "address"
|
267
401
|
}
|
@@ -271,10 +405,10 @@
|
|
271
405
|
},
|
272
406
|
{
|
273
407
|
"inputs": [],
|
274
|
-
"name": "
|
408
|
+
"name": "getRegistryAddress",
|
275
409
|
"outputs": [
|
276
410
|
{
|
277
|
-
"internalType": "
|
411
|
+
"internalType": "address",
|
278
412
|
"name": "",
|
279
413
|
"type": "address"
|
280
414
|
}
|
@@ -298,61 +432,124 @@
|
|
298
432
|
{
|
299
433
|
"inputs": [
|
300
434
|
{
|
301
|
-
"internalType": "
|
302
|
-
"name": "
|
303
|
-
"type": "
|
304
|
-
}
|
305
|
-
],
|
306
|
-
"name": "getVersion",
|
307
|
-
"outputs": [
|
435
|
+
"internalType": "address",
|
436
|
+
"name": "activatedBy",
|
437
|
+
"type": "address"
|
438
|
+
},
|
308
439
|
{
|
309
|
-
"internalType": "
|
310
|
-
"name": "
|
311
|
-
"type": "
|
440
|
+
"internalType": "bytes",
|
441
|
+
"name": "activationData",
|
442
|
+
"type": "bytes"
|
312
443
|
}
|
313
444
|
],
|
314
|
-
"
|
445
|
+
"name": "initializeVersionable",
|
446
|
+
"outputs": [],
|
447
|
+
"stateMutability": "nonpayable",
|
315
448
|
"type": "function"
|
316
449
|
},
|
317
450
|
{
|
318
451
|
"inputs": [],
|
319
|
-
"name": "
|
452
|
+
"name": "isConsumingScheduledOp",
|
320
453
|
"outputs": [
|
321
454
|
{
|
322
|
-
"internalType": "
|
323
|
-
"name": "
|
324
|
-
"type": "
|
455
|
+
"internalType": "bytes4",
|
456
|
+
"name": "",
|
457
|
+
"type": "bytes4"
|
325
458
|
}
|
326
459
|
],
|
327
460
|
"stateMutability": "view",
|
328
461
|
"type": "function"
|
329
462
|
},
|
463
|
+
{
|
464
|
+
"inputs": [],
|
465
|
+
"name": "linkToRegisteredNftId",
|
466
|
+
"outputs": [],
|
467
|
+
"stateMutability": "nonpayable",
|
468
|
+
"type": "function"
|
469
|
+
},
|
330
470
|
{
|
331
471
|
"inputs": [
|
332
472
|
{
|
333
|
-
"internalType": "
|
334
|
-
"name": "
|
335
|
-
"type": "
|
336
|
-
}
|
337
|
-
|
338
|
-
|
339
|
-
|
473
|
+
"internalType": "contract IInstance",
|
474
|
+
"name": "instance",
|
475
|
+
"type": "address"
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"internalType": "NftId",
|
479
|
+
"name": "productNftId",
|
480
|
+
"type": "uint96"
|
481
|
+
},
|
482
|
+
{
|
483
|
+
"internalType": "NftId",
|
484
|
+
"name": "applicationNftId",
|
485
|
+
"type": "uint96"
|
486
|
+
},
|
340
487
|
{
|
341
488
|
"components": [
|
342
489
|
{
|
343
|
-
"internalType": "
|
344
|
-
"name": "
|
345
|
-
"type": "
|
490
|
+
"internalType": "NftId",
|
491
|
+
"name": "productNftId",
|
492
|
+
"type": "uint96"
|
346
493
|
},
|
347
494
|
{
|
348
|
-
"internalType": "
|
349
|
-
"name": "
|
350
|
-
"type": "
|
495
|
+
"internalType": "NftId",
|
496
|
+
"name": "bundleNftId",
|
497
|
+
"type": "uint96"
|
351
498
|
},
|
352
499
|
{
|
353
|
-
"internalType": "
|
354
|
-
"name": "
|
355
|
-
"type": "
|
500
|
+
"internalType": "ReferralId",
|
501
|
+
"name": "referralId",
|
502
|
+
"type": "bytes8"
|
503
|
+
},
|
504
|
+
{
|
505
|
+
"internalType": "RiskId",
|
506
|
+
"name": "riskId",
|
507
|
+
"type": "bytes8"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"internalType": "uint256",
|
511
|
+
"name": "sumInsuredAmount",
|
512
|
+
"type": "uint256"
|
513
|
+
},
|
514
|
+
{
|
515
|
+
"internalType": "uint256",
|
516
|
+
"name": "premiumAmount",
|
517
|
+
"type": "uint256"
|
518
|
+
},
|
519
|
+
{
|
520
|
+
"internalType": "uint256",
|
521
|
+
"name": "premiumPaidAmount",
|
522
|
+
"type": "uint256"
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"internalType": "Seconds",
|
526
|
+
"name": "lifetime",
|
527
|
+
"type": "uint40"
|
528
|
+
},
|
529
|
+
{
|
530
|
+
"internalType": "bytes",
|
531
|
+
"name": "applicationData",
|
532
|
+
"type": "bytes"
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"internalType": "bytes",
|
536
|
+
"name": "policyData",
|
537
|
+
"type": "bytes"
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"internalType": "uint16",
|
541
|
+
"name": "claimsCount",
|
542
|
+
"type": "uint16"
|
543
|
+
},
|
544
|
+
{
|
545
|
+
"internalType": "uint16",
|
546
|
+
"name": "openClaimsCount",
|
547
|
+
"type": "uint16"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"internalType": "uint256",
|
551
|
+
"name": "payoutAmount",
|
552
|
+
"type": "uint256"
|
356
553
|
},
|
357
554
|
{
|
358
555
|
"internalType": "Timestamp",
|
@@ -360,38 +557,27 @@
|
|
360
557
|
"type": "uint40"
|
361
558
|
},
|
362
559
|
{
|
363
|
-
"internalType": "
|
364
|
-
"name": "
|
365
|
-
"type": "
|
560
|
+
"internalType": "Timestamp",
|
561
|
+
"name": "expiredAt",
|
562
|
+
"type": "uint40"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"internalType": "Timestamp",
|
566
|
+
"name": "closedAt",
|
567
|
+
"type": "uint40"
|
366
568
|
}
|
367
569
|
],
|
368
|
-
"internalType": "struct
|
369
|
-
"name": "
|
570
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
571
|
+
"name": "applicationInfo",
|
370
572
|
"type": "tuple"
|
371
|
-
}
|
372
|
-
],
|
373
|
-
"stateMutability": "view",
|
374
|
-
"type": "function"
|
375
|
-
},
|
376
|
-
{
|
377
|
-
"inputs": [
|
378
|
-
{
|
379
|
-
"internalType": "address",
|
380
|
-
"name": "implementation",
|
381
|
-
"type": "address"
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"internalType": "address",
|
385
|
-
"name": "activatedBy",
|
386
|
-
"type": "address"
|
387
573
|
},
|
388
574
|
{
|
389
|
-
"internalType": "
|
390
|
-
"name": "
|
391
|
-
"type": "
|
575
|
+
"internalType": "uint256",
|
576
|
+
"name": "premiumAmount",
|
577
|
+
"type": "uint256"
|
392
578
|
}
|
393
579
|
],
|
394
|
-
"name": "
|
580
|
+
"name": "lockCollateral",
|
395
581
|
"outputs": [],
|
396
582
|
"stateMutability": "nonpayable",
|
397
583
|
"type": "function"
|
@@ -399,55 +585,149 @@
|
|
399
585
|
{
|
400
586
|
"inputs": [
|
401
587
|
{
|
402
|
-
"internalType": "
|
403
|
-
"name": "
|
404
|
-
"type": "
|
588
|
+
"internalType": "address",
|
589
|
+
"name": "poolAddress",
|
590
|
+
"type": "address"
|
405
591
|
}
|
406
592
|
],
|
407
|
-
"name": "
|
593
|
+
"name": "register",
|
408
594
|
"outputs": [
|
409
595
|
{
|
410
|
-
"internalType": "
|
596
|
+
"internalType": "NftId",
|
411
597
|
"name": "",
|
412
|
-
"type": "
|
598
|
+
"type": "uint96"
|
413
599
|
}
|
414
600
|
],
|
415
|
-
"stateMutability": "view",
|
416
|
-
"type": "function"
|
417
|
-
},
|
418
|
-
{
|
419
|
-
"inputs": [],
|
420
|
-
"name": "linkToRegisteredNftId",
|
421
|
-
"outputs": [],
|
422
601
|
"stateMutability": "nonpayable",
|
423
602
|
"type": "function"
|
424
603
|
},
|
425
604
|
{
|
426
605
|
"inputs": [
|
606
|
+
{
|
607
|
+
"internalType": "contract IInstance",
|
608
|
+
"name": "instance",
|
609
|
+
"type": "address"
|
610
|
+
},
|
427
611
|
{
|
428
612
|
"internalType": "NftId",
|
429
|
-
"name": "
|
613
|
+
"name": "policyNftId",
|
430
614
|
"type": "uint96"
|
431
615
|
},
|
432
616
|
{
|
433
617
|
"components": [
|
434
618
|
{
|
435
|
-
"internalType": "
|
436
|
-
"name": "
|
619
|
+
"internalType": "NftId",
|
620
|
+
"name": "productNftId",
|
621
|
+
"type": "uint96"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"internalType": "NftId",
|
625
|
+
"name": "bundleNftId",
|
626
|
+
"type": "uint96"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType": "ReferralId",
|
630
|
+
"name": "referralId",
|
631
|
+
"type": "bytes8"
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"internalType": "RiskId",
|
635
|
+
"name": "riskId",
|
636
|
+
"type": "bytes8"
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"internalType": "uint256",
|
640
|
+
"name": "sumInsuredAmount",
|
437
641
|
"type": "uint256"
|
438
642
|
},
|
439
643
|
{
|
440
644
|
"internalType": "uint256",
|
441
|
-
"name": "
|
645
|
+
"name": "premiumAmount",
|
442
646
|
"type": "uint256"
|
647
|
+
},
|
648
|
+
{
|
649
|
+
"internalType": "uint256",
|
650
|
+
"name": "premiumPaidAmount",
|
651
|
+
"type": "uint256"
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"internalType": "Seconds",
|
655
|
+
"name": "lifetime",
|
656
|
+
"type": "uint40"
|
657
|
+
},
|
658
|
+
{
|
659
|
+
"internalType": "bytes",
|
660
|
+
"name": "applicationData",
|
661
|
+
"type": "bytes"
|
662
|
+
},
|
663
|
+
{
|
664
|
+
"internalType": "bytes",
|
665
|
+
"name": "policyData",
|
666
|
+
"type": "bytes"
|
667
|
+
},
|
668
|
+
{
|
669
|
+
"internalType": "uint16",
|
670
|
+
"name": "claimsCount",
|
671
|
+
"type": "uint16"
|
672
|
+
},
|
673
|
+
{
|
674
|
+
"internalType": "uint16",
|
675
|
+
"name": "openClaimsCount",
|
676
|
+
"type": "uint16"
|
677
|
+
},
|
678
|
+
{
|
679
|
+
"internalType": "uint256",
|
680
|
+
"name": "payoutAmount",
|
681
|
+
"type": "uint256"
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"internalType": "Timestamp",
|
685
|
+
"name": "activatedAt",
|
686
|
+
"type": "uint40"
|
687
|
+
},
|
688
|
+
{
|
689
|
+
"internalType": "Timestamp",
|
690
|
+
"name": "expiredAt",
|
691
|
+
"type": "uint40"
|
692
|
+
},
|
693
|
+
{
|
694
|
+
"internalType": "Timestamp",
|
695
|
+
"name": "closedAt",
|
696
|
+
"type": "uint40"
|
443
697
|
}
|
444
698
|
],
|
445
|
-
"internalType": "struct
|
446
|
-
"name": "
|
699
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
700
|
+
"name": "policyInfo",
|
447
701
|
"type": "tuple"
|
448
702
|
}
|
449
703
|
],
|
450
|
-
"name": "
|
704
|
+
"name": "releaseCollateral",
|
705
|
+
"outputs": [],
|
706
|
+
"stateMutability": "nonpayable",
|
707
|
+
"type": "function"
|
708
|
+
},
|
709
|
+
{
|
710
|
+
"inputs": [
|
711
|
+
{
|
712
|
+
"internalType": "address",
|
713
|
+
"name": "",
|
714
|
+
"type": "address"
|
715
|
+
}
|
716
|
+
],
|
717
|
+
"name": "setAuthority",
|
718
|
+
"outputs": [],
|
719
|
+
"stateMutability": "nonpayable",
|
720
|
+
"type": "function"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"inputs": [
|
724
|
+
{
|
725
|
+
"internalType": "RoleId",
|
726
|
+
"name": "bundleOwnerRole",
|
727
|
+
"type": "uint64"
|
728
|
+
}
|
729
|
+
],
|
730
|
+
"name": "setBundleOwnerRole",
|
451
731
|
"outputs": [],
|
452
732
|
"stateMutability": "nonpayable",
|
453
733
|
"type": "function"
|
@@ -511,6 +791,19 @@
|
|
511
791
|
"stateMutability": "nonpayable",
|
512
792
|
"type": "function"
|
513
793
|
},
|
794
|
+
{
|
795
|
+
"inputs": [
|
796
|
+
{
|
797
|
+
"internalType": "uint256",
|
798
|
+
"name": "maxCapitalAmount",
|
799
|
+
"type": "uint256"
|
800
|
+
}
|
801
|
+
],
|
802
|
+
"name": "setMaxCapitalAmount",
|
803
|
+
"outputs": [],
|
804
|
+
"stateMutability": "nonpayable",
|
805
|
+
"type": "function"
|
806
|
+
},
|
514
807
|
{
|
515
808
|
"inputs": [
|
516
809
|
{
|
@@ -532,23 +825,13 @@
|
|
532
825
|
},
|
533
826
|
{
|
534
827
|
"inputs": [
|
535
|
-
{
|
536
|
-
"internalType": "address",
|
537
|
-
"name": "implementation",
|
538
|
-
"type": "address"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"internalType": "address",
|
542
|
-
"name": "activatedBy",
|
543
|
-
"type": "address"
|
544
|
-
},
|
545
828
|
{
|
546
829
|
"internalType": "bytes",
|
547
830
|
"name": "upgradeData",
|
548
831
|
"type": "bytes"
|
549
832
|
}
|
550
833
|
],
|
551
|
-
"name": "
|
834
|
+
"name": "upgradeVersionable",
|
552
835
|
"outputs": [],
|
553
836
|
"stateMutability": "nonpayable",
|
554
837
|
"type": "function"
|