@etherisc/gif-next 0.0.2-d2fd9d7-008 → 0.0.2-d30275e-758
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +28 -14
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +842 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +946 -219
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +846 -57
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +806 -243
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +632 -194
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -66
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +303 -1340
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +337 -168
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +439 -3102
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +609 -178
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +251 -270
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +457 -402
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +292 -131
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2663 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -27
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +277 -178
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +71 -45
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +902 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +649 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1326 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +725 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1072 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1022 -223
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +392 -79
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +235 -200
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +714 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +602 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +585 -160
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +969 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +536 -304
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → instance/service/IPricingService.sol/IPricingService.json} +248 -172
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +78 -388
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1575 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +741 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +832 -400
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +338 -93
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingService.sol/PricingService.json +988 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PricingServiceManager.sol/PricingServiceManager.json +689 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +289 -564
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +289 -124
- 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 +244 -133
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +149 -230
- 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 +257 -235
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +200 -335
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +298 -145
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -53
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.json +86 -172
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/Service.sol/Service.json +191 -163
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +210 -214
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -190
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
- package/artifacts/contracts/types/Amount.sol/AmountLib.json +209 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +38 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +204 -83
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -17
- package/contracts/components/IPoolComponent.sol +88 -41
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +217 -182
- package/contracts/components/Product.sol +248 -163
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +17 -20
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +57 -33
- package/contracts/instance/IInstanceService.sol +56 -9
- package/contracts/instance/Instance.sol +150 -367
- package/contracts/instance/InstanceAccessManager.sol +430 -177
- package/contracts/instance/InstanceAuthorizationsLib.sol +300 -0
- package/contracts/instance/InstanceReader.sol +44 -39
- package/contracts/instance/InstanceService.sol +243 -166
- package/contracts/instance/InstanceServiceManager.sol +6 -9
- package/contracts/instance/InstanceStore.sol +208 -0
- package/contracts/instance/ObjectManager.sol +11 -24
- package/contracts/instance/base/ComponentService.sol +148 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +23 -6
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +8 -5
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +41 -9
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +185 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +440 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +239 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +287 -33
- package/contracts/instance/service/DistributionServiceManager.sol +7 -10
- package/contracts/instance/service/IApplicationService.sol +61 -0
- package/contracts/instance/service/IBundleService.sol +102 -0
- package/contracts/instance/service/IClaimService.sol +92 -0
- package/contracts/instance/service/IDistributionService.sol +74 -1
- package/contracts/instance/service/IPolicyService.sol +139 -0
- package/contracts/instance/service/IPoolService.sol +76 -25
- package/contracts/instance/service/IPricingService.sol +36 -0
- package/contracts/instance/service/IProductService.sol +2 -72
- package/contracts/instance/service/PolicyService.sol +577 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +232 -183
- package/contracts/instance/service/PoolServiceManager.sol +6 -9
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +109 -469
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +39 -19
- package/contracts/registry/IRegistryService.sol +31 -13
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +243 -224
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +101 -173
- package/contracts/registry/RegistryServiceManager.sol +21 -39
- package/contracts/registry/ReleaseManager.sol +324 -0
- package/contracts/registry/TokenRegistry.sol +22 -17
- package/contracts/shared/ERC165.sol +14 -12
- package/contracts/shared/INftOwnable.sol +11 -10
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +4 -6
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +5 -4
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +66 -80
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -32
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +41 -24
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/shared/Versionable.sol +4 -92
- package/contracts/test/TestRegisterable.sol +1 -1
- package/contracts/test/TestService.sol +4 -3
- package/contracts/types/Amount.sol +70 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +75 -0
- package/contracts/types/DistributorType.sol +2 -2
- package/contracts/types/Fee.sol +13 -5
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +16 -7
- package/contracts/types/PayoutId.sol +82 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +26 -19
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +7 -2
- package/contracts/types/Timestamp.sol +18 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +0 -101
- 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/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -91
- package/contracts/components/IBaseComponent.sol +0 -25
- 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 -134
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json
CHANGED
@@ -7,16 +7,259 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
11
22
|
"type": "address"
|
12
23
|
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "caller",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorDistributionServiceCallerNotRegistered",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
57
|
+
{
|
58
|
+
"internalType": "address",
|
59
|
+
"name": "caller",
|
60
|
+
"type": "address"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"name": "ErrorIDistributionServiceCallerNotDistributor",
|
64
|
+
"type": "error"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"inputs": [
|
68
|
+
{
|
69
|
+
"internalType": "uint256",
|
70
|
+
"name": "commissionPercentage",
|
71
|
+
"type": "uint256"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"internalType": "uint256",
|
75
|
+
"name": "maxCommissionPercentage",
|
76
|
+
"type": "uint256"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"name": "ErrorIDistributionServiceCommissionTooHigh",
|
80
|
+
"type": "error"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [
|
84
|
+
{
|
85
|
+
"internalType": "uint256",
|
86
|
+
"name": "maxDiscountPercentage",
|
87
|
+
"type": "uint256"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"internalType": "uint256",
|
91
|
+
"name": "discountPercentage",
|
92
|
+
"type": "uint256"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"name": "ErrorIDistributionServiceDiscountTooHigh",
|
96
|
+
"type": "error"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"inputs": [
|
100
|
+
{
|
101
|
+
"internalType": "uint256",
|
102
|
+
"name": "minDiscountPercentage",
|
103
|
+
"type": "uint256"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"internalType": "uint256",
|
107
|
+
"name": "discountPercentage",
|
108
|
+
"type": "uint256"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"name": "ErrorIDistributionServiceDiscountTooLow",
|
112
|
+
"type": "error"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"inputs": [
|
116
|
+
{
|
117
|
+
"internalType": "Timestamp",
|
118
|
+
"name": "expiryAt",
|
119
|
+
"type": "uint40"
|
120
|
+
}
|
121
|
+
],
|
122
|
+
"name": "ErrorIDistributionServiceExpirationInvalid",
|
123
|
+
"type": "error"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"inputs": [
|
127
|
+
{
|
128
|
+
"internalType": "uint256",
|
129
|
+
"name": "maxReferralLifetime",
|
130
|
+
"type": "uint256"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"internalType": "uint256",
|
134
|
+
"name": "expiryAt",
|
135
|
+
"type": "uint256"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "ErrorIDistributionServiceExpiryTooLong",
|
139
|
+
"type": "error"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "uint256",
|
145
|
+
"name": "transferredDistributionFeeAmount",
|
146
|
+
"type": "uint256"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "uint256",
|
150
|
+
"name": "expectedDistributionFeeAmount",
|
151
|
+
"type": "uint256"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "ErrorIDistributionServiceInvalidFeeTransferred",
|
155
|
+
"type": "error"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"internalType": "string",
|
161
|
+
"name": "code",
|
162
|
+
"type": "string"
|
163
|
+
}
|
164
|
+
],
|
165
|
+
"name": "ErrorIDistributionServiceInvalidReferral",
|
166
|
+
"type": "error"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"inputs": [
|
170
|
+
{
|
171
|
+
"internalType": "ReferralId",
|
172
|
+
"name": "referralId",
|
173
|
+
"type": "bytes8"
|
174
|
+
}
|
175
|
+
],
|
176
|
+
"name": "ErrorIDistributionServiceInvalidReferralId",
|
177
|
+
"type": "error"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"inputs": [
|
181
|
+
{
|
182
|
+
"internalType": "uint256",
|
183
|
+
"name": "maxDiscountPercentage",
|
184
|
+
"type": "uint256"
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"internalType": "uint256",
|
188
|
+
"name": "limit",
|
189
|
+
"type": "uint256"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"name": "ErrorIDistributionServiceMaxDiscountTooHigh",
|
193
|
+
"type": "error"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"inputs": [
|
197
|
+
{
|
198
|
+
"internalType": "uint256",
|
199
|
+
"name": "maxReferrals",
|
200
|
+
"type": "uint256"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"name": "ErrorIDistributionServiceMaxReferralsExceeded",
|
204
|
+
"type": "error"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"inputs": [
|
208
|
+
{
|
209
|
+
"internalType": "uint256",
|
210
|
+
"name": "minFee",
|
211
|
+
"type": "uint256"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"internalType": "uint256",
|
215
|
+
"name": "limit",
|
216
|
+
"type": "uint256"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"name": "ErrorIDistributionServiceMinFeeTooHigh",
|
220
|
+
"type": "error"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"inputs": [
|
224
|
+
{
|
225
|
+
"internalType": "NftId",
|
226
|
+
"name": "nftId",
|
227
|
+
"type": "uint96"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"internalType": "NftId",
|
231
|
+
"name": "parentNftId",
|
232
|
+
"type": "uint96"
|
233
|
+
}
|
234
|
+
],
|
235
|
+
"name": "ErrorIDistributionServiceParentNftIdNotInstance",
|
236
|
+
"type": "error"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"inputs": [
|
240
|
+
{
|
241
|
+
"internalType": "NftId",
|
242
|
+
"name": "distributionNftId",
|
243
|
+
"type": "uint96"
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"internalType": "ReferralId",
|
247
|
+
"name": "referralId",
|
248
|
+
"type": "bytes8"
|
249
|
+
}
|
250
|
+
],
|
251
|
+
"name": "ErrorIDistributionServiceReferralInvalid",
|
252
|
+
"type": "error"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"inputs": [
|
13
256
|
{
|
14
257
|
"internalType": "NftId",
|
15
258
|
"name": "nftId",
|
16
259
|
"type": "uint96"
|
17
260
|
}
|
18
261
|
],
|
19
|
-
"name": "
|
262
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
20
263
|
"type": "error"
|
21
264
|
},
|
22
265
|
{
|
@@ -27,7 +270,12 @@
|
|
27
270
|
"type": "address"
|
28
271
|
}
|
29
272
|
],
|
30
|
-
"name": "
|
273
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
274
|
+
"type": "error"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"inputs": [],
|
278
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
31
279
|
"type": "error"
|
32
280
|
},
|
33
281
|
{
|
@@ -38,65 +286,190 @@
|
|
38
286
|
"type": "address"
|
39
287
|
}
|
40
288
|
],
|
41
|
-
"name": "
|
289
|
+
"name": "ErrorNftOwnableNotOwner",
|
42
290
|
"type": "error"
|
43
291
|
},
|
44
292
|
{
|
45
293
|
"inputs": [
|
46
294
|
{
|
47
|
-
"internalType": "address",
|
48
|
-
"name": "registryAddress",
|
49
|
-
"type": "address"
|
295
|
+
"internalType": "address",
|
296
|
+
"name": "registryAddress",
|
297
|
+
"type": "address"
|
298
|
+
}
|
299
|
+
],
|
300
|
+
"name": "ErrorNotRegistry",
|
301
|
+
"type": "error"
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"anonymous": false,
|
305
|
+
"inputs": [
|
306
|
+
{
|
307
|
+
"indexed": false,
|
308
|
+
"internalType": "address",
|
309
|
+
"name": "authority",
|
310
|
+
"type": "address"
|
311
|
+
}
|
312
|
+
],
|
313
|
+
"name": "AuthorityUpdated",
|
314
|
+
"type": "event"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"inputs": [],
|
318
|
+
"name": "authority",
|
319
|
+
"outputs": [
|
320
|
+
{
|
321
|
+
"internalType": "address",
|
322
|
+
"name": "",
|
323
|
+
"type": "address"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
"stateMutability": "view",
|
327
|
+
"type": "function"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"inputs": [
|
331
|
+
{
|
332
|
+
"internalType": "address",
|
333
|
+
"name": "distributor",
|
334
|
+
"type": "address"
|
335
|
+
},
|
336
|
+
{
|
337
|
+
"internalType": "DistributorType",
|
338
|
+
"name": "distributorType",
|
339
|
+
"type": "bytes8"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"internalType": "bytes",
|
343
|
+
"name": "data",
|
344
|
+
"type": "bytes"
|
345
|
+
}
|
346
|
+
],
|
347
|
+
"name": "createDistributor",
|
348
|
+
"outputs": [
|
349
|
+
{
|
350
|
+
"internalType": "NftId",
|
351
|
+
"name": "distributorNftId",
|
352
|
+
"type": "uint96"
|
353
|
+
}
|
354
|
+
],
|
355
|
+
"stateMutability": "nonpayable",
|
356
|
+
"type": "function"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"inputs": [
|
360
|
+
{
|
361
|
+
"internalType": "string",
|
362
|
+
"name": "name",
|
363
|
+
"type": "string"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"internalType": "UFixed",
|
367
|
+
"name": "minDiscountPercentage",
|
368
|
+
"type": "uint256"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "UFixed",
|
372
|
+
"name": "maxDiscountPercentage",
|
373
|
+
"type": "uint256"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "UFixed",
|
377
|
+
"name": "commissionPercentage",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "uint32",
|
382
|
+
"name": "maxReferralCount",
|
383
|
+
"type": "uint32"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"internalType": "uint32",
|
387
|
+
"name": "maxReferralLifetime",
|
388
|
+
"type": "uint32"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"internalType": "bool",
|
392
|
+
"name": "allowSelfReferrals",
|
393
|
+
"type": "bool"
|
394
|
+
},
|
395
|
+
{
|
396
|
+
"internalType": "bool",
|
397
|
+
"name": "allowRenewals",
|
398
|
+
"type": "bool"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"internalType": "bytes",
|
402
|
+
"name": "data",
|
403
|
+
"type": "bytes"
|
404
|
+
}
|
405
|
+
],
|
406
|
+
"name": "createDistributorType",
|
407
|
+
"outputs": [
|
408
|
+
{
|
409
|
+
"internalType": "DistributorType",
|
410
|
+
"name": "distributorType",
|
411
|
+
"type": "bytes8"
|
412
|
+
}
|
413
|
+
],
|
414
|
+
"stateMutability": "nonpayable",
|
415
|
+
"type": "function"
|
416
|
+
},
|
417
|
+
{
|
418
|
+
"inputs": [
|
419
|
+
{
|
420
|
+
"internalType": "NftId",
|
421
|
+
"name": "distributorNftId",
|
422
|
+
"type": "uint96"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"internalType": "string",
|
426
|
+
"name": "code",
|
427
|
+
"type": "string"
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"internalType": "UFixed",
|
431
|
+
"name": "discountPercentage",
|
432
|
+
"type": "uint256"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "uint32",
|
436
|
+
"name": "maxReferrals",
|
437
|
+
"type": "uint32"
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"internalType": "Timestamp",
|
441
|
+
"name": "expiryAt",
|
442
|
+
"type": "uint40"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"internalType": "bytes",
|
446
|
+
"name": "data",
|
447
|
+
"type": "bytes"
|
50
448
|
}
|
51
449
|
],
|
52
|
-
"name": "
|
53
|
-
"
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"inputs": [],
|
57
|
-
"name": "ErrorRegistryAddressZero",
|
58
|
-
"type": "error"
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"inputs": [
|
450
|
+
"name": "createReferral",
|
451
|
+
"outputs": [
|
62
452
|
{
|
63
|
-
"internalType": "
|
64
|
-
"name": "
|
65
|
-
"type": "
|
453
|
+
"internalType": "ReferralId",
|
454
|
+
"name": "referralId",
|
455
|
+
"type": "bytes8"
|
66
456
|
}
|
67
457
|
],
|
68
|
-
"
|
69
|
-
"type": "
|
458
|
+
"stateMutability": "nonpayable",
|
459
|
+
"type": "function"
|
70
460
|
},
|
71
461
|
{
|
72
462
|
"inputs": [],
|
73
|
-
"name": "
|
74
|
-
"
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"anonymous": false,
|
78
|
-
"inputs": [
|
79
|
-
{
|
80
|
-
"indexed": false,
|
81
|
-
"internalType": "Version",
|
82
|
-
"name": "version",
|
83
|
-
"type": "uint24"
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"indexed": false,
|
87
|
-
"internalType": "address",
|
88
|
-
"name": "implementation",
|
89
|
-
"type": "address"
|
90
|
-
},
|
463
|
+
"name": "getDomain",
|
464
|
+
"outputs": [
|
91
465
|
{
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"type": "address"
|
466
|
+
"internalType": "ObjectType",
|
467
|
+
"name": "serviceDomain",
|
468
|
+
"type": "uint8"
|
96
469
|
}
|
97
470
|
],
|
98
|
-
"
|
99
|
-
"type": "
|
471
|
+
"stateMutability": "pure",
|
472
|
+
"type": "function"
|
100
473
|
},
|
101
474
|
{
|
102
475
|
"inputs": [],
|
@@ -143,11 +516,6 @@
|
|
143
516
|
"internalType": "struct IRegistry.ObjectInfo",
|
144
517
|
"name": "",
|
145
518
|
"type": "tuple"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"internalType": "bytes",
|
149
|
-
"name": "data",
|
150
|
-
"type": "bytes"
|
151
519
|
}
|
152
520
|
],
|
153
521
|
"stateMutability": "view",
|
@@ -155,25 +523,12 @@
|
|
155
523
|
},
|
156
524
|
{
|
157
525
|
"inputs": [],
|
158
|
-
"name": "
|
526
|
+
"name": "getNftId",
|
159
527
|
"outputs": [
|
160
528
|
{
|
161
|
-
"internalType": "
|
529
|
+
"internalType": "NftId",
|
162
530
|
"name": "",
|
163
|
-
"type": "
|
164
|
-
}
|
165
|
-
],
|
166
|
-
"stateMutability": "view",
|
167
|
-
"type": "function"
|
168
|
-
},
|
169
|
-
{
|
170
|
-
"inputs": [],
|
171
|
-
"name": "getMajorVersion",
|
172
|
-
"outputs": [
|
173
|
-
{
|
174
|
-
"internalType": "VersionPart",
|
175
|
-
"name": "majorVersion",
|
176
|
-
"type": "uint8"
|
531
|
+
"type": "uint96"
|
177
532
|
}
|
178
533
|
],
|
179
534
|
"stateMutability": "view",
|
@@ -181,25 +536,12 @@
|
|
181
536
|
},
|
182
537
|
{
|
183
538
|
"inputs": [],
|
184
|
-
"name": "
|
185
|
-
"outputs": [
|
186
|
-
{
|
187
|
-
"internalType": "string",
|
188
|
-
"name": "name",
|
189
|
-
"type": "string"
|
190
|
-
}
|
191
|
-
],
|
192
|
-
"stateMutability": "pure",
|
193
|
-
"type": "function"
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"inputs": [],
|
197
|
-
"name": "getNftId",
|
539
|
+
"name": "getOwner",
|
198
540
|
"outputs": [
|
199
541
|
{
|
200
|
-
"internalType": "
|
542
|
+
"internalType": "address",
|
201
543
|
"name": "",
|
202
|
-
"type": "
|
544
|
+
"type": "address"
|
203
545
|
}
|
204
546
|
],
|
205
547
|
"stateMutability": "view",
|
@@ -207,10 +549,10 @@
|
|
207
549
|
},
|
208
550
|
{
|
209
551
|
"inputs": [],
|
210
|
-
"name": "
|
552
|
+
"name": "getRegistry",
|
211
553
|
"outputs": [
|
212
554
|
{
|
213
|
-
"internalType": "
|
555
|
+
"internalType": "contract IRegistry",
|
214
556
|
"name": "",
|
215
557
|
"type": "address"
|
216
558
|
}
|
@@ -220,10 +562,10 @@
|
|
220
562
|
},
|
221
563
|
{
|
222
564
|
"inputs": [],
|
223
|
-
"name": "
|
565
|
+
"name": "getRegistryAddress",
|
224
566
|
"outputs": [
|
225
567
|
{
|
226
|
-
"internalType": "
|
568
|
+
"internalType": "address",
|
227
569
|
"name": "",
|
228
570
|
"type": "address"
|
229
571
|
}
|
@@ -247,100 +589,142 @@
|
|
247
589
|
{
|
248
590
|
"inputs": [
|
249
591
|
{
|
250
|
-
"internalType": "
|
251
|
-
"name": "
|
252
|
-
"type": "
|
253
|
-
}
|
254
|
-
],
|
255
|
-
"name": "getVersion",
|
256
|
-
"outputs": [
|
592
|
+
"internalType": "address",
|
593
|
+
"name": "activatedBy",
|
594
|
+
"type": "address"
|
595
|
+
},
|
257
596
|
{
|
258
|
-
"internalType": "
|
259
|
-
"name": "
|
260
|
-
"type": "
|
597
|
+
"internalType": "bytes",
|
598
|
+
"name": "activationData",
|
599
|
+
"type": "bytes"
|
261
600
|
}
|
262
601
|
],
|
263
|
-
"
|
602
|
+
"name": "initializeVersionable",
|
603
|
+
"outputs": [],
|
604
|
+
"stateMutability": "nonpayable",
|
264
605
|
"type": "function"
|
265
606
|
},
|
266
607
|
{
|
267
608
|
"inputs": [],
|
268
|
-
"name": "
|
609
|
+
"name": "isConsumingScheduledOp",
|
269
610
|
"outputs": [
|
270
611
|
{
|
271
|
-
"internalType": "
|
272
|
-
"name": "
|
273
|
-
"type": "
|
612
|
+
"internalType": "bytes4",
|
613
|
+
"name": "",
|
614
|
+
"type": "bytes4"
|
274
615
|
}
|
275
616
|
],
|
276
617
|
"stateMutability": "view",
|
277
618
|
"type": "function"
|
278
619
|
},
|
620
|
+
{
|
621
|
+
"inputs": [],
|
622
|
+
"name": "linkToRegisteredNftId",
|
623
|
+
"outputs": [],
|
624
|
+
"stateMutability": "nonpayable",
|
625
|
+
"type": "function"
|
626
|
+
},
|
279
627
|
{
|
280
628
|
"inputs": [
|
281
629
|
{
|
282
|
-
"internalType": "
|
283
|
-
"name": "
|
284
|
-
"type": "
|
285
|
-
}
|
286
|
-
|
287
|
-
|
288
|
-
|
630
|
+
"internalType": "NftId",
|
631
|
+
"name": "distributionNftId",
|
632
|
+
"type": "uint96"
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"internalType": "ReferralId",
|
636
|
+
"name": "referralId",
|
637
|
+
"type": "bytes8"
|
638
|
+
},
|
289
639
|
{
|
290
640
|
"components": [
|
291
641
|
{
|
292
|
-
"internalType": "
|
293
|
-
"name": "
|
294
|
-
"type": "
|
642
|
+
"internalType": "uint256",
|
643
|
+
"name": "netPremiumAmount",
|
644
|
+
"type": "uint256"
|
295
645
|
},
|
296
646
|
{
|
297
|
-
"internalType": "
|
298
|
-
"name": "
|
299
|
-
"type": "
|
647
|
+
"internalType": "uint256",
|
648
|
+
"name": "fullPremiumAmount",
|
649
|
+
"type": "uint256"
|
300
650
|
},
|
301
651
|
{
|
302
|
-
"internalType": "
|
303
|
-
"name": "
|
304
|
-
"type": "
|
652
|
+
"internalType": "uint256",
|
653
|
+
"name": "premiumAmount",
|
654
|
+
"type": "uint256"
|
655
|
+
},
|
656
|
+
{
|
657
|
+
"internalType": "uint256",
|
658
|
+
"name": "productFeeFixAmount",
|
659
|
+
"type": "uint256"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"internalType": "uint256",
|
663
|
+
"name": "poolFeeFixAmount",
|
664
|
+
"type": "uint256"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"internalType": "uint256",
|
668
|
+
"name": "bundleFeeFixAmount",
|
669
|
+
"type": "uint256"
|
670
|
+
},
|
671
|
+
{
|
672
|
+
"internalType": "uint256",
|
673
|
+
"name": "distributionFeeFixAmount",
|
674
|
+
"type": "uint256"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"internalType": "uint256",
|
678
|
+
"name": "productFeeVarAmount",
|
679
|
+
"type": "uint256"
|
680
|
+
},
|
681
|
+
{
|
682
|
+
"internalType": "uint256",
|
683
|
+
"name": "poolFeeVarAmount",
|
684
|
+
"type": "uint256"
|
685
|
+
},
|
686
|
+
{
|
687
|
+
"internalType": "uint256",
|
688
|
+
"name": "bundleFeeVarAmount",
|
689
|
+
"type": "uint256"
|
690
|
+
},
|
691
|
+
{
|
692
|
+
"internalType": "uint256",
|
693
|
+
"name": "distributionFeeVarAmount",
|
694
|
+
"type": "uint256"
|
695
|
+
},
|
696
|
+
{
|
697
|
+
"internalType": "uint256",
|
698
|
+
"name": "distributionOwnerFeeFixAmount",
|
699
|
+
"type": "uint256"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"internalType": "uint256",
|
703
|
+
"name": "distributionOwnerFeeVarAmount",
|
704
|
+
"type": "uint256"
|
305
705
|
},
|
306
706
|
{
|
307
|
-
"internalType": "
|
308
|
-
"name": "
|
309
|
-
"type": "
|
707
|
+
"internalType": "uint256",
|
708
|
+
"name": "commissionAmount",
|
709
|
+
"type": "uint256"
|
310
710
|
},
|
311
711
|
{
|
312
|
-
"internalType": "
|
313
|
-
"name": "
|
314
|
-
"type": "
|
712
|
+
"internalType": "uint256",
|
713
|
+
"name": "discountAmount",
|
714
|
+
"type": "uint256"
|
315
715
|
}
|
316
716
|
],
|
317
|
-
"internalType": "struct
|
318
|
-
"name": "
|
717
|
+
"internalType": "struct IPolicy.Premium",
|
718
|
+
"name": "premium",
|
319
719
|
"type": "tuple"
|
320
|
-
}
|
321
|
-
],
|
322
|
-
"stateMutability": "view",
|
323
|
-
"type": "function"
|
324
|
-
},
|
325
|
-
{
|
326
|
-
"inputs": [
|
327
|
-
{
|
328
|
-
"internalType": "address",
|
329
|
-
"name": "implementation",
|
330
|
-
"type": "address"
|
331
|
-
},
|
332
|
-
{
|
333
|
-
"internalType": "address",
|
334
|
-
"name": "activatedBy",
|
335
|
-
"type": "address"
|
336
720
|
},
|
337
721
|
{
|
338
|
-
"internalType": "
|
339
|
-
"name": "
|
340
|
-
"type": "
|
722
|
+
"internalType": "uint256",
|
723
|
+
"name": "transferredDistributionFeeAmount",
|
724
|
+
"type": "uint256"
|
341
725
|
}
|
342
726
|
],
|
343
|
-
"name": "
|
727
|
+
"name": "processSale",
|
344
728
|
"outputs": [],
|
345
729
|
"stateMutability": "nonpayable",
|
346
730
|
"type": "function"
|
@@ -348,16 +732,21 @@
|
|
348
732
|
{
|
349
733
|
"inputs": [
|
350
734
|
{
|
351
|
-
"internalType": "
|
352
|
-
"name": "
|
353
|
-
"type": "
|
735
|
+
"internalType": "NftId",
|
736
|
+
"name": "distributorNftId",
|
737
|
+
"type": "uint96"
|
738
|
+
},
|
739
|
+
{
|
740
|
+
"internalType": "ReferralId",
|
741
|
+
"name": "referralId",
|
742
|
+
"type": "bytes8"
|
354
743
|
}
|
355
744
|
],
|
356
|
-
"name": "
|
745
|
+
"name": "referralIsValid",
|
357
746
|
"outputs": [
|
358
747
|
{
|
359
748
|
"internalType": "bool",
|
360
|
-
"name": "",
|
749
|
+
"name": "isValid",
|
361
750
|
"type": "bool"
|
362
751
|
}
|
363
752
|
],
|
@@ -365,14 +754,37 @@
|
|
365
754
|
"type": "function"
|
366
755
|
},
|
367
756
|
{
|
368
|
-
"inputs": [
|
369
|
-
|
757
|
+
"inputs": [
|
758
|
+
{
|
759
|
+
"internalType": "address",
|
760
|
+
"name": "",
|
761
|
+
"type": "address"
|
762
|
+
}
|
763
|
+
],
|
764
|
+
"name": "setAuthority",
|
370
765
|
"outputs": [],
|
371
766
|
"stateMutability": "nonpayable",
|
372
767
|
"type": "function"
|
373
768
|
},
|
374
769
|
{
|
375
770
|
"inputs": [
|
771
|
+
{
|
772
|
+
"components": [
|
773
|
+
{
|
774
|
+
"internalType": "UFixed",
|
775
|
+
"name": "fractionalFee",
|
776
|
+
"type": "uint256"
|
777
|
+
},
|
778
|
+
{
|
779
|
+
"internalType": "uint256",
|
780
|
+
"name": "fixedFee",
|
781
|
+
"type": "uint256"
|
782
|
+
}
|
783
|
+
],
|
784
|
+
"internalType": "struct Fee",
|
785
|
+
"name": "minDistributionOwnerFee",
|
786
|
+
"type": "tuple"
|
787
|
+
},
|
376
788
|
{
|
377
789
|
"components": [
|
378
790
|
{
|
@@ -418,22 +830,35 @@
|
|
418
830
|
{
|
419
831
|
"inputs": [
|
420
832
|
{
|
421
|
-
"internalType": "
|
422
|
-
"name": "
|
423
|
-
"type": "
|
833
|
+
"internalType": "NftId",
|
834
|
+
"name": "distributorNftId",
|
835
|
+
"type": "uint96"
|
424
836
|
},
|
425
837
|
{
|
426
|
-
"internalType": "
|
427
|
-
"name": "
|
428
|
-
"type": "
|
838
|
+
"internalType": "DistributorType",
|
839
|
+
"name": "distributorType",
|
840
|
+
"type": "bytes8"
|
429
841
|
},
|
842
|
+
{
|
843
|
+
"internalType": "bytes",
|
844
|
+
"name": "data",
|
845
|
+
"type": "bytes"
|
846
|
+
}
|
847
|
+
],
|
848
|
+
"name": "updateDistributorType",
|
849
|
+
"outputs": [],
|
850
|
+
"stateMutability": "nonpayable",
|
851
|
+
"type": "function"
|
852
|
+
},
|
853
|
+
{
|
854
|
+
"inputs": [
|
430
855
|
{
|
431
856
|
"internalType": "bytes",
|
432
857
|
"name": "upgradeData",
|
433
858
|
"type": "bytes"
|
434
859
|
}
|
435
860
|
],
|
436
|
-
"name": "
|
861
|
+
"name": "upgradeVersionable",
|
437
862
|
"outputs": [],
|
438
863
|
"stateMutability": "nonpayable",
|
439
864
|
"type": "function"
|