@etherisc/gif-next 0.0.2-e94f4c7-084 → 0.0.2-e964d24-516
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/{components → distribution}/Distribution.sol/Distribution.json +45 -14
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1556 -0
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/{components → distribution}/IDistributionComponent.sol/IDistributionComponent.json +45 -14
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → distribution}/IDistributionService.sol/IDistributionService.json +24 -274
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +6 -6
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +252 -2210
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +21 -38
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +352 -2691
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +71 -53
- 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 +233 -67
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +65 -226
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +39 -124
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2788 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
- 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 +6 -6
- 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 +1 -1
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
- 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/pool/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1288 -0
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +696 -0
- package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → pool}/IBundleService.sol/IBundleService.json +57 -31
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/{components → pool}/IPoolComponent.sol/IPoolComponent.json +56 -25
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → pool}/IPoolService.sol/IPoolService.json +153 -36
- package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
- package/artifacts/contracts/{components → pool}/Pool.sol/Pool.json +56 -25
- package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1622 -0
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +708 -0
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +918 -0
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1376 -0
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +493 -0
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → product}/IClaimService.sol/IClaimService.json +230 -89
- package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → product}/IPolicyService.sol/IPolicyService.json +36 -354
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IApplicationService.sol/IApplicationService.json → product/IPricingService.sol/IPricingService.json} +37 -154
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/{components → product}/IProductComponent.sol/IProductComponent.json +53 -22
- package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → product}/IProductService.sol/IProductService.json +6 -14
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1281 -0
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +740 -0
- package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/product/PricingService.sol/PricingService.json +1004 -0
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +688 -0
- package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
- package/artifacts/contracts/{components → product}/Product.sol/Product.json +53 -22
- package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/product/ProductService.sol/ProductService.json +864 -0
- package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +640 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +5 -13
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +6 -6
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +4 -4
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +21 -29
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +27 -40
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +9 -9
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +14 -27
- package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +3 -3
- package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/{components → shared}/Component.sol/Component.json +38 -7
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/{instance/base → shared}/ComponentService.sol/ComponentService.json +38 -14
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{components → shared}/IComponent.sol/IComponent.json +38 -7
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +0 -13
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +69 -9
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -13
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +0 -13
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +5 -13
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +8 -21
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +80 -26
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +20 -33
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +8 -21
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +5 -13
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
- 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/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
- package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +523 -0
- package/artifacts/contracts/staking/StakeingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/staking/StakeingServiceManager.sol/StakingServiceManager.json +628 -0
- package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
- package/artifacts/contracts/staking/StakingService.sol/StakingService.json +767 -0
- package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/AddressSet.sol/LibAddressSet.json +3 -3
- package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
- package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
- package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Blocknumber.sol/BlocknumberLib.json +3 -3
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/ClaimId.sol/ClaimIdLib.json +5 -5
- package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/DistributorType.sol/DistributorTypeLib.json +5 -5
- package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
- package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Key32.sol/Key32Lib.json +3 -3
- package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/NftId.sol/NftIdLib.json +5 -5
- package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/NftIdSet.sol/LibNftIdSet.json +3 -3
- package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/ObjectType.sol/ObjectTypeLib.json +3 -3
- package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/PayoutId.sol/PayoutIdLib.json +5 -5
- package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Referral.sol/ReferralLib.json +5 -5
- package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/RiskId.sol/RiskIdLib.json +5 -5
- package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/RoleId.sol/RoleIdLib.json +5 -5
- package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Seconds.sol/SecondsLib.json +3 -3
- package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/StateId.sol/StateIdLib.json +3 -3
- package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Timestamp.sol/TimestampLib.json +5 -5
- package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/UFixed.sol/MathLib.json +3 -3
- package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/UFixed.sol/UFixedLib.json +3 -3
- package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Version.sol/VersionLib.json +3 -3
- package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/{types → type}/Version.sol/VersionPartLib.json +3 -3
- package/contracts/{components → distribution}/Distribution.sol +15 -14
- package/contracts/{instance/service → distribution}/DistributionService.sol +80 -163
- package/contracts/{instance/service → distribution}/DistributionServiceManager.sol +5 -5
- package/contracts/{components → distribution}/IDistributionComponent.sol +7 -7
- package/contracts/{instance/service → distribution}/IDistributionService.sol +18 -30
- package/contracts/instance/BundleManager.sol +4 -4
- package/contracts/instance/IInstance.sol +37 -62
- package/contracts/instance/IInstanceService.sol +18 -13
- package/contracts/instance/Instance.sol +94 -175
- package/contracts/instance/InstanceAccessManager.sol +38 -24
- package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
- package/contracts/instance/InstanceReader.sol +68 -17
- package/contracts/instance/InstanceService.sol +96 -266
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/InstanceStore.sol +211 -0
- package/contracts/instance/ObjectManager.sol +4 -4
- package/contracts/instance/base/IKeyValueStore.sol +5 -5
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +6 -37
- package/contracts/instance/base/Lifecycle.sol +8 -5
- package/contracts/instance/module/IAccess.sol +2 -2
- package/contracts/instance/module/IBundle.sol +5 -5
- package/contracts/instance/module/IComponents.sol +8 -8
- package/contracts/instance/module/IDistribution.sol +7 -6
- package/contracts/instance/module/IPolicy.sol +12 -12
- package/contracts/instance/module/IRisk.sol +1 -1
- package/contracts/instance/module/ISetup.sol +4 -4
- package/contracts/instance/module/ITreasury.sol +2 -2
- package/contracts/{instance/service → pool}/BundleService.sol +84 -145
- package/contracts/{instance/service → pool}/BundleServiceManager.sol +5 -5
- package/contracts/{instance/service → pool}/IBundleService.sol +41 -25
- package/contracts/{components → pool}/IPoolComponent.sol +13 -12
- package/contracts/{instance/service → pool}/IPoolService.sol +26 -14
- package/contracts/{components → pool}/Pool.sol +18 -18
- package/contracts/{instance/service → pool}/PoolService.sol +125 -58
- package/contracts/{instance/service → pool}/PoolServiceManager.sol +5 -5
- package/contracts/product/ApplicationService.sol +186 -0
- package/contracts/{instance/service → product}/ApplicationServiceManager.sol +2 -2
- package/contracts/product/ClaimService.sol +437 -0
- package/contracts/{instance/service → product}/ClaimServiceManager.sol +2 -2
- package/contracts/{instance/service → product}/IApplicationService.sol +12 -28
- package/contracts/product/IClaimService.sol +90 -0
- package/contracts/product/IPolicyService.sol +80 -0
- package/contracts/product/IPricingService.sol +37 -0
- package/contracts/{components → product}/IProductComponent.sol +11 -10
- package/contracts/{instance/service → product}/IProductService.sol +10 -10
- package/contracts/product/PolicyService.sol +376 -0
- package/contracts/{instance/service → product}/PolicyServiceManager.sol +5 -5
- package/contracts/product/PricingService.sol +275 -0
- package/contracts/product/PricingServiceManager.sol +51 -0
- package/contracts/{components → product}/Product.sol +37 -33
- package/contracts/{instance/service → product}/ProductService.sol +46 -46
- package/contracts/{instance/service → product}/ProductServiceManager.sol +5 -5
- package/contracts/registry/IRegistry.sol +4 -4
- package/contracts/registry/IRegistryService.sol +4 -6
- package/contracts/registry/Registry.sol +3 -3
- package/contracts/registry/RegistryAccessManager.sol +1 -1
- package/contracts/registry/RegistryService.sol +23 -20
- package/contracts/registry/RegistryServiceManager.sol +0 -2
- package/contracts/registry/ReleaseManager.sol +5 -5
- package/contracts/registry/TokenRegistry.sol +2 -2
- package/contracts/{components → shared}/Component.sol +26 -8
- package/contracts/{instance/base → shared}/ComponentService.sol +63 -34
- package/contracts/{components → shared}/IComponent.sol +19 -5
- package/contracts/shared/INftOwnable.sol +1 -1
- package/contracts/shared/IPolicyHolder.sol +24 -10
- package/contracts/shared/IRegistryLinked.sol +0 -1
- package/contracts/shared/IService.sol +3 -1
- package/contracts/shared/IVersionable.sol +1 -1
- package/contracts/shared/NftOwnable.sol +1 -3
- package/contracts/shared/PolicyHolder.sol +31 -18
- package/contracts/shared/ProxyManager.sol +3 -3
- package/contracts/shared/Registerable.sol +12 -11
- package/contracts/shared/RegistryLinked.sol +0 -5
- package/contracts/shared/Service.sol +3 -3
- package/contracts/shared/TokenHandler.sol +4 -2
- package/contracts/shared/Versionable.sol +1 -1
- package/contracts/staking/IStakingService.sol +102 -0
- package/contracts/staking/StakeingServiceManager.sol +37 -0
- package/contracts/staking/StakingService.sol +166 -0
- package/contracts/{types → type}/Amount.sol +39 -0
- package/contracts/{types → type}/Fee.sol +7 -6
- package/contracts/{types → type}/NftIdSet.sol +1 -1
- package/contracts/{types → type}/ObjectType.sol +5 -1
- package/package.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +0 -1060
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +0 -681
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +0 -1289
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +0 -725
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +0 -1040
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +0 -685
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -1774
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -793
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +0 -1543
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -741
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -1449
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -709
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -840
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -653
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -383
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
- package/artifacts/contracts/test/TestService.sol/TestService.json +0 -596
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -104
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
- package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
- package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +0 -4
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +0 -209
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -288
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +0 -4
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
- package/contracts/instance/service/ApplicationService.sol +0 -355
- package/contracts/instance/service/ClaimService.sol +0 -239
- package/contracts/instance/service/IClaimService.sol +0 -92
- package/contracts/instance/service/IPolicyService.sol +0 -139
- package/contracts/instance/service/PolicyService.sol +0 -571
- package/contracts/shared/ContractDeployerLib.sol +0 -72
- package/contracts/test/TestFee.sol +0 -25
- package/contracts/test/TestRegisterable.sol +0 -18
- package/contracts/test/TestRoleId.sol +0 -14
- package/contracts/test/TestService.sol +0 -25
- package/contracts/test/TestToken.sol +0 -26
- package/contracts/test/TestVersion.sol +0 -44
- package/contracts/test/TestVersionable.sol +0 -17
- package/contracts/test/Usdc.sol +0 -26
- package/contracts/types/ChainId.sol +0 -38
- package/contracts/types/NumberId.sol +0 -52
- /package/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol +0 -0
- /package/contracts/{types → type}/AddressSet.sol +0 -0
- /package/contracts/{types → type}/Blocknumber.sol +0 -0
- /package/contracts/{types → type}/ClaimId.sol +0 -0
- /package/contracts/{types → type}/DistributorType.sol +0 -0
- /package/contracts/{types → type}/Key32.sol +0 -0
- /package/contracts/{types → type}/NftId.sol +0 -0
- /package/contracts/{types → type}/PayoutId.sol +0 -0
- /package/contracts/{types → type}/Referral.sol +0 -0
- /package/contracts/{types → type}/RiskId.sol +0 -0
- /package/contracts/{types → type}/RoleId.sol +0 -0
- /package/contracts/{types → type}/Seconds.sol +0 -0
- /package/contracts/{types → type}/StateId.sol +0 -0
- /package/contracts/{types → type}/Timestamp.sol +0 -0
- /package/contracts/{types → type}/UFixed.sol +0 -0
- /package/contracts/{types → type}/Version.sol +0 -0
package/artifacts/contracts/{instance/service → pool}/IBundleService.sol/IBundleService.json
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
3
|
"contractName": "IBundleService",
|
4
|
-
"sourceName": "contracts/
|
4
|
+
"sourceName": "contracts/pool/IBundleService.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
@@ -66,12 +66,17 @@
|
|
66
66
|
"inputs": [
|
67
67
|
{
|
68
68
|
"internalType": "NftId",
|
69
|
-
"name": "
|
69
|
+
"name": "bundleNftId",
|
70
|
+
"type": "uint96"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "expectedPool",
|
70
75
|
"type": "uint96"
|
71
76
|
},
|
72
77
|
{
|
73
78
|
"internalType": "NftId",
|
74
|
-
"name": "
|
79
|
+
"name": "actualPool",
|
75
80
|
"type": "uint96"
|
76
81
|
}
|
77
82
|
],
|
@@ -113,14 +118,14 @@
|
|
113
118
|
"type": "uint96"
|
114
119
|
},
|
115
120
|
{
|
116
|
-
"internalType": "
|
121
|
+
"internalType": "Amount",
|
117
122
|
"name": "capacityAmount",
|
118
|
-
"type": "
|
123
|
+
"type": "uint96"
|
119
124
|
},
|
120
125
|
{
|
121
|
-
"internalType": "
|
126
|
+
"internalType": "Amount",
|
122
127
|
"name": "collateralAmount",
|
123
|
-
"type": "
|
128
|
+
"type": "uint96"
|
124
129
|
}
|
125
130
|
],
|
126
131
|
"name": "ErrorBundleServiceCapacityInsufficient",
|
@@ -139,14 +144,25 @@
|
|
139
144
|
"type": "address"
|
140
145
|
},
|
141
146
|
{
|
142
|
-
"internalType": "
|
147
|
+
"internalType": "Amount",
|
143
148
|
"name": "amount",
|
144
|
-
"type": "
|
149
|
+
"type": "uint96"
|
145
150
|
}
|
146
151
|
],
|
147
152
|
"name": "ErrorBundleServiceInsufficientAllowance",
|
148
153
|
"type": "error"
|
149
154
|
},
|
155
|
+
{
|
156
|
+
"inputs": [
|
157
|
+
{
|
158
|
+
"internalType": "NftId",
|
159
|
+
"name": "policyNftId",
|
160
|
+
"type": "uint96"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"name": "ErrorBundleServicePolicyNotCloseable",
|
164
|
+
"type": "error"
|
165
|
+
},
|
150
166
|
{
|
151
167
|
"inputs": [
|
152
168
|
{
|
@@ -196,6 +212,11 @@
|
|
196
212
|
"name": "ErrorNotRegistry",
|
197
213
|
"type": "error"
|
198
214
|
},
|
215
|
+
{
|
216
|
+
"inputs": [],
|
217
|
+
"name": "ErrorServiceNotImplemented",
|
218
|
+
"type": "error"
|
219
|
+
},
|
199
220
|
{
|
200
221
|
"anonymous": false,
|
201
222
|
"inputs": [
|
@@ -429,19 +450,6 @@
|
|
429
450
|
"stateMutability": "view",
|
430
451
|
"type": "function"
|
431
452
|
},
|
432
|
-
{
|
433
|
-
"inputs": [],
|
434
|
-
"name": "getRegistryAddress",
|
435
|
-
"outputs": [
|
436
|
-
{
|
437
|
-
"internalType": "address",
|
438
|
-
"name": "",
|
439
|
-
"type": "address"
|
440
|
-
}
|
441
|
-
],
|
442
|
-
"stateMutability": "view",
|
443
|
-
"type": "function"
|
444
|
-
},
|
445
453
|
{
|
446
454
|
"inputs": [],
|
447
455
|
"name": "getVersion",
|
@@ -468,9 +476,9 @@
|
|
468
476
|
"type": "uint96"
|
469
477
|
},
|
470
478
|
{
|
471
|
-
"internalType": "
|
479
|
+
"internalType": "Amount",
|
472
480
|
"name": "amount",
|
473
|
-
"type": "
|
481
|
+
"type": "uint96"
|
474
482
|
}
|
475
483
|
],
|
476
484
|
"name": "increaseBalance",
|
@@ -547,14 +555,14 @@
|
|
547
555
|
"type": "uint96"
|
548
556
|
},
|
549
557
|
{
|
550
|
-
"internalType": "
|
558
|
+
"internalType": "Amount",
|
551
559
|
"name": "collateralAmount",
|
552
|
-
"type": "
|
560
|
+
"type": "uint96"
|
553
561
|
},
|
554
562
|
{
|
555
|
-
"internalType": "
|
556
|
-
"name": "
|
557
|
-
"type": "
|
563
|
+
"internalType": "Amount",
|
564
|
+
"name": "premiumAmount",
|
565
|
+
"type": "uint96"
|
558
566
|
}
|
559
567
|
],
|
560
568
|
"name": "lockCollateral",
|
@@ -580,9 +588,9 @@
|
|
580
588
|
"type": "uint96"
|
581
589
|
},
|
582
590
|
{
|
583
|
-
"internalType": "
|
591
|
+
"internalType": "Amount",
|
584
592
|
"name": "collateralAmount",
|
585
|
-
"type": "
|
593
|
+
"type": "uint96"
|
586
594
|
}
|
587
595
|
],
|
588
596
|
"name": "releaseCollateral",
|
@@ -652,6 +660,24 @@
|
|
652
660
|
"stateMutability": "view",
|
653
661
|
"type": "function"
|
654
662
|
},
|
663
|
+
{
|
664
|
+
"inputs": [
|
665
|
+
{
|
666
|
+
"internalType": "contract IInstance",
|
667
|
+
"name": "instance",
|
668
|
+
"type": "address"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"internalType": "NftId",
|
672
|
+
"name": "policyNftId",
|
673
|
+
"type": "uint96"
|
674
|
+
}
|
675
|
+
],
|
676
|
+
"name": "unlinkPolicy",
|
677
|
+
"outputs": [],
|
678
|
+
"stateMutability": "nonpayable",
|
679
|
+
"type": "function"
|
680
|
+
},
|
655
681
|
{
|
656
682
|
"inputs": [
|
657
683
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
3
|
"contractName": "IPoolComponent",
|
4
|
-
"sourceName": "contracts/
|
4
|
+
"sourceName": "contracts/pool/IPoolComponent.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
@@ -115,6 +115,11 @@
|
|
115
115
|
"name": "ErrorComponentWalletAllowanceTooSmall",
|
116
116
|
"type": "error"
|
117
117
|
},
|
118
|
+
{
|
119
|
+
"inputs": [],
|
120
|
+
"name": "ErrorComponentWalletNotComponent",
|
121
|
+
"type": "error"
|
122
|
+
},
|
118
123
|
{
|
119
124
|
"inputs": [
|
120
125
|
{
|
@@ -215,6 +220,19 @@
|
|
215
220
|
"name": "AuthorityUpdated",
|
216
221
|
"type": "event"
|
217
222
|
},
|
223
|
+
{
|
224
|
+
"anonymous": false,
|
225
|
+
"inputs": [
|
226
|
+
{
|
227
|
+
"indexed": false,
|
228
|
+
"internalType": "uint256",
|
229
|
+
"name": "limit",
|
230
|
+
"type": "uint256"
|
231
|
+
}
|
232
|
+
],
|
233
|
+
"name": "LogComponentTokenHandlerApproved",
|
234
|
+
"type": "event"
|
235
|
+
},
|
218
236
|
{
|
219
237
|
"anonymous": false,
|
220
238
|
"inputs": [
|
@@ -276,9 +294,9 @@
|
|
276
294
|
},
|
277
295
|
{
|
278
296
|
"indexed": false,
|
279
|
-
"internalType": "
|
297
|
+
"internalType": "Amount",
|
280
298
|
"name": "collateralizationAmount",
|
281
|
-
"type": "
|
299
|
+
"type": "uint96"
|
282
300
|
}
|
283
301
|
],
|
284
302
|
"name": "LogPoolVerifiedByPool",
|
@@ -307,9 +325,9 @@
|
|
307
325
|
"type": "bytes"
|
308
326
|
},
|
309
327
|
{
|
310
|
-
"internalType": "
|
328
|
+
"internalType": "Amount",
|
311
329
|
"name": "collateralizationAmount",
|
312
|
-
"type": "
|
330
|
+
"type": "uint96"
|
313
331
|
}
|
314
332
|
],
|
315
333
|
"name": "applicationMatchesBundle",
|
@@ -323,6 +341,19 @@
|
|
323
341
|
"stateMutability": "view",
|
324
342
|
"type": "function"
|
325
343
|
},
|
344
|
+
{
|
345
|
+
"inputs": [
|
346
|
+
{
|
347
|
+
"internalType": "uint256",
|
348
|
+
"name": "spendingLimitAmount",
|
349
|
+
"type": "uint256"
|
350
|
+
}
|
351
|
+
],
|
352
|
+
"name": "approveTokenHandler",
|
353
|
+
"outputs": [],
|
354
|
+
"stateMutability": "nonpayable",
|
355
|
+
"type": "function"
|
356
|
+
},
|
326
357
|
{
|
327
358
|
"inputs": [],
|
328
359
|
"name": "authority",
|
@@ -536,19 +567,19 @@
|
|
536
567
|
"type": "uint64"
|
537
568
|
},
|
538
569
|
{
|
539
|
-
"internalType": "
|
570
|
+
"internalType": "Amount",
|
540
571
|
"name": "maxCapitalAmount",
|
541
|
-
"type": "
|
572
|
+
"type": "uint96"
|
542
573
|
},
|
543
574
|
{
|
544
|
-
"internalType": "
|
575
|
+
"internalType": "Amount",
|
545
576
|
"name": "balanceAmount",
|
546
|
-
"type": "
|
577
|
+
"type": "uint96"
|
547
578
|
},
|
548
579
|
{
|
549
|
-
"internalType": "
|
580
|
+
"internalType": "Amount",
|
550
581
|
"name": "feeAmount",
|
551
|
-
"type": "
|
582
|
+
"type": "uint96"
|
552
583
|
},
|
553
584
|
{
|
554
585
|
"internalType": "bool",
|
@@ -663,11 +694,11 @@
|
|
663
694
|
},
|
664
695
|
{
|
665
696
|
"inputs": [],
|
666
|
-
"name": "
|
697
|
+
"name": "getToken",
|
667
698
|
"outputs": [
|
668
699
|
{
|
669
|
-
"internalType": "
|
670
|
-
"name": "",
|
700
|
+
"internalType": "contract IERC20Metadata",
|
701
|
+
"name": "token",
|
671
702
|
"type": "address"
|
672
703
|
}
|
673
704
|
],
|
@@ -676,11 +707,11 @@
|
|
676
707
|
},
|
677
708
|
{
|
678
709
|
"inputs": [],
|
679
|
-
"name": "
|
710
|
+
"name": "getTokenHandler",
|
680
711
|
"outputs": [
|
681
712
|
{
|
682
|
-
"internalType": "contract
|
683
|
-
"name": "
|
713
|
+
"internalType": "contract TokenHandler",
|
714
|
+
"name": "tokenHandler",
|
684
715
|
"type": "address"
|
685
716
|
}
|
686
717
|
],
|
@@ -912,9 +943,9 @@
|
|
912
943
|
{
|
913
944
|
"inputs": [
|
914
945
|
{
|
915
|
-
"internalType": "
|
946
|
+
"internalType": "Amount",
|
916
947
|
"name": "maxCapitalAmount",
|
917
|
-
"type": "
|
948
|
+
"type": "uint96"
|
918
949
|
}
|
919
950
|
],
|
920
951
|
"name": "setMaxCapitalAmount",
|
@@ -956,9 +987,9 @@
|
|
956
987
|
"type": "uint96"
|
957
988
|
},
|
958
989
|
{
|
959
|
-
"internalType": "
|
990
|
+
"internalType": "Amount",
|
960
991
|
"name": "amount",
|
961
|
-
"type": "
|
992
|
+
"type": "uint96"
|
962
993
|
}
|
963
994
|
],
|
964
995
|
"name": "stake",
|
@@ -1013,9 +1044,9 @@
|
|
1013
1044
|
"type": "uint96"
|
1014
1045
|
},
|
1015
1046
|
{
|
1016
|
-
"internalType": "
|
1047
|
+
"internalType": "Amount",
|
1017
1048
|
"name": "amount",
|
1018
|
-
"type": "
|
1049
|
+
"type": "uint96"
|
1019
1050
|
}
|
1020
1051
|
],
|
1021
1052
|
"name": "unstake",
|
@@ -1046,9 +1077,9 @@
|
|
1046
1077
|
"type": "bytes"
|
1047
1078
|
},
|
1048
1079
|
{
|
1049
|
-
"internalType": "
|
1080
|
+
"internalType": "Amount",
|
1050
1081
|
"name": "collateralizationAmount",
|
1051
|
-
"type": "
|
1082
|
+
"type": "uint96"
|
1052
1083
|
}
|
1053
1084
|
],
|
1054
1085
|
"name": "verifyApplication",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
3
|
"contractName": "IPoolService",
|
4
|
-
"sourceName": "contracts/
|
4
|
+
"sourceName": "contracts/pool/IPoolService.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"inputs": [
|
@@ -133,6 +133,11 @@
|
|
133
133
|
"name": "ErrorPoolServiceInvalidTransferAmount",
|
134
134
|
"type": "error"
|
135
135
|
},
|
136
|
+
{
|
137
|
+
"inputs": [],
|
138
|
+
"name": "ErrorServiceNotImplemented",
|
139
|
+
"type": "error"
|
140
|
+
},
|
136
141
|
{
|
137
142
|
"anonymous": false,
|
138
143
|
"inputs": [
|
@@ -226,15 +231,15 @@
|
|
226
231
|
},
|
227
232
|
{
|
228
233
|
"indexed": false,
|
229
|
-
"internalType": "
|
234
|
+
"internalType": "Amount",
|
230
235
|
"name": "previousMaxCapitalAmount",
|
231
|
-
"type": "
|
236
|
+
"type": "uint96"
|
232
237
|
},
|
233
238
|
{
|
234
239
|
"indexed": false,
|
235
|
-
"internalType": "
|
240
|
+
"internalType": "Amount",
|
236
241
|
"name": "currentMaxCapitalAmount",
|
237
|
-
"type": "
|
242
|
+
"type": "uint96"
|
238
243
|
}
|
239
244
|
],
|
240
245
|
"name": "LogPoolServiceMaxCapitalAmountUpdated",
|
@@ -419,19 +424,6 @@
|
|
419
424
|
"stateMutability": "view",
|
420
425
|
"type": "function"
|
421
426
|
},
|
422
|
-
{
|
423
|
-
"inputs": [],
|
424
|
-
"name": "getRegistryAddress",
|
425
|
-
"outputs": [
|
426
|
-
{
|
427
|
-
"internalType": "address",
|
428
|
-
"name": "",
|
429
|
-
"type": "address"
|
430
|
-
}
|
431
|
-
],
|
432
|
-
"stateMutability": "view",
|
433
|
-
"type": "function"
|
434
|
-
},
|
435
427
|
{
|
436
428
|
"inputs": [],
|
437
429
|
"name": "getVersion",
|
@@ -523,19 +515,19 @@
|
|
523
515
|
"type": "bytes8"
|
524
516
|
},
|
525
517
|
{
|
526
|
-
"internalType": "
|
518
|
+
"internalType": "Amount",
|
527
519
|
"name": "sumInsuredAmount",
|
528
|
-
"type": "
|
520
|
+
"type": "uint96"
|
529
521
|
},
|
530
522
|
{
|
531
|
-
"internalType": "
|
523
|
+
"internalType": "Amount",
|
532
524
|
"name": "premiumAmount",
|
533
|
-
"type": "
|
525
|
+
"type": "uint96"
|
534
526
|
},
|
535
527
|
{
|
536
|
-
"internalType": "
|
528
|
+
"internalType": "Amount",
|
537
529
|
"name": "premiumPaidAmount",
|
538
|
-
"type": "
|
530
|
+
"type": "uint96"
|
539
531
|
},
|
540
532
|
{
|
541
533
|
"internalType": "Seconds",
|
@@ -562,6 +554,11 @@
|
|
562
554
|
"name": "openClaimsCount",
|
563
555
|
"type": "uint16"
|
564
556
|
},
|
557
|
+
{
|
558
|
+
"internalType": "Amount",
|
559
|
+
"name": "claimAmount",
|
560
|
+
"type": "uint96"
|
561
|
+
},
|
565
562
|
{
|
566
563
|
"internalType": "Amount",
|
567
564
|
"name": "payoutAmount",
|
@@ -588,9 +585,9 @@
|
|
588
585
|
"type": "tuple"
|
589
586
|
},
|
590
587
|
{
|
591
|
-
"internalType": "
|
588
|
+
"internalType": "Amount",
|
592
589
|
"name": "premiumAmount",
|
593
|
-
"type": "
|
590
|
+
"type": "uint96"
|
594
591
|
}
|
595
592
|
],
|
596
593
|
"name": "lockCollateral",
|
@@ -688,9 +685,9 @@
|
|
688
685
|
"type": "tuple"
|
689
686
|
},
|
690
687
|
{
|
691
|
-
"internalType": "
|
688
|
+
"internalType": "Amount",
|
692
689
|
"name": "actualAmountTransferred",
|
693
|
-
"type": "
|
690
|
+
"type": "uint96"
|
694
691
|
}
|
695
692
|
],
|
696
693
|
"name": "processSale",
|
@@ -698,6 +695,121 @@
|
|
698
695
|
"stateMutability": "nonpayable",
|
699
696
|
"type": "function"
|
700
697
|
},
|
698
|
+
{
|
699
|
+
"inputs": [
|
700
|
+
{
|
701
|
+
"internalType": "contract IInstance",
|
702
|
+
"name": "instance",
|
703
|
+
"type": "address"
|
704
|
+
},
|
705
|
+
{
|
706
|
+
"internalType": "NftId",
|
707
|
+
"name": "policyNftId",
|
708
|
+
"type": "uint96"
|
709
|
+
},
|
710
|
+
{
|
711
|
+
"components": [
|
712
|
+
{
|
713
|
+
"internalType": "NftId",
|
714
|
+
"name": "productNftId",
|
715
|
+
"type": "uint96"
|
716
|
+
},
|
717
|
+
{
|
718
|
+
"internalType": "NftId",
|
719
|
+
"name": "bundleNftId",
|
720
|
+
"type": "uint96"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"internalType": "ReferralId",
|
724
|
+
"name": "referralId",
|
725
|
+
"type": "bytes8"
|
726
|
+
},
|
727
|
+
{
|
728
|
+
"internalType": "RiskId",
|
729
|
+
"name": "riskId",
|
730
|
+
"type": "bytes8"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"internalType": "Amount",
|
734
|
+
"name": "sumInsuredAmount",
|
735
|
+
"type": "uint96"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"internalType": "Amount",
|
739
|
+
"name": "premiumAmount",
|
740
|
+
"type": "uint96"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"internalType": "Amount",
|
744
|
+
"name": "premiumPaidAmount",
|
745
|
+
"type": "uint96"
|
746
|
+
},
|
747
|
+
{
|
748
|
+
"internalType": "Seconds",
|
749
|
+
"name": "lifetime",
|
750
|
+
"type": "uint40"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"internalType": "bytes",
|
754
|
+
"name": "applicationData",
|
755
|
+
"type": "bytes"
|
756
|
+
},
|
757
|
+
{
|
758
|
+
"internalType": "bytes",
|
759
|
+
"name": "policyData",
|
760
|
+
"type": "bytes"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"internalType": "uint16",
|
764
|
+
"name": "claimsCount",
|
765
|
+
"type": "uint16"
|
766
|
+
},
|
767
|
+
{
|
768
|
+
"internalType": "uint16",
|
769
|
+
"name": "openClaimsCount",
|
770
|
+
"type": "uint16"
|
771
|
+
},
|
772
|
+
{
|
773
|
+
"internalType": "Amount",
|
774
|
+
"name": "claimAmount",
|
775
|
+
"type": "uint96"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"internalType": "Amount",
|
779
|
+
"name": "payoutAmount",
|
780
|
+
"type": "uint96"
|
781
|
+
},
|
782
|
+
{
|
783
|
+
"internalType": "Timestamp",
|
784
|
+
"name": "activatedAt",
|
785
|
+
"type": "uint40"
|
786
|
+
},
|
787
|
+
{
|
788
|
+
"internalType": "Timestamp",
|
789
|
+
"name": "expiredAt",
|
790
|
+
"type": "uint40"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
"internalType": "Timestamp",
|
794
|
+
"name": "closedAt",
|
795
|
+
"type": "uint40"
|
796
|
+
}
|
797
|
+
],
|
798
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
799
|
+
"name": "policyInfo",
|
800
|
+
"type": "tuple"
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"internalType": "Amount",
|
804
|
+
"name": "payoutAmount",
|
805
|
+
"type": "uint96"
|
806
|
+
}
|
807
|
+
],
|
808
|
+
"name": "reduceCollateral",
|
809
|
+
"outputs": [],
|
810
|
+
"stateMutability": "nonpayable",
|
811
|
+
"type": "function"
|
812
|
+
},
|
701
813
|
{
|
702
814
|
"inputs": [
|
703
815
|
{
|
@@ -752,19 +864,19 @@
|
|
752
864
|
"type": "bytes8"
|
753
865
|
},
|
754
866
|
{
|
755
|
-
"internalType": "
|
867
|
+
"internalType": "Amount",
|
756
868
|
"name": "sumInsuredAmount",
|
757
|
-
"type": "
|
869
|
+
"type": "uint96"
|
758
870
|
},
|
759
871
|
{
|
760
|
-
"internalType": "
|
872
|
+
"internalType": "Amount",
|
761
873
|
"name": "premiumAmount",
|
762
|
-
"type": "
|
874
|
+
"type": "uint96"
|
763
875
|
},
|
764
876
|
{
|
765
|
-
"internalType": "
|
877
|
+
"internalType": "Amount",
|
766
878
|
"name": "premiumPaidAmount",
|
767
|
-
"type": "
|
879
|
+
"type": "uint96"
|
768
880
|
},
|
769
881
|
{
|
770
882
|
"internalType": "Seconds",
|
@@ -791,6 +903,11 @@
|
|
791
903
|
"name": "openClaimsCount",
|
792
904
|
"type": "uint16"
|
793
905
|
},
|
906
|
+
{
|
907
|
+
"internalType": "Amount",
|
908
|
+
"name": "claimAmount",
|
909
|
+
"type": "uint96"
|
910
|
+
},
|
794
911
|
{
|
795
912
|
"internalType": "Amount",
|
796
913
|
"name": "payoutAmount",
|
@@ -910,9 +1027,9 @@
|
|
910
1027
|
{
|
911
1028
|
"inputs": [
|
912
1029
|
{
|
913
|
-
"internalType": "
|
1030
|
+
"internalType": "Amount",
|
914
1031
|
"name": "maxCapitalAmount",
|
915
|
-
"type": "
|
1032
|
+
"type": "uint96"
|
916
1033
|
}
|
917
1034
|
],
|
918
1035
|
"name": "setMaxCapitalAmount",
|