@etherisc/gif-next 0.0.2-e1f23dc-329 → 0.0.2-e20063b-144
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/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/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → components/IComponent.sol/IComponent.json} +303 -164
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +864 -49
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +825 -231
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +638 -190
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1612 -656
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +321 -168
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1002 -1278
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +593 -180
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +257 -261
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +501 -292
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +331 -98
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +247 -180
- 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 +1060 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +681 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1266 -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 +1040 -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 +1273 -215
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -79
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +627 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +686 -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 +804 -160
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +937 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +437 -241
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +82 -371
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1511 -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 +649 -338
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +305 -92
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +268 -522
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +295 -114
- 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 +185 -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 +26 -3
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +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 -79
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -17
- package/contracts/components/IPoolComponent.sol +88 -37
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +220 -160
- package/contracts/components/Product.sol +244 -157
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +126 -0
- package/contracts/instance/Cloneable.sol +51 -0
- package/contracts/instance/IInstance.sol +67 -19
- package/contracts/instance/IInstanceService.sol +46 -8
- package/contracts/instance/Instance.sol +151 -284
- package/contracts/instance/InstanceAccessManager.sol +414 -175
- package/contracts/instance/InstanceReader.sol +38 -36
- package/contracts/instance/InstanceService.sol +402 -122
- package/contracts/instance/InstanceServiceManager.sol +6 -9
- package/contracts/instance/ObjectManager.sol +82 -0
- package/contracts/instance/base/ComponentService.sol +121 -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 +9 -20
- package/contracts/instance/service/ApplicationService.sol +355 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +436 -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 +374 -31
- package/contracts/instance/service/DistributionServiceManager.sol +7 -10
- package/contracts/instance/service/IApplicationService.sol +78 -0
- package/contracts/instance/service/IBundleService.sol +96 -0
- package/contracts/instance/service/IClaimService.sol +92 -0
- package/contracts/instance/service/IDistributionService.sol +87 -0
- package/contracts/instance/service/IPolicyService.sol +137 -0
- package/contracts/instance/service/IPoolService.sol +78 -20
- package/contracts/instance/service/IProductService.sol +3 -70
- package/contracts/instance/service/PolicyService.sol +541 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +216 -114
- package/contracts/instance/service/PoolServiceManager.sol +6 -9
- package/contracts/instance/service/ProductService.sol +105 -459
- 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 +97 -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 +65 -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/NftIdSet.sol +26 -24
- package/contracts/types/ObjectType.sol +11 -6
- 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/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/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
- 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/components/IDistributionComponent.sol/IDistributionComponent.json
CHANGED
@@ -3,6 +3,256 @@
|
|
3
3
|
"contractName": "IDistributionComponent",
|
4
4
|
"sourceName": "contracts/components/IDistributionComponent.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
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",
|
22
|
+
"type": "address"
|
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": "ErrorComponentNotChainNft",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
57
|
+
{
|
58
|
+
"internalType": "NftId",
|
59
|
+
"name": "instanceNftId",
|
60
|
+
"type": "uint96"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"name": "ErrorComponentNotInstance",
|
64
|
+
"type": "error"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"inputs": [
|
68
|
+
{
|
69
|
+
"internalType": "address",
|
70
|
+
"name": "caller",
|
71
|
+
"type": "address"
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"name": "ErrorComponentNotProductService",
|
75
|
+
"type": "error"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"inputs": [],
|
79
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
80
|
+
"type": "error"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [],
|
84
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
85
|
+
"type": "error"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"inputs": [],
|
89
|
+
"name": "ErrorComponentWalletAddressZero",
|
90
|
+
"type": "error"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"internalType": "address",
|
96
|
+
"name": "oldWallet",
|
97
|
+
"type": "address"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"internalType": "address",
|
101
|
+
"name": "newWallet",
|
102
|
+
"type": "address"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "allowance",
|
107
|
+
"type": "uint256"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"internalType": "uint256",
|
111
|
+
"name": "balance",
|
112
|
+
"type": "uint256"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
116
|
+
"type": "error"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"inputs": [
|
120
|
+
{
|
121
|
+
"internalType": "NftId",
|
122
|
+
"name": "nftId",
|
123
|
+
"type": "uint96"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
127
|
+
"type": "error"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [
|
131
|
+
{
|
132
|
+
"internalType": "address",
|
133
|
+
"name": "contractAddress",
|
134
|
+
"type": "address"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
138
|
+
"type": "error"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [],
|
142
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
143
|
+
"type": "error"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"inputs": [
|
147
|
+
{
|
148
|
+
"internalType": "address",
|
149
|
+
"name": "account",
|
150
|
+
"type": "address"
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"name": "ErrorNftOwnableNotOwner",
|
154
|
+
"type": "error"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"inputs": [
|
158
|
+
{
|
159
|
+
"internalType": "address",
|
160
|
+
"name": "registryAddress",
|
161
|
+
"type": "address"
|
162
|
+
}
|
163
|
+
],
|
164
|
+
"name": "ErrorNotRegistry",
|
165
|
+
"type": "error"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"anonymous": false,
|
169
|
+
"inputs": [
|
170
|
+
{
|
171
|
+
"indexed": false,
|
172
|
+
"internalType": "address",
|
173
|
+
"name": "authority",
|
174
|
+
"type": "address"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"name": "AuthorityUpdated",
|
178
|
+
"type": "event"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"anonymous": false,
|
182
|
+
"inputs": [
|
183
|
+
{
|
184
|
+
"indexed": false,
|
185
|
+
"internalType": "address",
|
186
|
+
"name": "oldWallet",
|
187
|
+
"type": "address"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"indexed": false,
|
191
|
+
"internalType": "address",
|
192
|
+
"name": "newWallet",
|
193
|
+
"type": "address"
|
194
|
+
}
|
195
|
+
],
|
196
|
+
"name": "LogComponentWalletAddressChanged",
|
197
|
+
"type": "event"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"anonymous": false,
|
201
|
+
"inputs": [
|
202
|
+
{
|
203
|
+
"indexed": false,
|
204
|
+
"internalType": "address",
|
205
|
+
"name": "from",
|
206
|
+
"type": "address"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"indexed": false,
|
210
|
+
"internalType": "address",
|
211
|
+
"name": "to",
|
212
|
+
"type": "address"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"indexed": false,
|
216
|
+
"internalType": "uint256",
|
217
|
+
"name": "amount",
|
218
|
+
"type": "uint256"
|
219
|
+
}
|
220
|
+
],
|
221
|
+
"name": "LogComponentWalletTokensTransferred",
|
222
|
+
"type": "event"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"anonymous": false,
|
226
|
+
"inputs": [
|
227
|
+
{
|
228
|
+
"indexed": false,
|
229
|
+
"internalType": "address",
|
230
|
+
"name": "to",
|
231
|
+
"type": "address"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"indexed": false,
|
235
|
+
"internalType": "address",
|
236
|
+
"name": "caller",
|
237
|
+
"type": "address"
|
238
|
+
}
|
239
|
+
],
|
240
|
+
"name": "LogDistributorUpdated",
|
241
|
+
"type": "event"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"inputs": [],
|
245
|
+
"name": "authority",
|
246
|
+
"outputs": [
|
247
|
+
{
|
248
|
+
"internalType": "address",
|
249
|
+
"name": "",
|
250
|
+
"type": "address"
|
251
|
+
}
|
252
|
+
],
|
253
|
+
"stateMutability": "view",
|
254
|
+
"type": "function"
|
255
|
+
},
|
6
256
|
{
|
7
257
|
"inputs": [
|
8
258
|
{
|
@@ -11,17 +261,319 @@
|
|
11
261
|
"type": "bytes8"
|
12
262
|
},
|
13
263
|
{
|
14
|
-
"internalType": "uint256",
|
15
|
-
"name": "netPremiumAmount",
|
16
|
-
"type": "uint256"
|
264
|
+
"internalType": "uint256",
|
265
|
+
"name": "netPremiumAmount",
|
266
|
+
"type": "uint256"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
"name": "calculateRenewalFeeAmount",
|
270
|
+
"outputs": [
|
271
|
+
{
|
272
|
+
"internalType": "uint256",
|
273
|
+
"name": "feeAmount",
|
274
|
+
"type": "uint256"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"stateMutability": "view",
|
278
|
+
"type": "function"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"inputs": [
|
282
|
+
{
|
283
|
+
"internalType": "address",
|
284
|
+
"name": "distributor",
|
285
|
+
"type": "address"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"internalType": "DistributorType",
|
289
|
+
"name": "distributorType",
|
290
|
+
"type": "bytes8"
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"internalType": "bytes",
|
294
|
+
"name": "data",
|
295
|
+
"type": "bytes"
|
296
|
+
}
|
297
|
+
],
|
298
|
+
"name": "createDistributor",
|
299
|
+
"outputs": [
|
300
|
+
{
|
301
|
+
"internalType": "NftId",
|
302
|
+
"name": "distributorNftId",
|
303
|
+
"type": "uint96"
|
304
|
+
}
|
305
|
+
],
|
306
|
+
"stateMutability": "nonpayable",
|
307
|
+
"type": "function"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"inputs": [
|
311
|
+
{
|
312
|
+
"internalType": "string",
|
313
|
+
"name": "name",
|
314
|
+
"type": "string"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"internalType": "UFixed",
|
318
|
+
"name": "minDiscountPercentage",
|
319
|
+
"type": "uint256"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"internalType": "UFixed",
|
323
|
+
"name": "maxDiscountPercentage",
|
324
|
+
"type": "uint256"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"internalType": "UFixed",
|
328
|
+
"name": "commissionPercentage",
|
329
|
+
"type": "uint256"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"internalType": "uint32",
|
333
|
+
"name": "maxReferralCount",
|
334
|
+
"type": "uint32"
|
335
|
+
},
|
336
|
+
{
|
337
|
+
"internalType": "uint32",
|
338
|
+
"name": "maxReferralLifetime",
|
339
|
+
"type": "uint32"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"internalType": "bool",
|
343
|
+
"name": "allowSelfReferrals",
|
344
|
+
"type": "bool"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"internalType": "bool",
|
348
|
+
"name": "allowRenewals",
|
349
|
+
"type": "bool"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"internalType": "bytes",
|
353
|
+
"name": "data",
|
354
|
+
"type": "bytes"
|
355
|
+
}
|
356
|
+
],
|
357
|
+
"name": "createDistributorType",
|
358
|
+
"outputs": [
|
359
|
+
{
|
360
|
+
"internalType": "DistributorType",
|
361
|
+
"name": "distributorType",
|
362
|
+
"type": "bytes8"
|
363
|
+
}
|
364
|
+
],
|
365
|
+
"stateMutability": "nonpayable",
|
366
|
+
"type": "function"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"inputs": [],
|
370
|
+
"name": "getComponentInfo",
|
371
|
+
"outputs": [
|
372
|
+
{
|
373
|
+
"components": [
|
374
|
+
{
|
375
|
+
"internalType": "string",
|
376
|
+
"name": "name",
|
377
|
+
"type": "string"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"internalType": "contract IERC20Metadata",
|
381
|
+
"name": "token",
|
382
|
+
"type": "address"
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"internalType": "contract TokenHandler",
|
386
|
+
"name": "tokenHandler",
|
387
|
+
"type": "address"
|
388
|
+
},
|
389
|
+
{
|
390
|
+
"internalType": "address",
|
391
|
+
"name": "wallet",
|
392
|
+
"type": "address"
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"internalType": "Amount",
|
396
|
+
"name": "balanceAmount",
|
397
|
+
"type": "uint96"
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"internalType": "Amount",
|
401
|
+
"name": "feeAmount",
|
402
|
+
"type": "uint96"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"internalType": "bytes",
|
406
|
+
"name": "data",
|
407
|
+
"type": "bytes"
|
408
|
+
}
|
409
|
+
],
|
410
|
+
"internalType": "struct IComponents.ComponentInfo",
|
411
|
+
"name": "info",
|
412
|
+
"type": "tuple"
|
413
|
+
}
|
414
|
+
],
|
415
|
+
"stateMutability": "view",
|
416
|
+
"type": "function"
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"inputs": [
|
420
|
+
{
|
421
|
+
"internalType": "string",
|
422
|
+
"name": "referralCode",
|
423
|
+
"type": "string"
|
424
|
+
}
|
425
|
+
],
|
426
|
+
"name": "getDiscountPercentage",
|
427
|
+
"outputs": [
|
428
|
+
{
|
429
|
+
"internalType": "UFixed",
|
430
|
+
"name": "discountPercentage",
|
431
|
+
"type": "uint256"
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"internalType": "ReferralStatus",
|
435
|
+
"name": "status",
|
436
|
+
"type": "uint8"
|
437
|
+
}
|
438
|
+
],
|
439
|
+
"stateMutability": "view",
|
440
|
+
"type": "function"
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"inputs": [],
|
444
|
+
"name": "getDistributionFee",
|
445
|
+
"outputs": [
|
446
|
+
{
|
447
|
+
"components": [
|
448
|
+
{
|
449
|
+
"internalType": "UFixed",
|
450
|
+
"name": "fractionalFee",
|
451
|
+
"type": "uint256"
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"internalType": "uint256",
|
455
|
+
"name": "fixedFee",
|
456
|
+
"type": "uint256"
|
457
|
+
}
|
458
|
+
],
|
459
|
+
"internalType": "struct Fee",
|
460
|
+
"name": "distibutionFee",
|
461
|
+
"type": "tuple"
|
462
|
+
}
|
463
|
+
],
|
464
|
+
"stateMutability": "view",
|
465
|
+
"type": "function"
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"inputs": [],
|
469
|
+
"name": "getInitialInfo",
|
470
|
+
"outputs": [
|
471
|
+
{
|
472
|
+
"components": [
|
473
|
+
{
|
474
|
+
"internalType": "NftId",
|
475
|
+
"name": "nftId",
|
476
|
+
"type": "uint96"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"internalType": "NftId",
|
480
|
+
"name": "parentNftId",
|
481
|
+
"type": "uint96"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"internalType": "ObjectType",
|
485
|
+
"name": "objectType",
|
486
|
+
"type": "uint8"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"internalType": "bool",
|
490
|
+
"name": "isInterceptor",
|
491
|
+
"type": "bool"
|
492
|
+
},
|
493
|
+
{
|
494
|
+
"internalType": "address",
|
495
|
+
"name": "objectAddress",
|
496
|
+
"type": "address"
|
497
|
+
},
|
498
|
+
{
|
499
|
+
"internalType": "address",
|
500
|
+
"name": "initialOwner",
|
501
|
+
"type": "address"
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"internalType": "bytes",
|
505
|
+
"name": "data",
|
506
|
+
"type": "bytes"
|
507
|
+
}
|
508
|
+
],
|
509
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
510
|
+
"name": "",
|
511
|
+
"type": "tuple"
|
512
|
+
}
|
513
|
+
],
|
514
|
+
"stateMutability": "view",
|
515
|
+
"type": "function"
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"inputs": [],
|
519
|
+
"name": "getInstance",
|
520
|
+
"outputs": [
|
521
|
+
{
|
522
|
+
"internalType": "contract IInstance",
|
523
|
+
"name": "instance",
|
524
|
+
"type": "address"
|
17
525
|
}
|
18
526
|
],
|
19
|
-
"
|
527
|
+
"stateMutability": "view",
|
528
|
+
"type": "function"
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"inputs": [],
|
532
|
+
"name": "getName",
|
20
533
|
"outputs": [
|
21
534
|
{
|
22
|
-
"internalType": "
|
23
|
-
"name": "
|
24
|
-
"type": "
|
535
|
+
"internalType": "string",
|
536
|
+
"name": "name",
|
537
|
+
"type": "string"
|
538
|
+
}
|
539
|
+
],
|
540
|
+
"stateMutability": "view",
|
541
|
+
"type": "function"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"inputs": [],
|
545
|
+
"name": "getNftId",
|
546
|
+
"outputs": [
|
547
|
+
{
|
548
|
+
"internalType": "NftId",
|
549
|
+
"name": "",
|
550
|
+
"type": "uint96"
|
551
|
+
}
|
552
|
+
],
|
553
|
+
"stateMutability": "view",
|
554
|
+
"type": "function"
|
555
|
+
},
|
556
|
+
{
|
557
|
+
"inputs": [],
|
558
|
+
"name": "getOwner",
|
559
|
+
"outputs": [
|
560
|
+
{
|
561
|
+
"internalType": "address",
|
562
|
+
"name": "",
|
563
|
+
"type": "address"
|
564
|
+
}
|
565
|
+
],
|
566
|
+
"stateMutability": "view",
|
567
|
+
"type": "function"
|
568
|
+
},
|
569
|
+
{
|
570
|
+
"inputs": [],
|
571
|
+
"name": "getProductNftId",
|
572
|
+
"outputs": [
|
573
|
+
{
|
574
|
+
"internalType": "NftId",
|
575
|
+
"name": "productNftId",
|
576
|
+
"type": "uint96"
|
25
577
|
}
|
26
578
|
],
|
27
579
|
"stateMutability": "view",
|
@@ -29,23 +581,165 @@
|
|
29
581
|
},
|
30
582
|
{
|
31
583
|
"inputs": [
|
584
|
+
{
|
585
|
+
"internalType": "string",
|
586
|
+
"name": "referralCode",
|
587
|
+
"type": "string"
|
588
|
+
}
|
589
|
+
],
|
590
|
+
"name": "getReferralId",
|
591
|
+
"outputs": [
|
32
592
|
{
|
33
593
|
"internalType": "ReferralId",
|
34
594
|
"name": "referralId",
|
35
595
|
"type": "bytes8"
|
36
|
-
}
|
596
|
+
}
|
597
|
+
],
|
598
|
+
"stateMutability": "nonpayable",
|
599
|
+
"type": "function"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"inputs": [],
|
603
|
+
"name": "getRegistry",
|
604
|
+
"outputs": [
|
37
605
|
{
|
38
|
-
"internalType": "
|
39
|
-
"name": "
|
40
|
-
"type": "
|
606
|
+
"internalType": "contract IRegistry",
|
607
|
+
"name": "",
|
608
|
+
"type": "address"
|
41
609
|
}
|
42
610
|
],
|
43
|
-
"
|
611
|
+
"stateMutability": "view",
|
612
|
+
"type": "function"
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"inputs": [],
|
616
|
+
"name": "getRegistryAddress",
|
44
617
|
"outputs": [
|
45
618
|
{
|
46
|
-
"internalType": "
|
47
|
-
"name": "
|
48
|
-
"type": "
|
619
|
+
"internalType": "address",
|
620
|
+
"name": "",
|
621
|
+
"type": "address"
|
622
|
+
}
|
623
|
+
],
|
624
|
+
"stateMutability": "view",
|
625
|
+
"type": "function"
|
626
|
+
},
|
627
|
+
{
|
628
|
+
"inputs": [],
|
629
|
+
"name": "getSetupInfo",
|
630
|
+
"outputs": [
|
631
|
+
{
|
632
|
+
"components": [
|
633
|
+
{
|
634
|
+
"internalType": "NftId",
|
635
|
+
"name": "productNftId",
|
636
|
+
"type": "uint96"
|
637
|
+
},
|
638
|
+
{
|
639
|
+
"internalType": "contract TokenHandler",
|
640
|
+
"name": "tokenHandler",
|
641
|
+
"type": "address"
|
642
|
+
},
|
643
|
+
{
|
644
|
+
"components": [
|
645
|
+
{
|
646
|
+
"internalType": "UFixed",
|
647
|
+
"name": "fractionalFee",
|
648
|
+
"type": "uint256"
|
649
|
+
},
|
650
|
+
{
|
651
|
+
"internalType": "uint256",
|
652
|
+
"name": "fixedFee",
|
653
|
+
"type": "uint256"
|
654
|
+
}
|
655
|
+
],
|
656
|
+
"internalType": "struct Fee",
|
657
|
+
"name": "minDistributionOwnerFee",
|
658
|
+
"type": "tuple"
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"components": [
|
662
|
+
{
|
663
|
+
"internalType": "UFixed",
|
664
|
+
"name": "fractionalFee",
|
665
|
+
"type": "uint256"
|
666
|
+
},
|
667
|
+
{
|
668
|
+
"internalType": "uint256",
|
669
|
+
"name": "fixedFee",
|
670
|
+
"type": "uint256"
|
671
|
+
}
|
672
|
+
],
|
673
|
+
"internalType": "struct Fee",
|
674
|
+
"name": "distributionFee",
|
675
|
+
"type": "tuple"
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"internalType": "address",
|
679
|
+
"name": "wallet",
|
680
|
+
"type": "address"
|
681
|
+
},
|
682
|
+
{
|
683
|
+
"internalType": "uint256",
|
684
|
+
"name": "sumDistributionOwnerFees",
|
685
|
+
"type": "uint256"
|
686
|
+
}
|
687
|
+
],
|
688
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
689
|
+
"name": "setupInfo",
|
690
|
+
"type": "tuple"
|
691
|
+
}
|
692
|
+
],
|
693
|
+
"stateMutability": "view",
|
694
|
+
"type": "function"
|
695
|
+
},
|
696
|
+
{
|
697
|
+
"inputs": [],
|
698
|
+
"name": "getToken",
|
699
|
+
"outputs": [
|
700
|
+
{
|
701
|
+
"internalType": "contract IERC20Metadata",
|
702
|
+
"name": "token",
|
703
|
+
"type": "address"
|
704
|
+
}
|
705
|
+
],
|
706
|
+
"stateMutability": "view",
|
707
|
+
"type": "function"
|
708
|
+
},
|
709
|
+
{
|
710
|
+
"inputs": [],
|
711
|
+
"name": "getWallet",
|
712
|
+
"outputs": [
|
713
|
+
{
|
714
|
+
"internalType": "address",
|
715
|
+
"name": "walletAddress",
|
716
|
+
"type": "address"
|
717
|
+
}
|
718
|
+
],
|
719
|
+
"stateMutability": "view",
|
720
|
+
"type": "function"
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"inputs": [],
|
724
|
+
"name": "isConsumingScheduledOp",
|
725
|
+
"outputs": [
|
726
|
+
{
|
727
|
+
"internalType": "bytes4",
|
728
|
+
"name": "",
|
729
|
+
"type": "bytes4"
|
730
|
+
}
|
731
|
+
],
|
732
|
+
"stateMutability": "view",
|
733
|
+
"type": "function"
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"inputs": [],
|
737
|
+
"name": "isNftInterceptor",
|
738
|
+
"outputs": [
|
739
|
+
{
|
740
|
+
"internalType": "bool",
|
741
|
+
"name": "isInterceptor",
|
742
|
+
"type": "bool"
|
49
743
|
}
|
50
744
|
],
|
51
745
|
"stateMutability": "view",
|
@@ -64,20 +758,34 @@
|
|
64
758
|
"stateMutability": "view",
|
65
759
|
"type": "function"
|
66
760
|
},
|
761
|
+
{
|
762
|
+
"inputs": [],
|
763
|
+
"name": "linkToRegisteredNftId",
|
764
|
+
"outputs": [],
|
765
|
+
"stateMutability": "nonpayable",
|
766
|
+
"type": "function"
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"inputs": [],
|
770
|
+
"name": "lock",
|
771
|
+
"outputs": [],
|
772
|
+
"stateMutability": "nonpayable",
|
773
|
+
"type": "function"
|
774
|
+
},
|
67
775
|
{
|
68
776
|
"inputs": [
|
69
777
|
{
|
70
|
-
"internalType": "
|
71
|
-
"name": "
|
72
|
-
"type": "
|
778
|
+
"internalType": "address",
|
779
|
+
"name": "to",
|
780
|
+
"type": "address"
|
73
781
|
},
|
74
782
|
{
|
75
783
|
"internalType": "uint256",
|
76
|
-
"name": "
|
784
|
+
"name": "tokenId",
|
77
785
|
"type": "uint256"
|
78
786
|
}
|
79
787
|
],
|
80
|
-
"name": "
|
788
|
+
"name": "nftMint",
|
81
789
|
"outputs": [],
|
82
790
|
"stateMutability": "nonpayable",
|
83
791
|
"type": "function"
|
@@ -85,17 +793,22 @@
|
|
85
793
|
{
|
86
794
|
"inputs": [
|
87
795
|
{
|
88
|
-
"internalType": "
|
89
|
-
"name": "
|
90
|
-
"type": "
|
796
|
+
"internalType": "address",
|
797
|
+
"name": "from",
|
798
|
+
"type": "address"
|
799
|
+
},
|
800
|
+
{
|
801
|
+
"internalType": "address",
|
802
|
+
"name": "to",
|
803
|
+
"type": "address"
|
91
804
|
},
|
92
805
|
{
|
93
806
|
"internalType": "uint256",
|
94
|
-
"name": "
|
807
|
+
"name": "tokenId",
|
95
808
|
"type": "uint256"
|
96
809
|
}
|
97
810
|
],
|
98
|
-
"name": "
|
811
|
+
"name": "nftTransferFrom",
|
99
812
|
"outputs": [],
|
100
813
|
"stateMutability": "nonpayable",
|
101
814
|
"type": "function"
|
@@ -106,21 +819,50 @@
|
|
106
819
|
"internalType": "ReferralId",
|
107
820
|
"name": "referralId",
|
108
821
|
"type": "bytes8"
|
822
|
+
},
|
823
|
+
{
|
824
|
+
"internalType": "uint256",
|
825
|
+
"name": "feeAmount",
|
826
|
+
"type": "uint256"
|
109
827
|
}
|
110
828
|
],
|
111
|
-
"name": "
|
112
|
-
"outputs": [
|
829
|
+
"name": "processRenewal",
|
830
|
+
"outputs": [],
|
831
|
+
"stateMutability": "nonpayable",
|
832
|
+
"type": "function"
|
833
|
+
},
|
834
|
+
{
|
835
|
+
"inputs": [
|
113
836
|
{
|
114
|
-
"internalType": "
|
115
|
-
"name": "
|
116
|
-
"type": "
|
837
|
+
"internalType": "address",
|
838
|
+
"name": "",
|
839
|
+
"type": "address"
|
117
840
|
}
|
118
841
|
],
|
119
|
-
"
|
842
|
+
"name": "setAuthority",
|
843
|
+
"outputs": [],
|
844
|
+
"stateMutability": "nonpayable",
|
120
845
|
"type": "function"
|
121
846
|
},
|
122
847
|
{
|
123
848
|
"inputs": [
|
849
|
+
{
|
850
|
+
"components": [
|
851
|
+
{
|
852
|
+
"internalType": "UFixed",
|
853
|
+
"name": "fractionalFee",
|
854
|
+
"type": "uint256"
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"internalType": "uint256",
|
858
|
+
"name": "fixedFee",
|
859
|
+
"type": "uint256"
|
860
|
+
}
|
861
|
+
],
|
862
|
+
"internalType": "struct Fee",
|
863
|
+
"name": "minDistributionOwnerFee",
|
864
|
+
"type": "tuple"
|
865
|
+
},
|
124
866
|
{
|
125
867
|
"components": [
|
126
868
|
{
|
@@ -143,6 +885,81 @@
|
|
143
885
|
"outputs": [],
|
144
886
|
"stateMutability": "nonpayable",
|
145
887
|
"type": "function"
|
888
|
+
},
|
889
|
+
{
|
890
|
+
"inputs": [
|
891
|
+
{
|
892
|
+
"internalType": "NftId",
|
893
|
+
"name": "productNftId",
|
894
|
+
"type": "uint96"
|
895
|
+
}
|
896
|
+
],
|
897
|
+
"name": "setProductNftId",
|
898
|
+
"outputs": [],
|
899
|
+
"stateMutability": "nonpayable",
|
900
|
+
"type": "function"
|
901
|
+
},
|
902
|
+
{
|
903
|
+
"inputs": [
|
904
|
+
{
|
905
|
+
"internalType": "address",
|
906
|
+
"name": "walletAddress",
|
907
|
+
"type": "address"
|
908
|
+
}
|
909
|
+
],
|
910
|
+
"name": "setWallet",
|
911
|
+
"outputs": [],
|
912
|
+
"stateMutability": "nonpayable",
|
913
|
+
"type": "function"
|
914
|
+
},
|
915
|
+
{
|
916
|
+
"inputs": [
|
917
|
+
{
|
918
|
+
"internalType": "bytes4",
|
919
|
+
"name": "interfaceId",
|
920
|
+
"type": "bytes4"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"name": "supportsInterface",
|
924
|
+
"outputs": [
|
925
|
+
{
|
926
|
+
"internalType": "bool",
|
927
|
+
"name": "",
|
928
|
+
"type": "bool"
|
929
|
+
}
|
930
|
+
],
|
931
|
+
"stateMutability": "view",
|
932
|
+
"type": "function"
|
933
|
+
},
|
934
|
+
{
|
935
|
+
"inputs": [],
|
936
|
+
"name": "unlock",
|
937
|
+
"outputs": [],
|
938
|
+
"stateMutability": "nonpayable",
|
939
|
+
"type": "function"
|
940
|
+
},
|
941
|
+
{
|
942
|
+
"inputs": [
|
943
|
+
{
|
944
|
+
"internalType": "NftId",
|
945
|
+
"name": "distributorNftId",
|
946
|
+
"type": "uint96"
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"internalType": "DistributorType",
|
950
|
+
"name": "distributorType",
|
951
|
+
"type": "bytes8"
|
952
|
+
},
|
953
|
+
{
|
954
|
+
"internalType": "bytes",
|
955
|
+
"name": "data",
|
956
|
+
"type": "bytes"
|
957
|
+
}
|
958
|
+
],
|
959
|
+
"name": "updateDistributorType",
|
960
|
+
"outputs": [],
|
961
|
+
"stateMutability": "nonpayable",
|
962
|
+
"type": "function"
|
146
963
|
}
|
147
964
|
],
|
148
965
|
"bytecode": "0x",
|