@etherisc/gif-next 0.0.2-cff6256-424 → 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 +141 -2
- 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 +897 -238
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +295 -132
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +801 -36
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +864 -49
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +682 -9
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +844 -258
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +626 -234
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
- package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +91 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2107 -184
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +334 -157
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +979 -1206
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +571 -177
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +227 -221
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +529 -233
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +324 -91
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +298 -137
- 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 +69 -43
- 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 +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1258 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +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 +1405 -224
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +451 -74
- 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 +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +683 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +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 +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +630 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +450 -143
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +96 -373
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1111 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +1264 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +657 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +867 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +227 -224
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +243 -206
- 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 +241 -330
- 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 +235 -295
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +295 -150
- 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 +26 -3
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/Component.sol +253 -0
- package/contracts/components/Distribution.sol +197 -83
- package/contracts/components/IComponent.sol +76 -0
- package/contracts/components/IDistributionComponent.sol +43 -18
- package/contracts/components/IPoolComponent.sol +88 -37
- package/contracts/components/IProductComponent.sol +10 -5
- package/contracts/components/Pool.sol +225 -180
- package/contracts/components/Product.sol +130 -134
- package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
- package/contracts/instance/BundleManager.sol +127 -0
- package/contracts/instance/Cloneable.sol +51 -0
- package/contracts/instance/IInstance.sol +77 -12
- package/contracts/instance/IInstanceService.sol +47 -5
- package/contracts/instance/Instance.sol +152 -268
- package/contracts/instance/InstanceAccessManager.sol +410 -176
- package/contracts/instance/InstanceReader.sol +36 -35
- package/contracts/instance/InstanceService.sol +429 -92
- package/contracts/instance/InstanceServiceManager.sol +11 -13
- package/contracts/instance/ObjectManager.sol +82 -0
- 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 +36 -20
- package/contracts/instance/module/IBundle.sol +8 -4
- package/contracts/instance/module/IComponents.sol +41 -0
- package/contracts/instance/module/IDistribution.sol +2 -0
- package/contracts/instance/module/IPolicy.sol +30 -3
- package/contracts/instance/module/ISetup.sol +9 -19
- package/contracts/instance/service/ApplicationService.sol +350 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +431 -0
- package/contracts/instance/service/BundleServiceManager.sol +51 -0
- package/contracts/instance/service/ClaimService.sol +151 -0
- package/contracts/instance/service/ClaimServiceManager.sol +35 -0
- package/contracts/instance/service/DistributionService.sol +378 -39
- package/contracts/instance/service/DistributionServiceManager.sol +11 -13
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +93 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +86 -0
- package/contracts/instance/service/IPolicyService.sol +72 -0
- package/contracts/instance/service/IPoolService.sol +79 -17
- package/contracts/instance/service/IProductService.sol +6 -73
- package/contracts/instance/service/PolicyService.sol +360 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +343 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +210 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +9 -1
- package/contracts/registry/IRegistry.sol +40 -33
- package/contracts/registry/IRegistryService.sol +48 -13
- package/contracts/registry/ITransferInterceptor.sol +1 -0
- package/contracts/registry/Registry.sol +234 -256
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +117 -231
- 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 +67 -83
- 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 +31 -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/NftIdSet.sol +26 -24
- 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 +26 -17
- 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/BaseComponent.sol/BaseComponent.json +0 -327
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
- package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
- package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -91
- package/contracts/components/IBaseComponent.sol +0 -25
- package/contracts/experiment/cloning/Cloner.sol +0 -47
- package/contracts/experiment/errors/Require.sol +0 -38
- package/contracts/experiment/errors/Revert.sol +0 -44
- package/contracts/experiment/inheritance/A.sol +0 -53
- package/contracts/experiment/inheritance/B.sol +0 -28
- package/contracts/experiment/inheritance/C.sol +0 -34
- package/contracts/experiment/inheritance/IA.sol +0 -13
- package/contracts/experiment/inheritance/IB.sol +0 -10
- package/contracts/experiment/inheritance/IC.sol +0 -12
- package/contracts/experiment/statemachine/Dummy.sol +0 -27
- package/contracts/experiment/statemachine/ISM.sol +0 -25
- package/contracts/experiment/statemachine/SM.sol +0 -57
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
- package/contracts/experiment/types/TypeA.sol +0 -47
- package/contracts/experiment/types/TypeB.sol +0 -29
- package/contracts/instance/AccessManagedSimple.sol +0 -115
- package/contracts/instance/AccessManagerSimple.sol +0 -692
- package/contracts/instance/IAccessManagerSimple.sol +0 -391
- package/contracts/instance/base/ComponentServiceBase.sol +0 -39
- 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,16 +7,60 @@
|
|
7
7
|
"inputs": [
|
8
8
|
{
|
9
9
|
"internalType": "address",
|
10
|
-
"name": "
|
10
|
+
"name": "authority",
|
11
|
+
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "AccessManagedInvalidAuthority",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "address",
|
21
|
+
"name": "caller",
|
11
22
|
"type": "address"
|
12
23
|
},
|
24
|
+
{
|
25
|
+
"internalType": "uint32",
|
26
|
+
"name": "delay",
|
27
|
+
"type": "uint32"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "AccessManagedRequiredDelay",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "caller",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "AccessManagedUnauthorized",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "caller",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorIServiceCallerUnknown",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
13
57
|
{
|
14
58
|
"internalType": "NftId",
|
15
59
|
"name": "nftId",
|
16
60
|
"type": "uint96"
|
17
61
|
}
|
18
62
|
],
|
19
|
-
"name": "
|
63
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
20
64
|
"type": "error"
|
21
65
|
},
|
22
66
|
{
|
@@ -27,7 +71,12 @@
|
|
27
71
|
"type": "address"
|
28
72
|
}
|
29
73
|
],
|
30
|
-
"name": "
|
74
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
75
|
+
"type": "error"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"inputs": [],
|
79
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
31
80
|
"type": "error"
|
32
81
|
},
|
33
82
|
{
|
@@ -38,7 +87,7 @@
|
|
38
87
|
"type": "address"
|
39
88
|
}
|
40
89
|
],
|
41
|
-
"name": "
|
90
|
+
"name": "ErrorNftOwnableNotOwner",
|
42
91
|
"type": "error"
|
43
92
|
},
|
44
93
|
{
|
@@ -52,51 +101,163 @@
|
|
52
101
|
"name": "ErrorNotRegistry",
|
53
102
|
"type": "error"
|
54
103
|
},
|
104
|
+
{
|
105
|
+
"inputs": [
|
106
|
+
{
|
107
|
+
"internalType": "address",
|
108
|
+
"name": "registerableAddress",
|
109
|
+
"type": "address"
|
110
|
+
}
|
111
|
+
],
|
112
|
+
"name": "InvalidAddress",
|
113
|
+
"type": "error"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"inputs": [
|
117
|
+
{
|
118
|
+
"internalType": "address",
|
119
|
+
"name": "initialOwner",
|
120
|
+
"type": "address"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"name": "InvalidInitialOwner",
|
124
|
+
"type": "error"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"inputs": [],
|
128
|
+
"name": "NotDistribution",
|
129
|
+
"type": "error"
|
130
|
+
},
|
55
131
|
{
|
56
132
|
"inputs": [],
|
57
|
-
"name": "
|
133
|
+
"name": "NotInstance",
|
134
|
+
"type": "error"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"inputs": [],
|
138
|
+
"name": "NotPool",
|
139
|
+
"type": "error"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [],
|
143
|
+
"name": "NotProduct",
|
58
144
|
"type": "error"
|
59
145
|
},
|
60
146
|
{
|
61
147
|
"inputs": [
|
62
148
|
{
|
63
149
|
"internalType": "address",
|
64
|
-
"name": "
|
150
|
+
"name": "expectedOwner",
|
65
151
|
"type": "address"
|
66
152
|
}
|
67
153
|
],
|
68
|
-
"name": "
|
154
|
+
"name": "NotRegisterableOwner",
|
69
155
|
"type": "error"
|
70
156
|
},
|
71
157
|
{
|
72
158
|
"inputs": [],
|
73
|
-
"name": "
|
159
|
+
"name": "NotRegistryOwner",
|
160
|
+
"type": "error"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"inputs": [],
|
164
|
+
"name": "NotService",
|
165
|
+
"type": "error"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"inputs": [],
|
169
|
+
"name": "RegisterableOwnerIsRegistered",
|
170
|
+
"type": "error"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"inputs": [],
|
174
|
+
"name": "RegisterableOwnerIsZero",
|
175
|
+
"type": "error"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"inputs": [],
|
179
|
+
"name": "SelfRegistration",
|
74
180
|
"type": "error"
|
75
181
|
},
|
76
182
|
{
|
77
|
-
"anonymous": false,
|
78
183
|
"inputs": [
|
79
184
|
{
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
83
|
-
"type": "uint24"
|
185
|
+
"internalType": "ObjectType",
|
186
|
+
"name": "expected",
|
187
|
+
"type": "uint8"
|
84
188
|
},
|
189
|
+
{
|
190
|
+
"internalType": "ObjectType",
|
191
|
+
"name": "found",
|
192
|
+
"type": "uint8"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"name": "UnexpectedRegisterableType",
|
196
|
+
"type": "error"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"anonymous": false,
|
200
|
+
"inputs": [
|
85
201
|
{
|
86
202
|
"indexed": false,
|
87
203
|
"internalType": "address",
|
88
|
-
"name": "
|
204
|
+
"name": "authority",
|
89
205
|
"type": "address"
|
90
|
-
}
|
206
|
+
}
|
207
|
+
],
|
208
|
+
"name": "AuthorityUpdated",
|
209
|
+
"type": "event"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"inputs": [],
|
213
|
+
"name": "authority",
|
214
|
+
"outputs": [
|
91
215
|
{
|
92
|
-
"indexed": false,
|
93
216
|
"internalType": "address",
|
94
|
-
"name": "
|
217
|
+
"name": "",
|
95
218
|
"type": "address"
|
96
219
|
}
|
97
220
|
],
|
98
|
-
"
|
99
|
-
"type": "
|
221
|
+
"stateMutability": "view",
|
222
|
+
"type": "function"
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"inputs": [],
|
226
|
+
"name": "getDomain",
|
227
|
+
"outputs": [
|
228
|
+
{
|
229
|
+
"internalType": "ObjectType",
|
230
|
+
"name": "serviceDomain",
|
231
|
+
"type": "uint8"
|
232
|
+
}
|
233
|
+
],
|
234
|
+
"stateMutability": "pure",
|
235
|
+
"type": "function"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"inputs": [],
|
239
|
+
"name": "getFunctionConfigs",
|
240
|
+
"outputs": [
|
241
|
+
{
|
242
|
+
"components": [
|
243
|
+
{
|
244
|
+
"internalType": "ObjectType",
|
245
|
+
"name": "serviceDomain",
|
246
|
+
"type": "uint8"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"internalType": "bytes4[]",
|
250
|
+
"name": "selectors",
|
251
|
+
"type": "bytes4[]"
|
252
|
+
}
|
253
|
+
],
|
254
|
+
"internalType": "struct IRegistryService.FunctionConfig[]",
|
255
|
+
"name": "config",
|
256
|
+
"type": "tuple[]"
|
257
|
+
}
|
258
|
+
],
|
259
|
+
"stateMutability": "pure",
|
260
|
+
"type": "function"
|
100
261
|
},
|
101
262
|
{
|
102
263
|
"inputs": [],
|
@@ -143,24 +304,6 @@
|
|
143
304
|
"internalType": "struct IRegistry.ObjectInfo",
|
144
305
|
"name": "",
|
145
306
|
"type": "tuple"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"internalType": "bytes",
|
149
|
-
"name": "data",
|
150
|
-
"type": "bytes"
|
151
|
-
}
|
152
|
-
],
|
153
|
-
"stateMutability": "view",
|
154
|
-
"type": "function"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"inputs": [],
|
158
|
-
"name": "getInitializedVersion",
|
159
|
-
"outputs": [
|
160
|
-
{
|
161
|
-
"internalType": "uint64",
|
162
|
-
"name": "",
|
163
|
-
"type": "uint64"
|
164
307
|
}
|
165
308
|
],
|
166
309
|
"stateMutability": "view",
|
@@ -179,19 +322,6 @@
|
|
179
322
|
"stateMutability": "view",
|
180
323
|
"type": "function"
|
181
324
|
},
|
182
|
-
{
|
183
|
-
"inputs": [],
|
184
|
-
"name": "getName",
|
185
|
-
"outputs": [
|
186
|
-
{
|
187
|
-
"internalType": "string",
|
188
|
-
"name": "name",
|
189
|
-
"type": "string"
|
190
|
-
}
|
191
|
-
],
|
192
|
-
"stateMutability": "pure",
|
193
|
-
"type": "function"
|
194
|
-
},
|
195
325
|
{
|
196
326
|
"inputs": [],
|
197
327
|
"name": "getNftId",
|
@@ -233,31 +363,12 @@
|
|
233
363
|
},
|
234
364
|
{
|
235
365
|
"inputs": [],
|
236
|
-
"name": "
|
366
|
+
"name": "getRegistryAddress",
|
237
367
|
"outputs": [
|
238
368
|
{
|
239
|
-
"internalType": "
|
369
|
+
"internalType": "address",
|
240
370
|
"name": "",
|
241
|
-
"type": "
|
242
|
-
}
|
243
|
-
],
|
244
|
-
"stateMutability": "pure",
|
245
|
-
"type": "function"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"inputs": [
|
249
|
-
{
|
250
|
-
"internalType": "uint256",
|
251
|
-
"name": "index",
|
252
|
-
"type": "uint256"
|
253
|
-
}
|
254
|
-
],
|
255
|
-
"name": "getVersion",
|
256
|
-
"outputs": [
|
257
|
-
{
|
258
|
-
"internalType": "Version",
|
259
|
-
"name": "version",
|
260
|
-
"type": "uint24"
|
371
|
+
"type": "address"
|
261
372
|
}
|
262
373
|
],
|
263
374
|
"stateMutability": "view",
|
@@ -265,70 +376,19 @@
|
|
265
376
|
},
|
266
377
|
{
|
267
378
|
"inputs": [],
|
268
|
-
"name": "
|
379
|
+
"name": "getVersion",
|
269
380
|
"outputs": [
|
270
|
-
{
|
271
|
-
"internalType": "uint256",
|
272
|
-
"name": "numberOfVersions",
|
273
|
-
"type": "uint256"
|
274
|
-
}
|
275
|
-
],
|
276
|
-
"stateMutability": "view",
|
277
|
-
"type": "function"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"inputs": [
|
281
381
|
{
|
282
382
|
"internalType": "Version",
|
283
|
-
"name": "
|
383
|
+
"name": "",
|
284
384
|
"type": "uint24"
|
285
385
|
}
|
286
386
|
],
|
287
|
-
"
|
288
|
-
"outputs": [
|
289
|
-
{
|
290
|
-
"components": [
|
291
|
-
{
|
292
|
-
"internalType": "Version",
|
293
|
-
"name": "version",
|
294
|
-
"type": "uint24"
|
295
|
-
},
|
296
|
-
{
|
297
|
-
"internalType": "address",
|
298
|
-
"name": "implementation",
|
299
|
-
"type": "address"
|
300
|
-
},
|
301
|
-
{
|
302
|
-
"internalType": "address",
|
303
|
-
"name": "activatedBy",
|
304
|
-
"type": "address"
|
305
|
-
},
|
306
|
-
{
|
307
|
-
"internalType": "Timestamp",
|
308
|
-
"name": "activatedAt",
|
309
|
-
"type": "uint40"
|
310
|
-
},
|
311
|
-
{
|
312
|
-
"internalType": "Blocknumber",
|
313
|
-
"name": "activatedIn",
|
314
|
-
"type": "uint32"
|
315
|
-
}
|
316
|
-
],
|
317
|
-
"internalType": "struct IVersionable.VersionInfo",
|
318
|
-
"name": "versionInfo",
|
319
|
-
"type": "tuple"
|
320
|
-
}
|
321
|
-
],
|
322
|
-
"stateMutability": "view",
|
387
|
+
"stateMutability": "pure",
|
323
388
|
"type": "function"
|
324
389
|
},
|
325
390
|
{
|
326
391
|
"inputs": [
|
327
|
-
{
|
328
|
-
"internalType": "address",
|
329
|
-
"name": "implementation",
|
330
|
-
"type": "address"
|
331
|
-
},
|
332
392
|
{
|
333
393
|
"internalType": "address",
|
334
394
|
"name": "activatedBy",
|
@@ -340,25 +400,19 @@
|
|
340
400
|
"type": "bytes"
|
341
401
|
}
|
342
402
|
],
|
343
|
-
"name": "
|
403
|
+
"name": "initializeVersionable",
|
344
404
|
"outputs": [],
|
345
405
|
"stateMutability": "nonpayable",
|
346
406
|
"type": "function"
|
347
407
|
},
|
348
408
|
{
|
349
|
-
"inputs": [
|
350
|
-
|
351
|
-
"internalType": "Version",
|
352
|
-
"name": "version",
|
353
|
-
"type": "uint24"
|
354
|
-
}
|
355
|
-
],
|
356
|
-
"name": "isInitialized",
|
409
|
+
"inputs": [],
|
410
|
+
"name": "isConsumingScheduledOp",
|
357
411
|
"outputs": [
|
358
412
|
{
|
359
|
-
"internalType": "
|
413
|
+
"internalType": "bytes4",
|
360
414
|
"name": "",
|
361
|
-
"type": "
|
415
|
+
"type": "bytes4"
|
362
416
|
}
|
363
417
|
],
|
364
418
|
"stateMutability": "view",
|
@@ -430,7 +484,7 @@
|
|
430
484
|
{
|
431
485
|
"inputs": [
|
432
486
|
{
|
433
|
-
"internalType": "contract
|
487
|
+
"internalType": "contract IComponent",
|
434
488
|
"name": "distribution",
|
435
489
|
"type": "address"
|
436
490
|
},
|
@@ -483,11 +537,6 @@
|
|
483
537
|
"internalType": "struct IRegistry.ObjectInfo",
|
484
538
|
"name": "info",
|
485
539
|
"type": "tuple"
|
486
|
-
},
|
487
|
-
{
|
488
|
-
"internalType": "bytes",
|
489
|
-
"name": "data",
|
490
|
-
"type": "bytes"
|
491
540
|
}
|
492
541
|
],
|
493
542
|
"stateMutability": "nonpayable",
|
@@ -495,14 +544,6 @@
|
|
495
544
|
},
|
496
545
|
{
|
497
546
|
"inputs": [
|
498
|
-
{
|
499
|
-
"internalType": "contract IRegisterable",
|
500
|
-
"name": "instance",
|
501
|
-
"type": "address"
|
502
|
-
}
|
503
|
-
],
|
504
|
-
"name": "registerInstance",
|
505
|
-
"outputs": [
|
506
547
|
{
|
507
548
|
"components": [
|
508
549
|
{
|
@@ -544,11 +585,14 @@
|
|
544
585
|
"internalType": "struct IRegistry.ObjectInfo",
|
545
586
|
"name": "info",
|
546
587
|
"type": "tuple"
|
547
|
-
}
|
588
|
+
}
|
589
|
+
],
|
590
|
+
"name": "registerDistributor",
|
591
|
+
"outputs": [
|
548
592
|
{
|
549
|
-
"internalType": "
|
550
|
-
"name": "
|
551
|
-
"type": "
|
593
|
+
"internalType": "NftId",
|
594
|
+
"name": "nftId",
|
595
|
+
"type": "uint96"
|
552
596
|
}
|
553
597
|
],
|
554
598
|
"stateMutability": "nonpayable",
|
@@ -556,6 +600,19 @@
|
|
556
600
|
},
|
557
601
|
{
|
558
602
|
"inputs": [
|
603
|
+
{
|
604
|
+
"internalType": "contract IRegisterable",
|
605
|
+
"name": "instance",
|
606
|
+
"type": "address"
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"internalType": "address",
|
610
|
+
"name": "owner",
|
611
|
+
"type": "address"
|
612
|
+
}
|
613
|
+
],
|
614
|
+
"name": "registerInstance",
|
615
|
+
"outputs": [
|
559
616
|
{
|
560
617
|
"components": [
|
561
618
|
{
|
@@ -599,32 +656,11 @@
|
|
599
656
|
"type": "tuple"
|
600
657
|
}
|
601
658
|
],
|
602
|
-
"name": "registerPolicy",
|
603
|
-
"outputs": [
|
604
|
-
{
|
605
|
-
"internalType": "NftId",
|
606
|
-
"name": "nftId",
|
607
|
-
"type": "uint96"
|
608
|
-
}
|
609
|
-
],
|
610
659
|
"stateMutability": "nonpayable",
|
611
660
|
"type": "function"
|
612
661
|
},
|
613
662
|
{
|
614
663
|
"inputs": [
|
615
|
-
{
|
616
|
-
"internalType": "contract IBaseComponent",
|
617
|
-
"name": "pool",
|
618
|
-
"type": "address"
|
619
|
-
},
|
620
|
-
{
|
621
|
-
"internalType": "address",
|
622
|
-
"name": "owner",
|
623
|
-
"type": "address"
|
624
|
-
}
|
625
|
-
],
|
626
|
-
"name": "registerPool",
|
627
|
-
"outputs": [
|
628
664
|
{
|
629
665
|
"components": [
|
630
666
|
{
|
@@ -666,11 +702,14 @@
|
|
666
702
|
"internalType": "struct IRegistry.ObjectInfo",
|
667
703
|
"name": "info",
|
668
704
|
"type": "tuple"
|
669
|
-
}
|
705
|
+
}
|
706
|
+
],
|
707
|
+
"name": "registerPolicy",
|
708
|
+
"outputs": [
|
670
709
|
{
|
671
|
-
"internalType": "
|
672
|
-
"name": "
|
673
|
-
"type": "
|
710
|
+
"internalType": "NftId",
|
711
|
+
"name": "nftId",
|
712
|
+
"type": "uint96"
|
674
713
|
}
|
675
714
|
],
|
676
715
|
"stateMutability": "nonpayable",
|
@@ -679,8 +718,8 @@
|
|
679
718
|
{
|
680
719
|
"inputs": [
|
681
720
|
{
|
682
|
-
"internalType": "contract
|
683
|
-
"name": "
|
721
|
+
"internalType": "contract IComponent",
|
722
|
+
"name": "pool",
|
684
723
|
"type": "address"
|
685
724
|
},
|
686
725
|
{
|
@@ -689,7 +728,7 @@
|
|
689
728
|
"type": "address"
|
690
729
|
}
|
691
730
|
],
|
692
|
-
"name": "
|
731
|
+
"name": "registerPool",
|
693
732
|
"outputs": [
|
694
733
|
{
|
695
734
|
"components": [
|
@@ -732,11 +771,6 @@
|
|
732
771
|
"internalType": "struct IRegistry.ObjectInfo",
|
733
772
|
"name": "info",
|
734
773
|
"type": "tuple"
|
735
|
-
},
|
736
|
-
{
|
737
|
-
"internalType": "bytes",
|
738
|
-
"name": "data",
|
739
|
-
"type": "bytes"
|
740
774
|
}
|
741
775
|
],
|
742
776
|
"stateMutability": "nonpayable",
|
@@ -745,12 +779,17 @@
|
|
745
779
|
{
|
746
780
|
"inputs": [
|
747
781
|
{
|
748
|
-
"internalType": "contract
|
749
|
-
"name": "
|
782
|
+
"internalType": "contract IComponent",
|
783
|
+
"name": "product",
|
784
|
+
"type": "address"
|
785
|
+
},
|
786
|
+
{
|
787
|
+
"internalType": "address",
|
788
|
+
"name": "owner",
|
750
789
|
"type": "address"
|
751
790
|
}
|
752
791
|
],
|
753
|
-
"name": "
|
792
|
+
"name": "registerProduct",
|
754
793
|
"outputs": [
|
755
794
|
{
|
756
795
|
"components": [
|
@@ -793,13 +832,21 @@
|
|
793
832
|
"internalType": "struct IRegistry.ObjectInfo",
|
794
833
|
"name": "info",
|
795
834
|
"type": "tuple"
|
796
|
-
}
|
835
|
+
}
|
836
|
+
],
|
837
|
+
"stateMutability": "nonpayable",
|
838
|
+
"type": "function"
|
839
|
+
},
|
840
|
+
{
|
841
|
+
"inputs": [
|
797
842
|
{
|
798
|
-
"internalType": "
|
799
|
-
"name": "
|
800
|
-
"type": "
|
843
|
+
"internalType": "address",
|
844
|
+
"name": "",
|
845
|
+
"type": "address"
|
801
846
|
}
|
802
847
|
],
|
848
|
+
"name": "setAuthority",
|
849
|
+
"outputs": [],
|
803
850
|
"stateMutability": "nonpayable",
|
804
851
|
"type": "function"
|
805
852
|
},
|
@@ -824,23 +871,13 @@
|
|
824
871
|
},
|
825
872
|
{
|
826
873
|
"inputs": [
|
827
|
-
{
|
828
|
-
"internalType": "address",
|
829
|
-
"name": "implementation",
|
830
|
-
"type": "address"
|
831
|
-
},
|
832
|
-
{
|
833
|
-
"internalType": "address",
|
834
|
-
"name": "activatedBy",
|
835
|
-
"type": "address"
|
836
|
-
},
|
837
874
|
{
|
838
875
|
"internalType": "bytes",
|
839
876
|
"name": "upgradeData",
|
840
877
|
"type": "bytes"
|
841
878
|
}
|
842
879
|
],
|
843
|
-
"name": "
|
880
|
+
"name": "upgradeVersionable",
|
844
881
|
"outputs": [],
|
845
882
|
"stateMutability": "nonpayable",
|
846
883
|
"type": "function"
|
@@ -3,6 +3,24 @@
|
|
3
3
|
"contractName": "ITransferInterceptor",
|
4
4
|
"sourceName": "contracts/registry/ITransferInterceptor.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "to",
|
11
|
+
"type": "address"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "uint256",
|
15
|
+
"name": "tokenId",
|
16
|
+
"type": "uint256"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "nftMint",
|
20
|
+
"outputs": [],
|
21
|
+
"stateMutability": "nonpayable",
|
22
|
+
"type": "function"
|
23
|
+
},
|
6
24
|
{
|
7
25
|
"inputs": [
|
8
26
|
{
|