@etherisc/gif-next 0.0.2-eb7397c → 0.0.2-eb98db7-932
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +436 -8
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +705 -31
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +1346 -0
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +284 -223
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +900 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +887 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +806 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1184 -75
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +1105 -90
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2102 -510
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +498 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2780 -459
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1035 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +541 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/ISetup.sol/ISetup.json} +2 -2
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +858 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +657 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1085 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +743 -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 +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1087 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +729 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +462 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +622 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +398 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +520 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +572 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +336 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +373 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1109 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +717 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +716 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +766 -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 +239 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +519 -61
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +879 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +567 -75
- 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 +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1166 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
- 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 +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/{registry/Registry.sol/Registerable.json → shared/INftOwnable.sol/INftOwnable.json} +46 -74
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/{instance/product/IProductService.sol/IProductService.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +68 -53
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/{instance/pool/PoolModule.sol/PoolModule.json → shared/IRegisterable.sol/IRegisterable.json} +106 -80
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegistryLinked.sol}/IRegistryLinked.json +18 -19
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/shared/IService.sol/IService.json +258 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
- 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 +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +352 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/shared/Service.sol/Service.json +414 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +383 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +510 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +104 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -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/ChainId.sol/ChainIdLib.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- 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 +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
- package/contracts/components/Component.sol +216 -37
- package/contracts/components/Distribution.sol +287 -0
- package/contracts/components/IComponent.sol +54 -0
- package/contracts/components/IDistributionComponent.sol +92 -0
- package/contracts/components/IPoolComponent.sol +87 -0
- package/contracts/components/IProductComponent.sol +39 -0
- package/contracts/components/Pool.sol +242 -17
- package/contracts/components/Product.sol +251 -32
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +87 -15
- package/contracts/instance/IInstanceService.sol +59 -0
- package/contracts/instance/Instance.sol +270 -43
- package/contracts/instance/InstanceAccessManager.sol +297 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +476 -0
- package/contracts/instance/InstanceServiceManager.sol +54 -0
- package/contracts/instance/ObjectManager.sol +84 -0
- package/contracts/instance/base/ComponentService.sol +134 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/KeyValueStore.sol +172 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/module/IAccess.sol +47 -0
- package/contracts/instance/module/IBundle.sol +20 -0
- package/contracts/instance/module/IDistribution.sol +40 -0
- package/contracts/instance/module/IPolicy.sol +47 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +48 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ApplicationService.sol +268 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +298 -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 +346 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +54 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +73 -0
- package/contracts/instance/service/IPolicyService.sol +89 -0
- package/contracts/instance/service/IPoolService.sol +20 -0
- package/contracts/instance/service/IProductService.sol +40 -0
- package/contracts/instance/service/PolicyService.sol +476 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +109 -0
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +233 -0
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +138 -109
- package/contracts/registry/IRegistry.sol +78 -49
- package/contracts/registry/IRegistryService.sol +67 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +398 -116
- package/contracts/registry/RegistryAccessManager.sol +216 -0
- package/contracts/registry/RegistryService.sol +283 -0
- package/contracts/registry/RegistryServiceManager.sol +62 -0
- package/contracts/registry/ReleaseManager.sol +322 -0
- package/contracts/registry/TokenRegistry.sol +116 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +27 -0
- package/contracts/shared/INftOwnable.sol +23 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +15 -0
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +16 -0
- package/contracts/shared/IVersionable.sol +53 -0
- package/contracts/shared/NftOwnable.sol +120 -0
- package/contracts/shared/PolicyHolder.sol +81 -0
- package/contracts/shared/ProxyManager.sol +169 -0
- package/contracts/shared/Registerable.sol +74 -0
- package/contracts/shared/RegistryLinked.sol +48 -0
- package/contracts/shared/Service.sol +58 -0
- package/contracts/shared/TokenHandler.sol +27 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +59 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestRegisterable.sol +18 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +25 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +44 -0
- package/contracts/test/TestVersionable.sol +17 -0
- package/contracts/test/Usdc.sol +26 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/Blocknumber.sol +76 -18
- package/contracts/types/ChainId.sol +18 -10
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +56 -0
- package/contracts/types/Key32.sol +50 -0
- package/contracts/types/NftId.sol +48 -11
- package/contracts/types/NftIdSet.sol +62 -0
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +156 -0
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +85 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +90 -0
- package/contracts/types/StateId.sol +105 -0
- package/contracts/types/Timestamp.sol +89 -17
- package/contracts/types/UFixed.sol +193 -75
- package/contracts/types/Version.sol +107 -0
- package/package.json +21 -6
- package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
- 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/IB.sol/IB.json +0 -50
- 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/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/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
- package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -327
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
- package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
- package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
- package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -440
- package/contracts/components/IPool.sol +0 -9
- package/contracts/components/IProduct.sol +0 -12
- package/contracts/experiment/errors/Require.sol +0 -33
- package/contracts/experiment/errors/Revert.sol +0 -39
- package/contracts/experiment/inheritance/A.sol +0 -56
- package/contracts/experiment/inheritance/B.sol +0 -23
- package/contracts/experiment/inheritance/C.sol +0 -28
- package/contracts/experiment/inheritance/IA.sol +0 -18
- package/contracts/experiment/inheritance/IB.sol +0 -9
- package/contracts/experiment/inheritance/IC.sol +0 -11
- package/contracts/experiment/types/TypeA.sol +0 -42
- package/contracts/experiment/types/TypeB.sol +0 -24
- package/contracts/instance/access/Access.sol +0 -218
- package/contracts/instance/access/IAccess.sol +0 -83
- package/contracts/instance/component/ComponentModule.sol +0 -248
- package/contracts/instance/component/IComponent.sol +0 -95
- package/contracts/instance/policy/IPolicy.sol +0 -66
- package/contracts/instance/policy/PolicyModule.sol +0 -107
- package/contracts/instance/pool/IPoolModule.sol +0 -41
- package/contracts/instance/pool/PoolModule.sol +0 -86
- package/contracts/instance/product/IProductService.sol +0 -46
- package/contracts/instance/product/ProductService.sol +0 -108
- package/contracts/registry/IChainNft.sol +0 -18
@@ -1,165 +1,266 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/
|
3
|
+
"contractName": "IComponent",
|
4
|
+
"sourceName": "contracts/components/IComponent.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"indexed": true,
|
11
9
|
"internalType": "address",
|
12
|
-
"name": "
|
10
|
+
"name": "caller",
|
13
11
|
"type": "address"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorComponentNotChainNft",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "NftId",
|
21
|
+
"name": "instanceNftId",
|
22
|
+
"type": "uint96"
|
14
23
|
},
|
15
24
|
{
|
16
|
-
"indexed": true,
|
17
25
|
"internalType": "address",
|
18
|
-
"name": "
|
26
|
+
"name": "instance",
|
19
27
|
"type": "address"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"indexed": true,
|
23
|
-
"internalType": "uint256",
|
24
|
-
"name": "tokenId",
|
25
|
-
"type": "uint256"
|
26
28
|
}
|
27
29
|
],
|
28
|
-
"name": "
|
29
|
-
"type": "
|
30
|
+
"name": "ErrorComponentNotInstance",
|
31
|
+
"type": "error"
|
30
32
|
},
|
31
33
|
{
|
32
|
-
"anonymous": false,
|
33
34
|
"inputs": [
|
34
35
|
{
|
35
|
-
"indexed": true,
|
36
36
|
"internalType": "address",
|
37
|
-
"name": "
|
37
|
+
"name": "caller",
|
38
38
|
"type": "address"
|
39
|
-
}
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "ErrorComponentNotProductService",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [],
|
46
|
+
"name": "ErrorComponentProductNftAlreadySet",
|
47
|
+
"type": "error"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"inputs": [
|
40
51
|
{
|
41
|
-
"indexed": true,
|
42
52
|
"internalType": "address",
|
43
|
-
"name": "
|
53
|
+
"name": "caller",
|
44
54
|
"type": "address"
|
45
55
|
},
|
46
56
|
{
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"type": "bool"
|
57
|
+
"internalType": "uint64",
|
58
|
+
"name": "requiredRoleIdNum",
|
59
|
+
"type": "uint64"
|
51
60
|
}
|
52
61
|
],
|
53
|
-
"name": "
|
54
|
-
"type": "
|
62
|
+
"name": "ErrorComponentUnauthorized",
|
63
|
+
"type": "error"
|
55
64
|
},
|
56
65
|
{
|
57
|
-
"anonymous": false,
|
58
66
|
"inputs": [
|
59
67
|
{
|
60
|
-
"indexed": true,
|
61
68
|
"internalType": "address",
|
62
|
-
"name": "
|
69
|
+
"name": "newWallet",
|
70
|
+
"type": "address"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"name": "ErrorComponentWalletAddressIsSameAsCurrent",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"inputs": [],
|
78
|
+
"name": "ErrorComponentWalletAddressZero",
|
79
|
+
"type": "error"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"inputs": [
|
83
|
+
{
|
84
|
+
"internalType": "address",
|
85
|
+
"name": "oldWallet",
|
63
86
|
"type": "address"
|
64
87
|
},
|
65
88
|
{
|
66
|
-
"indexed": true,
|
67
89
|
"internalType": "address",
|
68
|
-
"name": "
|
90
|
+
"name": "newWallet",
|
69
91
|
"type": "address"
|
70
92
|
},
|
71
93
|
{
|
72
|
-
"indexed": true,
|
73
94
|
"internalType": "uint256",
|
74
|
-
"name": "
|
95
|
+
"name": "allowance",
|
96
|
+
"type": "uint256"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"internalType": "uint256",
|
100
|
+
"name": "balance",
|
75
101
|
"type": "uint256"
|
76
102
|
}
|
77
103
|
],
|
78
|
-
"name": "
|
79
|
-
"type": "
|
104
|
+
"name": "ErrorComponentWalletAllowanceTooSmall",
|
105
|
+
"type": "error"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"inputs": [
|
109
|
+
{
|
110
|
+
"internalType": "NftId",
|
111
|
+
"name": "nftId",
|
112
|
+
"type": "uint96"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
116
|
+
"type": "error"
|
80
117
|
},
|
81
118
|
{
|
82
119
|
"inputs": [
|
83
120
|
{
|
84
121
|
"internalType": "address",
|
85
|
-
"name": "
|
122
|
+
"name": "contractAddress",
|
86
123
|
"type": "address"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"internalType": "uint256",
|
90
|
-
"name": "tokenId",
|
91
|
-
"type": "uint256"
|
92
124
|
}
|
93
125
|
],
|
94
|
-
"name": "
|
95
|
-
"
|
96
|
-
|
97
|
-
|
126
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
127
|
+
"type": "error"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [],
|
131
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
132
|
+
"type": "error"
|
98
133
|
},
|
99
134
|
{
|
100
135
|
"inputs": [
|
101
136
|
{
|
102
137
|
"internalType": "address",
|
103
|
-
"name": "
|
138
|
+
"name": "account",
|
104
139
|
"type": "address"
|
105
140
|
}
|
106
141
|
],
|
107
|
-
"name": "
|
108
|
-
"
|
142
|
+
"name": "ErrorNftOwnableNotOwner",
|
143
|
+
"type": "error"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"inputs": [
|
109
147
|
{
|
110
|
-
"internalType": "
|
111
|
-
"name": "
|
112
|
-
"type": "
|
148
|
+
"internalType": "address",
|
149
|
+
"name": "registryAddress",
|
150
|
+
"type": "address"
|
113
151
|
}
|
114
152
|
],
|
115
|
-
"
|
116
|
-
"type": "
|
153
|
+
"name": "ErrorNotRegistry",
|
154
|
+
"type": "error"
|
117
155
|
},
|
118
156
|
{
|
157
|
+
"anonymous": false,
|
119
158
|
"inputs": [
|
120
159
|
{
|
121
|
-
"
|
122
|
-
"
|
123
|
-
"
|
160
|
+
"indexed": false,
|
161
|
+
"internalType": "address",
|
162
|
+
"name": "newWallet",
|
163
|
+
"type": "address"
|
124
164
|
}
|
125
165
|
],
|
126
|
-
"name": "
|
127
|
-
"
|
128
|
-
"stateMutability": "nonpayable",
|
129
|
-
"type": "function"
|
166
|
+
"name": "LogComponentWalletAddressChanged",
|
167
|
+
"type": "event"
|
130
168
|
},
|
131
169
|
{
|
170
|
+
"anonymous": false,
|
132
171
|
"inputs": [
|
133
172
|
{
|
173
|
+
"indexed": false,
|
174
|
+
"internalType": "address",
|
175
|
+
"name": "from",
|
176
|
+
"type": "address"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"indexed": false,
|
180
|
+
"internalType": "address",
|
181
|
+
"name": "to",
|
182
|
+
"type": "address"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"indexed": false,
|
134
186
|
"internalType": "uint256",
|
135
|
-
"name": "
|
187
|
+
"name": "amount",
|
136
188
|
"type": "uint256"
|
137
189
|
}
|
138
190
|
],
|
139
|
-
"name": "
|
191
|
+
"name": "LogComponentWalletTokensTransferred",
|
192
|
+
"type": "event"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"inputs": [],
|
196
|
+
"name": "getInitialInfo",
|
140
197
|
"outputs": [
|
141
198
|
{
|
142
|
-
"
|
199
|
+
"components": [
|
200
|
+
{
|
201
|
+
"internalType": "NftId",
|
202
|
+
"name": "nftId",
|
203
|
+
"type": "uint96"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"internalType": "NftId",
|
207
|
+
"name": "parentNftId",
|
208
|
+
"type": "uint96"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"internalType": "ObjectType",
|
212
|
+
"name": "objectType",
|
213
|
+
"type": "uint8"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"internalType": "bool",
|
217
|
+
"name": "isInterceptor",
|
218
|
+
"type": "bool"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"internalType": "address",
|
222
|
+
"name": "objectAddress",
|
223
|
+
"type": "address"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"internalType": "address",
|
227
|
+
"name": "initialOwner",
|
228
|
+
"type": "address"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"internalType": "bytes",
|
232
|
+
"name": "data",
|
233
|
+
"type": "bytes"
|
234
|
+
}
|
235
|
+
],
|
236
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
143
237
|
"name": "",
|
144
|
-
"type": "
|
238
|
+
"type": "tuple"
|
145
239
|
}
|
146
240
|
],
|
147
241
|
"stateMutability": "view",
|
148
242
|
"type": "function"
|
149
243
|
},
|
150
244
|
{
|
151
|
-
"inputs": [
|
245
|
+
"inputs": [],
|
246
|
+
"name": "getInstance",
|
247
|
+
"outputs": [
|
152
248
|
{
|
153
|
-
"internalType": "
|
154
|
-
"name": "
|
155
|
-
"type": "
|
249
|
+
"internalType": "contract IInstance",
|
250
|
+
"name": "instance",
|
251
|
+
"type": "address"
|
156
252
|
}
|
157
253
|
],
|
158
|
-
"
|
254
|
+
"stateMutability": "view",
|
255
|
+
"type": "function"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"inputs": [],
|
259
|
+
"name": "getInstanceService",
|
159
260
|
"outputs": [
|
160
261
|
{
|
161
|
-
"internalType": "
|
162
|
-
"name": "
|
262
|
+
"internalType": "contract IInstanceService",
|
263
|
+
"name": "",
|
163
264
|
"type": "address"
|
164
265
|
}
|
165
266
|
],
|
@@ -168,78 +269,108 @@
|
|
168
269
|
},
|
169
270
|
{
|
170
271
|
"inputs": [],
|
171
|
-
"name": "
|
272
|
+
"name": "getName",
|
172
273
|
"outputs": [
|
173
274
|
{
|
174
|
-
"internalType": "
|
175
|
-
"name": "
|
176
|
-
"type": "
|
275
|
+
"internalType": "string",
|
276
|
+
"name": "name",
|
277
|
+
"type": "string"
|
177
278
|
}
|
178
279
|
],
|
179
280
|
"stateMutability": "view",
|
180
281
|
"type": "function"
|
181
282
|
},
|
182
283
|
{
|
183
|
-
"inputs": [
|
284
|
+
"inputs": [],
|
285
|
+
"name": "getNftId",
|
286
|
+
"outputs": [
|
184
287
|
{
|
185
|
-
"internalType": "
|
186
|
-
"name": "
|
187
|
-
"type": "
|
188
|
-
}
|
288
|
+
"internalType": "NftId",
|
289
|
+
"name": "",
|
290
|
+
"type": "uint96"
|
291
|
+
}
|
292
|
+
],
|
293
|
+
"stateMutability": "view",
|
294
|
+
"type": "function"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"inputs": [],
|
298
|
+
"name": "getOwner",
|
299
|
+
"outputs": [
|
189
300
|
{
|
190
301
|
"internalType": "address",
|
191
|
-
"name": "
|
302
|
+
"name": "",
|
192
303
|
"type": "address"
|
193
304
|
}
|
194
305
|
],
|
195
|
-
"
|
306
|
+
"stateMutability": "view",
|
307
|
+
"type": "function"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"inputs": [],
|
311
|
+
"name": "getProductNftId",
|
196
312
|
"outputs": [
|
197
313
|
{
|
198
|
-
"internalType": "
|
199
|
-
"name": "",
|
200
|
-
"type": "
|
314
|
+
"internalType": "NftId",
|
315
|
+
"name": "productNftId",
|
316
|
+
"type": "uint96"
|
201
317
|
}
|
202
318
|
],
|
203
319
|
"stateMutability": "view",
|
204
320
|
"type": "function"
|
205
321
|
},
|
206
322
|
{
|
207
|
-
"inputs": [
|
323
|
+
"inputs": [],
|
324
|
+
"name": "getProductService",
|
325
|
+
"outputs": [
|
208
326
|
{
|
209
|
-
"internalType": "
|
210
|
-
"name": "
|
327
|
+
"internalType": "contract IProductService",
|
328
|
+
"name": "",
|
211
329
|
"type": "address"
|
212
|
-
}
|
330
|
+
}
|
331
|
+
],
|
332
|
+
"stateMutability": "view",
|
333
|
+
"type": "function"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"inputs": [],
|
337
|
+
"name": "getRegistry",
|
338
|
+
"outputs": [
|
213
339
|
{
|
214
|
-
"internalType": "
|
215
|
-
"name": "
|
216
|
-
"type": "
|
340
|
+
"internalType": "contract IRegistry",
|
341
|
+
"name": "",
|
342
|
+
"type": "address"
|
217
343
|
}
|
218
344
|
],
|
219
|
-
"
|
345
|
+
"stateMutability": "view",
|
346
|
+
"type": "function"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"inputs": [],
|
350
|
+
"name": "getRegistryAddress",
|
220
351
|
"outputs": [
|
221
352
|
{
|
222
|
-
"internalType": "
|
223
|
-
"name": "
|
224
|
-
"type": "
|
353
|
+
"internalType": "address",
|
354
|
+
"name": "",
|
355
|
+
"type": "address"
|
225
356
|
}
|
226
357
|
],
|
227
|
-
"stateMutability": "
|
358
|
+
"stateMutability": "view",
|
228
359
|
"type": "function"
|
229
360
|
},
|
230
361
|
{
|
231
362
|
"inputs": [
|
232
363
|
{
|
233
|
-
"internalType": "
|
234
|
-
"name": "
|
235
|
-
"type": "
|
364
|
+
"internalType": "ObjectType",
|
365
|
+
"name": "domain",
|
366
|
+
"type": "uint8"
|
236
367
|
}
|
237
368
|
],
|
238
|
-
"name": "
|
369
|
+
"name": "getServiceAddress",
|
239
370
|
"outputs": [
|
240
371
|
{
|
241
372
|
"internalType": "address",
|
242
|
-
"name": "
|
373
|
+
"name": "service",
|
243
374
|
"type": "address"
|
244
375
|
}
|
245
376
|
],
|
@@ -247,24 +378,54 @@
|
|
247
378
|
"type": "function"
|
248
379
|
},
|
249
380
|
{
|
250
|
-
"inputs": [
|
381
|
+
"inputs": [],
|
382
|
+
"name": "getToken",
|
383
|
+
"outputs": [
|
251
384
|
{
|
252
|
-
"internalType": "
|
253
|
-
"name": "
|
385
|
+
"internalType": "contract IERC20Metadata",
|
386
|
+
"name": "token",
|
254
387
|
"type": "address"
|
255
|
-
}
|
388
|
+
}
|
389
|
+
],
|
390
|
+
"stateMutability": "view",
|
391
|
+
"type": "function"
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"inputs": [],
|
395
|
+
"name": "getWallet",
|
396
|
+
"outputs": [
|
256
397
|
{
|
257
398
|
"internalType": "address",
|
258
|
-
"name": "
|
399
|
+
"name": "walletAddress",
|
259
400
|
"type": "address"
|
260
|
-
}
|
401
|
+
}
|
402
|
+
],
|
403
|
+
"stateMutability": "view",
|
404
|
+
"type": "function"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"inputs": [],
|
408
|
+
"name": "isNftInterceptor",
|
409
|
+
"outputs": [
|
261
410
|
{
|
262
|
-
"internalType": "
|
263
|
-
"name": "
|
264
|
-
"type": "
|
411
|
+
"internalType": "bool",
|
412
|
+
"name": "isInterceptor",
|
413
|
+
"type": "bool"
|
265
414
|
}
|
266
415
|
],
|
267
|
-
"
|
416
|
+
"stateMutability": "view",
|
417
|
+
"type": "function"
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"inputs": [],
|
421
|
+
"name": "linkToRegisteredNftId",
|
422
|
+
"outputs": [],
|
423
|
+
"stateMutability": "nonpayable",
|
424
|
+
"type": "function"
|
425
|
+
},
|
426
|
+
{
|
427
|
+
"inputs": [],
|
428
|
+
"name": "lock",
|
268
429
|
"outputs": [],
|
269
430
|
"stateMutability": "nonpayable",
|
270
431
|
"type": "function"
|
@@ -285,14 +446,9 @@
|
|
285
446
|
"internalType": "uint256",
|
286
447
|
"name": "tokenId",
|
287
448
|
"type": "uint256"
|
288
|
-
},
|
289
|
-
{
|
290
|
-
"internalType": "bytes",
|
291
|
-
"name": "data",
|
292
|
-
"type": "bytes"
|
293
449
|
}
|
294
450
|
],
|
295
|
-
"name": "
|
451
|
+
"name": "nftTransferFrom",
|
296
452
|
"outputs": [],
|
297
453
|
"stateMutability": "nonpayable",
|
298
454
|
"type": "function"
|
@@ -300,17 +456,12 @@
|
|
300
456
|
{
|
301
457
|
"inputs": [
|
302
458
|
{
|
303
|
-
"internalType": "
|
304
|
-
"name": "
|
305
|
-
"type": "
|
306
|
-
},
|
307
|
-
{
|
308
|
-
"internalType": "bool",
|
309
|
-
"name": "approved",
|
310
|
-
"type": "bool"
|
459
|
+
"internalType": "NftId",
|
460
|
+
"name": "productNftId",
|
461
|
+
"type": "uint96"
|
311
462
|
}
|
312
463
|
],
|
313
|
-
"name": "
|
464
|
+
"name": "setProductNftId",
|
314
465
|
"outputs": [],
|
315
466
|
"stateMutability": "nonpayable",
|
316
467
|
"type": "function"
|
@@ -318,17 +469,12 @@
|
|
318
469
|
{
|
319
470
|
"inputs": [
|
320
471
|
{
|
321
|
-
"internalType": "
|
322
|
-
"name": "
|
323
|
-
"type": "
|
324
|
-
},
|
325
|
-
{
|
326
|
-
"internalType": "string",
|
327
|
-
"name": "uri",
|
328
|
-
"type": "string"
|
472
|
+
"internalType": "address",
|
473
|
+
"name": "walletAddress",
|
474
|
+
"type": "address"
|
329
475
|
}
|
330
476
|
],
|
331
|
-
"name": "
|
477
|
+
"name": "setWallet",
|
332
478
|
"outputs": [],
|
333
479
|
"stateMutability": "nonpayable",
|
334
480
|
"type": "function"
|
@@ -352,94 +498,9 @@
|
|
352
498
|
"stateMutability": "view",
|
353
499
|
"type": "function"
|
354
500
|
},
|
355
|
-
{
|
356
|
-
"inputs": [
|
357
|
-
{
|
358
|
-
"internalType": "uint256",
|
359
|
-
"name": "index",
|
360
|
-
"type": "uint256"
|
361
|
-
}
|
362
|
-
],
|
363
|
-
"name": "tokenByIndex",
|
364
|
-
"outputs": [
|
365
|
-
{
|
366
|
-
"internalType": "uint256",
|
367
|
-
"name": "",
|
368
|
-
"type": "uint256"
|
369
|
-
}
|
370
|
-
],
|
371
|
-
"stateMutability": "view",
|
372
|
-
"type": "function"
|
373
|
-
},
|
374
|
-
{
|
375
|
-
"inputs": [
|
376
|
-
{
|
377
|
-
"internalType": "address",
|
378
|
-
"name": "owner",
|
379
|
-
"type": "address"
|
380
|
-
},
|
381
|
-
{
|
382
|
-
"internalType": "uint256",
|
383
|
-
"name": "index",
|
384
|
-
"type": "uint256"
|
385
|
-
}
|
386
|
-
],
|
387
|
-
"name": "tokenOfOwnerByIndex",
|
388
|
-
"outputs": [
|
389
|
-
{
|
390
|
-
"internalType": "uint256",
|
391
|
-
"name": "",
|
392
|
-
"type": "uint256"
|
393
|
-
}
|
394
|
-
],
|
395
|
-
"stateMutability": "view",
|
396
|
-
"type": "function"
|
397
|
-
},
|
398
501
|
{
|
399
502
|
"inputs": [],
|
400
|
-
"name": "
|
401
|
-
"outputs": [
|
402
|
-
{
|
403
|
-
"internalType": "uint256",
|
404
|
-
"name": "",
|
405
|
-
"type": "uint256"
|
406
|
-
}
|
407
|
-
],
|
408
|
-
"stateMutability": "view",
|
409
|
-
"type": "function"
|
410
|
-
},
|
411
|
-
{
|
412
|
-
"inputs": [],
|
413
|
-
"name": "totalSupply",
|
414
|
-
"outputs": [
|
415
|
-
{
|
416
|
-
"internalType": "uint256",
|
417
|
-
"name": "",
|
418
|
-
"type": "uint256"
|
419
|
-
}
|
420
|
-
],
|
421
|
-
"stateMutability": "view",
|
422
|
-
"type": "function"
|
423
|
-
},
|
424
|
-
{
|
425
|
-
"inputs": [
|
426
|
-
{
|
427
|
-
"internalType": "address",
|
428
|
-
"name": "from",
|
429
|
-
"type": "address"
|
430
|
-
},
|
431
|
-
{
|
432
|
-
"internalType": "address",
|
433
|
-
"name": "to",
|
434
|
-
"type": "address"
|
435
|
-
},
|
436
|
-
{
|
437
|
-
"internalType": "uint256",
|
438
|
-
"name": "tokenId",
|
439
|
-
"type": "uint256"
|
440
|
-
}
|
441
|
-
],
|
442
|
-
"name": "transferFrom",
|
503
|
+
"name": "unlock",
|
443
504
|
"outputs": [],
|
444
505
|
"stateMutability": "nonpayable",
|
445
506
|
"type": "function"
|