@etherisc/gif-next 0.0.2-d551b5e-892 → 0.0.2-d59d51e-694
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -13
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1410 -0
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1343 -0
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +799 -0
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +969 -0
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +808 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +73 -83
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +291 -1349
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +356 -181
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +366 -2977
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +602 -194
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +132 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +485 -337
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +509 -445
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +328 -145
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3468 -0
- package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
- package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{Cloneable.sol → base/Cloneable.sol}/Cloneable.json +6 -1
- package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +256 -0
- 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/{ISetup.sol/ISetup.json → IComponents.sol/IComponents.json} +2 -2
- 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/mock/Dip.sol/Dip.dbg.json +4 -0
- package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
- package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1091 -0
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +723 -0
- package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → pool/IBundleService.sol/IBundleService.json} +297 -341
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +1148 -0
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1044 -0
- package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
- package/artifacts/contracts/pool/Pool.sol/Pool.json +1559 -0
- package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1411 -0
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +719 -0
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +820 -0
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +699 -0
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1264 -0
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +787 -0
- package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → product/IApplicationService.sol/IApplicationService.json} +231 -204
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +753 -0
- package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service → product}/IPolicyService.sol/IPolicyService.json +333 -296
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → product/IPricingService.sol/IPricingService.json} +253 -261
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +989 -0
- package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → product/IProductService.sol/IProductService.json} +132 -119
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1132 -0
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +731 -0
- package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/product/PricingService.sol/PricingService.json +969 -0
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +755 -0
- package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
- package/artifacts/contracts/product/Product.sol/Product.json +1391 -0
- package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/product/ProductService.sol/ProductService.json +673 -0
- package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +675 -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 +370 -117
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +368 -222
- 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 +463 -184
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +322 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +438 -333
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +324 -136
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +1151 -0
- package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.json +137 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +352 -109
- package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/shared/Component.sol/Component.json +890 -0
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1461 -0
- package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +765 -0
- package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +4 -0
- package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/ComponentVerifyingService.sol/ComponentVerifyingService.json} +207 -208
- 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/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{components/BaseComponent.sol/BaseComponent.json → shared/IComponent.sol/IComponent.json} +275 -103
- package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
- package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +854 -0
- package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
- package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +699 -0
- package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/{instance/IInstanceBase.sol/IInstanceBase.json → shared/IKeyValueStore.sol/IKeyValueStore.json} +51 -21
- package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +27 -29
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +207 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -34
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +35 -0
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +84 -178
- 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/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
- package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +1030 -0
- package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +581 -0
- package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +194 -0
- package/artifacts/contracts/shared/NftIdSetManager.sol/NftIdSetManager.dbg.json +4 -0
- package/artifacts/contracts/shared/NftIdSetManager.sol/NftIdSetManager.json +306 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +109 -29
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +320 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +310 -61
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +126 -53
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +185 -165
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +60 -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/shared/Versionable.sol/Versionable.json +2 -152
- package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
- package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1435 -0
- package/artifacts/contracts/staking/IStakingManager.sol/IStakingManager.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → staking/IStakingManager.sol/IStakingManager.json} +10 -10
- package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
- package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +884 -0
- package/artifacts/contracts/staking/IStakingStore.sol/IStakingStore.dbg.json +4 -0
- package/artifacts/contracts/staking/IStakingStore.sol/IStakingStore.json +357 -0
- package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +4 -0
- package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +402 -0
- package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
- package/artifacts/contracts/staking/Staking.sol/Staking.json +2002 -0
- package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
- package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +748 -0
- package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
- package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +368 -0
- package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
- package/artifacts/contracts/staking/StakingService.sol/StakingService.json +1207 -0
- package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +698 -0
- package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
- package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +1690 -0
- package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
- package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +494 -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/type/Blocknumber.sol/BlocknumberLib.json +225 -0
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
- 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/type/NftId.sol/NftIdLib.json +185 -0
- 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/type/PayoutId.sol/PayoutIdLib.json +209 -0
- package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
- package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
- 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/type/Seconds.sol/SecondsLib.json +174 -0
- 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 +39 -8
- 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/distribution/Distribution.sol +263 -0
- package/contracts/distribution/DistributionService.sol +298 -0
- package/contracts/{instance/service → distribution}/DistributionServiceManager.sol +20 -20
- package/contracts/distribution/IDistributionComponent.sol +66 -0
- package/contracts/distribution/IDistributionService.sol +81 -0
- package/contracts/instance/BundleManager.sol +22 -25
- package/contracts/instance/IInstance.sol +57 -38
- package/contracts/instance/IInstanceService.sol +65 -14
- package/contracts/instance/Instance.sol +146 -378
- package/contracts/instance/InstanceAccessManager.sol +432 -177
- package/contracts/instance/InstanceAuthorizationsLib.sol +336 -0
- package/contracts/instance/InstanceReader.sol +136 -85
- package/contracts/instance/InstanceService.sol +305 -190
- package/contracts/instance/InstanceServiceManager.sol +12 -25
- package/contracts/instance/InstanceStore.sol +260 -0
- package/contracts/instance/base/BalanceStore.sol +118 -0
- package/contracts/instance/{Cloneable.sol → base/Cloneable.sol} +8 -3
- package/contracts/instance/{ObjectManager.sol → base/ObjectManager.sol} +16 -35
- package/contracts/instance/module/IAccess.sol +37 -21
- package/contracts/instance/module/IBundle.sol +8 -8
- package/contracts/instance/module/IComponents.sol +52 -0
- package/contracts/instance/module/IDistribution.sol +7 -4
- package/contracts/instance/module/IPolicy.sol +56 -17
- package/contracts/instance/module/IRisk.sol +1 -1
- package/contracts/{test/Usdc.sol → mock/Dip.sol} +5 -5
- package/contracts/pool/BundleService.sol +296 -0
- package/contracts/pool/BundleServiceManager.sol +42 -0
- package/contracts/pool/IBundleService.sol +106 -0
- package/contracts/pool/IPoolComponent.sol +112 -0
- package/contracts/pool/IPoolService.sol +147 -0
- package/contracts/pool/Pool.sol +299 -0
- package/contracts/pool/PoolService.sol +424 -0
- package/contracts/pool/PoolServiceManager.sol +42 -0
- package/contracts/product/ApplicationService.sol +254 -0
- package/contracts/product/ApplicationServiceManager.sol +38 -0
- package/contracts/product/ClaimService.sol +437 -0
- package/contracts/product/ClaimServiceManager.sol +38 -0
- package/contracts/product/IApplicationService.sol +62 -0
- package/contracts/product/IClaimService.sol +93 -0
- package/contracts/product/IPolicyService.sol +78 -0
- package/contracts/product/IPricingService.sol +39 -0
- package/contracts/product/IProductComponent.sol +42 -0
- package/contracts/product/IProductService.sol +33 -0
- package/contracts/product/PolicyService.sol +473 -0
- package/contracts/product/PolicyServiceManager.sol +42 -0
- package/contracts/product/PricingService.sol +301 -0
- package/contracts/product/PricingServiceManager.sol +42 -0
- package/contracts/product/Product.sol +377 -0
- package/contracts/product/ProductService.sol +124 -0
- package/contracts/product/ProductServiceManager.sol +42 -0
- package/contracts/registry/ChainNft.sol +14 -0
- package/contracts/registry/IRegistry.sol +74 -30
- package/contracts/registry/IRegistryService.sol +46 -28
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +367 -237
- package/contracts/registry/RegistryAccessManager.sol +196 -0
- package/contracts/registry/RegistryService.sol +113 -205
- package/contracts/registry/RegistryServiceManager.sol +34 -42
- package/contracts/registry/ReleaseManager.sol +563 -0
- package/contracts/registry/ServiceAuthorizationsLib.sol +173 -0
- package/contracts/registry/TokenRegistry.sol +300 -57
- package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/shared/Component.sol +286 -0
- package/contracts/shared/ComponentService.sol +595 -0
- package/contracts/shared/ComponentServiceManager.sol +35 -0
- package/contracts/shared/ComponentVerifyingService.sol +111 -0
- package/contracts/shared/ERC165.sol +14 -12
- package/contracts/shared/IComponent.sol +74 -0
- package/contracts/shared/IComponentService.sol +91 -0
- package/contracts/shared/IInstanceLinkedComponent.sol +46 -0
- package/contracts/{instance/base → shared}/IKeyValueStore.sol +14 -10
- package/contracts/{instance/base → shared}/ILifecycle.sol +3 -3
- package/contracts/shared/INftOwnable.sol +12 -11
- package/contracts/shared/IPolicyHolder.sol +45 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +11 -0
- package/contracts/shared/IService.sol +7 -4
- package/contracts/shared/IVersionable.sol +5 -48
- package/contracts/shared/InstanceLinkedComponent.sol +145 -0
- package/contracts/shared/KeyValueStore.sol +130 -0
- package/contracts/{instance/base → shared}/Lifecycle.sol +28 -7
- package/contracts/shared/NftIdSetManager.sol +65 -0
- package/contracts/shared/NftOwnable.sol +64 -80
- package/contracts/shared/PolicyHolder.sol +101 -0
- package/contracts/shared/ProxyManager.sol +126 -25
- package/contracts/shared/Registerable.sol +26 -41
- package/contracts/shared/RegistryLinked.sol +43 -0
- package/contracts/shared/Service.sol +45 -23
- package/contracts/shared/TokenHandler.sol +37 -6
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/staking/IStaking.sol +152 -0
- package/contracts/staking/IStakingManager.sol +15 -0
- package/contracts/staking/IStakingService.sol +162 -0
- package/contracts/staking/IStakingStore.sol +130 -0
- package/contracts/staking/StakeManagerLib.sol +156 -0
- package/contracts/staking/Staking.sol +502 -0
- package/contracts/staking/StakingManager.sol +65 -0
- package/contracts/staking/StakingReader.sol +147 -0
- package/contracts/staking/StakingService.sol +375 -0
- package/contracts/staking/StakingServiceManager.sol +44 -0
- package/contracts/staking/StakingStore.sol +329 -0
- package/contracts/staking/TargetManagerLib.sol +179 -0
- package/contracts/type/Amount.sol +114 -0
- package/contracts/{types → type}/Blocknumber.sol +20 -2
- package/contracts/type/ClaimId.sol +75 -0
- package/contracts/{types → type}/DistributorType.sol +2 -2
- package/contracts/{types → type}/Fee.sol +32 -22
- package/contracts/{types → type}/NftId.sol +17 -11
- package/contracts/{types → type}/NftIdSet.sol +1 -1
- package/contracts/{types → type}/ObjectType.sol +26 -9
- package/contracts/type/PayoutId.sol +82 -0
- package/contracts/{types → type}/Referral.sol +4 -0
- package/contracts/type/RoleId.sol +143 -0
- package/contracts/type/Seconds.sol +71 -0
- package/contracts/{types → type}/StateId.sol +24 -6
- package/contracts/{types → type}/Timestamp.sol +18 -13
- package/contracts/{types → type}/UFixed.sol +1 -0
- package/contracts/{types → type}/Version.sol +1 -0
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +0 -744
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -152
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -275
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -157
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
- package/artifacts/contracts/components/Pool.sol/Pool.json +0 -939
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
- package/artifacts/contracts/components/Product.sol/Product.json +0 -855
- 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/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
- 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/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +0 -4
- 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/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +0 -4
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +0 -285
- 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/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +0 -429
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -502
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -169
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +0 -10
- 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/DistributionService.sol/DistributionService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -684
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -428
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +0 -446
- 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 -984
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -464
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -1017
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -448
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -789
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -420
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
- 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 -305
- 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 -600
- 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 -286
- 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/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +0 -174
- 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/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 -257
- 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/NftId.sol/NftIdLib.json +0 -153
- 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/Referral.sol/ReferralLib.dbg.json +0 -4
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -123
- 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/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/components/BaseComponent.sol +0 -132
- package/contracts/components/Distribution.sol +0 -163
- package/contracts/components/IBaseComponent.sol +0 -31
- package/contracts/components/IDistributionComponent.sol +0 -44
- package/contracts/components/IPoolComponent.sol +0 -66
- package/contracts/components/IProductComponent.sol +0 -35
- package/contracts/components/Pool.sol +0 -267
- package/contracts/components/Product.sol +0 -292
- 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/AccessManagerUpgradeableInitializeable.sol +0 -23
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -72
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/base/KeyValueStore.sol +0 -172
- package/contracts/instance/module/ISetup.sol +0 -46
- package/contracts/instance/module/ITreasury.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/DistributionService.sol +0 -118
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/instance/service/IDistributionService.sol +0 -12
- package/contracts/instance/service/IPolicyService.sol +0 -87
- package/contracts/instance/service/IPoolService.sol +0 -51
- package/contracts/instance/service/IProductService.sol +0 -40
- package/contracts/instance/service/PolicyService.sol +0 -513
- package/contracts/instance/service/PolicyServiceManager.sol +0 -54
- package/contracts/instance/service/PoolService.sol +0 -317
- package/contracts/instance/service/PoolServiceManager.sol +0 -54
- package/contracts/instance/service/ProductService.sol +0 -173
- package/contracts/instance/service/ProductServiceManager.sol +0 -54
- package/contracts/shared/ContractDeployerLib.sol +0 -72
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
- 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 -24
- package/contracts/test/TestToken.sol +0 -26
- package/contracts/test/TestVersion.sol +0 -44
- package/contracts/test/TestVersionable.sol +0 -17
- package/contracts/types/ChainId.sol +0 -38
- package/contracts/types/NumberId.sol +0 -52
- package/contracts/types/RoleId.sol +0 -91
- /package/contracts/{types → type}/AddressSet.sol +0 -0
- /package/contracts/{types → type}/Key32.sol +0 -0
- /package/contracts/{types → type}/RiskId.sol +0 -0
@@ -1,33 +1,134 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/
|
3
|
+
"contractName": "IBundleService",
|
4
|
+
"sourceName": "contracts/pool/IBundleService.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
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
|
},
|
13
24
|
{
|
14
|
-
"internalType": "
|
15
|
-
"name": "
|
16
|
-
"type": "
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
17
28
|
}
|
18
29
|
],
|
19
|
-
"name": "
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
20
31
|
"type": "error"
|
21
32
|
},
|
22
33
|
{
|
23
34
|
"inputs": [
|
24
35
|
{
|
25
36
|
"internalType": "address",
|
26
|
-
"name": "
|
37
|
+
"name": "caller",
|
27
38
|
"type": "address"
|
28
39
|
}
|
29
40
|
],
|
30
|
-
"name": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "NftId",
|
48
|
+
"name": "bundleNftId",
|
49
|
+
"type": "uint96"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"internalType": "StateId",
|
53
|
+
"name": "state",
|
54
|
+
"type": "uint8"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "Timestamp",
|
58
|
+
"name": "expiredAt",
|
59
|
+
"type": "uint40"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"name": "ErrorBundleServiceBundleNotOpen",
|
63
|
+
"type": "error"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"inputs": [
|
67
|
+
{
|
68
|
+
"internalType": "NftId",
|
69
|
+
"name": "bundleNftId",
|
70
|
+
"type": "uint96"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"internalType": "NftId",
|
74
|
+
"name": "expectedPool",
|
75
|
+
"type": "uint96"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "actualPool",
|
80
|
+
"type": "uint96"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"name": "ErrorBundleServiceBundlePoolMismatch",
|
84
|
+
"type": "error"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"inputs": [
|
88
|
+
{
|
89
|
+
"internalType": "NftId",
|
90
|
+
"name": "bundleNftId",
|
91
|
+
"type": "uint96"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"name": "ErrorBundleServiceBundleUnknown",
|
95
|
+
"type": "error"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"inputs": [
|
99
|
+
{
|
100
|
+
"internalType": "NftId",
|
101
|
+
"name": "bundleNftId",
|
102
|
+
"type": "uint96"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "openPoliciesCount",
|
107
|
+
"type": "uint256"
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"name": "ErrorBundleServiceBundleWithOpenPolicies",
|
111
|
+
"type": "error"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"internalType": "NftId",
|
117
|
+
"name": "bundleNftId",
|
118
|
+
"type": "uint96"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"internalType": "Amount",
|
122
|
+
"name": "capacityAmount",
|
123
|
+
"type": "uint96"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"internalType": "Amount",
|
127
|
+
"name": "collateralAmount",
|
128
|
+
"type": "uint96"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"name": "ErrorBundleServiceCapacityInsufficient",
|
31
132
|
"type": "error"
|
32
133
|
},
|
33
134
|
{
|
@@ -43,12 +144,50 @@
|
|
43
144
|
"type": "address"
|
44
145
|
},
|
45
146
|
{
|
46
|
-
"internalType": "
|
147
|
+
"internalType": "Amount",
|
47
148
|
"name": "amount",
|
48
|
-
"type": "
|
149
|
+
"type": "uint96"
|
150
|
+
}
|
151
|
+
],
|
152
|
+
"name": "ErrorBundleServiceInsufficientAllowance",
|
153
|
+
"type": "error"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"inputs": [
|
157
|
+
{
|
158
|
+
"internalType": "NftId",
|
159
|
+
"name": "policyNftId",
|
160
|
+
"type": "uint96"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"name": "ErrorBundleServicePolicyNotCloseable",
|
164
|
+
"type": "error"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"inputs": [
|
168
|
+
{
|
169
|
+
"internalType": "NftId",
|
170
|
+
"name": "nftId",
|
171
|
+
"type": "uint96"
|
49
172
|
}
|
50
173
|
],
|
51
|
-
"name": "
|
174
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
175
|
+
"type": "error"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"inputs": [
|
179
|
+
{
|
180
|
+
"internalType": "address",
|
181
|
+
"name": "contractAddress",
|
182
|
+
"type": "address"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
186
|
+
"type": "error"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"inputs": [],
|
190
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
52
191
|
"type": "error"
|
53
192
|
},
|
54
193
|
{
|
@@ -59,7 +198,7 @@
|
|
59
198
|
"type": "address"
|
60
199
|
}
|
61
200
|
],
|
62
|
-
"name": "
|
201
|
+
"name": "ErrorNftOwnableNotOwner",
|
63
202
|
"type": "error"
|
64
203
|
},
|
65
204
|
{
|
@@ -75,52 +214,91 @@
|
|
75
214
|
},
|
76
215
|
{
|
77
216
|
"inputs": [],
|
78
|
-
"name": "
|
217
|
+
"name": "ErrorServiceNotImplemented",
|
79
218
|
"type": "error"
|
80
219
|
},
|
81
220
|
{
|
221
|
+
"anonymous": false,
|
82
222
|
"inputs": [
|
83
223
|
{
|
224
|
+
"indexed": false,
|
84
225
|
"internalType": "address",
|
85
|
-
"name": "
|
226
|
+
"name": "authority",
|
86
227
|
"type": "address"
|
87
228
|
}
|
88
229
|
],
|
89
|
-
"name": "
|
90
|
-
"type": "
|
230
|
+
"name": "AuthorityUpdated",
|
231
|
+
"type": "event"
|
91
232
|
},
|
92
233
|
{
|
93
|
-
"
|
94
|
-
"
|
95
|
-
|
234
|
+
"anonymous": false,
|
235
|
+
"inputs": [
|
236
|
+
{
|
237
|
+
"indexed": false,
|
238
|
+
"internalType": "NftId",
|
239
|
+
"name": "bundleNftId",
|
240
|
+
"type": "uint96"
|
241
|
+
}
|
242
|
+
],
|
243
|
+
"name": "LogBundleServiceBundleActivated",
|
244
|
+
"type": "event"
|
96
245
|
},
|
97
246
|
{
|
98
247
|
"anonymous": false,
|
99
248
|
"inputs": [
|
100
249
|
{
|
101
250
|
"indexed": false,
|
102
|
-
"internalType": "
|
103
|
-
"name": "
|
104
|
-
"type": "
|
105
|
-
}
|
251
|
+
"internalType": "NftId",
|
252
|
+
"name": "bundleNftId",
|
253
|
+
"type": "uint96"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"name": "LogBundleServiceBundleLocked",
|
257
|
+
"type": "event"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"inputs": [],
|
261
|
+
"name": "authority",
|
262
|
+
"outputs": [
|
106
263
|
{
|
107
|
-
"indexed": false,
|
108
264
|
"internalType": "address",
|
109
|
-
"name": "
|
265
|
+
"name": "",
|
110
266
|
"type": "address"
|
111
|
-
}
|
267
|
+
}
|
268
|
+
],
|
269
|
+
"stateMutability": "view",
|
270
|
+
"type": "function"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"inputs": [
|
112
274
|
{
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"name": "activatedBy",
|
275
|
+
"internalType": "contract IInstance",
|
276
|
+
"name": "instance",
|
116
277
|
"type": "address"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"internalType": "NftId",
|
281
|
+
"name": "bundleNftId",
|
282
|
+
"type": "uint96"
|
117
283
|
}
|
118
284
|
],
|
119
|
-
"name": "
|
120
|
-
"
|
285
|
+
"name": "close",
|
286
|
+
"outputs": [],
|
287
|
+
"stateMutability": "nonpayable",
|
288
|
+
"type": "function"
|
121
289
|
},
|
122
290
|
{
|
123
291
|
"inputs": [
|
292
|
+
{
|
293
|
+
"internalType": "contract IInstance",
|
294
|
+
"name": "instance",
|
295
|
+
"type": "address"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"internalType": "NftId",
|
299
|
+
"name": "poolNftId",
|
300
|
+
"type": "uint96"
|
301
|
+
},
|
124
302
|
{
|
125
303
|
"internalType": "address",
|
126
304
|
"name": "owner",
|
@@ -144,14 +322,14 @@
|
|
144
322
|
"type": "tuple"
|
145
323
|
},
|
146
324
|
{
|
147
|
-
"internalType": "
|
148
|
-
"name": "
|
149
|
-
"type": "
|
325
|
+
"internalType": "Amount",
|
326
|
+
"name": "stakingAmount",
|
327
|
+
"type": "uint96"
|
150
328
|
},
|
151
329
|
{
|
152
|
-
"internalType": "
|
330
|
+
"internalType": "Seconds",
|
153
331
|
"name": "lifetime",
|
154
|
-
"type": "
|
332
|
+
"type": "uint40"
|
155
333
|
},
|
156
334
|
{
|
157
335
|
"internalType": "bytes",
|
@@ -159,7 +337,7 @@
|
|
159
337
|
"type": "bytes"
|
160
338
|
}
|
161
339
|
],
|
162
|
-
"name": "
|
340
|
+
"name": "create",
|
163
341
|
"outputs": [
|
164
342
|
{
|
165
343
|
"internalType": "NftId",
|
@@ -170,6 +348,19 @@
|
|
170
348
|
"stateMutability": "nonpayable",
|
171
349
|
"type": "function"
|
172
350
|
},
|
351
|
+
{
|
352
|
+
"inputs": [],
|
353
|
+
"name": "getDomain",
|
354
|
+
"outputs": [
|
355
|
+
{
|
356
|
+
"internalType": "ObjectType",
|
357
|
+
"name": "serviceDomain",
|
358
|
+
"type": "uint8"
|
359
|
+
}
|
360
|
+
],
|
361
|
+
"stateMutability": "pure",
|
362
|
+
"type": "function"
|
363
|
+
},
|
173
364
|
{
|
174
365
|
"inputs": [],
|
175
366
|
"name": "getInitialInfo",
|
@@ -215,55 +406,11 @@
|
|
215
406
|
"internalType": "struct IRegistry.ObjectInfo",
|
216
407
|
"name": "",
|
217
408
|
"type": "tuple"
|
218
|
-
},
|
219
|
-
{
|
220
|
-
"internalType": "bytes",
|
221
|
-
"name": "data",
|
222
|
-
"type": "bytes"
|
223
|
-
}
|
224
|
-
],
|
225
|
-
"stateMutability": "view",
|
226
|
-
"type": "function"
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"inputs": [],
|
230
|
-
"name": "getInitializedVersion",
|
231
|
-
"outputs": [
|
232
|
-
{
|
233
|
-
"internalType": "uint64",
|
234
|
-
"name": "",
|
235
|
-
"type": "uint64"
|
236
|
-
}
|
237
|
-
],
|
238
|
-
"stateMutability": "view",
|
239
|
-
"type": "function"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"inputs": [],
|
243
|
-
"name": "getMajorVersion",
|
244
|
-
"outputs": [
|
245
|
-
{
|
246
|
-
"internalType": "VersionPart",
|
247
|
-
"name": "majorVersion",
|
248
|
-
"type": "uint8"
|
249
409
|
}
|
250
410
|
],
|
251
411
|
"stateMutability": "view",
|
252
412
|
"type": "function"
|
253
413
|
},
|
254
|
-
{
|
255
|
-
"inputs": [],
|
256
|
-
"name": "getName",
|
257
|
-
"outputs": [
|
258
|
-
{
|
259
|
-
"internalType": "string",
|
260
|
-
"name": "name",
|
261
|
-
"type": "string"
|
262
|
-
}
|
263
|
-
],
|
264
|
-
"stateMutability": "pure",
|
265
|
-
"type": "function"
|
266
|
-
},
|
267
414
|
{
|
268
415
|
"inputs": [],
|
269
416
|
"name": "getNftId",
|
@@ -316,91 +463,8 @@
|
|
316
463
|
"stateMutability": "pure",
|
317
464
|
"type": "function"
|
318
465
|
},
|
319
|
-
{
|
320
|
-
"inputs": [
|
321
|
-
{
|
322
|
-
"internalType": "uint256",
|
323
|
-
"name": "index",
|
324
|
-
"type": "uint256"
|
325
|
-
}
|
326
|
-
],
|
327
|
-
"name": "getVersion",
|
328
|
-
"outputs": [
|
329
|
-
{
|
330
|
-
"internalType": "Version",
|
331
|
-
"name": "version",
|
332
|
-
"type": "uint24"
|
333
|
-
}
|
334
|
-
],
|
335
|
-
"stateMutability": "view",
|
336
|
-
"type": "function"
|
337
|
-
},
|
338
|
-
{
|
339
|
-
"inputs": [],
|
340
|
-
"name": "getVersionCount",
|
341
|
-
"outputs": [
|
342
|
-
{
|
343
|
-
"internalType": "uint256",
|
344
|
-
"name": "numberOfVersions",
|
345
|
-
"type": "uint256"
|
346
|
-
}
|
347
|
-
],
|
348
|
-
"stateMutability": "view",
|
349
|
-
"type": "function"
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"inputs": [
|
353
|
-
{
|
354
|
-
"internalType": "Version",
|
355
|
-
"name": "version",
|
356
|
-
"type": "uint24"
|
357
|
-
}
|
358
|
-
],
|
359
|
-
"name": "getVersionInfo",
|
360
|
-
"outputs": [
|
361
|
-
{
|
362
|
-
"components": [
|
363
|
-
{
|
364
|
-
"internalType": "Version",
|
365
|
-
"name": "version",
|
366
|
-
"type": "uint24"
|
367
|
-
},
|
368
|
-
{
|
369
|
-
"internalType": "address",
|
370
|
-
"name": "implementation",
|
371
|
-
"type": "address"
|
372
|
-
},
|
373
|
-
{
|
374
|
-
"internalType": "address",
|
375
|
-
"name": "activatedBy",
|
376
|
-
"type": "address"
|
377
|
-
},
|
378
|
-
{
|
379
|
-
"internalType": "Timestamp",
|
380
|
-
"name": "activatedAt",
|
381
|
-
"type": "uint40"
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"internalType": "Blocknumber",
|
385
|
-
"name": "activatedIn",
|
386
|
-
"type": "uint32"
|
387
|
-
}
|
388
|
-
],
|
389
|
-
"internalType": "struct IVersionable.VersionInfo",
|
390
|
-
"name": "versionInfo",
|
391
|
-
"type": "tuple"
|
392
|
-
}
|
393
|
-
],
|
394
|
-
"stateMutability": "view",
|
395
|
-
"type": "function"
|
396
|
-
},
|
397
466
|
{
|
398
467
|
"inputs": [
|
399
|
-
{
|
400
|
-
"internalType": "address",
|
401
|
-
"name": "implementation",
|
402
|
-
"type": "address"
|
403
|
-
},
|
404
468
|
{
|
405
469
|
"internalType": "address",
|
406
470
|
"name": "activatedBy",
|
@@ -412,25 +476,19 @@
|
|
412
476
|
"type": "bytes"
|
413
477
|
}
|
414
478
|
],
|
415
|
-
"name": "
|
479
|
+
"name": "initializeVersionable",
|
416
480
|
"outputs": [],
|
417
481
|
"stateMutability": "nonpayable",
|
418
482
|
"type": "function"
|
419
483
|
},
|
420
484
|
{
|
421
|
-
"inputs": [
|
422
|
-
|
423
|
-
"internalType": "Version",
|
424
|
-
"name": "version",
|
425
|
-
"type": "uint24"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "isInitialized",
|
485
|
+
"inputs": [],
|
486
|
+
"name": "isConsumingScheduledOp",
|
429
487
|
"outputs": [
|
430
488
|
{
|
431
|
-
"internalType": "
|
489
|
+
"internalType": "bytes4",
|
432
490
|
"name": "",
|
433
|
-
"type": "
|
491
|
+
"type": "bytes4"
|
434
492
|
}
|
435
493
|
],
|
436
494
|
"stateMutability": "view",
|
@@ -451,37 +509,35 @@
|
|
451
509
|
"type": "uint96"
|
452
510
|
}
|
453
511
|
],
|
454
|
-
"name": "
|
512
|
+
"name": "lock",
|
455
513
|
"outputs": [],
|
456
514
|
"stateMutability": "nonpayable",
|
457
515
|
"type": "function"
|
458
516
|
},
|
459
517
|
{
|
460
518
|
"inputs": [
|
519
|
+
{
|
520
|
+
"internalType": "contract IInstance",
|
521
|
+
"name": "instance",
|
522
|
+
"type": "address"
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"internalType": "NftId",
|
526
|
+
"name": "policyNftId",
|
527
|
+
"type": "uint96"
|
528
|
+
},
|
461
529
|
{
|
462
530
|
"internalType": "NftId",
|
463
531
|
"name": "bundleNftId",
|
464
532
|
"type": "uint96"
|
465
533
|
},
|
466
534
|
{
|
467
|
-
"
|
468
|
-
|
469
|
-
|
470
|
-
"name": "fractionalFee",
|
471
|
-
"type": "uint256"
|
472
|
-
},
|
473
|
-
{
|
474
|
-
"internalType": "uint256",
|
475
|
-
"name": "fixedFee",
|
476
|
-
"type": "uint256"
|
477
|
-
}
|
478
|
-
],
|
479
|
-
"internalType": "struct Fee",
|
480
|
-
"name": "fee",
|
481
|
-
"type": "tuple"
|
535
|
+
"internalType": "Amount",
|
536
|
+
"name": "collateralAmount",
|
537
|
+
"type": "uint96"
|
482
538
|
}
|
483
539
|
],
|
484
|
-
"name": "
|
540
|
+
"name": "lockCollateral",
|
485
541
|
"outputs": [],
|
486
542
|
"stateMutability": "nonpayable",
|
487
543
|
"type": "function"
|
@@ -489,38 +545,50 @@
|
|
489
545
|
{
|
490
546
|
"inputs": [
|
491
547
|
{
|
492
|
-
"
|
493
|
-
|
494
|
-
|
495
|
-
"name": "fractionalFee",
|
496
|
-
"type": "uint256"
|
497
|
-
},
|
498
|
-
{
|
499
|
-
"internalType": "uint256",
|
500
|
-
"name": "fixedFee",
|
501
|
-
"type": "uint256"
|
502
|
-
}
|
503
|
-
],
|
504
|
-
"internalType": "struct Fee",
|
505
|
-
"name": "poolFee",
|
506
|
-
"type": "tuple"
|
548
|
+
"internalType": "contract IInstance",
|
549
|
+
"name": "instance",
|
550
|
+
"type": "address"
|
507
551
|
},
|
508
552
|
{
|
509
|
-
"
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
"
|
522
|
-
|
523
|
-
|
553
|
+
"internalType": "NftId",
|
554
|
+
"name": "policyNftId",
|
555
|
+
"type": "uint96"
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"internalType": "NftId",
|
559
|
+
"name": "bundleNftId",
|
560
|
+
"type": "uint96"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"internalType": "Amount",
|
564
|
+
"name": "collateralAmount",
|
565
|
+
"type": "uint96"
|
566
|
+
}
|
567
|
+
],
|
568
|
+
"name": "releaseCollateral",
|
569
|
+
"outputs": [],
|
570
|
+
"stateMutability": "nonpayable",
|
571
|
+
"type": "function"
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"inputs": [
|
575
|
+
{
|
576
|
+
"internalType": "address",
|
577
|
+
"name": "",
|
578
|
+
"type": "address"
|
579
|
+
}
|
580
|
+
],
|
581
|
+
"name": "setAuthority",
|
582
|
+
"outputs": [],
|
583
|
+
"stateMutability": "nonpayable",
|
584
|
+
"type": "function"
|
585
|
+
},
|
586
|
+
{
|
587
|
+
"inputs": [
|
588
|
+
{
|
589
|
+
"internalType": "NftId",
|
590
|
+
"name": "bundleNftId",
|
591
|
+
"type": "uint96"
|
524
592
|
},
|
525
593
|
{
|
526
594
|
"components": [
|
@@ -536,11 +604,11 @@
|
|
536
604
|
}
|
537
605
|
],
|
538
606
|
"internalType": "struct Fee",
|
539
|
-
"name": "
|
607
|
+
"name": "fee",
|
540
608
|
"type": "tuple"
|
541
609
|
}
|
542
610
|
],
|
543
|
-
"name": "
|
611
|
+
"name": "setFee",
|
544
612
|
"outputs": [],
|
545
613
|
"stateMutability": "nonpayable",
|
546
614
|
"type": "function"
|
@@ -568,154 +636,42 @@
|
|
568
636
|
"inputs": [
|
569
637
|
{
|
570
638
|
"internalType": "contract IInstance",
|
571
|
-
"name": "
|
639
|
+
"name": "instance",
|
572
640
|
"type": "address"
|
573
641
|
},
|
574
642
|
{
|
575
643
|
"internalType": "NftId",
|
576
644
|
"name": "policyNftId",
|
577
645
|
"type": "uint96"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"internalType": "NftId",
|
581
|
-
"name": "bundleNftId",
|
582
|
-
"type": "uint96"
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"internalType": "uint256",
|
586
|
-
"name": "collateralAmount",
|
587
|
-
"type": "uint256"
|
588
|
-
},
|
589
|
-
{
|
590
|
-
"internalType": "uint256",
|
591
|
-
"name": "netPremium",
|
592
|
-
"type": "uint256"
|
593
|
-
}
|
594
|
-
],
|
595
|
-
"name": "underwritePolicy",
|
596
|
-
"outputs": [],
|
597
|
-
"stateMutability": "nonpayable",
|
598
|
-
"type": "function"
|
599
|
-
},
|
600
|
-
{
|
601
|
-
"inputs": [
|
602
|
-
{
|
603
|
-
"internalType": "NftId",
|
604
|
-
"name": "bundleNftId",
|
605
|
-
"type": "uint96"
|
606
646
|
}
|
607
647
|
],
|
608
|
-
"name": "
|
648
|
+
"name": "unlinkPolicy",
|
609
649
|
"outputs": [],
|
610
650
|
"stateMutability": "nonpayable",
|
611
651
|
"type": "function"
|
612
652
|
},
|
613
653
|
{
|
614
654
|
"inputs": [
|
615
|
-
{
|
616
|
-
"internalType": "NftId",
|
617
|
-
"name": "instanceNftId",
|
618
|
-
"type": "uint96"
|
619
|
-
},
|
620
655
|
{
|
621
656
|
"internalType": "NftId",
|
622
657
|
"name": "bundleNftId",
|
623
658
|
"type": "uint96"
|
624
|
-
},
|
625
|
-
{
|
626
|
-
"components": [
|
627
|
-
{
|
628
|
-
"internalType": "NftId",
|
629
|
-
"name": "poolNftId",
|
630
|
-
"type": "uint96"
|
631
|
-
},
|
632
|
-
{
|
633
|
-
"components": [
|
634
|
-
{
|
635
|
-
"internalType": "UFixed",
|
636
|
-
"name": "fractionalFee",
|
637
|
-
"type": "uint256"
|
638
|
-
},
|
639
|
-
{
|
640
|
-
"internalType": "uint256",
|
641
|
-
"name": "fixedFee",
|
642
|
-
"type": "uint256"
|
643
|
-
}
|
644
|
-
],
|
645
|
-
"internalType": "struct Fee",
|
646
|
-
"name": "fee",
|
647
|
-
"type": "tuple"
|
648
|
-
},
|
649
|
-
{
|
650
|
-
"internalType": "bytes",
|
651
|
-
"name": "filter",
|
652
|
-
"type": "bytes"
|
653
|
-
},
|
654
|
-
{
|
655
|
-
"internalType": "uint256",
|
656
|
-
"name": "capitalAmount",
|
657
|
-
"type": "uint256"
|
658
|
-
},
|
659
|
-
{
|
660
|
-
"internalType": "uint256",
|
661
|
-
"name": "lockedAmount",
|
662
|
-
"type": "uint256"
|
663
|
-
},
|
664
|
-
{
|
665
|
-
"internalType": "uint256",
|
666
|
-
"name": "balanceAmount",
|
667
|
-
"type": "uint256"
|
668
|
-
},
|
669
|
-
{
|
670
|
-
"internalType": "uint256",
|
671
|
-
"name": "lifetime",
|
672
|
-
"type": "uint256"
|
673
|
-
},
|
674
|
-
{
|
675
|
-
"internalType": "Timestamp",
|
676
|
-
"name": "expiredAt",
|
677
|
-
"type": "uint40"
|
678
|
-
},
|
679
|
-
{
|
680
|
-
"internalType": "Timestamp",
|
681
|
-
"name": "closedAt",
|
682
|
-
"type": "uint40"
|
683
|
-
}
|
684
|
-
],
|
685
|
-
"internalType": "struct IBundle.BundleInfo",
|
686
|
-
"name": "bundleInfo",
|
687
|
-
"type": "tuple"
|
688
|
-
},
|
689
|
-
{
|
690
|
-
"internalType": "StateId",
|
691
|
-
"name": "state",
|
692
|
-
"type": "uint8"
|
693
659
|
}
|
694
660
|
],
|
695
|
-
"name": "
|
661
|
+
"name": "unlock",
|
696
662
|
"outputs": [],
|
697
663
|
"stateMutability": "nonpayable",
|
698
664
|
"type": "function"
|
699
665
|
},
|
700
666
|
{
|
701
667
|
"inputs": [
|
702
|
-
{
|
703
|
-
"internalType": "address",
|
704
|
-
"name": "implementation",
|
705
|
-
"type": "address"
|
706
|
-
},
|
707
|
-
{
|
708
|
-
"internalType": "address",
|
709
|
-
"name": "activatedBy",
|
710
|
-
"type": "address"
|
711
|
-
},
|
712
668
|
{
|
713
669
|
"internalType": "bytes",
|
714
670
|
"name": "upgradeData",
|
715
671
|
"type": "bytes"
|
716
672
|
}
|
717
673
|
],
|
718
|
-
"name": "
|
674
|
+
"name": "upgradeVersionable",
|
719
675
|
"outputs": [],
|
720
676
|
"stateMutability": "nonpayable",
|
721
677
|
"type": "function"
|