@etherisc/gif-next 0.0.2-ecbd488-936 → 0.0.2-ed1536c-164
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +71 -14
- 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 +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +415 -776
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +356 -176
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +458 -3065
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +612 -181
- 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 +504 -322
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +510 -378
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +330 -123
- 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/{AccessManagedSimple.sol/AccessManagedSimple.json → base/Cloneable.sol/Cloneable.json} +91 -2
- 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/IProductService.sol/IProductService.json → pool/IBundleService.sol/IBundleService.json} +294 -349
- 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/product/IPolicyService.sol/IPolicyService.json +701 -0
- package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IPricingService.sol/IPricingService.json} +257 -288
- 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/BaseComponent.sol/BaseComponent.json → product/IProductService.sol/IProductService.json} +140 -86
- 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 +389 -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 +488 -182
- 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 -132
- 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} +196 -216
- 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/shared/IComponent.sol/IComponent.json +625 -0
- 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/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +50 -1
- 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/type/NftIdSet.sol/LibNftIdSet.json +33 -0
- 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 +126 -0
- package/contracts/instance/IInstance.sol +60 -31
- package/contracts/instance/IInstanceService.sol +66 -13
- package/contracts/instance/Instance.sol +149 -364
- package/contracts/instance/InstanceAccessManager.sol +432 -177
- package/contracts/instance/InstanceAuthorizationsLib.sol +336 -0
- package/contracts/instance/InstanceReader.sol +143 -83
- package/contracts/instance/InstanceService.sol +313 -141
- 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/base/Cloneable.sol +51 -0
- package/contracts/instance/base/ObjectManager.sol +82 -0
- 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 +76 -30
- package/contracts/registry/IRegistryService.sol +46 -28
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +369 -235
- 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/type/NftIdSet.sol +62 -0
- 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 -618
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
- 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 -249
- 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 -782
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
- package/artifacts/contracts/components/Product.sol/Product.json +0 -719
- 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/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
- 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 -716
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -444
- 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/IPoolService.sol/IPoolService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -839
- 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 -1046
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -448
- 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/NftIdSet.sol/LibNftIdSet.json +0 -10
- 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 -91
- package/contracts/components/Distribution.sol +0 -159
- package/contracts/components/IBaseComponent.sol +0 -25
- package/contracts/components/IDistributionComponent.sol +0 -44
- package/contracts/components/IPoolComponent.sol +0 -62
- package/contracts/components/IProductComponent.sol +0 -35
- package/contracts/components/Pool.sol +0 -242
- package/contracts/components/Product.sol +0 -284
- package/contracts/experiment/cloning/Cloner.sol +0 -47
- package/contracts/experiment/errors/Require.sol +0 -38
- package/contracts/experiment/errors/Revert.sol +0 -44
- package/contracts/experiment/inheritance/A.sol +0 -53
- package/contracts/experiment/inheritance/B.sol +0 -28
- package/contracts/experiment/inheritance/C.sol +0 -34
- package/contracts/experiment/inheritance/IA.sol +0 -13
- package/contracts/experiment/inheritance/IB.sol +0 -10
- package/contracts/experiment/inheritance/IC.sol +0 -12
- package/contracts/experiment/statemachine/Dummy.sol +0 -27
- package/contracts/experiment/statemachine/ISM.sol +0 -25
- package/contracts/experiment/statemachine/SM.sol +0 -57
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
- package/contracts/experiment/types/TypeA.sol +0 -47
- package/contracts/experiment/types/TypeB.sol +0 -29
- package/contracts/instance/AccessManagedSimple.sol +0 -115
- package/contracts/instance/AccessManagerSimple.sol +0 -692
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -124
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/base/KeyValueStore.sol +0 -172
- package/contracts/instance/module/ISetup.sol +0 -44
- package/contracts/instance/module/ITreasury.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/DistributionService.sol +0 -88
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/instance/service/IDistributionService.sol +0 -12
- package/contracts/instance/service/IPoolService.sol +0 -37
- package/contracts/instance/service/IProductService.sol +0 -107
- package/contracts/instance/service/PoolService.sol +0 -194
- package/contracts/instance/service/PoolServiceManager.sol +0 -54
- package/contracts/instance/service/ProductService.sol +0 -543
- 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/NftIdSet.sol +0 -60
- package/contracts/types/NumberId.sol +0 -52
- package/contracts/types/RoleId.sol +0 -90
- /package/contracts/{types → type}/AddressSet.sol +0 -0
- /package/contracts/{types → type}/Key32.sol +0 -0
- /package/contracts/{types → type}/RiskId.sol +0 -0
@@ -0,0 +1,494 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "TargetManagerLib",
|
4
|
+
"sourceName": "contracts/staking/TargetManagerLib.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "NftId",
|
10
|
+
"name": "targetNftId",
|
11
|
+
"type": "uint96"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "Seconds",
|
15
|
+
"name": "maxLockingPeriod",
|
16
|
+
"type": "uint40"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"internalType": "Seconds",
|
20
|
+
"name": "lockingPeriod",
|
21
|
+
"type": "uint40"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"name": "ErrorStakingLockingPeriodTooLong",
|
25
|
+
"type": "error"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"inputs": [
|
29
|
+
{
|
30
|
+
"internalType": "NftId",
|
31
|
+
"name": "targetNftId",
|
32
|
+
"type": "uint96"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"name": "ErrorStakingLockingPeriodZero",
|
36
|
+
"type": "error"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"inputs": [
|
40
|
+
{
|
41
|
+
"internalType": "NftId",
|
42
|
+
"name": "targetNftId",
|
43
|
+
"type": "uint96"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"internalType": "UFixed",
|
47
|
+
"name": "maxRewardRate",
|
48
|
+
"type": "uint256"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"internalType": "UFixed",
|
52
|
+
"name": "rewardRate",
|
53
|
+
"type": "uint256"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"name": "ErrorStakingRewardRateTooHigh",
|
57
|
+
"type": "error"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"inputs": [
|
61
|
+
{
|
62
|
+
"internalType": "NftId",
|
63
|
+
"name": "targetNftId",
|
64
|
+
"type": "uint96"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"name": "ErrorStakingTargetAlreadyRegistered",
|
68
|
+
"type": "error"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"inputs": [],
|
72
|
+
"name": "ErrorStakingTargetNftIdZero",
|
73
|
+
"type": "error"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"inputs": [
|
77
|
+
{
|
78
|
+
"internalType": "NftId",
|
79
|
+
"name": "targetNftId",
|
80
|
+
"type": "uint96"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"name": "ErrorStakingTargetNotFound",
|
84
|
+
"type": "error"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"inputs": [
|
88
|
+
{
|
89
|
+
"internalType": "NftId",
|
90
|
+
"name": "targetNftId",
|
91
|
+
"type": "uint96"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"internalType": "ObjectType",
|
95
|
+
"name": "objectType",
|
96
|
+
"type": "uint8"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"name": "ErrorStakingTargetTypeNotSupported",
|
100
|
+
"type": "error"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"inputs": [
|
104
|
+
{
|
105
|
+
"internalType": "NftId",
|
106
|
+
"name": "targetNftId",
|
107
|
+
"type": "uint96"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"internalType": "ObjectType",
|
111
|
+
"name": "expectedObjectType",
|
112
|
+
"type": "uint8"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"internalType": "ObjectType",
|
116
|
+
"name": "actualObjectType",
|
117
|
+
"type": "uint8"
|
118
|
+
}
|
119
|
+
],
|
120
|
+
"name": "ErrorStakingTargetUnexpectedObjectType",
|
121
|
+
"type": "error"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"inputs": [
|
125
|
+
{
|
126
|
+
"internalType": "NftId",
|
127
|
+
"name": "targetNftId",
|
128
|
+
"type": "uint96"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"internalType": "Seconds",
|
132
|
+
"name": "lockingPeriod",
|
133
|
+
"type": "uint40"
|
134
|
+
}
|
135
|
+
],
|
136
|
+
"name": "checkLockingPeriod",
|
137
|
+
"outputs": [],
|
138
|
+
"stateMutability": "pure",
|
139
|
+
"type": "function"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "NftId",
|
145
|
+
"name": "targetNftId",
|
146
|
+
"type": "uint96"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "UFixed",
|
150
|
+
"name": "rewardRate",
|
151
|
+
"type": "uint256"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "checkRewardRate",
|
155
|
+
"outputs": [],
|
156
|
+
"stateMutability": "pure",
|
157
|
+
"type": "function"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"inputs": [
|
161
|
+
{
|
162
|
+
"internalType": "contract IRegistry",
|
163
|
+
"name": "registry",
|
164
|
+
"type": "IRegistry"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"internalType": "contract StakingReader",
|
168
|
+
"name": "stakingReader",
|
169
|
+
"type": "StakingReader"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"internalType": "NftId",
|
173
|
+
"name": "targetNftId",
|
174
|
+
"type": "uint96"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"internalType": "ObjectType",
|
178
|
+
"name": "expectedObjectType",
|
179
|
+
"type": "uint8"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"internalType": "Seconds",
|
183
|
+
"name": "initialLockingPeriod",
|
184
|
+
"type": "uint40"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"internalType": "UFixed",
|
188
|
+
"name": "initialRewardRate",
|
189
|
+
"type": "uint256"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"name": "checkTargetParameters",
|
193
|
+
"outputs": [],
|
194
|
+
"stateMutability": "view",
|
195
|
+
"type": "function"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"inputs": [],
|
199
|
+
"name": "getDefaultLockingPeriod",
|
200
|
+
"outputs": [
|
201
|
+
{
|
202
|
+
"internalType": "Seconds",
|
203
|
+
"name": "maxLockingPeriod",
|
204
|
+
"type": "uint40"
|
205
|
+
}
|
206
|
+
],
|
207
|
+
"stateMutability": "pure",
|
208
|
+
"type": "function"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"inputs": [],
|
212
|
+
"name": "getDefaultRewardRate",
|
213
|
+
"outputs": [
|
214
|
+
{
|
215
|
+
"internalType": "UFixed",
|
216
|
+
"name": "defaultRewardRate",
|
217
|
+
"type": "uint256"
|
218
|
+
}
|
219
|
+
],
|
220
|
+
"stateMutability": "pure",
|
221
|
+
"type": "function"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"inputs": [],
|
225
|
+
"name": "getMaxLockingPeriod",
|
226
|
+
"outputs": [
|
227
|
+
{
|
228
|
+
"internalType": "Seconds",
|
229
|
+
"name": "maxLockingPeriod",
|
230
|
+
"type": "uint40"
|
231
|
+
}
|
232
|
+
],
|
233
|
+
"stateMutability": "pure",
|
234
|
+
"type": "function"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"inputs": [],
|
238
|
+
"name": "getMaxRewardRate",
|
239
|
+
"outputs": [
|
240
|
+
{
|
241
|
+
"internalType": "UFixed",
|
242
|
+
"name": "maxRewardRate",
|
243
|
+
"type": "uint256"
|
244
|
+
}
|
245
|
+
],
|
246
|
+
"stateMutability": "pure",
|
247
|
+
"type": "function"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"inputs": [
|
251
|
+
{
|
252
|
+
"internalType": "ObjectType",
|
253
|
+
"name": "objectType",
|
254
|
+
"type": "uint8"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
"name": "isTargetTypeSupported",
|
258
|
+
"outputs": [
|
259
|
+
{
|
260
|
+
"internalType": "bool",
|
261
|
+
"name": "isSupported",
|
262
|
+
"type": "bool"
|
263
|
+
}
|
264
|
+
],
|
265
|
+
"stateMutability": "pure",
|
266
|
+
"type": "function"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"inputs": [
|
270
|
+
{
|
271
|
+
"internalType": "NftId",
|
272
|
+
"name": "targetNftId",
|
273
|
+
"type": "uint96"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"name": "toTargetKey",
|
277
|
+
"outputs": [
|
278
|
+
{
|
279
|
+
"internalType": "Key32",
|
280
|
+
"name": "targetKey",
|
281
|
+
"type": "bytes32"
|
282
|
+
}
|
283
|
+
],
|
284
|
+
"stateMutability": "pure",
|
285
|
+
"type": "function"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"inputs": [
|
289
|
+
{
|
290
|
+
"internalType": "contract IStaking",
|
291
|
+
"name": "staking",
|
292
|
+
"type": "IStaking"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"internalType": "NftId",
|
296
|
+
"name": "targetNftId",
|
297
|
+
"type": "uint96"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "Seconds",
|
301
|
+
"name": "lockingPeriod",
|
302
|
+
"type": "uint40"
|
303
|
+
}
|
304
|
+
],
|
305
|
+
"name": "updateLockingPeriod",
|
306
|
+
"outputs": [
|
307
|
+
{
|
308
|
+
"internalType": "Seconds",
|
309
|
+
"name": "oldLockingPeriod",
|
310
|
+
"type": "uint40"
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"components": [
|
314
|
+
{
|
315
|
+
"internalType": "ObjectType",
|
316
|
+
"name": "objectType",
|
317
|
+
"type": "uint8"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"internalType": "uint256",
|
321
|
+
"name": "chainId",
|
322
|
+
"type": "uint256"
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"internalType": "Seconds",
|
326
|
+
"name": "lockingPeriod",
|
327
|
+
"type": "uint40"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"internalType": "UFixed",
|
331
|
+
"name": "rewardRate",
|
332
|
+
"type": "uint256"
|
333
|
+
}
|
334
|
+
],
|
335
|
+
"internalType": "struct IStaking.TargetInfo",
|
336
|
+
"name": "targetInfo",
|
337
|
+
"type": "tuple"
|
338
|
+
}
|
339
|
+
],
|
340
|
+
"stateMutability": "view",
|
341
|
+
"type": "function"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"inputs": [
|
345
|
+
{
|
346
|
+
"internalType": "contract IStaking",
|
347
|
+
"name": "staking",
|
348
|
+
"type": "IStaking"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"internalType": "NftId",
|
352
|
+
"name": "targetNftId",
|
353
|
+
"type": "uint96"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"internalType": "UFixed",
|
357
|
+
"name": "rewardRate",
|
358
|
+
"type": "uint256"
|
359
|
+
}
|
360
|
+
],
|
361
|
+
"name": "updateRewardRate",
|
362
|
+
"outputs": [
|
363
|
+
{
|
364
|
+
"internalType": "UFixed",
|
365
|
+
"name": "oldRewardRate",
|
366
|
+
"type": "uint256"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"components": [
|
370
|
+
{
|
371
|
+
"internalType": "ObjectType",
|
372
|
+
"name": "objectType",
|
373
|
+
"type": "uint8"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "uint256",
|
377
|
+
"name": "chainId",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "Seconds",
|
382
|
+
"name": "lockingPeriod",
|
383
|
+
"type": "uint40"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"internalType": "UFixed",
|
387
|
+
"name": "rewardRate",
|
388
|
+
"type": "uint256"
|
389
|
+
}
|
390
|
+
],
|
391
|
+
"internalType": "struct IStaking.TargetInfo",
|
392
|
+
"name": "targetInfo",
|
393
|
+
"type": "tuple"
|
394
|
+
}
|
395
|
+
],
|
396
|
+
"stateMutability": "view",
|
397
|
+
"type": "function"
|
398
|
+
}
|
399
|
+
],
|
400
|
+
"bytecode": "0x6111d661003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100b35760003560e01c8063aea958cf1161007b578063aea958cf1461013c578063bf381be61461014f578063c6edc3dd14610170578063da86eb8014610178578063e8e7a2b41461018b578063f87bf373146101ac57600080fd5b80633e7964a1146100b8578063504a473d146100db5780635bcf927a146100fc578063658501a61461011f5780639ed616cd14610127575b600080fd5b6100c06101b4565b60405164ffffffffff90911681526020015b60405180910390f35b6100ee6100e9366004610c5f565b610234565b6040519081526020016100d2565b61010f61010a366004610c8b565b6102d2565b60405190151581526020016100d2565b6100ee610313565b61013a610135366004610cd0565b610393565b005b61013a61014a366004610d49565b61067c565b61016261015d366004610d75565b6106cf565b6040516100d2929190610dc0565b6100c061088b565b61013a610186366004610e06565b6108c8565b61019e610199366004610e3f565b6109c4565b6040516100d2929190610e80565b6100ee610b78565b604051630319d08b60e21b81526309660180600482015260009073__$71e292c09eace9601b3e21e68a1278917a$__90630c67422c906024015b602060405180830381865af415801561020b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190610ebf565b905090565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416601e6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af41580156102a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cc9190610edc565b92915050565b60006102e682600a5b60ff90811691161490565b156102f357506001919050565b6102fe8260466102db565b1561030b57506001919050565b506000919050565b604051631488c84560e01b815260216004820152600119602482015260009073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c845906044015b602060405180830381865af415801561036f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190610edc565b604051630a4d29dd60e31b81526001600160601b038516600482015273__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af41580156103eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040f9190610f0a565b1561042d5760405163019dbc4d60e31b815260040160405180910390fd5b60405163134fc55b60e11b81526001600160601b03851660048201526001600160a01b0386169063269f8ab690602401602060405180830381865afa15801561047a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049e9190610f0a565b156104cc57604051638bf515e960e01b81526001600160601b03851660048201526024015b60405180910390fd5b6104d5836102d2565b61050657604051632778739960e11b81526001600160601b038516600482015260ff841660248201526044016104c3565b61051084836108c8565b61051a848261067c565b60405163e74d052f60e01b81526001600160601b03851660048201526001600160a01b0387169063e74d052f90602401602060405180830381865afa158015610567573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058b9190610f0a565b6105b35760405163686c563560e11b81526001600160601b03851660048201526024016104c3565b6040516305247a1760e51b81526001600160601b03851660048201526000906001600160a01b0388169063a48f42e090602401600060405180830381865afa158015610603573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261062b919081019061103b565b60400151905060ff808216908516146106735760405163e3c5e85760e01b81526001600160601b038616600482015260ff8086166024830152821660448201526064016104c3565b50505050505050565b61068c81610688610313565b1090565b156106cb578161069a610313565b604051637eed2aab60e01b81526001600160601b0390921660048301526024820152604481018290526064016104c3565b5050565b60408051608081018252600080825260208201819052918101829052606081018290526000856001600160a01b0316636291423a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610732573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610756919061110e565b60405163134fc55b60e11b81526001600160601b03871660048201529091506001600160a01b0382169063269f8ab690602401602060405180830381865afa1580156107a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ca9190610f0a565b6107f25760405163686c563560e11b81526001600160601b03861660048201526024016104c3565b6107fc85856108c8565b60405163153d412560e31b81526001600160601b03861660048201526001600160a01b0382169063a9ea092890602401608060405180830381865afa158015610849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086d919061112b565b60408101805164ffffffffff90961690529396939550929350505050565b604051630319d08b60e21b815262f099c0600482015260009073__$71e292c09eace9601b3e21e68a1278917a$__90630c67422c906024016101ee565b60405163790a38ad60e01b815264ffffffffff8216600482015273__$71e292c09eace9601b3e21e68a1278917a$__9063790a38ad90602401602060405180830381865af415801561091e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109429190610f0a565b1561096b5760405163b7c4528f60e01b81526001600160601b03831660048201526024016104c3565b61097c816109776101b4565b610bbb565b156106cb578161098a6101b4565b6040516316eec12960e31b81526001600160601b03909216600483015264ffffffffff9081166024830152821660448201526064016104c3565b60408051608081018252600080825260208201819052918101829052606081018290526000856001600160a01b0316636291423a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4b919061110e565b60405163134fc55b60e11b81526001600160601b03871660048201529091506001600160a01b0382169063269f8ab690602401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190610f0a565b610ae75760405163686c563560e11b81526001600160601b03861660048201526024016104c3565b610af1858561067c565b60405163153d412560e31b81526001600160601b03861660048201526001600160a01b0382169063a9ea092890602401608060405180830381865afa158015610b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b62919061112b565b6060810180519590529396939550929350505050565b604051631488c84560e01b815260056004820152600119602482015260009073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c84590604401610352565b6040516383ffcdef60e01b815264ffffffffff80841660048301528216602482015260009073__$71e292c09eace9601b3e21e68a1278917a$__906383ffcdef90604401602060405180830381865af4158015610c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c409190610f0a565b9392505050565b6001600160601b0381168114610c5c57600080fd5b50565b600060208284031215610c7157600080fd5b8135610c4081610c47565b60ff81168114610c5c57600080fd5b600060208284031215610c9d57600080fd5b8135610c4081610c7c565b6001600160a01b0381168114610c5c57600080fd5b64ffffffffff81168114610c5c57600080fd5b60008060008060008060c08789031215610ce957600080fd5b8635610cf481610ca8565b95506020870135610d0481610ca8565b94506040870135610d1481610c47565b93506060870135610d2481610c7c565b92506080870135610d3481610cbd565b8092505060a087013590509295509295509295565b60008060408385031215610d5c57600080fd5b8235610d6781610c47565b946020939093013593505050565b600080600060608486031215610d8a57600080fd5b8335610d9581610ca8565b92506020840135610da581610c47565b91506040840135610db581610cbd565b809150509250925092565b64ffffffffff8316815260a08101610c40602083018460ff81511682526020810151602083015264ffffffffff6040820151166040830152606081015160608301525050565b60008060408385031215610e1957600080fd5b8235610e2481610c47565b91506020830135610e3481610cbd565b809150509250929050565b600080600060608486031215610e5457600080fd5b8335610e5f81610ca8565b92506020840135610e6f81610c47565b929592945050506040919091013590565b82815260a08101610c40602083018460ff81511682526020810151602083015264ffffffffff6040820151166040830152606081015160608301525050565b600060208284031215610ed157600080fd5b8151610c4081610cbd565b600060208284031215610eee57600080fd5b5051919050565b80518015158114610f0557600080fd5b919050565b600060208284031215610f1c57600080fd5b610c4082610ef5565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715610f5e57610f5e610f25565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610f8d57610f8d610f25565b604052919050565b8051610f0581610c47565b8051610f0581610c7c565b8051610f0581610ca8565b600082601f830112610fc757600080fd5b815167ffffffffffffffff811115610fe157610fe1610f25565b6020610ff5601f8301601f19168201610f64565b828152858284870101111561100957600080fd5b60005b8381101561102757858101830151828201840152820161100c565b506000928101909101919091529392505050565b60006020828403121561104d57600080fd5b815167ffffffffffffffff8082111561106557600080fd5b9083019060e0828603121561107957600080fd5b611081610f3b565b61108a83610f95565b815261109860208401610f95565b60208201526110a960408401610fa0565b60408201526110ba60608401610ef5565b60608201526110cb60808401610fab565b60808201526110dc60a08401610fab565b60a082015260c0830151828111156110f357600080fd5b6110ff87828601610fb6565b60c08301525095945050505050565b60006020828403121561112057600080fd5b8151610c4081610ca8565b60006080828403121561113d57600080fd5b6040516080810181811067ffffffffffffffff8211171561116057611160610f25565b604052825161116e81610c7c565b815260208381015190820152604083015161118881610cbd565b6040820152606092830151928101929092525091905056fea264697066735822122063e70775734b6d89ce6b2f29d483527c00f387f1b99789e60bdb24edea684c6664736f6c63430008140033",
|
401
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100b35760003560e01c8063aea958cf1161007b578063aea958cf1461013c578063bf381be61461014f578063c6edc3dd14610170578063da86eb8014610178578063e8e7a2b41461018b578063f87bf373146101ac57600080fd5b80633e7964a1146100b8578063504a473d146100db5780635bcf927a146100fc578063658501a61461011f5780639ed616cd14610127575b600080fd5b6100c06101b4565b60405164ffffffffff90911681526020015b60405180910390f35b6100ee6100e9366004610c5f565b610234565b6040519081526020016100d2565b61010f61010a366004610c8b565b6102d2565b60405190151581526020016100d2565b6100ee610313565b61013a610135366004610cd0565b610393565b005b61013a61014a366004610d49565b61067c565b61016261015d366004610d75565b6106cf565b6040516100d2929190610dc0565b6100c061088b565b61013a610186366004610e06565b6108c8565b61019e610199366004610e3f565b6109c4565b6040516100d2929190610e80565b6100ee610b78565b604051630319d08b60e21b81526309660180600482015260009073__$71e292c09eace9601b3e21e68a1278917a$__90630c67422c906024015b602060405180830381865af415801561020b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190610ebf565b905090565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416601e6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af41580156102a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cc9190610edc565b92915050565b60006102e682600a5b60ff90811691161490565b156102f357506001919050565b6102fe8260466102db565b1561030b57506001919050565b506000919050565b604051631488c84560e01b815260216004820152600119602482015260009073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c845906044015b602060405180830381865af415801561036f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190610edc565b604051630a4d29dd60e31b81526001600160601b038516600482015273__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af41580156103eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040f9190610f0a565b1561042d5760405163019dbc4d60e31b815260040160405180910390fd5b60405163134fc55b60e11b81526001600160601b03851660048201526001600160a01b0386169063269f8ab690602401602060405180830381865afa15801561047a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049e9190610f0a565b156104cc57604051638bf515e960e01b81526001600160601b03851660048201526024015b60405180910390fd5b6104d5836102d2565b61050657604051632778739960e11b81526001600160601b038516600482015260ff841660248201526044016104c3565b61051084836108c8565b61051a848261067c565b60405163e74d052f60e01b81526001600160601b03851660048201526001600160a01b0387169063e74d052f90602401602060405180830381865afa158015610567573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058b9190610f0a565b6105b35760405163686c563560e11b81526001600160601b03851660048201526024016104c3565b6040516305247a1760e51b81526001600160601b03851660048201526000906001600160a01b0388169063a48f42e090602401600060405180830381865afa158015610603573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261062b919081019061103b565b60400151905060ff808216908516146106735760405163e3c5e85760e01b81526001600160601b038616600482015260ff8086166024830152821660448201526064016104c3565b50505050505050565b61068c81610688610313565b1090565b156106cb578161069a610313565b604051637eed2aab60e01b81526001600160601b0390921660048301526024820152604481018290526064016104c3565b5050565b60408051608081018252600080825260208201819052918101829052606081018290526000856001600160a01b0316636291423a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610732573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610756919061110e565b60405163134fc55b60e11b81526001600160601b03871660048201529091506001600160a01b0382169063269f8ab690602401602060405180830381865afa1580156107a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ca9190610f0a565b6107f25760405163686c563560e11b81526001600160601b03861660048201526024016104c3565b6107fc85856108c8565b60405163153d412560e31b81526001600160601b03861660048201526001600160a01b0382169063a9ea092890602401608060405180830381865afa158015610849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086d919061112b565b60408101805164ffffffffff90961690529396939550929350505050565b604051630319d08b60e21b815262f099c0600482015260009073__$71e292c09eace9601b3e21e68a1278917a$__90630c67422c906024016101ee565b60405163790a38ad60e01b815264ffffffffff8216600482015273__$71e292c09eace9601b3e21e68a1278917a$__9063790a38ad90602401602060405180830381865af415801561091e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109429190610f0a565b1561096b5760405163b7c4528f60e01b81526001600160601b03831660048201526024016104c3565b61097c816109776101b4565b610bbb565b156106cb578161098a6101b4565b6040516316eec12960e31b81526001600160601b03909216600483015264ffffffffff9081166024830152821660448201526064016104c3565b60408051608081018252600080825260208201819052918101829052606081018290526000856001600160a01b0316636291423a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4b919061110e565b60405163134fc55b60e11b81526001600160601b03871660048201529091506001600160a01b0382169063269f8ab690602401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190610f0a565b610ae75760405163686c563560e11b81526001600160601b03861660048201526024016104c3565b610af1858561067c565b60405163153d412560e31b81526001600160601b03861660048201526001600160a01b0382169063a9ea092890602401608060405180830381865afa158015610b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b62919061112b565b6060810180519590529396939550929350505050565b604051631488c84560e01b815260056004820152600119602482015260009073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c84590604401610352565b6040516383ffcdef60e01b815264ffffffffff80841660048301528216602482015260009073__$71e292c09eace9601b3e21e68a1278917a$__906383ffcdef90604401602060405180830381865af4158015610c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c409190610f0a565b9392505050565b6001600160601b0381168114610c5c57600080fd5b50565b600060208284031215610c7157600080fd5b8135610c4081610c47565b60ff81168114610c5c57600080fd5b600060208284031215610c9d57600080fd5b8135610c4081610c7c565b6001600160a01b0381168114610c5c57600080fd5b64ffffffffff81168114610c5c57600080fd5b60008060008060008060c08789031215610ce957600080fd5b8635610cf481610ca8565b95506020870135610d0481610ca8565b94506040870135610d1481610c47565b93506060870135610d2481610c7c565b92506080870135610d3481610cbd565b8092505060a087013590509295509295509295565b60008060408385031215610d5c57600080fd5b8235610d6781610c47565b946020939093013593505050565b600080600060608486031215610d8a57600080fd5b8335610d9581610ca8565b92506020840135610da581610c47565b91506040840135610db581610cbd565b809150509250925092565b64ffffffffff8316815260a08101610c40602083018460ff81511682526020810151602083015264ffffffffff6040820151166040830152606081015160608301525050565b60008060408385031215610e1957600080fd5b8235610e2481610c47565b91506020830135610e3481610cbd565b809150509250929050565b600080600060608486031215610e5457600080fd5b8335610e5f81610ca8565b92506020840135610e6f81610c47565b929592945050506040919091013590565b82815260a08101610c40602083018460ff81511682526020810151602083015264ffffffffff6040820151166040830152606081015160608301525050565b600060208284031215610ed157600080fd5b8151610c4081610cbd565b600060208284031215610eee57600080fd5b5051919050565b80518015158114610f0557600080fd5b919050565b600060208284031215610f1c57600080fd5b610c4082610ef5565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715610f5e57610f5e610f25565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610f8d57610f8d610f25565b604052919050565b8051610f0581610c47565b8051610f0581610c7c565b8051610f0581610ca8565b600082601f830112610fc757600080fd5b815167ffffffffffffffff811115610fe157610fe1610f25565b6020610ff5601f8301601f19168201610f64565b828152858284870101111561100957600080fd5b60005b8381101561102757858101830151828201840152820161100c565b506000928101909101919091529392505050565b60006020828403121561104d57600080fd5b815167ffffffffffffffff8082111561106557600080fd5b9083019060e0828603121561107957600080fd5b611081610f3b565b61108a83610f95565b815261109860208401610f95565b60208201526110a960408401610fa0565b60408201526110ba60608401610ef5565b60608201526110cb60808401610fab565b60808201526110dc60a08401610fab565b60a082015260c0830151828111156110f357600080fd5b6110ff87828601610fb6565b60c08301525095945050505050565b60006020828403121561112057600080fd5b8151610c4081610ca8565b60006080828403121561113d57600080fd5b6040516080810181811067ffffffffffffffff8211171561116057611160610f25565b604052825161116e81610c7c565b815260208381015190820152604083015161118881610cbd565b6040820152606092830151928101929092525091905056fea264697066735822122063e70775734b6d89ce6b2f29d483527c00f387f1b99789e60bdb24edea684c6664736f6c63430008140033",
|
402
|
+
"linkReferences": {
|
403
|
+
"contracts/type/NftId.sol": {
|
404
|
+
"NftIdLib": [
|
405
|
+
{
|
406
|
+
"length": 20,
|
407
|
+
"start": 626
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"length": 20,
|
411
|
+
"start": 1003
|
412
|
+
}
|
413
|
+
]
|
414
|
+
},
|
415
|
+
"contracts/type/Seconds.sol": {
|
416
|
+
"SecondsLib": [
|
417
|
+
{
|
418
|
+
"length": 20,
|
419
|
+
"start": 522
|
420
|
+
},
|
421
|
+
{
|
422
|
+
"length": 20,
|
423
|
+
"start": 2272
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"length": 20,
|
427
|
+
"start": 2334
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"length": 20,
|
431
|
+
"start": 3100
|
432
|
+
}
|
433
|
+
]
|
434
|
+
},
|
435
|
+
"contracts/type/UFixed.sol": {
|
436
|
+
"UFixedLib": [
|
437
|
+
{
|
438
|
+
"length": 20,
|
439
|
+
"start": 878
|
440
|
+
},
|
441
|
+
{
|
442
|
+
"length": 20,
|
443
|
+
"start": 3027
|
444
|
+
}
|
445
|
+
]
|
446
|
+
}
|
447
|
+
},
|
448
|
+
"deployedLinkReferences": {
|
449
|
+
"contracts/type/NftId.sol": {
|
450
|
+
"NftIdLib": [
|
451
|
+
{
|
452
|
+
"length": 20,
|
453
|
+
"start": 568
|
454
|
+
},
|
455
|
+
{
|
456
|
+
"length": 20,
|
457
|
+
"start": 945
|
458
|
+
}
|
459
|
+
]
|
460
|
+
},
|
461
|
+
"contracts/type/Seconds.sol": {
|
462
|
+
"SecondsLib": [
|
463
|
+
{
|
464
|
+
"length": 20,
|
465
|
+
"start": 464
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"length": 20,
|
469
|
+
"start": 2214
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"length": 20,
|
473
|
+
"start": 2276
|
474
|
+
},
|
475
|
+
{
|
476
|
+
"length": 20,
|
477
|
+
"start": 3042
|
478
|
+
}
|
479
|
+
]
|
480
|
+
},
|
481
|
+
"contracts/type/UFixed.sol": {
|
482
|
+
"UFixedLib": [
|
483
|
+
{
|
484
|
+
"length": 20,
|
485
|
+
"start": 820
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"length": 20,
|
489
|
+
"start": 2969
|
490
|
+
}
|
491
|
+
]
|
492
|
+
}
|
493
|
+
}
|
494
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
3
|
"contractName": "LibAddressSet",
|
4
|
-
"sourceName": "contracts/
|
4
|
+
"sourceName": "contracts/type/AddressSet.sol",
|
5
5
|
"abi": [],
|
6
|
-
"bytecode": "
|
7
|
-
"deployedBytecode": "
|
6
|
+
"bytecode": "0x61042c61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806360a174941461007157806361f54352146100a65780638f78eb28146100d55780639fc5d958146100f5578063b06b9b8c14610115578063c01a867914610128575b600080fd5b81801561007d57600080fd5b5061009161008c366004610332565b610153565b60405190151581526020015b60405180910390f35b6100916100b4366004610332565b6001600160a01b031660009081526001919091016020526040902054151590565b6100e76100e336600461036e565b5490565b60405190815260200161009d565b81801561010157600080fd5b50610091610110366004610332565b61028b565b61009161012336600461036e565b541590565b61013b610136366004610387565b6102ff565b6040516001600160a01b03909116815260200161009d565b6001600160a01b0381166000908152600183016020526040812054801561027f5760006101816001836103a9565b8554909150600090610195906001906103a9565b90508181146102215760008660000182815481106101b5576101b56103ca565b60009182526020909120015487546001600160a01b03909116915081908890859081106101e4576101e46103ca565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815260018801909152604090208390555b8554869080610232576102326103e0565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038716825260018881019091526040822091909155935061028592505050565b60009150505b92915050565b6001600160a01b038116600090815260018301602052604081205481036102f757508154600180820184556000848152602080822090930180546001600160a01b0319166001600160a01b03861690811790915585549082528286019093526040902091909155610285565b506000610285565b6000826000018281548110610316576103166103ca565b6000918252602090912001546001600160a01b03169392505050565b6000806040838503121561034557600080fd5b8235915060208301356001600160a01b038116811461036357600080fd5b809150509250929050565b60006020828403121561038057600080fd5b5035919050565b6000806040838503121561039a57600080fd5b50508035926020909101359150565b8181038181111561028557634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea26469706673582212203bc8da38d0d370b4b340f201ae7d654fecc8ae75a4001a87929542d68f8039cf64736f6c63430008140033",
|
7
|
+
"deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806360a174941461007157806361f54352146100a65780638f78eb28146100d55780639fc5d958146100f5578063b06b9b8c14610115578063c01a867914610128575b600080fd5b81801561007d57600080fd5b5061009161008c366004610332565b610153565b60405190151581526020015b60405180910390f35b6100916100b4366004610332565b6001600160a01b031660009081526001919091016020526040902054151590565b6100e76100e336600461036e565b5490565b60405190815260200161009d565b81801561010157600080fd5b50610091610110366004610332565b61028b565b61009161012336600461036e565b541590565b61013b610136366004610387565b6102ff565b6040516001600160a01b03909116815260200161009d565b6001600160a01b0381166000908152600183016020526040812054801561027f5760006101816001836103a9565b8554909150600090610195906001906103a9565b90508181146102215760008660000182815481106101b5576101b56103ca565b60009182526020909120015487546001600160a01b03909116915081908890859081106101e4576101e46103ca565b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815260018801909152604090208390555b8554869080610232576102326103e0565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038716825260018881019091526040822091909155935061028592505050565b60009150505b92915050565b6001600160a01b038116600090815260018301602052604081205481036102f757508154600180820184556000848152602080822090930180546001600160a01b0319166001600160a01b03861690811790915585549082528286019093526040902091909155610285565b506000610285565b6000826000018281548110610316576103166103ca565b6000918252602090912001546001600160a01b03169392505050565b6000806040838503121561034557600080fd5b8235915060208301356001600160a01b038116811461036357600080fd5b809150509250929050565b60006020828403121561038057600080fd5b5035919050565b6000806040838503121561039a57600080fd5b50508035926020909101359150565b8181038181111561028557634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea26469706673582212203bc8da38d0d370b4b340f201ae7d654fecc8ae75a4001a87929542d68f8039cf64736f6c63430008140033",
|
8
8
|
"linkReferences": {},
|
9
9
|
"deployedLinkReferences": {}
|
10
10
|
}
|