@etherisc/gif-next 0.0.2-f02157b-803 → 0.0.2-f080b71-868
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +75 -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 +948 -229
- 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 +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 +849 -247
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +637 -224
- 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 +468 -246
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +389 -156
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +445 -2985
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +606 -175
- 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 +252 -210
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +540 -179
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +322 -73
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2677 -0
- 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/ComponentService.sol/ComponentService.json +639 -0
- 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 +860 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +641 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1276 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +849 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +641 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1539 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +769 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ServiceBase.sol/ServiceBase.json → service/IApplicationService.sol/IApplicationService.json} +191 -184
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +680 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +217 -208
- 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 +648 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +437 -154
- package/artifacts/contracts/instance/service/IPricingService.sol/IPricingService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IPricingService.sol/IPricingService.json} +270 -173
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +90 -391
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1166 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +697 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1269 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
- 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 +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +872 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +373 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -229
- 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 +333 -188
- 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 +227 -330
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +304 -138
- 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 +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
- 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 +4 -0
- package/artifacts/contracts/{components/BaseComponent.sol/BaseComponent.json → shared/IService.sol/IService.json} +98 -77
- 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 +4 -0
- package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/Service.sol/Service.json} +185 -170
- 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 +161 -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 +100 -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 +100 -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 +25 -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 +22 -3
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +200 -86
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -16
- package/contracts/components/IPoolComponent.sol +88 -37
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +225 -181
- package/contracts/components/Product.sol +136 -137
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +127 -0
- package/contracts/instance/Cloneable.sol +51 -0
- package/contracts/instance/IInstance.sol +45 -13
- package/contracts/instance/IInstanceService.sol +74 -7
- package/contracts/instance/Instance.sol +152 -361
- package/contracts/instance/InstanceAccessManager.sol +428 -176
- package/contracts/instance/InstanceAuthorizationsLib.sol +299 -0
- package/contracts/instance/InstanceReader.sol +49 -30
- package/contracts/instance/InstanceService.sol +274 -56
- package/contracts/instance/InstanceServiceManager.sol +11 -13
- package/contracts/instance/InstanceStore.sol +219 -0
- package/contracts/instance/ObjectManager.sol +82 -0
- package/contracts/instance/base/ComponentService.sol +147 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +36 -20
- package/contracts/instance/module/IBundle.sol +8 -4
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +9 -19
- package/contracts/instance/service/ApplicationService.sol +183 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +431 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +145 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +346 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +64 -0
- package/contracts/instance/service/IBundleService.sol +94 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +74 -1
- package/contracts/instance/service/IPolicyService.sol +74 -0
- package/contracts/instance/service/IPoolService.sol +80 -18
- package/contracts/instance/service/IPricingService.sol +36 -0
- package/contracts/instance/service/IProductService.sol +7 -74
- package/contracts/instance/service/PolicyService.sol +376 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +303 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/PricingService.sol +275 -0
- package/contracts/instance/service/PricingServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +210 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +52 -8
- package/contracts/registry/IRegistryService.sol +53 -20
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +270 -226
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +118 -271
- package/contracts/registry/RegistryServiceManager.sol +24 -26
- package/contracts/registry/ReleaseManager.sol +324 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ERC165.sol +14 -8
- 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 +16 -0
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +67 -83
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +16 -31
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +72 -0
- 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 +6 -7
- package/contracts/types/Amount.sol +60 -0
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/ClaimId.sol +52 -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 +14 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +26 -11
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +5 -0
- package/contracts/types/Timestamp.sol +13 -13
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +5 -1
- package/package.json +3 -3
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
- 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 -1119
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- 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/contracts/components/BaseComponent.sol +0 -86
- package/contracts/components/IBaseComponent.sol +0 -24
- 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 -114
- package/contracts/instance/AccessManagerSimple.sol +0 -682
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -49
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/ServiceBase.sol +0 -44
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
@@ -7,134 +7,188 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
11
|
"type": "address"
|
12
|
-
}
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
13
19
|
{
|
14
|
-
"internalType": "
|
15
|
-
"name": "
|
16
|
-
"type": "
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
22
|
+
"type": "address"
|
17
23
|
},
|
18
24
|
{
|
19
|
-
"internalType": "
|
20
|
-
"name": "
|
21
|
-
"type": "
|
22
|
-
}
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
23
35
|
{
|
24
36
|
"internalType": "address",
|
25
|
-
"name": "
|
37
|
+
"name": "caller",
|
26
38
|
"type": "address"
|
27
|
-
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
33
46
|
{
|
34
|
-
"
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
}
|
45
|
-
],
|
46
|
-
"internalType": "struct Fee",
|
47
|
-
"name": "distributionFee",
|
48
|
-
"type": "tuple"
|
49
|
-
},
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "target",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "AddressEmptyCode",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
50
57
|
{
|
51
58
|
"internalType": "address",
|
52
|
-
"name": "
|
59
|
+
"name": "account",
|
53
60
|
"type": "address"
|
54
61
|
}
|
55
62
|
],
|
56
|
-
"
|
57
|
-
"type": "
|
63
|
+
"name": "AddressInsufficientBalance",
|
64
|
+
"type": "error"
|
58
65
|
},
|
59
66
|
{
|
60
67
|
"inputs": [
|
61
68
|
{
|
62
69
|
"internalType": "address",
|
63
|
-
"name": "
|
70
|
+
"name": "caller",
|
64
71
|
"type": "address"
|
65
|
-
}
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"name": "ErrorComponentNotChainNft",
|
75
|
+
"type": "error"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"inputs": [
|
66
79
|
{
|
67
80
|
"internalType": "NftId",
|
68
|
-
"name": "
|
81
|
+
"name": "instanceNftId",
|
69
82
|
"type": "uint96"
|
70
83
|
}
|
71
84
|
],
|
72
|
-
"name": "
|
85
|
+
"name": "ErrorComponentNotInstance",
|
73
86
|
"type": "error"
|
74
87
|
},
|
75
88
|
{
|
76
89
|
"inputs": [
|
77
90
|
{
|
78
91
|
"internalType": "address",
|
79
|
-
"name": "
|
92
|
+
"name": "caller",
|
80
93
|
"type": "address"
|
81
94
|
}
|
82
95
|
],
|
83
|
-
"name": "
|
96
|
+
"name": "ErrorComponentNotProductService",
|
97
|
+
"type": "error"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"inputs": [],
|
101
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
102
|
+
"type": "error"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"inputs": [],
|
106
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
107
|
+
"type": "error"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"inputs": [],
|
111
|
+
"name": "ErrorComponentWalletAddressZero",
|
84
112
|
"type": "error"
|
85
113
|
},
|
86
114
|
{
|
87
115
|
"inputs": [
|
88
116
|
{
|
89
117
|
"internalType": "address",
|
90
|
-
"name": "
|
118
|
+
"name": "oldWallet",
|
91
119
|
"type": "address"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"internalType": "address",
|
123
|
+
"name": "newWallet",
|
124
|
+
"type": "address"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"internalType": "uint256",
|
128
|
+
"name": "allowance",
|
129
|
+
"type": "uint256"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"internalType": "uint256",
|
133
|
+
"name": "balance",
|
134
|
+
"type": "uint256"
|
92
135
|
}
|
93
136
|
],
|
94
|
-
"name": "
|
137
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
95
138
|
"type": "error"
|
96
139
|
},
|
97
140
|
{
|
98
141
|
"inputs": [
|
99
142
|
{
|
100
|
-
"internalType": "
|
101
|
-
"name": "
|
102
|
-
"type": "
|
143
|
+
"internalType": "NftId",
|
144
|
+
"name": "nftId",
|
145
|
+
"type": "uint96"
|
103
146
|
}
|
104
147
|
],
|
105
|
-
"name": "
|
148
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
106
149
|
"type": "error"
|
107
150
|
},
|
108
151
|
{
|
109
152
|
"inputs": [
|
110
153
|
{
|
111
154
|
"internalType": "address",
|
112
|
-
"name": "
|
155
|
+
"name": "contractAddress",
|
113
156
|
"type": "address"
|
114
157
|
}
|
115
158
|
],
|
116
|
-
"name": "
|
159
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
117
160
|
"type": "error"
|
118
161
|
},
|
119
162
|
{
|
120
163
|
"inputs": [],
|
121
|
-
"name": "
|
164
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
122
165
|
"type": "error"
|
123
166
|
},
|
124
167
|
{
|
125
168
|
"inputs": [
|
126
169
|
{
|
127
170
|
"internalType": "address",
|
128
|
-
"name": "
|
171
|
+
"name": "account",
|
172
|
+
"type": "address"
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"name": "ErrorNftOwnableNotOwner",
|
176
|
+
"type": "error"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"inputs": [
|
180
|
+
{
|
181
|
+
"internalType": "address",
|
182
|
+
"name": "registryAddress",
|
129
183
|
"type": "address"
|
130
184
|
}
|
131
185
|
],
|
132
|
-
"name": "
|
186
|
+
"name": "ErrorNotRegistry",
|
133
187
|
"type": "error"
|
134
188
|
},
|
135
189
|
{
|
136
190
|
"inputs": [],
|
137
|
-
"name": "
|
191
|
+
"name": "FailedInnerCall",
|
138
192
|
"type": "error"
|
139
193
|
},
|
140
194
|
{
|
@@ -147,6 +201,30 @@
|
|
147
201
|
"name": "NotInitializing",
|
148
202
|
"type": "error"
|
149
203
|
},
|
204
|
+
{
|
205
|
+
"inputs": [
|
206
|
+
{
|
207
|
+
"internalType": "address",
|
208
|
+
"name": "token",
|
209
|
+
"type": "address"
|
210
|
+
}
|
211
|
+
],
|
212
|
+
"name": "SafeERC20FailedOperation",
|
213
|
+
"type": "error"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"anonymous": false,
|
217
|
+
"inputs": [
|
218
|
+
{
|
219
|
+
"indexed": false,
|
220
|
+
"internalType": "address",
|
221
|
+
"name": "authority",
|
222
|
+
"type": "address"
|
223
|
+
}
|
224
|
+
],
|
225
|
+
"name": "AuthorityUpdated",
|
226
|
+
"type": "event"
|
227
|
+
},
|
150
228
|
{
|
151
229
|
"anonymous": false,
|
152
230
|
"inputs": [
|
@@ -160,9 +238,72 @@
|
|
160
238
|
"name": "Initialized",
|
161
239
|
"type": "event"
|
162
240
|
},
|
241
|
+
{
|
242
|
+
"anonymous": false,
|
243
|
+
"inputs": [
|
244
|
+
{
|
245
|
+
"indexed": false,
|
246
|
+
"internalType": "address",
|
247
|
+
"name": "oldWallet",
|
248
|
+
"type": "address"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"indexed": false,
|
252
|
+
"internalType": "address",
|
253
|
+
"name": "newWallet",
|
254
|
+
"type": "address"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
"name": "LogComponentWalletAddressChanged",
|
258
|
+
"type": "event"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"anonymous": false,
|
262
|
+
"inputs": [
|
263
|
+
{
|
264
|
+
"indexed": false,
|
265
|
+
"internalType": "address",
|
266
|
+
"name": "from",
|
267
|
+
"type": "address"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"indexed": false,
|
271
|
+
"internalType": "address",
|
272
|
+
"name": "to",
|
273
|
+
"type": "address"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"indexed": false,
|
277
|
+
"internalType": "uint256",
|
278
|
+
"name": "amount",
|
279
|
+
"type": "uint256"
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"name": "LogComponentWalletTokensTransferred",
|
283
|
+
"type": "event"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"anonymous": false,
|
287
|
+
"inputs": [
|
288
|
+
{
|
289
|
+
"indexed": false,
|
290
|
+
"internalType": "address",
|
291
|
+
"name": "to",
|
292
|
+
"type": "address"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"indexed": false,
|
296
|
+
"internalType": "address",
|
297
|
+
"name": "caller",
|
298
|
+
"type": "address"
|
299
|
+
}
|
300
|
+
],
|
301
|
+
"name": "LogDistributorUpdated",
|
302
|
+
"type": "event"
|
303
|
+
},
|
163
304
|
{
|
164
305
|
"inputs": [],
|
165
|
-
"name": "
|
306
|
+
"name": "COMPONENT_LOCATION_V1",
|
166
307
|
"outputs": [
|
167
308
|
{
|
168
309
|
"internalType": "bytes32",
|
@@ -174,24 +315,52 @@
|
|
174
315
|
"type": "function"
|
175
316
|
},
|
176
317
|
{
|
177
|
-
"inputs": [
|
318
|
+
"inputs": [],
|
319
|
+
"name": "DISTRIBUTION_STORAGE_LOCATION_V1",
|
320
|
+
"outputs": [
|
178
321
|
{
|
179
|
-
"internalType": "
|
180
|
-
"name": "
|
181
|
-
"type": "
|
182
|
-
}
|
322
|
+
"internalType": "bytes32",
|
323
|
+
"name": "",
|
324
|
+
"type": "bytes32"
|
325
|
+
}
|
326
|
+
],
|
327
|
+
"stateMutability": "view",
|
328
|
+
"type": "function"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"inputs": [],
|
332
|
+
"name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
|
333
|
+
"outputs": [
|
183
334
|
{
|
184
|
-
"internalType": "
|
185
|
-
"name": "
|
186
|
-
"type": "
|
335
|
+
"internalType": "bytes32",
|
336
|
+
"name": "",
|
337
|
+
"type": "bytes32"
|
338
|
+
}
|
339
|
+
],
|
340
|
+
"stateMutability": "view",
|
341
|
+
"type": "function"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"inputs": [],
|
345
|
+
"name": "REGISTERABLE_LOCATION_V1",
|
346
|
+
"outputs": [
|
347
|
+
{
|
348
|
+
"internalType": "bytes32",
|
349
|
+
"name": "",
|
350
|
+
"type": "bytes32"
|
187
351
|
}
|
188
352
|
],
|
189
|
-
"
|
353
|
+
"stateMutability": "view",
|
354
|
+
"type": "function"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"inputs": [],
|
358
|
+
"name": "authority",
|
190
359
|
"outputs": [
|
191
360
|
{
|
192
|
-
"internalType": "
|
193
|
-
"name": "
|
194
|
-
"type": "
|
361
|
+
"internalType": "address",
|
362
|
+
"name": "",
|
363
|
+
"type": "address"
|
195
364
|
}
|
196
365
|
],
|
197
366
|
"stateMutability": "view",
|
@@ -222,17 +391,223 @@
|
|
222
391
|
"type": "function"
|
223
392
|
},
|
224
393
|
{
|
225
|
-
"inputs": [
|
226
|
-
"name": "getInitialInfo",
|
227
|
-
"outputs": [
|
394
|
+
"inputs": [
|
228
395
|
{
|
229
|
-
"
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
396
|
+
"internalType": "address",
|
397
|
+
"name": "distributor",
|
398
|
+
"type": "address"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"internalType": "DistributorType",
|
402
|
+
"name": "distributorType",
|
403
|
+
"type": "bytes8"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"internalType": "bytes",
|
407
|
+
"name": "data",
|
408
|
+
"type": "bytes"
|
409
|
+
}
|
410
|
+
],
|
411
|
+
"name": "createDistributor",
|
412
|
+
"outputs": [
|
413
|
+
{
|
414
|
+
"internalType": "NftId",
|
415
|
+
"name": "distributorNftId",
|
416
|
+
"type": "uint96"
|
417
|
+
}
|
418
|
+
],
|
419
|
+
"stateMutability": "nonpayable",
|
420
|
+
"type": "function"
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"inputs": [
|
424
|
+
{
|
425
|
+
"internalType": "string",
|
426
|
+
"name": "name",
|
427
|
+
"type": "string"
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"internalType": "UFixed",
|
431
|
+
"name": "minDiscountPercentage",
|
432
|
+
"type": "uint256"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "UFixed",
|
436
|
+
"name": "maxDiscountPercentage",
|
437
|
+
"type": "uint256"
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"internalType": "UFixed",
|
441
|
+
"name": "commissionPercentage",
|
442
|
+
"type": "uint256"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"internalType": "uint32",
|
446
|
+
"name": "maxReferralCount",
|
447
|
+
"type": "uint32"
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"internalType": "uint32",
|
451
|
+
"name": "maxReferralLifetime",
|
452
|
+
"type": "uint32"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"internalType": "bool",
|
456
|
+
"name": "allowSelfReferrals",
|
457
|
+
"type": "bool"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"internalType": "bool",
|
461
|
+
"name": "allowRenewals",
|
462
|
+
"type": "bool"
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"internalType": "bytes",
|
466
|
+
"name": "data",
|
467
|
+
"type": "bytes"
|
468
|
+
}
|
469
|
+
],
|
470
|
+
"name": "createDistributorType",
|
471
|
+
"outputs": [
|
472
|
+
{
|
473
|
+
"internalType": "DistributorType",
|
474
|
+
"name": "distributorType",
|
475
|
+
"type": "bytes8"
|
476
|
+
}
|
477
|
+
],
|
478
|
+
"stateMutability": "nonpayable",
|
479
|
+
"type": "function"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"inputs": [],
|
483
|
+
"name": "getComponentInfo",
|
484
|
+
"outputs": [
|
485
|
+
{
|
486
|
+
"components": [
|
487
|
+
{
|
488
|
+
"internalType": "string",
|
489
|
+
"name": "name",
|
490
|
+
"type": "string"
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"internalType": "contract IERC20Metadata",
|
494
|
+
"name": "token",
|
495
|
+
"type": "address"
|
496
|
+
},
|
497
|
+
{
|
498
|
+
"internalType": "contract TokenHandler",
|
499
|
+
"name": "tokenHandler",
|
500
|
+
"type": "address"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"internalType": "address",
|
504
|
+
"name": "wallet",
|
505
|
+
"type": "address"
|
506
|
+
},
|
507
|
+
{
|
508
|
+
"internalType": "Amount",
|
509
|
+
"name": "balanceAmount",
|
510
|
+
"type": "uint96"
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"internalType": "Amount",
|
514
|
+
"name": "feeAmount",
|
515
|
+
"type": "uint96"
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"internalType": "bytes",
|
519
|
+
"name": "data",
|
520
|
+
"type": "bytes"
|
521
|
+
}
|
522
|
+
],
|
523
|
+
"internalType": "struct IComponents.ComponentInfo",
|
524
|
+
"name": "info",
|
525
|
+
"type": "tuple"
|
526
|
+
}
|
527
|
+
],
|
528
|
+
"stateMutability": "view",
|
529
|
+
"type": "function"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"inputs": [
|
533
|
+
{
|
534
|
+
"internalType": "string",
|
535
|
+
"name": "referralCode",
|
536
|
+
"type": "string"
|
537
|
+
}
|
538
|
+
],
|
539
|
+
"name": "getDiscountPercentage",
|
540
|
+
"outputs": [
|
541
|
+
{
|
542
|
+
"internalType": "UFixed",
|
543
|
+
"name": "discountPercentage",
|
544
|
+
"type": "uint256"
|
545
|
+
},
|
546
|
+
{
|
547
|
+
"internalType": "ReferralStatus",
|
548
|
+
"name": "status",
|
549
|
+
"type": "uint8"
|
550
|
+
}
|
551
|
+
],
|
552
|
+
"stateMutability": "view",
|
553
|
+
"type": "function"
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"inputs": [],
|
557
|
+
"name": "getDistributionFee",
|
558
|
+
"outputs": [
|
559
|
+
{
|
560
|
+
"components": [
|
561
|
+
{
|
562
|
+
"internalType": "UFixed",
|
563
|
+
"name": "fractionalFee",
|
564
|
+
"type": "uint256"
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"internalType": "uint256",
|
568
|
+
"name": "fixedFee",
|
569
|
+
"type": "uint256"
|
570
|
+
}
|
571
|
+
],
|
572
|
+
"internalType": "struct Fee",
|
573
|
+
"name": "distributionFee",
|
574
|
+
"type": "tuple"
|
575
|
+
}
|
576
|
+
],
|
577
|
+
"stateMutability": "view",
|
578
|
+
"type": "function"
|
579
|
+
},
|
580
|
+
{
|
581
|
+
"inputs": [
|
582
|
+
{
|
583
|
+
"internalType": "address",
|
584
|
+
"name": "distributor",
|
585
|
+
"type": "address"
|
586
|
+
}
|
587
|
+
],
|
588
|
+
"name": "getDistributorNftId",
|
589
|
+
"outputs": [
|
590
|
+
{
|
591
|
+
"internalType": "NftId",
|
592
|
+
"name": "distributorNftId",
|
593
|
+
"type": "uint96"
|
594
|
+
}
|
595
|
+
],
|
596
|
+
"stateMutability": "view",
|
597
|
+
"type": "function"
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"inputs": [],
|
601
|
+
"name": "getInitialInfo",
|
602
|
+
"outputs": [
|
603
|
+
{
|
604
|
+
"components": [
|
605
|
+
{
|
606
|
+
"internalType": "NftId",
|
607
|
+
"name": "nftId",
|
608
|
+
"type": "uint96"
|
609
|
+
},
|
610
|
+
{
|
236
611
|
"internalType": "NftId",
|
237
612
|
"name": "parentNftId",
|
238
613
|
"type": "uint96"
|
@@ -264,143 +639,441 @@
|
|
264
639
|
}
|
265
640
|
],
|
266
641
|
"internalType": "struct IRegistry.ObjectInfo",
|
642
|
+
"name": "info",
|
643
|
+
"type": "tuple"
|
644
|
+
}
|
645
|
+
],
|
646
|
+
"stateMutability": "view",
|
647
|
+
"type": "function"
|
648
|
+
},
|
649
|
+
{
|
650
|
+
"inputs": [],
|
651
|
+
"name": "getInstance",
|
652
|
+
"outputs": [
|
653
|
+
{
|
654
|
+
"internalType": "contract IInstance",
|
655
|
+
"name": "instance",
|
656
|
+
"type": "address"
|
657
|
+
}
|
658
|
+
],
|
659
|
+
"stateMutability": "view",
|
660
|
+
"type": "function"
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"inputs": [],
|
664
|
+
"name": "getName",
|
665
|
+
"outputs": [
|
666
|
+
{
|
667
|
+
"internalType": "string",
|
668
|
+
"name": "name",
|
669
|
+
"type": "string"
|
670
|
+
}
|
671
|
+
],
|
672
|
+
"stateMutability": "view",
|
673
|
+
"type": "function"
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"inputs": [],
|
677
|
+
"name": "getNftId",
|
678
|
+
"outputs": [
|
679
|
+
{
|
680
|
+
"internalType": "NftId",
|
681
|
+
"name": "",
|
682
|
+
"type": "uint96"
|
683
|
+
}
|
684
|
+
],
|
685
|
+
"stateMutability": "view",
|
686
|
+
"type": "function"
|
687
|
+
},
|
688
|
+
{
|
689
|
+
"inputs": [],
|
690
|
+
"name": "getOwner",
|
691
|
+
"outputs": [
|
692
|
+
{
|
693
|
+
"internalType": "address",
|
694
|
+
"name": "",
|
695
|
+
"type": "address"
|
696
|
+
}
|
697
|
+
],
|
698
|
+
"stateMutability": "view",
|
699
|
+
"type": "function"
|
700
|
+
},
|
701
|
+
{
|
702
|
+
"inputs": [],
|
703
|
+
"name": "getProductNftId",
|
704
|
+
"outputs": [
|
705
|
+
{
|
706
|
+
"internalType": "NftId",
|
707
|
+
"name": "productNftId",
|
708
|
+
"type": "uint96"
|
709
|
+
}
|
710
|
+
],
|
711
|
+
"stateMutability": "view",
|
712
|
+
"type": "function"
|
713
|
+
},
|
714
|
+
{
|
715
|
+
"inputs": [
|
716
|
+
{
|
717
|
+
"internalType": "string",
|
718
|
+
"name": "referralCode",
|
719
|
+
"type": "string"
|
720
|
+
}
|
721
|
+
],
|
722
|
+
"name": "getReferralId",
|
723
|
+
"outputs": [
|
724
|
+
{
|
725
|
+
"internalType": "ReferralId",
|
726
|
+
"name": "referralId",
|
727
|
+
"type": "bytes8"
|
728
|
+
}
|
729
|
+
],
|
730
|
+
"stateMutability": "view",
|
731
|
+
"type": "function"
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"inputs": [],
|
735
|
+
"name": "getRegistry",
|
736
|
+
"outputs": [
|
737
|
+
{
|
738
|
+
"internalType": "contract IRegistry",
|
267
739
|
"name": "",
|
740
|
+
"type": "address"
|
741
|
+
}
|
742
|
+
],
|
743
|
+
"stateMutability": "view",
|
744
|
+
"type": "function"
|
745
|
+
},
|
746
|
+
{
|
747
|
+
"inputs": [],
|
748
|
+
"name": "getRegistryAddress",
|
749
|
+
"outputs": [
|
750
|
+
{
|
751
|
+
"internalType": "address",
|
752
|
+
"name": "",
|
753
|
+
"type": "address"
|
754
|
+
}
|
755
|
+
],
|
756
|
+
"stateMutability": "view",
|
757
|
+
"type": "function"
|
758
|
+
},
|
759
|
+
{
|
760
|
+
"inputs": [],
|
761
|
+
"name": "getSetupInfo",
|
762
|
+
"outputs": [
|
763
|
+
{
|
764
|
+
"components": [
|
765
|
+
{
|
766
|
+
"internalType": "NftId",
|
767
|
+
"name": "productNftId",
|
768
|
+
"type": "uint96"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"internalType": "contract TokenHandler",
|
772
|
+
"name": "tokenHandler",
|
773
|
+
"type": "address"
|
774
|
+
},
|
775
|
+
{
|
776
|
+
"components": [
|
777
|
+
{
|
778
|
+
"internalType": "UFixed",
|
779
|
+
"name": "fractionalFee",
|
780
|
+
"type": "uint256"
|
781
|
+
},
|
782
|
+
{
|
783
|
+
"internalType": "uint256",
|
784
|
+
"name": "fixedFee",
|
785
|
+
"type": "uint256"
|
786
|
+
}
|
787
|
+
],
|
788
|
+
"internalType": "struct Fee",
|
789
|
+
"name": "minDistributionOwnerFee",
|
790
|
+
"type": "tuple"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
"components": [
|
794
|
+
{
|
795
|
+
"internalType": "UFixed",
|
796
|
+
"name": "fractionalFee",
|
797
|
+
"type": "uint256"
|
798
|
+
},
|
799
|
+
{
|
800
|
+
"internalType": "uint256",
|
801
|
+
"name": "fixedFee",
|
802
|
+
"type": "uint256"
|
803
|
+
}
|
804
|
+
],
|
805
|
+
"internalType": "struct Fee",
|
806
|
+
"name": "distributionFee",
|
807
|
+
"type": "tuple"
|
808
|
+
},
|
809
|
+
{
|
810
|
+
"internalType": "address",
|
811
|
+
"name": "wallet",
|
812
|
+
"type": "address"
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"internalType": "uint256",
|
816
|
+
"name": "sumDistributionOwnerFees",
|
817
|
+
"type": "uint256"
|
818
|
+
}
|
819
|
+
],
|
820
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
821
|
+
"name": "setupInfo",
|
268
822
|
"type": "tuple"
|
823
|
+
}
|
824
|
+
],
|
825
|
+
"stateMutability": "view",
|
826
|
+
"type": "function"
|
827
|
+
},
|
828
|
+
{
|
829
|
+
"inputs": [],
|
830
|
+
"name": "getToken",
|
831
|
+
"outputs": [
|
832
|
+
{
|
833
|
+
"internalType": "contract IERC20Metadata",
|
834
|
+
"name": "token",
|
835
|
+
"type": "address"
|
836
|
+
}
|
837
|
+
],
|
838
|
+
"stateMutability": "view",
|
839
|
+
"type": "function"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"inputs": [],
|
843
|
+
"name": "getWallet",
|
844
|
+
"outputs": [
|
845
|
+
{
|
846
|
+
"internalType": "address",
|
847
|
+
"name": "walletAddress",
|
848
|
+
"type": "address"
|
849
|
+
}
|
850
|
+
],
|
851
|
+
"stateMutability": "view",
|
852
|
+
"type": "function"
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"inputs": [
|
856
|
+
{
|
857
|
+
"internalType": "address",
|
858
|
+
"name": "registry",
|
859
|
+
"type": "address"
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"internalType": "NftId",
|
863
|
+
"name": "instanceNftId",
|
864
|
+
"type": "uint96"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"internalType": "string",
|
868
|
+
"name": "name",
|
869
|
+
"type": "string"
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"internalType": "address",
|
873
|
+
"name": "token",
|
874
|
+
"type": "address"
|
875
|
+
},
|
876
|
+
{
|
877
|
+
"internalType": "ObjectType",
|
878
|
+
"name": "componentType",
|
879
|
+
"type": "uint8"
|
880
|
+
},
|
881
|
+
{
|
882
|
+
"internalType": "bool",
|
883
|
+
"name": "isInterceptor",
|
884
|
+
"type": "bool"
|
885
|
+
},
|
886
|
+
{
|
887
|
+
"internalType": "address",
|
888
|
+
"name": "initialOwner",
|
889
|
+
"type": "address"
|
890
|
+
},
|
891
|
+
{
|
892
|
+
"internalType": "bytes",
|
893
|
+
"name": "registryData",
|
894
|
+
"type": "bytes"
|
895
|
+
}
|
896
|
+
],
|
897
|
+
"name": "initializeComponent",
|
898
|
+
"outputs": [],
|
899
|
+
"stateMutability": "nonpayable",
|
900
|
+
"type": "function"
|
901
|
+
},
|
902
|
+
{
|
903
|
+
"inputs": [
|
904
|
+
{
|
905
|
+
"internalType": "address",
|
906
|
+
"name": "registry",
|
907
|
+
"type": "address"
|
908
|
+
},
|
909
|
+
{
|
910
|
+
"internalType": "NftId",
|
911
|
+
"name": "instanceNftId",
|
912
|
+
"type": "uint96"
|
913
|
+
},
|
914
|
+
{
|
915
|
+
"internalType": "string",
|
916
|
+
"name": "name",
|
917
|
+
"type": "string"
|
918
|
+
},
|
919
|
+
{
|
920
|
+
"internalType": "address",
|
921
|
+
"name": "token",
|
922
|
+
"type": "address"
|
923
|
+
},
|
924
|
+
{
|
925
|
+
"components": [
|
926
|
+
{
|
927
|
+
"internalType": "UFixed",
|
928
|
+
"name": "fractionalFee",
|
929
|
+
"type": "uint256"
|
930
|
+
},
|
931
|
+
{
|
932
|
+
"internalType": "uint256",
|
933
|
+
"name": "fixedFee",
|
934
|
+
"type": "uint256"
|
935
|
+
}
|
936
|
+
],
|
937
|
+
"internalType": "struct Fee",
|
938
|
+
"name": "minDistributionOwnerFee",
|
939
|
+
"type": "tuple"
|
940
|
+
},
|
941
|
+
{
|
942
|
+
"components": [
|
943
|
+
{
|
944
|
+
"internalType": "UFixed",
|
945
|
+
"name": "fractionalFee",
|
946
|
+
"type": "uint256"
|
947
|
+
},
|
948
|
+
{
|
949
|
+
"internalType": "uint256",
|
950
|
+
"name": "fixedFee",
|
951
|
+
"type": "uint256"
|
952
|
+
}
|
953
|
+
],
|
954
|
+
"internalType": "struct Fee",
|
955
|
+
"name": "distributionFee",
|
956
|
+
"type": "tuple"
|
957
|
+
},
|
958
|
+
{
|
959
|
+
"internalType": "address",
|
960
|
+
"name": "initialOwner",
|
961
|
+
"type": "address"
|
269
962
|
},
|
270
963
|
{
|
271
964
|
"internalType": "bytes",
|
272
|
-
"name": "",
|
965
|
+
"name": "registryData",
|
273
966
|
"type": "bytes"
|
274
967
|
}
|
275
968
|
],
|
276
|
-
"
|
969
|
+
"name": "initializeDistribution",
|
970
|
+
"outputs": [],
|
971
|
+
"stateMutability": "nonpayable",
|
277
972
|
"type": "function"
|
278
973
|
},
|
279
974
|
{
|
280
975
|
"inputs": [],
|
281
|
-
"name": "
|
282
|
-
"outputs": [
|
976
|
+
"name": "initializeERC165",
|
977
|
+
"outputs": [],
|
978
|
+
"stateMutability": "nonpayable",
|
979
|
+
"type": "function"
|
980
|
+
},
|
981
|
+
{
|
982
|
+
"inputs": [
|
283
983
|
{
|
284
|
-
"internalType": "
|
285
|
-
"name": "
|
984
|
+
"internalType": "address",
|
985
|
+
"name": "initialOwner",
|
986
|
+
"type": "address"
|
987
|
+
},
|
988
|
+
{
|
989
|
+
"internalType": "address",
|
990
|
+
"name": "registryAddress",
|
286
991
|
"type": "address"
|
287
992
|
}
|
288
993
|
],
|
289
|
-
"
|
994
|
+
"name": "initializeNftOwnable",
|
995
|
+
"outputs": [],
|
996
|
+
"stateMutability": "nonpayable",
|
290
997
|
"type": "function"
|
291
998
|
},
|
292
999
|
{
|
293
|
-
"inputs": [
|
294
|
-
|
295
|
-
|
1000
|
+
"inputs": [
|
1001
|
+
{
|
1002
|
+
"internalType": "address",
|
1003
|
+
"name": "registryAddress",
|
1004
|
+
"type": "address"
|
1005
|
+
},
|
296
1006
|
{
|
297
1007
|
"internalType": "NftId",
|
298
|
-
"name": "",
|
1008
|
+
"name": "parentNftId",
|
299
1009
|
"type": "uint96"
|
300
|
-
}
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
1010
|
+
},
|
1011
|
+
{
|
1012
|
+
"internalType": "ObjectType",
|
1013
|
+
"name": "objectType",
|
1014
|
+
"type": "uint8"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"internalType": "bool",
|
1018
|
+
"name": "isInterceptor",
|
1019
|
+
"type": "bool"
|
1020
|
+
},
|
309
1021
|
{
|
310
1022
|
"internalType": "address",
|
311
|
-
"name": "",
|
1023
|
+
"name": "initialOwner",
|
312
1024
|
"type": "address"
|
1025
|
+
},
|
1026
|
+
{
|
1027
|
+
"internalType": "bytes",
|
1028
|
+
"name": "registryData",
|
1029
|
+
"type": "bytes"
|
313
1030
|
}
|
314
1031
|
],
|
315
|
-
"
|
1032
|
+
"name": "initializeRegisterable",
|
1033
|
+
"outputs": [],
|
1034
|
+
"stateMutability": "nonpayable",
|
316
1035
|
"type": "function"
|
317
1036
|
},
|
318
1037
|
{
|
319
|
-
"inputs": [
|
320
|
-
"name": "getProductNftId",
|
321
|
-
"outputs": [
|
1038
|
+
"inputs": [
|
322
1039
|
{
|
323
|
-
"internalType": "
|
324
|
-
"name": "
|
325
|
-
"type": "
|
1040
|
+
"internalType": "address",
|
1041
|
+
"name": "registryAddress",
|
1042
|
+
"type": "address"
|
326
1043
|
}
|
327
1044
|
],
|
328
|
-
"
|
1045
|
+
"name": "initializeRegistryLinked",
|
1046
|
+
"outputs": [],
|
1047
|
+
"stateMutability": "nonpayable",
|
329
1048
|
"type": "function"
|
330
1049
|
},
|
331
1050
|
{
|
332
1051
|
"inputs": [],
|
333
|
-
"name": "
|
1052
|
+
"name": "isConsumingScheduledOp",
|
334
1053
|
"outputs": [
|
335
1054
|
{
|
336
|
-
"internalType": "
|
1055
|
+
"internalType": "bytes4",
|
337
1056
|
"name": "",
|
338
|
-
"type": "
|
1057
|
+
"type": "bytes4"
|
339
1058
|
}
|
340
1059
|
],
|
341
1060
|
"stateMutability": "view",
|
342
1061
|
"type": "function"
|
343
1062
|
},
|
344
1063
|
{
|
345
|
-
"inputs": [
|
346
|
-
"name": "getSetupInfo",
|
347
|
-
"outputs": [
|
1064
|
+
"inputs": [
|
348
1065
|
{
|
349
|
-
"
|
350
|
-
|
351
|
-
|
352
|
-
"name": "productNftId",
|
353
|
-
"type": "uint96"
|
354
|
-
},
|
355
|
-
{
|
356
|
-
"internalType": "contract TokenHandler",
|
357
|
-
"name": "tokenHandler",
|
358
|
-
"type": "address"
|
359
|
-
},
|
360
|
-
{
|
361
|
-
"components": [
|
362
|
-
{
|
363
|
-
"internalType": "UFixed",
|
364
|
-
"name": "fractionalFee",
|
365
|
-
"type": "uint256"
|
366
|
-
},
|
367
|
-
{
|
368
|
-
"internalType": "uint256",
|
369
|
-
"name": "fixedFee",
|
370
|
-
"type": "uint256"
|
371
|
-
}
|
372
|
-
],
|
373
|
-
"internalType": "struct Fee",
|
374
|
-
"name": "distributionFee",
|
375
|
-
"type": "tuple"
|
376
|
-
},
|
377
|
-
{
|
378
|
-
"internalType": "bool",
|
379
|
-
"name": "isIntercepting",
|
380
|
-
"type": "bool"
|
381
|
-
},
|
382
|
-
{
|
383
|
-
"internalType": "address",
|
384
|
-
"name": "wallet",
|
385
|
-
"type": "address"
|
386
|
-
}
|
387
|
-
],
|
388
|
-
"internalType": "struct ISetup.DistributionSetupInfo",
|
389
|
-
"name": "setupInfo",
|
390
|
-
"type": "tuple"
|
1066
|
+
"internalType": "address",
|
1067
|
+
"name": "candidate",
|
1068
|
+
"type": "address"
|
391
1069
|
}
|
392
1070
|
],
|
393
|
-
"
|
394
|
-
"type": "function"
|
395
|
-
},
|
396
|
-
{
|
397
|
-
"inputs": [],
|
398
|
-
"name": "getToken",
|
1071
|
+
"name": "isDistributor",
|
399
1072
|
"outputs": [
|
400
1073
|
{
|
401
|
-
"internalType": "
|
402
|
-
"name": "
|
403
|
-
"type": "
|
1074
|
+
"internalType": "bool",
|
1075
|
+
"name": "",
|
1076
|
+
"type": "bool"
|
404
1077
|
}
|
405
1078
|
],
|
406
1079
|
"stateMutability": "view",
|
@@ -408,12 +1081,12 @@
|
|
408
1081
|
},
|
409
1082
|
{
|
410
1083
|
"inputs": [],
|
411
|
-
"name": "
|
1084
|
+
"name": "isNftInterceptor",
|
412
1085
|
"outputs": [
|
413
1086
|
{
|
414
|
-
"internalType": "
|
415
|
-
"name": "
|
416
|
-
"type": "
|
1087
|
+
"internalType": "bool",
|
1088
|
+
"name": "isInterceptor",
|
1089
|
+
"type": "bool"
|
417
1090
|
}
|
418
1091
|
],
|
419
1092
|
"stateMutability": "view",
|
@@ -449,17 +1122,40 @@
|
|
449
1122
|
{
|
450
1123
|
"inputs": [
|
451
1124
|
{
|
452
|
-
"internalType": "
|
453
|
-
"name": "
|
454
|
-
"type": "
|
1125
|
+
"internalType": "address",
|
1126
|
+
"name": "to",
|
1127
|
+
"type": "address"
|
455
1128
|
},
|
456
1129
|
{
|
457
1130
|
"internalType": "uint256",
|
458
|
-
"name": "
|
1131
|
+
"name": "tokenId",
|
459
1132
|
"type": "uint256"
|
460
1133
|
}
|
461
1134
|
],
|
462
|
-
"name": "
|
1135
|
+
"name": "nftMint",
|
1136
|
+
"outputs": [],
|
1137
|
+
"stateMutability": "nonpayable",
|
1138
|
+
"type": "function"
|
1139
|
+
},
|
1140
|
+
{
|
1141
|
+
"inputs": [
|
1142
|
+
{
|
1143
|
+
"internalType": "address",
|
1144
|
+
"name": "from",
|
1145
|
+
"type": "address"
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
"internalType": "address",
|
1149
|
+
"name": "to",
|
1150
|
+
"type": "address"
|
1151
|
+
},
|
1152
|
+
{
|
1153
|
+
"internalType": "uint256",
|
1154
|
+
"name": "tokenId",
|
1155
|
+
"type": "uint256"
|
1156
|
+
}
|
1157
|
+
],
|
1158
|
+
"name": "nftTransferFrom",
|
463
1159
|
"outputs": [],
|
464
1160
|
"stateMutability": "nonpayable",
|
465
1161
|
"type": "function"
|
@@ -477,7 +1173,7 @@
|
|
477
1173
|
"type": "uint256"
|
478
1174
|
}
|
479
1175
|
],
|
480
|
-
"name": "
|
1176
|
+
"name": "processRenewal",
|
481
1177
|
"outputs": [],
|
482
1178
|
"stateMutability": "nonpayable",
|
483
1179
|
"type": "function"
|
@@ -485,24 +1181,48 @@
|
|
485
1181
|
{
|
486
1182
|
"inputs": [
|
487
1183
|
{
|
488
|
-
"internalType": "
|
489
|
-
"name": "
|
490
|
-
"type": "
|
1184
|
+
"internalType": "bytes4",
|
1185
|
+
"name": "interfaceId",
|
1186
|
+
"type": "bytes4"
|
491
1187
|
}
|
492
1188
|
],
|
493
|
-
"name": "
|
494
|
-
"outputs": [
|
1189
|
+
"name": "registerInterface",
|
1190
|
+
"outputs": [],
|
1191
|
+
"stateMutability": "nonpayable",
|
1192
|
+
"type": "function"
|
1193
|
+
},
|
1194
|
+
{
|
1195
|
+
"inputs": [
|
495
1196
|
{
|
496
|
-
"internalType": "
|
497
|
-
"name": "
|
498
|
-
"type": "
|
1197
|
+
"internalType": "address",
|
1198
|
+
"name": "newAuthority",
|
1199
|
+
"type": "address"
|
499
1200
|
}
|
500
1201
|
],
|
501
|
-
"
|
1202
|
+
"name": "setAuthority",
|
1203
|
+
"outputs": [],
|
1204
|
+
"stateMutability": "nonpayable",
|
502
1205
|
"type": "function"
|
503
1206
|
},
|
504
1207
|
{
|
505
1208
|
"inputs": [
|
1209
|
+
{
|
1210
|
+
"components": [
|
1211
|
+
{
|
1212
|
+
"internalType": "UFixed",
|
1213
|
+
"name": "fractionalFee",
|
1214
|
+
"type": "uint256"
|
1215
|
+
},
|
1216
|
+
{
|
1217
|
+
"internalType": "uint256",
|
1218
|
+
"name": "fixedFee",
|
1219
|
+
"type": "uint256"
|
1220
|
+
}
|
1221
|
+
],
|
1222
|
+
"internalType": "struct Fee",
|
1223
|
+
"name": "minDistributionOwnerFee",
|
1224
|
+
"type": "tuple"
|
1225
|
+
},
|
506
1226
|
{
|
507
1227
|
"components": [
|
508
1228
|
{
|
@@ -526,6 +1246,32 @@
|
|
526
1246
|
"stateMutability": "nonpayable",
|
527
1247
|
"type": "function"
|
528
1248
|
},
|
1249
|
+
{
|
1250
|
+
"inputs": [
|
1251
|
+
{
|
1252
|
+
"internalType": "NftId",
|
1253
|
+
"name": "productNftId",
|
1254
|
+
"type": "uint96"
|
1255
|
+
}
|
1256
|
+
],
|
1257
|
+
"name": "setProductNftId",
|
1258
|
+
"outputs": [],
|
1259
|
+
"stateMutability": "nonpayable",
|
1260
|
+
"type": "function"
|
1261
|
+
},
|
1262
|
+
{
|
1263
|
+
"inputs": [
|
1264
|
+
{
|
1265
|
+
"internalType": "address",
|
1266
|
+
"name": "newWallet",
|
1267
|
+
"type": "address"
|
1268
|
+
}
|
1269
|
+
],
|
1270
|
+
"name": "setWallet",
|
1271
|
+
"outputs": [],
|
1272
|
+
"stateMutability": "nonpayable",
|
1273
|
+
"type": "function"
|
1274
|
+
},
|
529
1275
|
{
|
530
1276
|
"inputs": [
|
531
1277
|
{
|
@@ -551,60 +1297,33 @@
|
|
551
1297
|
"outputs": [],
|
552
1298
|
"stateMutability": "nonpayable",
|
553
1299
|
"type": "function"
|
554
|
-
}
|
555
|
-
],
|
556
|
-
"bytecode": "0x60806040523480156200001157600080fd5b5060405162001c5638038062001c568339810160408190526200003491620006a1565b8686868660786301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600190811790915586600280546001600160a01b03191633179055604080516020810190915260008152620000ab88888686868662000371565b6000620000c06001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b038a1660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000110573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200013a91908101906200081f565b6080810151600780546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b81526342e19e5f60e01b6004820152919250906301ffc9a790602401602060405180830381865afa158015620001a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c8919062000905565b620001f45760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600760009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000248573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026e91906200092a565b600380546001600160a01b03199081166001600160a01b039384161790915560058054309083161790556006805490911688831617905560078054909116600160a01b6001600160601b038a160217905563593e597960e11b60009081526020527fe5ff73b5268559916713b465b9aafbfc723fb1444fb210a355c8977973af6095805460ff191660011790555050600a80548b151560ff199182161790915589516008556020808b015160095563c8ea96c560e01b600090815290527f358bf83baf6613c2def0011c88aae44093f6c2a350167255c9453fdf9640579480549091166001179055506200036495505050505050565b5050505050505062000aa5565b6200037d828762000442565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d010000000000000000000000000086151502178155905060018101620003fc8382620009d9565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b600280546001600160a01b0319166001600160a01b03841617905562000468816200046c565b5050565b6001546001600160a01b031615620004a75760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001eb565b6001600160a01b038116620004cf5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620005075760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001eb565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263350fb35160e11b60048201526301ffc9a790602401602060405180830381865afa92505050801562000584575060408051601f3d908101601f19168201909252620005819181019062000905565b60015b620005ae5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001eb565b80620004685760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001eb565b50565b6001600160a01b0381168114620005d957600080fd5b8051620005ff81620005dc565b919050565b80516001600160601b0381168114620005ff57600080fd5b80518015158114620005ff57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156200066857620006686200062d565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200069957620006996200062d565b604052919050565b6000806000806000806000878903610100811215620006bf57600080fd5b8851620006cc81620005dc565b9750620006dc60208a0162000604565b9650620006ec60408a0162000604565b95506060890151620006fe81620005dc565b94506200070e60808a016200061c565b93506040609f19820112156200072357600080fd5b50604080519081016001600160401b03811182821017156200074957620007496200062d565b60405260a0890151815260c0890151602082015260e08901519092506200077081620005dc565b8091505092959891949750929550565b805160ff81168114620005ff57600080fd5b600082601f830112620007a457600080fd5b81516001600160401b03811115620007c057620007c06200062d565b6020620007d6601f8301601f191682016200066e565b8281528582848701011115620007eb57600080fd5b60005b838110156200080b578581018301518282018401528201620007ee565b506000928101909101919091529392505050565b6000602082840312156200083257600080fd5b81516001600160401b03808211156200084a57600080fd5b9083019060e082860312156200085f57600080fd5b6200086962000643565b620008748362000604565b8152620008846020840162000604565b6020820152620008976040840162000780565b6040820152620008aa606084016200061c565b6060820152620008bd60808401620005f2565b6080820152620008d060a08401620005f2565b60a082015260c083015182811115620008e857600080fd5b620008f68782860162000792565b60c08301525095945050505050565b6000602082840312156200091857600080fd5b62000923826200061c565b9392505050565b6000602082840312156200093d57600080fd5b81516200092381620005dc565b600181811c908216806200095f57607f821691505b6020821081036200098057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620009d457600081815260208120601f850160051c81016020861015620009af5750805b601f850160051c820191505b81811015620009d057828155600101620009bb565b5050505b505050565b81516001600160401b03811115620009f557620009f56200062d565b62000a0d8162000a0684546200094a565b8462000986565b602080601f83116001811462000a45576000841562000a2c5750858301515b600019600386901b1c1916600185901b178555620009d0565b600085815260208120601f198616915b8281101562000a765788860151825594840194600190910190840162000a55565b508582101562000a955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6111a18062000ab56000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063644c45e0116100b8578063d16d0fe81161007c578063d16d0fe814610305578063de7b5d1414610318578063e214756714610329578063f7d39dea1461033d578063f80e207214610247578063f83d08ba1461035057600080fd5b8063644c45e01461026b57806387ef9ba014610283578063893d20e81461028e578063a69df4b514610296578063c200b8091461029e57600080fd5b80631eff4b22116100ff5780631eff4b22146101ee57806321df0da7146102235780633f52c0f6146102345780634cf30a84146102475780635ab1bd531461025a57600080fd5b806251884a1461013b57806301ffc9a71461016c5780630fec111c146101a957806313299604146101bf578063138461e0146101e4575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b61019961017a366004610d89565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610163565b6101b1610358565b604051610163929190610e00565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610163565b6101ec6103df565b005b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610163565b6006546001600160a01b03166101cc565b6101ec610242366004610ede565b610601565b6101ec610255366004610f2d565b61066a565b6001546001600160a01b03166101cc565b600154600160a01b90046001600160601b031661014f565b600a5460ff16610199565b6101cc6106d2565b6101ec6107f0565b6102a661086d565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610163565b610215610313366004610f2d565b610a73565b6007546001600160a01b03166101cc565b610199610337366004610f57565b50600090565b61021561034b366004610f2d565b610a88565b6101ec610b2a565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290918061039c610ba7565b50600a546040805160085460208201526009548183015260ff90921615156060808401919091528151808403909101815260809092019052909590945092505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190610f82565b156104ac576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166104d55760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561051e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105429190610f82565b61056a576040516372657a5160e01b81526001600160a01b03821660048201526024016104a3565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610fb4565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f690610635908490600401610fcf565b600060405180830381600087803b15801561064f57600080fd5b505af1158015610663573d6000803e3d6000fd5b5050505050565b600b546001600160a01b031633146106ce5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104a3565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075b9190610f82565b156107e057600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190611009565b905090565b506002546001600160a01b031690565b60006107fa6106d2565b90506001600160a01b0381161580159061081d5750336001600160a01b03821614155b1561083d5760405163700dd81160e01b81523360048201526024016104a3565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c90602401610635565b610875610d2d565b6001546040805163c4cade9d60e01b8152600160a01b9092046001600160601b03166004830152600060248301525173__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9163c4cade9d9160448083019260209291908290030181865af41580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109089190610f82565b1561096c57506040805160a081018252600754600160a01b90046001600160601b03168152600060208083018290528351808501855260085481526009549181019190915292820192909252600a5460ff1615156060820152608081019190915290565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190611009565b9050806001600160a01b0316639ad69c67610a056001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d9190611026565b91505090565b6000610a7f82826110e8565b90505b92915050565b600080610a9361086d565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b20919061110d565b5095945050505050565b6000610b346106d2565b90506001600160a01b03811615801590610b575750336001600160a01b03821614155b15610b775760405163700dd81160e01b81523360048201526024016104a3565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610635565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610c2e6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610c766106d2565b6001600160a01b03168152602001826001018054610c9390611131565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbf90611131565b8015610d0c5780601f10610ce157610100808354040283529160200191610d0c565b820191906000526020600020905b815481529060010190602001808311610cef57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610d75604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610d9b57600080fd5b81356001600160e01b031981168114610db357600080fd5b9392505050565b6000815180845260005b81811015610de057602081850181015186830182015201610dc4565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610e4460a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610e8a610120840182610dba565b90508281036020840152610e9e8185610dba565b95945050505050565b6040805190810167ffffffffffffffff81118282101715610ed857634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610ef057600080fd5b610ef8610ea7565b82358152602083013560208201528091505092915050565b80356001600160c01b031981168114610f2857600080fd5b919050565b60008060408385031215610f4057600080fd5b610f4983610f10565b946020939093013593505050565b600060208284031215610f6957600080fd5b610a7f82610f10565b80518015158114610f2857600080fd5b600060208284031215610f9457600080fd5b610a7f82610f72565b80516001600160601b0381168114610f2857600080fd5b600060208284031215610fc657600080fd5b610a7f82610f9d565b815181526020808301519082015260408101610a82565b6001600160a01b0381168114610ffb57600080fd5b50565b8051610f2881610fe6565b60006020828403121561101b57600080fd5b8151610db381610fe6565b600081830360c081121561103957600080fd5b60405160a0810181811067ffffffffffffffff8211171561106a57634e487b7160e01b600052604160045260246000fd5b60405261107684610f9d565b8152602084015161108681610fe6565b60208201526040603f198301121561109d57600080fd5b6110a5610ea7565b915060408401518252606084015160208301528160408201526110ca60808501610f72565b60608201526110db60a08501610ffe565b6080820152949350505050565b8082028115828204841417610a8257634e487b7160e01b600052601160045260246000fd5b6000806040838503121561112057600080fd5b505080516020909101519092909150565b600181811c9082168061114557607f821691505b60208210810361116557634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220826ff1278946ea962c35ee01d94e874e4bd5a3179396157f99899553df9659ff64736f6c63430008140033",
|
557
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063644c45e0116100b8578063d16d0fe81161007c578063d16d0fe814610305578063de7b5d1414610318578063e214756714610329578063f7d39dea1461033d578063f80e207214610247578063f83d08ba1461035057600080fd5b8063644c45e01461026b57806387ef9ba014610283578063893d20e81461028e578063a69df4b514610296578063c200b8091461029e57600080fd5b80631eff4b22116100ff5780631eff4b22146101ee57806321df0da7146102235780633f52c0f6146102345780634cf30a84146102475780635ab1bd531461025a57600080fd5b806251884a1461013b57806301ffc9a71461016c5780630fec111c146101a957806313299604146101bf578063138461e0146101e4575b600080fd5b600754600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b61019961017a366004610d89565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610163565b6101b1610358565b604051610163929190610e00565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610163565b6101ec6103df565b005b6102157f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610163565b6006546001600160a01b03166101cc565b6101ec610242366004610ede565b610601565b6101ec610255366004610f2d565b61066a565b6001546001600160a01b03166101cc565b600154600160a01b90046001600160601b031661014f565b600a5460ff16610199565b6101cc6106d2565b6101ec6107f0565b6102a661086d565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610163565b610215610313366004610f2d565b610a73565b6007546001600160a01b03166101cc565b610199610337366004610f57565b50600090565b61021561034b366004610f2d565b610a88565b6101ec610b2a565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290918061039c610ba7565b50600a546040805160085460208201526009548183015260ff90921615156060808401919091528151808403909101815260809092019052909590945092505050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104659190610f82565b156104ac576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166104d55760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561051e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105429190610f82565b61056a576040516372657a5160e01b81526001600160a01b03821660048201526024016104a3565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610fb4565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600a54604051631fa9607b60e11b81526101009091046001600160a01b031690633f52c0f690610635908490600401610fcf565b600060405180830381600087803b15801561064f57600080fd5b505af1158015610663573d6000803e3d6000fd5b5050505050565b600b546001600160a01b031633146106ce5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104a3565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075b9190610f82565b156107e057600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190611009565b905090565b506002546001600160a01b031690565b60006107fa6106d2565b90506001600160a01b0381161580159061081d5750336001600160a01b03821614155b1561083d5760405163700dd81160e01b81523360048201526024016104a3565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c90602401610635565b610875610d2d565b6001546040805163c4cade9d60e01b8152600160a01b9092046001600160601b03166004830152600060248301525173__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9163c4cade9d9160448083019260209291908290030181865af41580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109089190610f82565b1561096c57506040805160a081018252600754600160a01b90046001600160601b03168152600060208083018290528351808501855260085481526009549181019190915292820192909252600a5460ff1615156060820152608081019190915290565b600754604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190611009565b9050806001600160a01b0316639ad69c67610a056001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610a49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6d9190611026565b91505090565b6000610a7f82826110e8565b90505b92915050565b600080610a9361086d565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b20919061110d565b5095945050505050565b6000610b346106d2565b90506001600160a01b03811615801590610b575750336001600160a01b03821614155b15610b775760405163700dd81160e01b81523360048201526024016104a3565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610635565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610c2e6001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610c766106d2565b6001600160a01b03168152602001826001018054610c9390611131565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbf90611131565b8015610d0c5780601f10610ce157610100808354040283529160200191610d0c565b820191906000526020600020905b815481529060010190602001808311610cef57829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b03168152602001610d75604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b600060208284031215610d9b57600080fd5b81356001600160e01b031981168114610db357600080fd5b9392505050565b6000815180845260005b81811015610de057602081850181015186830182015201610dc4565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff60408501511660808301526060840151610e4460a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152610e8a610120840182610dba565b90508281036020840152610e9e8185610dba565b95945050505050565b6040805190810167ffffffffffffffff81118282101715610ed857634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610ef057600080fd5b610ef8610ea7565b82358152602083013560208201528091505092915050565b80356001600160c01b031981168114610f2857600080fd5b919050565b60008060408385031215610f4057600080fd5b610f4983610f10565b946020939093013593505050565b600060208284031215610f6957600080fd5b610a7f82610f10565b80518015158114610f2857600080fd5b600060208284031215610f9457600080fd5b610a7f82610f72565b80516001600160601b0381168114610f2857600080fd5b600060208284031215610fc657600080fd5b610a7f82610f9d565b815181526020808301519082015260408101610a82565b6001600160a01b0381168114610ffb57600080fd5b50565b8051610f2881610fe6565b60006020828403121561101b57600080fd5b8151610db381610fe6565b600081830360c081121561103957600080fd5b60405160a0810181811067ffffffffffffffff8211171561106a57634e487b7160e01b600052604160045260246000fd5b60405261107684610f9d565b8152602084015161108681610fe6565b60208201526040603f198301121561109d57600080fd5b6110a5610ea7565b915060408401518252606084015160208301528160408201526110ca60808501610f72565b60608201526110db60a08501610ffe565b6080820152949350505050565b8082028115828204841417610a8257634e487b7160e01b600052601160045260246000fd5b6000806040838503121561112057600080fd5b505080516020909101519092909150565b600181811c9082168061114557607f821691505b60208210810361116557634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220826ff1278946ea962c35ee01d94e874e4bd5a3179396157f99899553df9659ff64736f6c63430008140033",
|
558
|
-
"linkReferences": {
|
559
|
-
"contracts/types/Fee.sol": {
|
560
|
-
"FeeLib": [
|
561
|
-
{
|
562
|
-
"length": 20,
|
563
|
-
"start": 5496
|
564
|
-
}
|
565
|
-
]
|
566
|
-
},
|
567
|
-
"contracts/types/NftId.sol": {
|
568
|
-
"NftIdLib": [
|
569
|
-
{
|
570
|
-
"length": 20,
|
571
|
-
"start": 3772
|
572
|
-
},
|
573
|
-
{
|
574
|
-
"length": 20,
|
575
|
-
"start": 4530
|
576
|
-
},
|
577
|
-
{
|
578
|
-
"length": 20,
|
579
|
-
"start": 4955
|
580
|
-
}
|
581
|
-
]
|
582
|
-
}
|
583
|
-
},
|
584
|
-
"deployedLinkReferences": {
|
585
|
-
"contracts/types/Fee.sol": {
|
586
|
-
"FeeLib": [
|
587
|
-
{
|
588
|
-
"length": 20,
|
589
|
-
"start": 2755
|
590
|
-
}
|
591
|
-
]
|
592
1300
|
},
|
593
|
-
|
594
|
-
"
|
1301
|
+
{
|
1302
|
+
"inputs": [
|
595
1303
|
{
|
596
|
-
"
|
597
|
-
"
|
1304
|
+
"internalType": "NftId",
|
1305
|
+
"name": "distributorNftId",
|
1306
|
+
"type": "uint96"
|
598
1307
|
},
|
599
1308
|
{
|
600
|
-
"
|
601
|
-
"
|
1309
|
+
"internalType": "DistributorType",
|
1310
|
+
"name": "distributorType",
|
1311
|
+
"type": "bytes8"
|
602
1312
|
},
|
603
1313
|
{
|
604
|
-
"
|
605
|
-
"
|
1314
|
+
"internalType": "bytes",
|
1315
|
+
"name": "data",
|
1316
|
+
"type": "bytes"
|
606
1317
|
}
|
607
|
-
]
|
1318
|
+
],
|
1319
|
+
"name": "updateDistributorType",
|
1320
|
+
"outputs": [],
|
1321
|
+
"stateMutability": "nonpayable",
|
1322
|
+
"type": "function"
|
608
1323
|
}
|
609
|
-
|
1324
|
+
],
|
1325
|
+
"bytecode": "0x",
|
1326
|
+
"deployedBytecode": "0x",
|
1327
|
+
"linkReferences": {},
|
1328
|
+
"deployedLinkReferences": {}
|
610
1329
|
}
|