@etherisc/gif-next 0.0.2-4e6a781-730 → 0.0.2-4e99ed1-062
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -13
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +280 -94
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +632 -152
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +208 -58
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +407 -86
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +446 -151
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +212 -130
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +591 -185
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +384 -166
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +64 -50
- 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 +845 -458
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +240 -193
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1013 -783
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +463 -167
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +136 -228
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +455 -300
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +370 -102
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -13
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +181 -177
- 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 +58 -75
- 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 +1039 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +673 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +474 -345
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +363 -91
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +817 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +641 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1224 -198
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +453 -85
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +622 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +223 -279
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +475 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +796 -147
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +91 -251
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +476 -126
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +73 -154
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +250 -385
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +317 -125
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +634 -203
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +317 -93
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +217 -233
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +309 -93
- 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 +34 -2
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +75 -190
- 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 +47 -15
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +191 -233
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +300 -94
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +23 -11
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +141 -37
- 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 -29
- 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 +73 -154
- 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 +113 -33
- 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 -74
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +125 -55
- 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 +178 -158
- 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 +125 -55
- 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 +195 -207
- 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 +115 -78
- package/contracts/components/Distribution.sol +187 -57
- package/contracts/components/IComponent.sol +50 -17
- package/contracts/components/IDistributionComponent.sol +39 -15
- package/contracts/components/IPoolComponent.sol +84 -31
- package/contracts/components/IProductComponent.sol +3 -2
- package/contracts/components/Pool.sol +224 -148
- package/contracts/components/Product.sol +97 -69
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +7 -5
- package/contracts/instance/Cloneable.sol +7 -2
- package/contracts/instance/IInstance.sol +36 -10
- package/contracts/instance/IInstanceService.sol +35 -4
- package/contracts/instance/Instance.sol +101 -43
- package/contracts/instance/InstanceAccessManager.sol +389 -160
- package/contracts/instance/InstanceReader.sol +8 -10
- package/contracts/instance/InstanceService.sol +243 -190
- package/contracts/instance/InstanceServiceManager.sol +1 -1
- package/contracts/instance/ObjectManager.sol +6 -8
- package/contracts/instance/base/ComponentService.sol +17 -30
- package/contracts/instance/base/KeyValueStore.sol +13 -5
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IAccess.sol +22 -16
- 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 +215 -77
- package/contracts/instance/service/BundleServiceManager.sol +1 -1
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +348 -19
- package/contracts/instance/service/DistributionServiceManager.sol +1 -1
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +70 -21
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +87 -0
- package/contracts/instance/service/IPolicyService.sol +27 -49
- package/contracts/instance/service/IPoolService.sol +82 -3
- package/contracts/instance/service/PolicyService.sol +145 -321
- package/contracts/instance/service/PolicyServiceManager.sol +2 -2
- package/contracts/instance/service/PoolService.sol +214 -21
- package/contracts/instance/service/PoolServiceManager.sol +1 -1
- package/contracts/instance/service/ProductService.sol +34 -58
- package/contracts/instance/service/ProductServiceManager.sol +2 -2
- package/contracts/registry/ChainNft.sol +8 -0
- package/contracts/registry/IRegistry.sol +5 -2
- package/contracts/registry/IRegistryService.sol +14 -11
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +43 -28
- package/contracts/registry/RegistryService.sol +70 -50
- package/contracts/registry/RegistryServiceManager.sol +13 -13
- package/contracts/registry/ReleaseManager.sol +32 -40
- package/contracts/registry/TokenRegistry.sol +16 -12
- 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 +3 -3
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +4 -4
- package/contracts/shared/IVersionable.sol +4 -47
- package/contracts/shared/NftOwnable.sol +66 -85
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +100 -25
- package/contracts/shared/Registerable.sol +7 -19
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +32 -20
- 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 +1 -1
- 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 +16 -9
- 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/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/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/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json
CHANGED
|
@@ -7,32 +7,27 @@
|
|
|
7
7
|
"inputs": [
|
|
8
8
|
{
|
|
9
9
|
"internalType": "address",
|
|
10
|
-
"name": "
|
|
10
|
+
"name": "authority",
|
|
11
11
|
"type": "address"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"internalType": "NftId",
|
|
15
|
-
"name": "nftId",
|
|
16
|
-
"type": "uint96"
|
|
17
12
|
}
|
|
18
13
|
],
|
|
19
|
-
"name": "
|
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
|
20
15
|
"type": "error"
|
|
21
16
|
},
|
|
22
17
|
{
|
|
23
18
|
"inputs": [
|
|
24
|
-
{
|
|
25
|
-
"internalType": "NftId",
|
|
26
|
-
"name": "instanceNftId",
|
|
27
|
-
"type": "uint96"
|
|
28
|
-
},
|
|
29
19
|
{
|
|
30
20
|
"internalType": "address",
|
|
31
|
-
"name": "
|
|
21
|
+
"name": "caller",
|
|
32
22
|
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "uint32",
|
|
26
|
+
"name": "delay",
|
|
27
|
+
"type": "uint32"
|
|
33
28
|
}
|
|
34
29
|
],
|
|
35
|
-
"name": "
|
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
|
36
31
|
"type": "error"
|
|
37
32
|
},
|
|
38
33
|
{
|
|
@@ -43,12 +38,7 @@
|
|
|
43
38
|
"type": "address"
|
|
44
39
|
}
|
|
45
40
|
],
|
|
46
|
-
"name": "
|
|
47
|
-
"type": "error"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"inputs": [],
|
|
51
|
-
"name": "ErrorComponentProductNftAlreadySet",
|
|
41
|
+
"name": "AccessManagedUnauthorized",
|
|
52
42
|
"type": "error"
|
|
53
43
|
},
|
|
54
44
|
{
|
|
@@ -57,24 +47,40 @@
|
|
|
57
47
|
"internalType": "address",
|
|
58
48
|
"name": "caller",
|
|
59
49
|
"type": "address"
|
|
60
|
-
}
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"name": "ErrorComponentNotChainNft",
|
|
53
|
+
"type": "error"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [
|
|
61
57
|
{
|
|
62
|
-
"internalType": "
|
|
63
|
-
"name": "
|
|
64
|
-
"type": "
|
|
58
|
+
"internalType": "NftId",
|
|
59
|
+
"name": "instanceNftId",
|
|
60
|
+
"type": "uint96"
|
|
65
61
|
}
|
|
66
62
|
],
|
|
67
|
-
"name": "
|
|
63
|
+
"name": "ErrorComponentNotInstance",
|
|
68
64
|
"type": "error"
|
|
69
65
|
},
|
|
70
66
|
{
|
|
71
67
|
"inputs": [
|
|
72
68
|
{
|
|
73
69
|
"internalType": "address",
|
|
74
|
-
"name": "
|
|
70
|
+
"name": "caller",
|
|
75
71
|
"type": "address"
|
|
76
72
|
}
|
|
77
73
|
],
|
|
74
|
+
"name": "ErrorComponentNotProductService",
|
|
75
|
+
"type": "error"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
|
80
|
+
"type": "error"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [],
|
|
78
84
|
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
|
79
85
|
"type": "error"
|
|
80
86
|
},
|
|
@@ -109,6 +115,17 @@
|
|
|
109
115
|
"name": "ErrorComponentWalletAllowanceTooSmall",
|
|
110
116
|
"type": "error"
|
|
111
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"inputs": [
|
|
120
|
+
{
|
|
121
|
+
"internalType": "NftId",
|
|
122
|
+
"name": "nftId",
|
|
123
|
+
"type": "uint96"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
|
127
|
+
"type": "error"
|
|
128
|
+
},
|
|
112
129
|
{
|
|
113
130
|
"inputs": [
|
|
114
131
|
{
|
|
@@ -117,7 +134,12 @@
|
|
|
117
134
|
"type": "address"
|
|
118
135
|
}
|
|
119
136
|
],
|
|
120
|
-
"name": "
|
|
137
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
|
138
|
+
"type": "error"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [],
|
|
142
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
|
121
143
|
"type": "error"
|
|
122
144
|
},
|
|
123
145
|
{
|
|
@@ -128,7 +150,7 @@
|
|
|
128
150
|
"type": "address"
|
|
129
151
|
}
|
|
130
152
|
],
|
|
131
|
-
"name": "
|
|
153
|
+
"name": "ErrorNftOwnableNotOwner",
|
|
132
154
|
"type": "error"
|
|
133
155
|
},
|
|
134
156
|
{
|
|
@@ -143,29 +165,27 @@
|
|
|
143
165
|
"type": "error"
|
|
144
166
|
},
|
|
145
167
|
{
|
|
146
|
-
"
|
|
147
|
-
"name": "ErrorRegistryAddressZero",
|
|
148
|
-
"type": "error"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
168
|
+
"anonymous": false,
|
|
151
169
|
"inputs": [
|
|
152
170
|
{
|
|
171
|
+
"indexed": false,
|
|
153
172
|
"internalType": "address",
|
|
154
|
-
"name": "
|
|
173
|
+
"name": "authority",
|
|
155
174
|
"type": "address"
|
|
156
175
|
}
|
|
157
176
|
],
|
|
158
|
-
"name": "
|
|
159
|
-
"type": "
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"inputs": [],
|
|
163
|
-
"name": "ErrorRegistryNotInitialized",
|
|
164
|
-
"type": "error"
|
|
177
|
+
"name": "AuthorityUpdated",
|
|
178
|
+
"type": "event"
|
|
165
179
|
},
|
|
166
180
|
{
|
|
167
181
|
"anonymous": false,
|
|
168
182
|
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"indexed": false,
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "oldWallet",
|
|
187
|
+
"type": "address"
|
|
188
|
+
},
|
|
169
189
|
{
|
|
170
190
|
"indexed": false,
|
|
171
191
|
"internalType": "address",
|
|
@@ -201,6 +221,38 @@
|
|
|
201
221
|
"name": "LogComponentWalletTokensTransferred",
|
|
202
222
|
"type": "event"
|
|
203
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"anonymous": false,
|
|
226
|
+
"inputs": [
|
|
227
|
+
{
|
|
228
|
+
"indexed": false,
|
|
229
|
+
"internalType": "address",
|
|
230
|
+
"name": "to",
|
|
231
|
+
"type": "address"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"indexed": false,
|
|
235
|
+
"internalType": "address",
|
|
236
|
+
"name": "caller",
|
|
237
|
+
"type": "address"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"name": "LogDistributorUpdated",
|
|
241
|
+
"type": "event"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"inputs": [],
|
|
245
|
+
"name": "authority",
|
|
246
|
+
"outputs": [
|
|
247
|
+
{
|
|
248
|
+
"internalType": "address",
|
|
249
|
+
"name": "",
|
|
250
|
+
"type": "address"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"stateMutability": "view",
|
|
254
|
+
"type": "function"
|
|
255
|
+
},
|
|
204
256
|
{
|
|
205
257
|
"inputs": [
|
|
206
258
|
{
|
|
@@ -214,7 +266,7 @@
|
|
|
214
266
|
"type": "uint256"
|
|
215
267
|
}
|
|
216
268
|
],
|
|
217
|
-
"name": "
|
|
269
|
+
"name": "calculateRenewalFeeAmount",
|
|
218
270
|
"outputs": [
|
|
219
271
|
{
|
|
220
272
|
"internalType": "uint256",
|
|
@@ -228,22 +280,185 @@
|
|
|
228
280
|
{
|
|
229
281
|
"inputs": [
|
|
230
282
|
{
|
|
231
|
-
"internalType": "
|
|
232
|
-
"name": "
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "distributor",
|
|
285
|
+
"type": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"internalType": "DistributorType",
|
|
289
|
+
"name": "distributorType",
|
|
233
290
|
"type": "bytes8"
|
|
234
291
|
},
|
|
235
292
|
{
|
|
236
|
-
"internalType": "
|
|
237
|
-
"name": "
|
|
293
|
+
"internalType": "bytes",
|
|
294
|
+
"name": "data",
|
|
295
|
+
"type": "bytes"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"name": "createDistributor",
|
|
299
|
+
"outputs": [
|
|
300
|
+
{
|
|
301
|
+
"internalType": "NftId",
|
|
302
|
+
"name": "distributorNftId",
|
|
303
|
+
"type": "uint96"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"stateMutability": "nonpayable",
|
|
307
|
+
"type": "function"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"inputs": [
|
|
311
|
+
{
|
|
312
|
+
"internalType": "string",
|
|
313
|
+
"name": "name",
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"internalType": "UFixed",
|
|
318
|
+
"name": "minDiscountPercentage",
|
|
319
|
+
"type": "uint256"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"internalType": "UFixed",
|
|
323
|
+
"name": "maxDiscountPercentage",
|
|
324
|
+
"type": "uint256"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"internalType": "UFixed",
|
|
328
|
+
"name": "commissionPercentage",
|
|
238
329
|
"type": "uint256"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"internalType": "uint32",
|
|
333
|
+
"name": "maxReferralCount",
|
|
334
|
+
"type": "uint32"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"internalType": "uint32",
|
|
338
|
+
"name": "maxReferralLifetime",
|
|
339
|
+
"type": "uint32"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"internalType": "bool",
|
|
343
|
+
"name": "allowSelfReferrals",
|
|
344
|
+
"type": "bool"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"internalType": "bool",
|
|
348
|
+
"name": "allowRenewals",
|
|
349
|
+
"type": "bool"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"internalType": "bytes",
|
|
353
|
+
"name": "data",
|
|
354
|
+
"type": "bytes"
|
|
239
355
|
}
|
|
240
356
|
],
|
|
241
|
-
"name": "
|
|
357
|
+
"name": "createDistributorType",
|
|
242
358
|
"outputs": [
|
|
243
359
|
{
|
|
244
|
-
"internalType": "
|
|
245
|
-
"name": "
|
|
360
|
+
"internalType": "DistributorType",
|
|
361
|
+
"name": "distributorType",
|
|
362
|
+
"type": "bytes8"
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"stateMutability": "nonpayable",
|
|
366
|
+
"type": "function"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"inputs": [],
|
|
370
|
+
"name": "getComponentInfo",
|
|
371
|
+
"outputs": [
|
|
372
|
+
{
|
|
373
|
+
"components": [
|
|
374
|
+
{
|
|
375
|
+
"internalType": "string",
|
|
376
|
+
"name": "name",
|
|
377
|
+
"type": "string"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"internalType": "contract IERC20Metadata",
|
|
381
|
+
"name": "token",
|
|
382
|
+
"type": "address"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"internalType": "contract TokenHandler",
|
|
386
|
+
"name": "tokenHandler",
|
|
387
|
+
"type": "address"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"internalType": "address",
|
|
391
|
+
"name": "wallet",
|
|
392
|
+
"type": "address"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"internalType": "Amount",
|
|
396
|
+
"name": "balanceAmount",
|
|
397
|
+
"type": "uint96"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"internalType": "Amount",
|
|
401
|
+
"name": "feeAmount",
|
|
402
|
+
"type": "uint96"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"internalType": "bytes",
|
|
406
|
+
"name": "data",
|
|
407
|
+
"type": "bytes"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"internalType": "struct IComponents.ComponentInfo",
|
|
411
|
+
"name": "info",
|
|
412
|
+
"type": "tuple"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"stateMutability": "view",
|
|
416
|
+
"type": "function"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"inputs": [
|
|
420
|
+
{
|
|
421
|
+
"internalType": "string",
|
|
422
|
+
"name": "referralCode",
|
|
423
|
+
"type": "string"
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
"name": "getDiscountPercentage",
|
|
427
|
+
"outputs": [
|
|
428
|
+
{
|
|
429
|
+
"internalType": "UFixed",
|
|
430
|
+
"name": "discountPercentage",
|
|
246
431
|
"type": "uint256"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"internalType": "ReferralStatus",
|
|
435
|
+
"name": "status",
|
|
436
|
+
"type": "uint8"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"stateMutability": "view",
|
|
440
|
+
"type": "function"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"inputs": [],
|
|
444
|
+
"name": "getDistributionFee",
|
|
445
|
+
"outputs": [
|
|
446
|
+
{
|
|
447
|
+
"components": [
|
|
448
|
+
{
|
|
449
|
+
"internalType": "UFixed",
|
|
450
|
+
"name": "fractionalFee",
|
|
451
|
+
"type": "uint256"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"internalType": "uint256",
|
|
455
|
+
"name": "fixedFee",
|
|
456
|
+
"type": "uint256"
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"internalType": "struct Fee",
|
|
460
|
+
"name": "distibutionFee",
|
|
461
|
+
"type": "tuple"
|
|
247
462
|
}
|
|
248
463
|
],
|
|
249
464
|
"stateMutability": "view",
|
|
@@ -312,19 +527,6 @@
|
|
|
312
527
|
"stateMutability": "view",
|
|
313
528
|
"type": "function"
|
|
314
529
|
},
|
|
315
|
-
{
|
|
316
|
-
"inputs": [],
|
|
317
|
-
"name": "getInstanceService",
|
|
318
|
-
"outputs": [
|
|
319
|
-
{
|
|
320
|
-
"internalType": "contract IInstanceService",
|
|
321
|
-
"name": "",
|
|
322
|
-
"type": "address"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
"stateMutability": "view",
|
|
326
|
-
"type": "function"
|
|
327
|
-
},
|
|
328
530
|
{
|
|
329
531
|
"inputs": [],
|
|
330
532
|
"name": "getName",
|
|
@@ -377,12 +579,31 @@
|
|
|
377
579
|
"stateMutability": "view",
|
|
378
580
|
"type": "function"
|
|
379
581
|
},
|
|
582
|
+
{
|
|
583
|
+
"inputs": [
|
|
584
|
+
{
|
|
585
|
+
"internalType": "string",
|
|
586
|
+
"name": "referralCode",
|
|
587
|
+
"type": "string"
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"name": "getReferralId",
|
|
591
|
+
"outputs": [
|
|
592
|
+
{
|
|
593
|
+
"internalType": "ReferralId",
|
|
594
|
+
"name": "referralId",
|
|
595
|
+
"type": "bytes8"
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"stateMutability": "nonpayable",
|
|
599
|
+
"type": "function"
|
|
600
|
+
},
|
|
380
601
|
{
|
|
381
602
|
"inputs": [],
|
|
382
|
-
"name": "
|
|
603
|
+
"name": "getRegistry",
|
|
383
604
|
"outputs": [
|
|
384
605
|
{
|
|
385
|
-
"internalType": "contract
|
|
606
|
+
"internalType": "contract IRegistry",
|
|
386
607
|
"name": "",
|
|
387
608
|
"type": "address"
|
|
388
609
|
}
|
|
@@ -392,10 +613,10 @@
|
|
|
392
613
|
},
|
|
393
614
|
{
|
|
394
615
|
"inputs": [],
|
|
395
|
-
"name": "
|
|
616
|
+
"name": "getRegistryAddress",
|
|
396
617
|
"outputs": [
|
|
397
618
|
{
|
|
398
|
-
"internalType": "
|
|
619
|
+
"internalType": "address",
|
|
399
620
|
"name": "",
|
|
400
621
|
"type": "address"
|
|
401
622
|
}
|
|
@@ -433,18 +654,35 @@
|
|
|
433
654
|
}
|
|
434
655
|
],
|
|
435
656
|
"internalType": "struct Fee",
|
|
436
|
-
"name": "
|
|
657
|
+
"name": "minDistributionOwnerFee",
|
|
437
658
|
"type": "tuple"
|
|
438
659
|
},
|
|
439
660
|
{
|
|
440
|
-
"
|
|
441
|
-
|
|
442
|
-
|
|
661
|
+
"components": [
|
|
662
|
+
{
|
|
663
|
+
"internalType": "UFixed",
|
|
664
|
+
"name": "fractionalFee",
|
|
665
|
+
"type": "uint256"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"internalType": "uint256",
|
|
669
|
+
"name": "fixedFee",
|
|
670
|
+
"type": "uint256"
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"internalType": "struct Fee",
|
|
674
|
+
"name": "distributionFee",
|
|
675
|
+
"type": "tuple"
|
|
443
676
|
},
|
|
444
677
|
{
|
|
445
678
|
"internalType": "address",
|
|
446
679
|
"name": "wallet",
|
|
447
680
|
"type": "address"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"internalType": "uint256",
|
|
684
|
+
"name": "sumDistributionOwnerFees",
|
|
685
|
+
"type": "uint256"
|
|
448
686
|
}
|
|
449
687
|
],
|
|
450
688
|
"internalType": "struct ISetup.DistributionSetupInfo",
|
|
@@ -481,6 +719,32 @@
|
|
|
481
719
|
"stateMutability": "view",
|
|
482
720
|
"type": "function"
|
|
483
721
|
},
|
|
722
|
+
{
|
|
723
|
+
"inputs": [],
|
|
724
|
+
"name": "isConsumingScheduledOp",
|
|
725
|
+
"outputs": [
|
|
726
|
+
{
|
|
727
|
+
"internalType": "bytes4",
|
|
728
|
+
"name": "",
|
|
729
|
+
"type": "bytes4"
|
|
730
|
+
}
|
|
731
|
+
],
|
|
732
|
+
"stateMutability": "view",
|
|
733
|
+
"type": "function"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"inputs": [],
|
|
737
|
+
"name": "isNftInterceptor",
|
|
738
|
+
"outputs": [
|
|
739
|
+
{
|
|
740
|
+
"internalType": "bool",
|
|
741
|
+
"name": "isInterceptor",
|
|
742
|
+
"type": "bool"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"stateMutability": "view",
|
|
746
|
+
"type": "function"
|
|
747
|
+
},
|
|
484
748
|
{
|
|
485
749
|
"inputs": [],
|
|
486
750
|
"name": "isVerifying",
|
|
@@ -511,17 +775,17 @@
|
|
|
511
775
|
{
|
|
512
776
|
"inputs": [
|
|
513
777
|
{
|
|
514
|
-
"internalType": "
|
|
515
|
-
"name": "
|
|
516
|
-
"type": "
|
|
778
|
+
"internalType": "address",
|
|
779
|
+
"name": "to",
|
|
780
|
+
"type": "address"
|
|
517
781
|
},
|
|
518
782
|
{
|
|
519
783
|
"internalType": "uint256",
|
|
520
|
-
"name": "
|
|
784
|
+
"name": "tokenId",
|
|
521
785
|
"type": "uint256"
|
|
522
786
|
}
|
|
523
787
|
],
|
|
524
|
-
"name": "
|
|
788
|
+
"name": "nftMint",
|
|
525
789
|
"outputs": [],
|
|
526
790
|
"stateMutability": "nonpayable",
|
|
527
791
|
"type": "function"
|
|
@@ -529,17 +793,22 @@
|
|
|
529
793
|
{
|
|
530
794
|
"inputs": [
|
|
531
795
|
{
|
|
532
|
-
"internalType": "
|
|
533
|
-
"name": "
|
|
534
|
-
"type": "
|
|
796
|
+
"internalType": "address",
|
|
797
|
+
"name": "from",
|
|
798
|
+
"type": "address"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"internalType": "address",
|
|
802
|
+
"name": "to",
|
|
803
|
+
"type": "address"
|
|
535
804
|
},
|
|
536
805
|
{
|
|
537
806
|
"internalType": "uint256",
|
|
538
|
-
"name": "
|
|
807
|
+
"name": "tokenId",
|
|
539
808
|
"type": "uint256"
|
|
540
809
|
}
|
|
541
810
|
],
|
|
542
|
-
"name": "
|
|
811
|
+
"name": "nftTransferFrom",
|
|
543
812
|
"outputs": [],
|
|
544
813
|
"stateMutability": "nonpayable",
|
|
545
814
|
"type": "function"
|
|
@@ -550,21 +819,50 @@
|
|
|
550
819
|
"internalType": "ReferralId",
|
|
551
820
|
"name": "referralId",
|
|
552
821
|
"type": "bytes8"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"internalType": "uint256",
|
|
825
|
+
"name": "feeAmount",
|
|
826
|
+
"type": "uint256"
|
|
553
827
|
}
|
|
554
828
|
],
|
|
555
|
-
"name": "
|
|
556
|
-
"outputs": [
|
|
829
|
+
"name": "processRenewal",
|
|
830
|
+
"outputs": [],
|
|
831
|
+
"stateMutability": "nonpayable",
|
|
832
|
+
"type": "function"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"inputs": [
|
|
557
836
|
{
|
|
558
|
-
"internalType": "
|
|
559
|
-
"name": "
|
|
560
|
-
"type": "
|
|
837
|
+
"internalType": "address",
|
|
838
|
+
"name": "",
|
|
839
|
+
"type": "address"
|
|
561
840
|
}
|
|
562
841
|
],
|
|
563
|
-
"
|
|
842
|
+
"name": "setAuthority",
|
|
843
|
+
"outputs": [],
|
|
844
|
+
"stateMutability": "nonpayable",
|
|
564
845
|
"type": "function"
|
|
565
846
|
},
|
|
566
847
|
{
|
|
567
848
|
"inputs": [
|
|
849
|
+
{
|
|
850
|
+
"components": [
|
|
851
|
+
{
|
|
852
|
+
"internalType": "UFixed",
|
|
853
|
+
"name": "fractionalFee",
|
|
854
|
+
"type": "uint256"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"internalType": "uint256",
|
|
858
|
+
"name": "fixedFee",
|
|
859
|
+
"type": "uint256"
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
"internalType": "struct Fee",
|
|
863
|
+
"name": "minDistributionOwnerFee",
|
|
864
|
+
"type": "tuple"
|
|
865
|
+
},
|
|
568
866
|
{
|
|
569
867
|
"components": [
|
|
570
868
|
{
|
|
@@ -639,6 +937,29 @@
|
|
|
639
937
|
"outputs": [],
|
|
640
938
|
"stateMutability": "nonpayable",
|
|
641
939
|
"type": "function"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"inputs": [
|
|
943
|
+
{
|
|
944
|
+
"internalType": "NftId",
|
|
945
|
+
"name": "distributorNftId",
|
|
946
|
+
"type": "uint96"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"internalType": "DistributorType",
|
|
950
|
+
"name": "distributorType",
|
|
951
|
+
"type": "bytes8"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"internalType": "bytes",
|
|
955
|
+
"name": "data",
|
|
956
|
+
"type": "bytes"
|
|
957
|
+
}
|
|
958
|
+
],
|
|
959
|
+
"name": "updateDistributorType",
|
|
960
|
+
"outputs": [],
|
|
961
|
+
"stateMutability": "nonpayable",
|
|
962
|
+
"type": "function"
|
|
642
963
|
}
|
|
643
964
|
],
|
|
644
965
|
"bytecode": "0x",
|