@etherisc/gif-next 0.0.2-d02cb80-460 → 0.0.2-d086e6d-456
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +78 -1
- 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 +853 -296
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +225 -89
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +848 -31
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +846 -57
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +725 -316
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +524 -240
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +1 -1
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +15 -15
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +69 -79
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1038 -395
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +290 -220
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1038 -784
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +432 -186
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +137 -270
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +448 -418
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +303 -138
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +11 -40
- 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} +278 -157
- 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 +61 -67
- 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 +1058 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +625 -290
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +356 -79
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +844 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1385 -247
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +450 -73
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +646 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +278 -264
- 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} +227 -194
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +791 -134
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +216 -250
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +502 -133
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +95 -157
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +474 -347
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +321 -96
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +801 -255
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +307 -78
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +308 -209
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +305 -76
- 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 +158 -215
- 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 +202 -318
- 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 +547 -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 +95 -157
- 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 +195 -148
- 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 +213 -202
- 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 +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +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 +2 -2
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +200 -83
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +44 -17
- package/contracts/components/IPoolComponent.sol +88 -41
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +217 -185
- package/contracts/components/Product.sol +125 -124
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +2 -12
- package/contracts/instance/BundleManager.sol +14 -16
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +52 -14
- package/contracts/instance/IInstanceService.sol +39 -9
- package/contracts/instance/Instance.sol +126 -75
- package/contracts/instance/InstanceAccessManager.sol +383 -166
- package/contracts/instance/InstanceReader.sol +10 -34
- package/contracts/instance/InstanceService.sol +312 -128
- package/contracts/instance/InstanceServiceManager.sol +6 -9
- package/contracts/instance/ObjectManager.sol +10 -29
- package/contracts/instance/base/ComponentService.sol +136 -0
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +23 -17
- 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 +30 -3
- package/contracts/instance/module/ISetup.sol +7 -20
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +239 -68
- package/contracts/instance/service/BundleServiceManager.sol +6 -9
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +367 -50
- package/contracts/instance/service/DistributionServiceManager.sol +7 -10
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +67 -19
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +86 -0
- package/contracts/instance/service/IPolicyService.sol +34 -49
- package/contracts/instance/service/IPoolService.sol +82 -3
- package/contracts/instance/service/PolicyService.sol +199 -347
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +264 -45
- package/contracts/instance/service/PoolServiceManager.sol +6 -9
- package/contracts/instance/service/ProductService.sol +93 -56
- 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 +100 -173
- package/contracts/registry/RegistryServiceManager.sol +21 -39
- package/contracts/registry/ReleaseManager.sol +322 -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 +8 -2
- 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 +30 -22
- 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 +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/ObjectType.sol +10 -5
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/RoleId.sol +19 -15
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +13 -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/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -384
- 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/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
- package/artifacts/contracts/instance/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 -145
- package/contracts/components/IBaseComponent.sol +0 -32
- 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/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/IInstanceBase.sol +0 -26
- package/contracts/instance/InstanceBase.sol +0 -41
- package/contracts/instance/base/ComponentServiceBase.sol +0 -72
- package/contracts/instance/base/IInstanceBase.sol +0 -23
- package/contracts/instance/service/ComponentOwnerService.sol +0 -317
- package/contracts/instance/service/IComponentOwnerService.sol +0 -20
- package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -7,49 +7,39 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
11
|
"type": "address"
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
18
19
|
{
|
19
20
|
"internalType": "address",
|
20
|
-
"name": "
|
21
|
+
"name": "caller",
|
21
22
|
"type": "address"
|
22
23
|
},
|
23
24
|
{
|
24
|
-
"internalType": "
|
25
|
-
"name": "
|
26
|
-
"type": "
|
27
|
-
}
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"internalType": "uint256",
|
37
|
-
"name": "fixedFee",
|
38
|
-
"type": "uint256"
|
39
|
-
}
|
40
|
-
],
|
41
|
-
"internalType": "struct Fee",
|
42
|
-
"name": "distributionFee",
|
43
|
-
"type": "tuple"
|
44
|
-
},
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
45
35
|
{
|
46
36
|
"internalType": "address",
|
47
|
-
"name": "
|
37
|
+
"name": "caller",
|
48
38
|
"type": "address"
|
49
39
|
}
|
50
40
|
],
|
51
|
-
"
|
52
|
-
"type": "
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
53
43
|
},
|
54
44
|
{
|
55
45
|
"inputs": [
|
@@ -77,43 +67,48 @@
|
|
77
67
|
"inputs": [
|
78
68
|
{
|
79
69
|
"internalType": "address",
|
80
|
-
"name": "
|
70
|
+
"name": "caller",
|
81
71
|
"type": "address"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"internalType": "NftId",
|
85
|
-
"name": "nftId",
|
86
|
-
"type": "uint96"
|
87
72
|
}
|
88
73
|
],
|
89
|
-
"name": "
|
74
|
+
"name": "ErrorComponentNotChainNft",
|
90
75
|
"type": "error"
|
91
76
|
},
|
92
77
|
{
|
93
78
|
"inputs": [
|
94
79
|
{
|
95
|
-
"internalType": "
|
96
|
-
"name": "
|
97
|
-
"type": "
|
98
|
-
},
|
99
|
-
{
|
100
|
-
"internalType": "uint64",
|
101
|
-
"name": "requiredRoleIdNum",
|
102
|
-
"type": "uint64"
|
80
|
+
"internalType": "NftId",
|
81
|
+
"name": "instanceNftId",
|
82
|
+
"type": "uint96"
|
103
83
|
}
|
104
84
|
],
|
105
|
-
"name": "
|
85
|
+
"name": "ErrorComponentNotInstance",
|
106
86
|
"type": "error"
|
107
87
|
},
|
108
88
|
{
|
109
89
|
"inputs": [
|
110
90
|
{
|
111
91
|
"internalType": "address",
|
112
|
-
"name": "
|
92
|
+
"name": "caller",
|
113
93
|
"type": "address"
|
114
94
|
}
|
115
95
|
],
|
116
|
-
"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",
|
117
112
|
"type": "error"
|
118
113
|
},
|
119
114
|
{
|
@@ -139,72 +134,56 @@
|
|
139
134
|
"type": "uint256"
|
140
135
|
}
|
141
136
|
],
|
142
|
-
"name": "
|
137
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
143
138
|
"type": "error"
|
144
139
|
},
|
145
140
|
{
|
146
141
|
"inputs": [
|
147
142
|
{
|
148
|
-
"internalType": "
|
149
|
-
"name": "
|
150
|
-
"type": "
|
143
|
+
"internalType": "NftId",
|
144
|
+
"name": "nftId",
|
145
|
+
"type": "uint96"
|
151
146
|
}
|
152
147
|
],
|
153
|
-
"name": "
|
148
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
154
149
|
"type": "error"
|
155
150
|
},
|
156
151
|
{
|
157
152
|
"inputs": [
|
158
153
|
{
|
159
154
|
"internalType": "address",
|
160
|
-
"name": "
|
155
|
+
"name": "contractAddress",
|
161
156
|
"type": "address"
|
162
157
|
}
|
163
158
|
],
|
164
|
-
"name": "
|
159
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
165
160
|
"type": "error"
|
166
161
|
},
|
167
162
|
{
|
168
|
-
"inputs": [
|
169
|
-
|
170
|
-
"internalType": "address",
|
171
|
-
"name": "registryAddress",
|
172
|
-
"type": "address"
|
173
|
-
}
|
174
|
-
],
|
175
|
-
"name": "ErrorNotRegistry",
|
163
|
+
"inputs": [],
|
164
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
176
165
|
"type": "error"
|
177
166
|
},
|
178
167
|
{
|
179
168
|
"inputs": [
|
180
169
|
{
|
181
170
|
"internalType": "address",
|
182
|
-
"name": "
|
171
|
+
"name": "account",
|
183
172
|
"type": "address"
|
184
173
|
}
|
185
174
|
],
|
186
|
-
"name": "
|
187
|
-
"type": "error"
|
188
|
-
},
|
189
|
-
{
|
190
|
-
"inputs": [],
|
191
|
-
"name": "ErrorRegistryAddressZero",
|
175
|
+
"name": "ErrorNftOwnableNotOwner",
|
192
176
|
"type": "error"
|
193
177
|
},
|
194
178
|
{
|
195
179
|
"inputs": [
|
196
180
|
{
|
197
181
|
"internalType": "address",
|
198
|
-
"name": "
|
182
|
+
"name": "registryAddress",
|
199
183
|
"type": "address"
|
200
184
|
}
|
201
185
|
],
|
202
|
-
"name": "
|
203
|
-
"type": "error"
|
204
|
-
},
|
205
|
-
{
|
206
|
-
"inputs": [],
|
207
|
-
"name": "ErrorRegistryNotInitialized",
|
186
|
+
"name": "ErrorNotRegistry",
|
208
187
|
"type": "error"
|
209
188
|
},
|
210
189
|
{
|
@@ -233,6 +212,19 @@
|
|
233
212
|
"name": "SafeERC20FailedOperation",
|
234
213
|
"type": "error"
|
235
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
|
+
},
|
236
228
|
{
|
237
229
|
"anonymous": false,
|
238
230
|
"inputs": [
|
@@ -249,6 +241,12 @@
|
|
249
241
|
{
|
250
242
|
"anonymous": false,
|
251
243
|
"inputs": [
|
244
|
+
{
|
245
|
+
"indexed": false,
|
246
|
+
"internalType": "address",
|
247
|
+
"name": "oldWallet",
|
248
|
+
"type": "address"
|
249
|
+
},
|
252
250
|
{
|
253
251
|
"indexed": false,
|
254
252
|
"internalType": "address",
|
@@ -256,7 +254,7 @@
|
|
256
254
|
"type": "address"
|
257
255
|
}
|
258
256
|
],
|
259
|
-
"name": "
|
257
|
+
"name": "LogComponentWalletAddressChanged",
|
260
258
|
"type": "event"
|
261
259
|
},
|
262
260
|
{
|
@@ -281,12 +279,31 @@
|
|
281
279
|
"type": "uint256"
|
282
280
|
}
|
283
281
|
],
|
284
|
-
"name": "
|
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",
|
285
302
|
"type": "event"
|
286
303
|
},
|
287
304
|
{
|
288
305
|
"inputs": [],
|
289
|
-
"name": "
|
306
|
+
"name": "COMPONENT_LOCATION_V1",
|
290
307
|
"outputs": [
|
291
308
|
{
|
292
309
|
"internalType": "bytes32",
|
@@ -298,24 +315,52 @@
|
|
298
315
|
"type": "function"
|
299
316
|
},
|
300
317
|
{
|
301
|
-
"inputs": [
|
318
|
+
"inputs": [],
|
319
|
+
"name": "DISTRIBUTION_STORAGE_LOCATION_V1",
|
320
|
+
"outputs": [
|
302
321
|
{
|
303
|
-
"internalType": "
|
304
|
-
"name": "
|
305
|
-
"type": "
|
306
|
-
}
|
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": [
|
307
334
|
{
|
308
|
-
"internalType": "
|
309
|
-
"name": "
|
310
|
-
"type": "
|
335
|
+
"internalType": "bytes32",
|
336
|
+
"name": "",
|
337
|
+
"type": "bytes32"
|
311
338
|
}
|
312
339
|
],
|
313
|
-
"
|
340
|
+
"stateMutability": "view",
|
341
|
+
"type": "function"
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"inputs": [],
|
345
|
+
"name": "REGISTERABLE_LOCATION_V1",
|
314
346
|
"outputs": [
|
315
347
|
{
|
316
|
-
"internalType": "
|
317
|
-
"name": "
|
318
|
-
"type": "
|
348
|
+
"internalType": "bytes32",
|
349
|
+
"name": "",
|
350
|
+
"type": "bytes32"
|
351
|
+
}
|
352
|
+
],
|
353
|
+
"stateMutability": "view",
|
354
|
+
"type": "function"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"inputs": [],
|
358
|
+
"name": "authority",
|
359
|
+
"outputs": [
|
360
|
+
{
|
361
|
+
"internalType": "address",
|
362
|
+
"name": "",
|
363
|
+
"type": "address"
|
319
364
|
}
|
320
365
|
],
|
321
366
|
"stateMutability": "view",
|
@@ -346,198 +391,702 @@
|
|
346
391
|
"type": "function"
|
347
392
|
},
|
348
393
|
{
|
349
|
-
"inputs": [
|
350
|
-
"name": "getInitialInfo",
|
351
|
-
"outputs": [
|
394
|
+
"inputs": [
|
352
395
|
{
|
353
|
-
"
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
"name": "parentNftId",
|
362
|
-
"type": "uint96"
|
363
|
-
},
|
364
|
-
{
|
365
|
-
"internalType": "ObjectType",
|
366
|
-
"name": "objectType",
|
367
|
-
"type": "uint8"
|
368
|
-
},
|
369
|
-
{
|
370
|
-
"internalType": "bool",
|
371
|
-
"name": "isInterceptor",
|
372
|
-
"type": "bool"
|
373
|
-
},
|
374
|
-
{
|
375
|
-
"internalType": "address",
|
376
|
-
"name": "objectAddress",
|
377
|
-
"type": "address"
|
378
|
-
},
|
379
|
-
{
|
380
|
-
"internalType": "address",
|
381
|
-
"name": "initialOwner",
|
382
|
-
"type": "address"
|
383
|
-
},
|
384
|
-
{
|
385
|
-
"internalType": "bytes",
|
386
|
-
"name": "data",
|
387
|
-
"type": "bytes"
|
388
|
-
}
|
389
|
-
],
|
390
|
-
"internalType": "struct IRegistry.ObjectInfo",
|
391
|
-
"name": "",
|
392
|
-
"type": "tuple"
|
396
|
+
"internalType": "address",
|
397
|
+
"name": "distributor",
|
398
|
+
"type": "address"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"internalType": "DistributorType",
|
402
|
+
"name": "distributorType",
|
403
|
+
"type": "bytes8"
|
393
404
|
},
|
394
405
|
{
|
395
406
|
"internalType": "bytes",
|
396
|
-
"name": "",
|
407
|
+
"name": "data",
|
397
408
|
"type": "bytes"
|
398
409
|
}
|
399
410
|
],
|
400
|
-
"
|
401
|
-
"type": "function"
|
402
|
-
},
|
403
|
-
{
|
404
|
-
"inputs": [],
|
405
|
-
"name": "getInstance",
|
411
|
+
"name": "createDistributor",
|
406
412
|
"outputs": [
|
407
413
|
{
|
408
|
-
"internalType": "
|
409
|
-
"name": "
|
410
|
-
"type": "
|
414
|
+
"internalType": "NftId",
|
415
|
+
"name": "distributorNftId",
|
416
|
+
"type": "uint96"
|
411
417
|
}
|
412
418
|
],
|
413
|
-
"stateMutability": "
|
419
|
+
"stateMutability": "nonpayable",
|
414
420
|
"type": "function"
|
415
421
|
},
|
416
422
|
{
|
417
|
-
"inputs": [
|
418
|
-
|
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
|
+
{
|
611
|
+
"internalType": "NftId",
|
612
|
+
"name": "parentNftId",
|
613
|
+
"type": "uint96"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"internalType": "ObjectType",
|
617
|
+
"name": "objectType",
|
618
|
+
"type": "uint8"
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"internalType": "bool",
|
622
|
+
"name": "isInterceptor",
|
623
|
+
"type": "bool"
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"internalType": "address",
|
627
|
+
"name": "objectAddress",
|
628
|
+
"type": "address"
|
629
|
+
},
|
630
|
+
{
|
631
|
+
"internalType": "address",
|
632
|
+
"name": "initialOwner",
|
633
|
+
"type": "address"
|
634
|
+
},
|
635
|
+
{
|
636
|
+
"internalType": "bytes",
|
637
|
+
"name": "data",
|
638
|
+
"type": "bytes"
|
639
|
+
}
|
640
|
+
],
|
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",
|
419
652
|
"outputs": [
|
420
653
|
{
|
421
|
-
"internalType": "
|
422
|
-
"name": "",
|
423
|
-
"type": "
|
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",
|
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",
|
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"
|
962
|
+
},
|
963
|
+
{
|
964
|
+
"internalType": "bytes",
|
965
|
+
"name": "registryData",
|
966
|
+
"type": "bytes"
|
424
967
|
}
|
425
968
|
],
|
426
|
-
"
|
969
|
+
"name": "initializeDistribution",
|
970
|
+
"outputs": [],
|
971
|
+
"stateMutability": "nonpayable",
|
427
972
|
"type": "function"
|
428
973
|
},
|
429
974
|
{
|
430
975
|
"inputs": [],
|
431
|
-
"name": "
|
432
|
-
"outputs": [
|
976
|
+
"name": "initializeERC165",
|
977
|
+
"outputs": [],
|
978
|
+
"stateMutability": "nonpayable",
|
979
|
+
"type": "function"
|
980
|
+
},
|
981
|
+
{
|
982
|
+
"inputs": [
|
433
983
|
{
|
434
984
|
"internalType": "address",
|
435
|
-
"name": "",
|
985
|
+
"name": "initialOwner",
|
986
|
+
"type": "address"
|
987
|
+
},
|
988
|
+
{
|
989
|
+
"internalType": "address",
|
990
|
+
"name": "registryAddress",
|
436
991
|
"type": "address"
|
437
992
|
}
|
438
993
|
],
|
439
|
-
"
|
994
|
+
"name": "initializeNftOwnable",
|
995
|
+
"outputs": [],
|
996
|
+
"stateMutability": "nonpayable",
|
440
997
|
"type": "function"
|
441
998
|
},
|
442
999
|
{
|
443
|
-
"inputs": [
|
444
|
-
|
445
|
-
|
1000
|
+
"inputs": [
|
1001
|
+
{
|
1002
|
+
"internalType": "address",
|
1003
|
+
"name": "registryAddress",
|
1004
|
+
"type": "address"
|
1005
|
+
},
|
446
1006
|
{
|
447
1007
|
"internalType": "NftId",
|
448
|
-
"name": "
|
1008
|
+
"name": "parentNftId",
|
449
1009
|
"type": "uint96"
|
1010
|
+
},
|
1011
|
+
{
|
1012
|
+
"internalType": "ObjectType",
|
1013
|
+
"name": "objectType",
|
1014
|
+
"type": "uint8"
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
"internalType": "bool",
|
1018
|
+
"name": "isInterceptor",
|
1019
|
+
"type": "bool"
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
"internalType": "address",
|
1023
|
+
"name": "initialOwner",
|
1024
|
+
"type": "address"
|
1025
|
+
},
|
1026
|
+
{
|
1027
|
+
"internalType": "bytes",
|
1028
|
+
"name": "registryData",
|
1029
|
+
"type": "bytes"
|
450
1030
|
}
|
451
1031
|
],
|
452
|
-
"
|
1032
|
+
"name": "initializeRegisterable",
|
1033
|
+
"outputs": [],
|
1034
|
+
"stateMutability": "nonpayable",
|
453
1035
|
"type": "function"
|
454
1036
|
},
|
455
1037
|
{
|
456
|
-
"inputs": [
|
457
|
-
"name": "getRegistry",
|
458
|
-
"outputs": [
|
1038
|
+
"inputs": [
|
459
1039
|
{
|
460
|
-
"internalType": "
|
461
|
-
"name": "",
|
1040
|
+
"internalType": "address",
|
1041
|
+
"name": "registryAddress",
|
462
1042
|
"type": "address"
|
463
1043
|
}
|
464
1044
|
],
|
465
|
-
"
|
1045
|
+
"name": "initializeRegistryLinked",
|
1046
|
+
"outputs": [],
|
1047
|
+
"stateMutability": "nonpayable",
|
466
1048
|
"type": "function"
|
467
1049
|
},
|
468
1050
|
{
|
469
1051
|
"inputs": [],
|
470
|
-
"name": "
|
1052
|
+
"name": "isConsumingScheduledOp",
|
471
1053
|
"outputs": [
|
472
1054
|
{
|
473
|
-
"
|
474
|
-
|
475
|
-
|
476
|
-
"name": "productNftId",
|
477
|
-
"type": "uint96"
|
478
|
-
},
|
479
|
-
{
|
480
|
-
"internalType": "contract TokenHandler",
|
481
|
-
"name": "tokenHandler",
|
482
|
-
"type": "address"
|
483
|
-
},
|
484
|
-
{
|
485
|
-
"components": [
|
486
|
-
{
|
487
|
-
"internalType": "UFixed",
|
488
|
-
"name": "fractionalFee",
|
489
|
-
"type": "uint256"
|
490
|
-
},
|
491
|
-
{
|
492
|
-
"internalType": "uint256",
|
493
|
-
"name": "fixedFee",
|
494
|
-
"type": "uint256"
|
495
|
-
}
|
496
|
-
],
|
497
|
-
"internalType": "struct Fee",
|
498
|
-
"name": "distributionFee",
|
499
|
-
"type": "tuple"
|
500
|
-
},
|
501
|
-
{
|
502
|
-
"internalType": "bool",
|
503
|
-
"name": "isIntercepting",
|
504
|
-
"type": "bool"
|
505
|
-
},
|
506
|
-
{
|
507
|
-
"internalType": "address",
|
508
|
-
"name": "wallet",
|
509
|
-
"type": "address"
|
510
|
-
}
|
511
|
-
],
|
512
|
-
"internalType": "struct ISetup.DistributionSetupInfo",
|
513
|
-
"name": "setupInfo",
|
514
|
-
"type": "tuple"
|
1055
|
+
"internalType": "bytes4",
|
1056
|
+
"name": "",
|
1057
|
+
"type": "bytes4"
|
515
1058
|
}
|
516
1059
|
],
|
517
1060
|
"stateMutability": "view",
|
518
1061
|
"type": "function"
|
519
1062
|
},
|
520
1063
|
{
|
521
|
-
"inputs": [
|
522
|
-
"name": "getToken",
|
523
|
-
"outputs": [
|
1064
|
+
"inputs": [
|
524
1065
|
{
|
525
|
-
"internalType": "
|
526
|
-
"name": "
|
1066
|
+
"internalType": "address",
|
1067
|
+
"name": "candidate",
|
527
1068
|
"type": "address"
|
528
1069
|
}
|
529
1070
|
],
|
1071
|
+
"name": "isDistributor",
|
1072
|
+
"outputs": [
|
1073
|
+
{
|
1074
|
+
"internalType": "bool",
|
1075
|
+
"name": "",
|
1076
|
+
"type": "bool"
|
1077
|
+
}
|
1078
|
+
],
|
530
1079
|
"stateMutability": "view",
|
531
1080
|
"type": "function"
|
532
1081
|
},
|
533
1082
|
{
|
534
1083
|
"inputs": [],
|
535
|
-
"name": "
|
1084
|
+
"name": "isNftInterceptor",
|
536
1085
|
"outputs": [
|
537
1086
|
{
|
538
|
-
"internalType": "
|
539
|
-
"name": "
|
540
|
-
"type": "
|
1087
|
+
"internalType": "bool",
|
1088
|
+
"name": "isInterceptor",
|
1089
|
+
"type": "bool"
|
541
1090
|
}
|
542
1091
|
],
|
543
1092
|
"stateMutability": "view",
|
@@ -573,17 +1122,40 @@
|
|
573
1122
|
{
|
574
1123
|
"inputs": [
|
575
1124
|
{
|
576
|
-
"internalType": "
|
577
|
-
"name": "
|
578
|
-
"type": "
|
1125
|
+
"internalType": "address",
|
1126
|
+
"name": "to",
|
1127
|
+
"type": "address"
|
579
1128
|
},
|
580
1129
|
{
|
581
1130
|
"internalType": "uint256",
|
582
|
-
"name": "
|
1131
|
+
"name": "tokenId",
|
583
1132
|
"type": "uint256"
|
584
1133
|
}
|
585
1134
|
],
|
586
|
-
"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",
|
587
1159
|
"outputs": [],
|
588
1160
|
"stateMutability": "nonpayable",
|
589
1161
|
"type": "function"
|
@@ -601,7 +1173,7 @@
|
|
601
1173
|
"type": "uint256"
|
602
1174
|
}
|
603
1175
|
],
|
604
|
-
"name": "
|
1176
|
+
"name": "processRenewal",
|
605
1177
|
"outputs": [],
|
606
1178
|
"stateMutability": "nonpayable",
|
607
1179
|
"type": "function"
|
@@ -609,24 +1181,48 @@
|
|
609
1181
|
{
|
610
1182
|
"inputs": [
|
611
1183
|
{
|
612
|
-
"internalType": "
|
613
|
-
"name": "
|
614
|
-
"type": "
|
1184
|
+
"internalType": "bytes4",
|
1185
|
+
"name": "interfaceId",
|
1186
|
+
"type": "bytes4"
|
615
1187
|
}
|
616
1188
|
],
|
617
|
-
"name": "
|
618
|
-
"outputs": [
|
1189
|
+
"name": "registerInterface",
|
1190
|
+
"outputs": [],
|
1191
|
+
"stateMutability": "nonpayable",
|
1192
|
+
"type": "function"
|
1193
|
+
},
|
1194
|
+
{
|
1195
|
+
"inputs": [
|
619
1196
|
{
|
620
|
-
"internalType": "
|
621
|
-
"name": "
|
622
|
-
"type": "
|
1197
|
+
"internalType": "address",
|
1198
|
+
"name": "newAuthority",
|
1199
|
+
"type": "address"
|
623
1200
|
}
|
624
1201
|
],
|
625
|
-
"
|
1202
|
+
"name": "setAuthority",
|
1203
|
+
"outputs": [],
|
1204
|
+
"stateMutability": "nonpayable",
|
626
1205
|
"type": "function"
|
627
1206
|
},
|
628
1207
|
{
|
629
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
|
+
},
|
630
1226
|
{
|
631
1227
|
"components": [
|
632
1228
|
{
|
@@ -701,72 +1297,33 @@
|
|
701
1297
|
"outputs": [],
|
702
1298
|
"stateMutability": "nonpayable",
|
703
1299
|
"type": "function"
|
704
|
-
}
|
705
|
-
],
|
706
|
-
"bytecode": "0x60806040523480156200001157600080fd5b5060405162002630380380620026308339810160408190526200003491620009f4565b85858560786001856200006d6301ffc9a760e01b600090815260205260008051602062002610833981519152805460ff19166001179055565b600280546001600160a01b031916331790556040805160208101909152600081526200009e8787868686866200063b565b6000620000b36001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000103573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200012d919081019062000b68565b6080810151600880546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b815263d442f11960e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000195573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001bb919062000c4e565b620001e75760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600860009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200023b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000261919062000c73565b600380546001600160a01b0319166001600160a01b0392831617905560015416604051632efe011360e01b81526003600482015260006024820181905260448201526001600160a01b03919091169063a3bcd81d9073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015620002f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000319919062000c93565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156200036f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000395919062000cba565b604080516001600160e01b031960e085901b1681526004810191909152600f60448201526e496e7374616e63655365727669636560881b606482015260ff9091166024820152608401602060405180830381865afa158015620003fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000422919062000c73565b600480546001600160a01b03199081166001600160a01b03938416179091556006805430908316179055600780549091169188169190911790556346b32da560e01b60009081526020527f0c74615b9065379cafc5e4e9d82ac4cbed23f75e35c2545793f8045351389f6c805460ff191660011790555050600b805489516009556020808b0151600a556001600160a01b03808e1661010002610100600160a81b03198e1515166001600160a81b031990941693909317929092179092556008546040805163329802c760e21b8152905191909216985063ca600b1c975060048083019750929550935083900301905081865afa15801562000528573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200054e919062000c73565b600c80546001600160a01b0319166001600160a01b0392831617905560085460408051634288121d60e01b815290519190921691634288121d9160048083019260209291908290030181865afa158015620005ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005d3919062000c73565b600d80546001600160a01b0319166001600160a01b039290921691909117905563c8ea96c560e01b60009081526020527f358bf83baf6613c2def0011c88aae44093f6c2a350167255c9453fdf96405794805460ff1916600117905550505050505062000e35565b6200066c6301ffc9a760e01b600090815260205260008051602062002610833981519152805460ff19166001179055565b6200067882876200073d565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d010000000000000000000000000086151502178155905060018101620006f7838262000d69565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b6001600160a01b038216620007955760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401620001de565b600280546001600160a01b0319166001600160a01b038416179055620007bb81620007bf565b5050565b6001546001600160a01b031615620007fa5760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401620001de565b6001600160a01b038116620008225760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036200085a5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001de565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152632eaf856d60e11b60048201526301ffc9a790602401602060405180830381865afa925050508015620008d7575060408051601f3d908101601f19168201909252620008d49181019062000c4e565b60015b620009015760405163fdeac91f60e01b81526001600160a01b0382166004820152602401620001de565b80620007bb5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401620001de565b50565b6001600160a01b03811681146200092c57600080fd5b805162000952816200092f565b919050565b80516001600160601b03811681146200095257600080fd5b805180151581146200095257600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715620009bb57620009bb62000980565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620009ec57620009ec62000980565b604052919050565b60008060008060008086880360e081121562000a0f57600080fd5b875162000a1c816200092f565b965062000a2c6020890162000957565b9550604088015162000a3e816200092f565b945062000a4e606089016200096f565b93506040607f198201121562000a6357600080fd5b50604080519081016001600160401b038111828210171562000a895762000a8962000980565b6040526080880151815260a0880151602082015260c088015190925062000ab0816200092f565b809150509295509295509295565b60ff811681146200092c57600080fd5b8051620009528162000abe565b600082601f83011262000aed57600080fd5b81516001600160401b0381111562000b095762000b0962000980565b602062000b1f601f8301601f19168201620009c1565b828152858284870101111562000b3457600080fd5b60005b8381101562000b5457858101830151828201840152820162000b37565b506000928101909101919091529392505050565b60006020828403121562000b7b57600080fd5b81516001600160401b038082111562000b9357600080fd5b9083019060e0828603121562000ba857600080fd5b62000bb262000996565b62000bbd8362000957565b815262000bcd6020840162000957565b602082015262000be06040840162000ace565b604082015262000bf3606084016200096f565b606082015262000c066080840162000945565b608082015262000c1960a0840162000945565b60a082015260c08301518281111562000c3157600080fd5b62000c3f8782860162000adb565b60c08301525095945050505050565b60006020828403121562000c6157600080fd5b62000c6c826200096f565b9392505050565b60006020828403121562000c8657600080fd5b815162000c6c816200092f565b60006020828403121562000ca657600080fd5b815162ffffff8116811462000c6c57600080fd5b60006020828403121562000ccd57600080fd5b815162000c6c8162000abe565b600181811c9082168062000cef57607f821691505b60208210810362000d1057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000d6457600081815260208120601f850160051c8101602086101562000d3f5750805b601f850160051c820191505b8181101562000d605782815560010162000d4b565b5050505b505050565b81516001600160401b0381111562000d855762000d8562000980565b62000d9d8162000d96845462000cda565b8462000d16565b602080601f83116001811462000dd5576000841562000dbc5750858301515b600019600386901b1c1916600185901b17855562000d60565b600085815260208120601f198616915b8281101562000e065788860151825594840194600190910190840162000de5565b508582101562000e255787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6117cb8062000e456000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c8063644c45e0116100c3578063de7b5d141161007c578063de7b5d14146102ef578063deaa59df14610300578063e214756714610313578063f7d39dea14610327578063f80e207214610270578063f83d08ba1461033a57600080fd5b8063644c45e01461029457806387ef9ba0146102ac578063893d20e8146102b7578063a69df4b5146102bf578063c200b809146102c7578063d16d0fe8146102dc57600080fd5b80631eff4b22116101155780631eff4b221461020457806321df0da7146102395780632a65c6881461024a5780633f52c0f61461025d5780634cf30a84146102705780635ab1bd531461028357600080fd5b806251884a1461015157806301ffc9a7146101825780630fec111c146101bf57806313299604146101d5578063138461e0146101fa575b600080fd5b600854600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b6101af6101903660046112e2565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610179565b6101c7610342565b60405161017992919061135c565b6006546001600160a01b03165b6040516001600160a01b039091168152602001610179565b610202610411565b005b61022b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610179565b6007546001600160a01b03166101e2565b610202610258366004611418565b610633565b61020261026b36600461146c565b610782565b61020261027e3660046114bb565b6107e7565b6001546001600160a01b03166101e2565b600154600160a01b90046001600160601b0316610165565b600b5460ff166101af565b6101e261084f565b61020261096d565b6102cf610a08565b60405161017991906114e5565b61022b6102ea3660046114bb565b610b17565b6008546001600160a01b03166101e2565b61020261030e36600461155a565b610b2c565b6101af610321366004611577565b50600090565b61022b6103353660046114bb565b610e33565b610202610ed5565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082018190529091610385610f40565b506040805160a081018252600854600160a01b90046001600160601b03168152600b5461010081046001600160a01b0316602080840191909152835180850185526009548152600a54818301528385015260ff90911615156060830152306080830152915192935083926103f992016114e5565b60405160208183030381529060405292509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610473573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049791906115a2565b156104de576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166105075760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610550573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057491906115a2565b61059c576040516372657a5160e01b81526001600160a01b03821660048201526024016104d5565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060a91906115bd565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b61063b61084f565b6001600160a01b0316336001600160a01b03161461066e5760405163700dd81160e01b81523360048201526024016104d5565b60085473__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9063c4cade9d90600160a01b90046001600160601b031660006040516001600160e01b031960e085901b1681526001600160601b03928316600482015291166024820152604401602060405180830381865af41580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e91906115a2565b61075a5760405162461bcd60e51b815260206004820152601a60248201527f70726f64756374206e667420696420616c72656164792073657400000000000060448201526064016104d5565b600880546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600c54604051631fa9607b60e11b81526001600160a01b0390911690633f52c0f6906107b29084906004016115da565b600060405180830381600087803b1580156107cc57600080fd5b505af11580156107e0573d6000803e3d6000fd5b5050505050565b600d546001600160a01b0316331461084b5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104d5565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156108b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d891906115a2565b1561095d57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095891906115fc565b905090565b506002546001600160a01b031690565b61097561084f565b6001600160a01b0316336001600160a01b0316146109a85760405163700dd81160e01b81523360048201526024016104d5565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b50505050565b610a10611286565b600854604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e91906115fc565b9050806001600160a01b0316639ad69c67610aa96001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611619565b91505090565b6000610b2382826116dd565b90505b92915050565b610b3461084f565b6001600160a01b0316336001600160a01b031614610b675760405163700dd81160e01b81523360048201526024016104d5565b6006546007546040516370a0823160e01b81526001600160a01b03928316600482018190529260009216906370a0823190602401602060405180830381865afa158015610bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdc9190611702565b9050816001600160a01b0316836001600160a01b031603610c1b57604051637c739a9960e11b81526001600160a01b03841660048201526024016104d5565b8015610cec576001600160a01b0382163014610cec57600754604051636eb1769f60e11b81526001600160a01b038481166004830152306024830152600092169063dd62ed3e90604401602060405180830381865afa158015610c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca69190611702565b905081811015610cea57604051633945c9b360e01b81526001600160a01b0380851660048301528516602482015260448101829052606481018390526084016104d5565b505b600680546001600160a01b0319166001600160a01b0385169081179091556040519081527f7a6b70c9759bfc6df8d6267688169ed308c6efabc985cf7d02df268733f8ec059060200160405180910390a18015610e2e57306001600160a01b03831603610dca5760075460405163095ea7b360e01b8152306004820152602481018390526001600160a01b039091169063095ea7b3906044016020604051808303816000875af1158015610da4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc891906115a2565b505b600754610de2906001600160a01b03168385846110c6565b604080516001600160a01b038085168252851660208201529081018290527f40b3f633f2d28d6e514f9789ade3c5ddfab85e6731dda38dcb69206d3272c71b9060600160405180910390a15b505050565b600080610e3e610a08565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecb919061171b565b5095945050505050565b610edd61084f565b6001600160a01b0316336001600160a01b031614610f105760405163700dd81160e01b81523360048201526024016104d5565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109d4565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610fc76001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161100f61084f565b6001600160a01b0316815260200182600101805461102c9061173f565b80601f01602080910402602001604051908101604052809291908181526020018280546110589061173f565b80156110a55780601f1061107a576101008083540402835291602001916110a5565b820191906000526020600020905b81548152906001019060200180831161108857829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092019092526020810180516001600160e01b03166323b872dd60e01b179052610a029186919060009061112c9084168361117a565b9050805160001415801561115157508080602001905181019061114f91906115a2565b155b15610e2e57604051635274afe760e01b81526001600160a01b03841660048201526024016104d5565b6060610b238383600084600080856001600160a01b031684866040516111a09190611779565b60006040518083038185875af1925050503d80600081146111dd576040519150601f19603f3d011682016040523d82523d6000602084013e6111e2565b606091505b50915091506111f28683836111fe565b925050505b9392505050565b6060826112135761120e8261125a565b6111f7565b815115801561122a57506001600160a01b0384163b155b1561125357604051639996b31560e01b81526001600160a01b03851660048201526024016104d5565b50806111f7565b80511561126a5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b50565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b031681526020016112ce604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b6000602082840312156112f457600080fd5b81356001600160e01b0319811681146111f757600080fd5b60005b8381101561132757818101518382015260200161130f565b50506000910152565b6000815180845261134881602086016020860161130c565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516113a060a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e06101008401526113e6610120840182611330565b905082810360208401526113fa8185611330565b95945050505050565b6001600160601b038116811461128357600080fd5b60006020828403121561142a57600080fd5b81356111f781611403565b6040805190810167ffffffffffffffff8111828210171561146657634e487b7160e01b600052604160045260246000fd5b60405290565b60006040828403121561147e57600080fd5b611486611435565b82358152602083013560208201528091505092915050565b80356001600160c01b0319811681146114b657600080fd5b919050565b600080604083850312156114ce57600080fd5b6114d78361149e565b946020939093013593505050565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b6001600160a01b038116811461128357600080fd5b60006020828403121561156c57600080fd5b81356111f781611545565b60006020828403121561158957600080fd5b610b238261149e565b805180151581146114b657600080fd5b6000602082840312156115b457600080fd5b610b2382611592565b6000602082840312156115cf57600080fd5b81516111f781611403565b815181526020808301519082015260408101610b26565b80516114b681611545565b60006020828403121561160e57600080fd5b81516111f781611545565b600081830360c081121561162c57600080fd5b60405160a0810181811067ffffffffffffffff8211171561165d57634e487b7160e01b600052604160045260246000fd5b604052835161166b81611403565b8152602084015161167b81611545565b60208201526040603f198301121561169257600080fd5b61169a611435565b915060408401518252606084015160208301528160408201526116bf60808501611592565b60608201526116d060a085016115f1565b6080820152949350505050565b8082028115828204841417610b2657634e487b7160e01b600052601160045260246000fd5b60006020828403121561171457600080fd5b5051919050565b6000806040838503121561172e57600080fd5b505080516020909101519092909150565b600181811c9082168061175357607f821691505b60208210810361177357634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161178b81846020870161130c565b919091019291505056fea2646970667358221220ccbfaae5c9deb12e0d6d84d9670e95d2b988d07ef2208c3a4e51a5dad0ccd99f64736f6c6343000814003367be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5",
|
707
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014c5760003560e01c8063644c45e0116100c3578063de7b5d141161007c578063de7b5d14146102ef578063deaa59df14610300578063e214756714610313578063f7d39dea14610327578063f80e207214610270578063f83d08ba1461033a57600080fd5b8063644c45e01461029457806387ef9ba0146102ac578063893d20e8146102b7578063a69df4b5146102bf578063c200b809146102c7578063d16d0fe8146102dc57600080fd5b80631eff4b22116101155780631eff4b221461020457806321df0da7146102395780632a65c6881461024a5780633f52c0f61461025d5780634cf30a84146102705780635ab1bd531461028357600080fd5b806251884a1461015157806301ffc9a7146101825780630fec111c146101bf57806313299604146101d5578063138461e0146101fa575b600080fd5b600854600160a01b90046001600160601b03165b6040516001600160601b0390911681526020015b60405180910390f35b6101af6101903660046112e2565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610179565b6101c7610342565b60405161017992919061135c565b6006546001600160a01b03165b6040516001600160a01b039091168152602001610179565b610202610411565b005b61022b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610179565b6007546001600160a01b03166101e2565b610202610258366004611418565b610633565b61020261026b36600461146c565b610782565b61020261027e3660046114bb565b6107e7565b6001546001600160a01b03166101e2565b600154600160a01b90046001600160601b0316610165565b600b5460ff166101af565b6101e261084f565b61020261096d565b6102cf610a08565b60405161017991906114e5565b61022b6102ea3660046114bb565b610b17565b6008546001600160a01b03166101e2565b61020261030e36600461155a565b610b2c565b6101af610321366004611577565b50600090565b61022b6103353660046114bb565b610e33565b610202610ed5565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c082018190529091610385610f40565b506040805160a081018252600854600160a01b90046001600160601b03168152600b5461010081046001600160a01b0316602080840191909152835180850185526009548152600a54818301528385015260ff90911615156060830152306080830152915192935083926103f992016114e5565b60405160208183030381529060405292509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610473573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049791906115a2565b156104de576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166105075760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610550573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057491906115a2565b61059c576040516372657a5160e01b81526001600160a01b03821660048201526024016104d5565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156105e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060a91906115bd565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b61063b61084f565b6001600160a01b0316336001600160a01b03161461066e5760405163700dd81160e01b81523360048201526024016104d5565b60085473__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__9063c4cade9d90600160a01b90046001600160601b031660006040516001600160e01b031960e085901b1681526001600160601b03928316600482015291166024820152604401602060405180830381865af41580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e91906115a2565b61075a5760405162461bcd60e51b815260206004820152601a60248201527f70726f64756374206e667420696420616c72656164792073657400000000000060448201526064016104d5565b600880546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600c54604051631fa9607b60e11b81526001600160a01b0390911690633f52c0f6906107b29084906004016115da565b600060405180830381600087803b1580156107cc57600080fd5b505af11580156107e0573d6000803e3d6000fd5b5050505050565b600d546001600160a01b0316331461084b5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b60648201526084016104d5565b5050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156108b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d891906115a2565b1561095d57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095891906115fc565b905090565b506002546001600160a01b031690565b61097561084f565b6001600160a01b0316336001600160a01b0316146109a85760405163700dd81160e01b81523360048201526024016104d5565b600354604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b1580156109ee57600080fd5b505af1158015610a02573d6000803e3d6000fd5b50505050565b610a10611286565b600854604080516302cd307160e01b815290516000926001600160a01b0316916302cd30719160048083019260209291908290030181865afa158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e91906115fc565b9050806001600160a01b0316639ad69c67610aa96001546001600160601b03600160a01b9091041690565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b119190611619565b91505090565b6000610b2382826116dd565b90505b92915050565b610b3461084f565b6001600160a01b0316336001600160a01b031614610b675760405163700dd81160e01b81523360048201526024016104d5565b6006546007546040516370a0823160e01b81526001600160a01b03928316600482018190529260009216906370a0823190602401602060405180830381865afa158015610bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdc9190611702565b9050816001600160a01b0316836001600160a01b031603610c1b57604051637c739a9960e11b81526001600160a01b03841660048201526024016104d5565b8015610cec576001600160a01b0382163014610cec57600754604051636eb1769f60e11b81526001600160a01b038481166004830152306024830152600092169063dd62ed3e90604401602060405180830381865afa158015610c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca69190611702565b905081811015610cea57604051633945c9b360e01b81526001600160a01b0380851660048301528516602482015260448101829052606481018390526084016104d5565b505b600680546001600160a01b0319166001600160a01b0385169081179091556040519081527f7a6b70c9759bfc6df8d6267688169ed308c6efabc985cf7d02df268733f8ec059060200160405180910390a18015610e2e57306001600160a01b03831603610dca5760075460405163095ea7b360e01b8152306004820152602481018390526001600160a01b039091169063095ea7b3906044016020604051808303816000875af1158015610da4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc891906115a2565b505b600754610de2906001600160a01b03168385846110c6565b604080516001600160a01b038085168252851660208201529081018290527f40b3f633f2d28d6e514f9789ade3c5ddfab85e6731dda38dcb69206d3272c71b9060600160405180910390a15b505050565b600080610e3e610a08565b604081810151905163012ebd8360e21b81528151600482015260208201516024820152604481018690529192509073__$a23651848365a6a5ca15f07b4331037f48$__906304baf60c906064016040805180830381865af4158015610ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecb919061171b565b5095945050505050565b610edd61084f565b6001600160a01b0316336001600160a01b031614610f105760405163700dd81160e01b81523360048201526024016104d5565b60035460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109d4565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c0810191909152606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e00160405280610fc76001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161100f61084f565b6001600160a01b0316815260200182600101805461102c9061173f565b80601f01602080910402602001604051908101604052809291908181526020018280546110589061173f565b80156110a55780601f1061107a576101008083540402835291602001916110a5565b820191906000526020600020905b81548152906001019060200180831161108857829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092019092526020810180516001600160e01b03166323b872dd60e01b179052610a029186919060009061112c9084168361117a565b9050805160001415801561115157508080602001905181019061114f91906115a2565b155b15610e2e57604051635274afe760e01b81526001600160a01b03841660048201526024016104d5565b6060610b238383600084600080856001600160a01b031684866040516111a09190611779565b60006040518083038185875af1925050503d80600081146111dd576040519150601f19603f3d011682016040523d82523d6000602084013e6111e2565b606091505b50915091506111f28683836111fe565b925050505b9392505050565b6060826112135761120e8261125a565b6111f7565b815115801561122a57506001600160a01b0384163b155b1561125357604051639996b31560e01b81526001600160a01b03851660048201526024016104d5565b50806111f7565b80511561126a5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b50565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b031681526020016112ce604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b6000602082840312156112f457600080fd5b81356001600160e01b0319811681146111f757600080fd5b60005b8381101561132757818101518382015260200161130f565b50506000910152565b6000815180845261134881602086016020860161130c565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516113a060a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e06101008401526113e6610120840182611330565b905082810360208401526113fa8185611330565b95945050505050565b6001600160601b038116811461128357600080fd5b60006020828403121561142a57600080fd5b81356111f781611403565b6040805190810167ffffffffffffffff8111828210171561146657634e487b7160e01b600052604160045260246000fd5b60405290565b60006040828403121561147e57600080fd5b611486611435565b82358152602083013560208201528091505092915050565b80356001600160c01b0319811681146114b657600080fd5b919050565b600080604083850312156114ce57600080fd5b6114d78361149e565b946020939093013593505050565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b6001600160a01b038116811461128357600080fd5b60006020828403121561156c57600080fd5b81356111f781611545565b60006020828403121561158957600080fd5b610b238261149e565b805180151581146114b657600080fd5b6000602082840312156115b457600080fd5b610b2382611592565b6000602082840312156115cf57600080fd5b81516111f781611403565b815181526020808301519082015260408101610b26565b80516114b681611545565b60006020828403121561160e57600080fd5b81516111f781611545565b600081830360c081121561162c57600080fd5b60405160a0810181811067ffffffffffffffff8211171561165d57634e487b7160e01b600052604160045260246000fd5b604052835161166b81611403565b8152602084015161167b81611545565b60208201526040603f198301121561169257600080fd5b61169a611435565b915060408401518252606084015160208301528160408201526116bf60808501611592565b60608201526116d060a085016115f1565b6080820152949350505050565b8082028115828204841417610b2657634e487b7160e01b600052601160045260246000fd5b60006020828403121561171457600080fd5b5051919050565b6000806040838503121561172e57600080fd5b505080516020909101519092909150565b600181811c9082168061175357607f821691505b60208210810361177357634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161178b81846020870161130c565b919091019291505056fea2646970667358221220ccbfaae5c9deb12e0d6d84d9670e95d2b988d07ef2208c3a4e51a5dad0ccd99f64736f6c63430008140033",
|
708
|
-
"linkReferences": {
|
709
|
-
"contracts/types/Fee.sol": {
|
710
|
-
"FeeLib": [
|
711
|
-
{
|
712
|
-
"length": 20,
|
713
|
-
"start": 7347
|
714
|
-
}
|
715
|
-
]
|
716
|
-
},
|
717
|
-
"contracts/types/NftId.sol": {
|
718
|
-
"NftIdLib": [
|
719
|
-
{
|
720
|
-
"length": 20,
|
721
|
-
"start": 4734
|
722
|
-
},
|
723
|
-
{
|
724
|
-
"length": 20,
|
725
|
-
"start": 5304
|
726
|
-
},
|
727
|
-
{
|
728
|
-
"length": 20,
|
729
|
-
"start": 5823
|
730
|
-
}
|
731
|
-
]
|
732
|
-
},
|
733
|
-
"contracts/types/Version.sol": {
|
734
|
-
"VersionLib": [
|
735
|
-
{
|
736
|
-
"length": 20,
|
737
|
-
"start": 696
|
738
|
-
},
|
739
|
-
{
|
740
|
-
"length": 20,
|
741
|
-
"start": 820
|
742
|
-
}
|
743
|
-
]
|
744
|
-
}
|
745
|
-
},
|
746
|
-
"deployedLinkReferences": {
|
747
|
-
"contracts/types/Fee.sol": {
|
748
|
-
"FeeLib": [
|
749
|
-
{
|
750
|
-
"length": 20,
|
751
|
-
"start": 3694
|
752
|
-
}
|
753
|
-
]
|
754
1300
|
},
|
755
|
-
|
756
|
-
"
|
1301
|
+
{
|
1302
|
+
"inputs": [
|
757
1303
|
{
|
758
|
-
"
|
759
|
-
"
|
1304
|
+
"internalType": "NftId",
|
1305
|
+
"name": "distributorNftId",
|
1306
|
+
"type": "uint96"
|
760
1307
|
},
|
761
1308
|
{
|
762
|
-
"
|
763
|
-
"
|
1309
|
+
"internalType": "DistributorType",
|
1310
|
+
"name": "distributorType",
|
1311
|
+
"type": "bytes8"
|
764
1312
|
},
|
765
1313
|
{
|
766
|
-
"
|
767
|
-
"
|
1314
|
+
"internalType": "bytes",
|
1315
|
+
"name": "data",
|
1316
|
+
"type": "bytes"
|
768
1317
|
}
|
769
|
-
]
|
1318
|
+
],
|
1319
|
+
"name": "updateDistributorType",
|
1320
|
+
"outputs": [],
|
1321
|
+
"stateMutability": "nonpayable",
|
1322
|
+
"type": "function"
|
770
1323
|
}
|
771
|
-
|
1324
|
+
],
|
1325
|
+
"bytecode": "0x",
|
1326
|
+
"deployedBytecode": "0x",
|
1327
|
+
"linkReferences": {},
|
1328
|
+
"deployedLinkReferences": {}
|
772
1329
|
}
|