@etherisc/gif-next 0.0.2-e875d61-189 → 0.0.2-e922e07-736
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +314 -27
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
- package/artifacts/contracts/components/Component.sol/Component.json +774 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +1261 -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} +234 -239
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +811 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +804 -131
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +455 -62
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +1192 -196
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +865 -114
- 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 +1556 -1003
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +509 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2282 -1171
- 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 +1355 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1046 -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 +552 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
- 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 +37 -245
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- 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/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.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/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -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 +1096 -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 +754 -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 +1724 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +801 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +633 -0
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
- package/artifacts/contracts/instance/{base/InstanceBase.sol/InstanceBase.json → service/IClaimService.sol/IClaimService.json} +221 -156
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +1013 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +540 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +136 -165
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +139 -232
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1021 -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 +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +416 -160
- 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 +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +401 -297
- 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 +186 -12
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +466 -34
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +890 -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 +470 -103
- 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 +1177 -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 +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +38 -74
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
- package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +66 -73
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +100 -33
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/IService.sol/IService.json} +121 -152
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +16 -125
- 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 +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +256 -25
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
- package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/Service.sol/Service.json} +220 -159
- 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 +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +29 -115
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +272 -26
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +281 -139
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
- 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 +38 -140
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- 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 +4 -0
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
- 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 +4 -0
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
- 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 +4 -0
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -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 +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
- 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 +38 -7
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
- package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
- package/contracts/components/Component.sol +221 -0
- package/contracts/components/Distribution.sol +280 -0
- package/contracts/components/IComponent.sol +68 -0
- package/contracts/components/IDistributionComponent.sol +71 -0
- package/contracts/components/IPoolComponent.sol +136 -42
- package/contracts/components/IProductComponent.sol +30 -9
- package/contracts/components/Pool.sol +308 -121
- package/contracts/components/Product.sol +211 -56
- package/contracts/instance/BundleManager.sol +125 -0
- package/contracts/instance/Cloneable.sol +46 -0
- package/contracts/instance/IInstance.sol +85 -43
- package/contracts/instance/IInstanceService.sol +59 -0
- package/contracts/instance/Instance.sol +277 -57
- package/contracts/instance/InstanceAccessManager.sol +297 -0
- package/contracts/instance/InstanceReader.sol +293 -0
- package/contracts/instance/InstanceService.sol +489 -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 +13 -14
- package/contracts/instance/base/ILifecycle.sol +3 -3
- package/contracts/instance/base/KeyValueStore.sol +49 -38
- package/contracts/instance/base/Lifecycle.sol +11 -3
- package/contracts/instance/module/IAccess.sol +47 -0
- package/contracts/instance/module/IBundle.sol +21 -0
- package/contracts/instance/module/IDistribution.sol +41 -0
- package/contracts/instance/module/IPolicy.sol +72 -0
- package/contracts/instance/module/IRisk.sol +11 -0
- package/contracts/instance/module/ISetup.sol +46 -0
- package/contracts/instance/module/ITreasury.sol +23 -0
- package/contracts/instance/service/ApplicationService.sol +349 -0
- package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
- package/contracts/instance/service/BundleService.sol +299 -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 +450 -0
- package/contracts/instance/service/DistributionServiceManager.sol +51 -0
- package/contracts/instance/service/IApplicationService.sol +82 -0
- package/contracts/instance/service/IBundleService.sol +55 -0
- package/contracts/instance/service/IClaimService.sol +61 -0
- package/contracts/instance/service/IDistributionService.sol +98 -0
- package/contracts/instance/service/IPolicyService.sol +72 -0
- package/contracts/instance/service/IPoolService.sol +8 -18
- package/contracts/instance/service/IProductService.sol +21 -39
- package/contracts/instance/service/PolicyService.sol +394 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +77 -97
- package/contracts/instance/service/PoolServiceManager.sol +51 -0
- package/contracts/instance/service/ProductService.sol +168 -301
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +79 -36
- package/contracts/registry/IRegistry.sol +66 -24
- package/contracts/registry/IRegistryService.sol +67 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +366 -283
- 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 +14 -8
- package/contracts/shared/INftOwnable.sol +23 -0
- package/contracts/shared/IPolicyHolder.sol +26 -0
- package/contracts/shared/IRegisterable.sol +10 -19
- package/contracts/shared/IRegistryLinked.sol +12 -0
- package/contracts/shared/IService.sol +18 -0
- package/contracts/shared/IVersionable.sol +38 -37
- 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 +54 -66
- 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 +38 -68
- package/contracts/test/TestFee.sol +2 -2
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestRoleId.sol +1 -1
- package/contracts/test/TestService.sol +7 -14
- package/contracts/types/ClaimId.sol +52 -0
- package/contracts/types/DistributorType.sol +55 -0
- package/contracts/types/Fee.sol +10 -5
- package/contracts/types/Key32.sol +8 -3
- package/contracts/types/NftIdSet.sol +26 -24
- package/contracts/types/NumberId.sol +52 -0
- package/contracts/types/ObjectType.sol +44 -11
- package/contracts/types/PayoutId.sol +54 -0
- package/contracts/types/Referral.sol +89 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +67 -10
- package/contracts/types/Seconds.sol +54 -0
- package/contracts/types/StateId.sol +5 -1
- package/contracts/types/Timestamp.sol +16 -13
- package/contracts/types/UFixed.sol +128 -12
- package/contracts/types/Version.sol +13 -1
- package/package.json +6 -5
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
- 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/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -81
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
- package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -265
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -265
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -136
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -273
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -273
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -531
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -531
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -455
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -436
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
- package/contracts/components/BaseComponent.sol +0 -94
- package/contracts/components/IBaseComponent.sol +0 -19
- 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/README.md +0 -112
- 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/IInstanceLinked.sol +0 -8
- package/contracts/instance/base/ComponentServiceBase.sol +0 -42
- package/contracts/instance/base/IInstanceBase.sol +0 -19
- package/contracts/instance/base/IService.sol +0 -15
- package/contracts/instance/base/InstanceBase.sol +0 -84
- package/contracts/instance/base/ModuleBase.sol +0 -46
- package/contracts/instance/base/ServiceBase.sol +0 -37
- package/contracts/instance/module/access/Access.sol +0 -149
- package/contracts/instance/module/access/IAccess.sol +0 -53
- package/contracts/instance/module/bundle/BundleModule.sol +0 -135
- package/contracts/instance/module/bundle/IBundle.sol +0 -51
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -17
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
- package/contracts/instance/module/component/ComponentModule.sol +0 -81
- package/contracts/instance/module/component/IComponent.sol +0 -29
- package/contracts/instance/module/policy/IPolicy.sol +0 -59
- package/contracts/instance/module/policy/PolicyModule.sol +0 -89
- package/contracts/instance/module/pool/IPoolModule.sol +0 -40
- package/contracts/instance/module/pool/PoolModule.sol +0 -90
- package/contracts/instance/module/risk/IRisk.sol +0 -10
- package/contracts/instance/module/risk/RiskModule.sol +0 -17
- package/contracts/instance/module/treasury/ITreasury.sol +0 -96
- package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
- package/contracts/instance/module/treasury/TreasuryModule.sol +0 -171
- package/contracts/instance/service/ComponentOwnerService.sol +0 -155
- package/contracts/instance/service/IComponentOwnerService.sol +0 -22
- package/contracts/registry/IChainNft.sol +0 -21
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/IOwnable.sol +0 -6
- package/contracts/test/TestPool.sol +0 -24
- package/contracts/test/TestProduct.sol +0 -51
@@ -1,45 +1,43 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/
|
3
|
+
"contractName": "IRegistryLinked",
|
4
|
+
"sourceName": "contracts/shared/IRegistryLinked.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"inputs": [
|
8
|
-
"name": "getAfromB",
|
9
|
-
"outputs": [
|
7
|
+
"inputs": [
|
10
8
|
{
|
11
|
-
"internalType": "
|
12
|
-
"name": "",
|
13
|
-
"type": "
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "registryAddress",
|
11
|
+
"type": "address"
|
14
12
|
}
|
15
13
|
],
|
16
|
-
"
|
17
|
-
"type": "
|
14
|
+
"name": "ErrorNotRegistry",
|
15
|
+
"type": "error"
|
18
16
|
},
|
19
17
|
{
|
20
18
|
"inputs": [],
|
21
|
-
"name": "
|
19
|
+
"name": "getRegistry",
|
22
20
|
"outputs": [
|
23
21
|
{
|
24
|
-
"internalType": "
|
22
|
+
"internalType": "contract IRegistry",
|
25
23
|
"name": "",
|
26
|
-
"type": "
|
24
|
+
"type": "address"
|
27
25
|
}
|
28
26
|
],
|
29
27
|
"stateMutability": "view",
|
30
28
|
"type": "function"
|
31
29
|
},
|
32
30
|
{
|
33
|
-
"inputs": [
|
31
|
+
"inputs": [],
|
32
|
+
"name": "getRegistryAddress",
|
33
|
+
"outputs": [
|
34
34
|
{
|
35
|
-
"internalType": "
|
36
|
-
"name": "
|
37
|
-
"type": "
|
35
|
+
"internalType": "address",
|
36
|
+
"name": "",
|
37
|
+
"type": "address"
|
38
38
|
}
|
39
39
|
],
|
40
|
-
"
|
41
|
-
"outputs": [],
|
42
|
-
"stateMutability": "nonpayable",
|
40
|
+
"stateMutability": "view",
|
43
41
|
"type": "function"
|
44
42
|
}
|
45
43
|
],
|
@@ -1,72 +1,126 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/
|
3
|
+
"contractName": "IService",
|
4
|
+
"sourceName": "contracts/shared/IService.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
|
-
"anonymous": false,
|
8
7
|
"inputs": [
|
9
8
|
{
|
10
|
-
"indexed": false,
|
11
|
-
"internalType": "Version",
|
12
|
-
"name": "version",
|
13
|
-
"type": "uint24"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
9
|
"internalType": "address",
|
18
|
-
"name": "
|
10
|
+
"name": "caller",
|
19
11
|
"type": "address"
|
20
|
-
}
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"name": "ErrorIServiceCallerUnknown",
|
15
|
+
"type": "error"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"inputs": [
|
19
|
+
{
|
20
|
+
"internalType": "NftId",
|
21
|
+
"name": "nftId",
|
22
|
+
"type": "uint96"
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"name": "ErrorNftOwnableAlreadyLinked",
|
26
|
+
"type": "error"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"inputs": [
|
21
30
|
{
|
22
|
-
"indexed": false,
|
23
31
|
"internalType": "address",
|
24
|
-
"name": "
|
32
|
+
"name": "contractAddress",
|
25
33
|
"type": "address"
|
26
34
|
}
|
27
35
|
],
|
28
|
-
"name": "
|
29
|
-
"type": "
|
36
|
+
"name": "ErrorNftOwnableContractNotRegistered",
|
37
|
+
"type": "error"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"inputs": [],
|
41
|
+
"name": "ErrorNftOwnableInitialOwnerZero",
|
42
|
+
"type": "error"
|
30
43
|
},
|
31
44
|
{
|
32
45
|
"inputs": [
|
33
46
|
{
|
34
47
|
"internalType": "address",
|
35
|
-
"name": "
|
48
|
+
"name": "account",
|
36
49
|
"type": "address"
|
37
|
-
}
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorNftOwnableNotOwner",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [
|
38
57
|
{
|
39
58
|
"internalType": "address",
|
40
|
-
"name": "
|
59
|
+
"name": "registryAddress",
|
41
60
|
"type": "address"
|
42
61
|
}
|
43
62
|
],
|
44
|
-
"name": "
|
45
|
-
"
|
46
|
-
"stateMutability": "nonpayable",
|
47
|
-
"type": "function"
|
63
|
+
"name": "ErrorNotRegistry",
|
64
|
+
"type": "error"
|
48
65
|
},
|
49
66
|
{
|
50
67
|
"inputs": [],
|
51
|
-
"name": "
|
68
|
+
"name": "getDomain",
|
52
69
|
"outputs": [
|
53
70
|
{
|
54
|
-
"internalType": "
|
55
|
-
"name": "
|
56
|
-
"type": "
|
71
|
+
"internalType": "ObjectType",
|
72
|
+
"name": "serviceDomain",
|
73
|
+
"type": "uint8"
|
57
74
|
}
|
58
75
|
],
|
59
|
-
"stateMutability": "
|
76
|
+
"stateMutability": "pure",
|
60
77
|
"type": "function"
|
61
78
|
},
|
62
79
|
{
|
63
80
|
"inputs": [],
|
64
|
-
"name": "
|
81
|
+
"name": "getInitialInfo",
|
65
82
|
"outputs": [
|
66
83
|
{
|
67
|
-
"
|
68
|
-
|
69
|
-
|
84
|
+
"components": [
|
85
|
+
{
|
86
|
+
"internalType": "NftId",
|
87
|
+
"name": "nftId",
|
88
|
+
"type": "uint96"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"internalType": "NftId",
|
92
|
+
"name": "parentNftId",
|
93
|
+
"type": "uint96"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"internalType": "ObjectType",
|
97
|
+
"name": "objectType",
|
98
|
+
"type": "uint8"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"internalType": "bool",
|
102
|
+
"name": "isInterceptor",
|
103
|
+
"type": "bool"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"internalType": "address",
|
107
|
+
"name": "objectAddress",
|
108
|
+
"type": "address"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"internalType": "address",
|
112
|
+
"name": "initialOwner",
|
113
|
+
"type": "address"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"internalType": "bytes",
|
117
|
+
"name": "data",
|
118
|
+
"type": "bytes"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
122
|
+
"name": "",
|
123
|
+
"type": "tuple"
|
70
124
|
}
|
71
125
|
],
|
72
126
|
"stateMutability": "view",
|
@@ -74,15 +128,15 @@
|
|
74
128
|
},
|
75
129
|
{
|
76
130
|
"inputs": [],
|
77
|
-
"name": "
|
131
|
+
"name": "getMajorVersion",
|
78
132
|
"outputs": [
|
79
133
|
{
|
80
|
-
"internalType": "
|
81
|
-
"name": "
|
82
|
-
"type": "
|
134
|
+
"internalType": "VersionPart",
|
135
|
+
"name": "majorVersion",
|
136
|
+
"type": "uint8"
|
83
137
|
}
|
84
138
|
],
|
85
|
-
"stateMutability": "
|
139
|
+
"stateMutability": "view",
|
86
140
|
"type": "function"
|
87
141
|
},
|
88
142
|
{
|
@@ -91,7 +145,7 @@
|
|
91
145
|
"outputs": [
|
92
146
|
{
|
93
147
|
"internalType": "NftId",
|
94
|
-
"name": "
|
148
|
+
"name": "",
|
95
149
|
"type": "uint96"
|
96
150
|
}
|
97
151
|
],
|
@@ -104,33 +158,20 @@
|
|
104
158
|
"outputs": [
|
105
159
|
{
|
106
160
|
"internalType": "address",
|
107
|
-
"name": "
|
161
|
+
"name": "",
|
108
162
|
"type": "address"
|
109
163
|
}
|
110
164
|
],
|
111
165
|
"stateMutability": "view",
|
112
166
|
"type": "function"
|
113
167
|
},
|
114
|
-
{
|
115
|
-
"inputs": [],
|
116
|
-
"name": "getParentNftId",
|
117
|
-
"outputs": [
|
118
|
-
{
|
119
|
-
"internalType": "NftId",
|
120
|
-
"name": "nftId",
|
121
|
-
"type": "uint96"
|
122
|
-
}
|
123
|
-
],
|
124
|
-
"stateMutability": "view",
|
125
|
-
"type": "function"
|
126
|
-
},
|
127
168
|
{
|
128
169
|
"inputs": [],
|
129
170
|
"name": "getRegistry",
|
130
171
|
"outputs": [
|
131
172
|
{
|
132
173
|
"internalType": "contract IRegistry",
|
133
|
-
"name": "
|
174
|
+
"name": "",
|
134
175
|
"type": "address"
|
135
176
|
}
|
136
177
|
],
|
@@ -139,15 +180,15 @@
|
|
139
180
|
},
|
140
181
|
{
|
141
182
|
"inputs": [],
|
142
|
-
"name": "
|
183
|
+
"name": "getRegistryAddress",
|
143
184
|
"outputs": [
|
144
185
|
{
|
145
|
-
"internalType": "
|
186
|
+
"internalType": "address",
|
146
187
|
"name": "",
|
147
|
-
"type": "
|
188
|
+
"type": "address"
|
148
189
|
}
|
149
190
|
],
|
150
|
-
"stateMutability": "
|
191
|
+
"stateMutability": "view",
|
151
192
|
"type": "function"
|
152
193
|
},
|
153
194
|
{
|
@@ -166,90 +207,37 @@
|
|
166
207
|
{
|
167
208
|
"inputs": [
|
168
209
|
{
|
169
|
-
"internalType": "
|
170
|
-
"name": "
|
171
|
-
"type": "
|
172
|
-
}
|
173
|
-
],
|
174
|
-
"name": "getVersion",
|
175
|
-
"outputs": [
|
210
|
+
"internalType": "address",
|
211
|
+
"name": "activatedBy",
|
212
|
+
"type": "address"
|
213
|
+
},
|
176
214
|
{
|
177
|
-
"internalType": "
|
178
|
-
"name": "",
|
179
|
-
"type": "
|
215
|
+
"internalType": "bytes",
|
216
|
+
"name": "activationData",
|
217
|
+
"type": "bytes"
|
180
218
|
}
|
181
219
|
],
|
182
|
-
"
|
220
|
+
"name": "initializeVersionable",
|
221
|
+
"outputs": [],
|
222
|
+
"stateMutability": "nonpayable",
|
183
223
|
"type": "function"
|
184
224
|
},
|
185
225
|
{
|
186
226
|
"inputs": [],
|
187
|
-
"name": "
|
188
|
-
"outputs": [
|
189
|
-
|
190
|
-
"internalType": "uint256",
|
191
|
-
"name": "",
|
192
|
-
"type": "uint256"
|
193
|
-
}
|
194
|
-
],
|
195
|
-
"stateMutability": "view",
|
196
|
-
"type": "function"
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"inputs": [
|
200
|
-
{
|
201
|
-
"internalType": "Version",
|
202
|
-
"name": "_version",
|
203
|
-
"type": "uint24"
|
204
|
-
}
|
205
|
-
],
|
206
|
-
"name": "getVersionInfo",
|
207
|
-
"outputs": [
|
208
|
-
{
|
209
|
-
"components": [
|
210
|
-
{
|
211
|
-
"internalType": "Version",
|
212
|
-
"name": "version",
|
213
|
-
"type": "uint24"
|
214
|
-
},
|
215
|
-
{
|
216
|
-
"internalType": "address",
|
217
|
-
"name": "implementation",
|
218
|
-
"type": "address"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"internalType": "address",
|
222
|
-
"name": "activatedBy",
|
223
|
-
"type": "address"
|
224
|
-
},
|
225
|
-
{
|
226
|
-
"internalType": "Timestamp",
|
227
|
-
"name": "activatedAt",
|
228
|
-
"type": "uint40"
|
229
|
-
},
|
230
|
-
{
|
231
|
-
"internalType": "Blocknumber",
|
232
|
-
"name": "activatedIn",
|
233
|
-
"type": "uint32"
|
234
|
-
}
|
235
|
-
],
|
236
|
-
"internalType": "struct IVersionable.VersionInfo",
|
237
|
-
"name": "",
|
238
|
-
"type": "tuple"
|
239
|
-
}
|
240
|
-
],
|
241
|
-
"stateMutability": "view",
|
227
|
+
"name": "linkToRegisteredNftId",
|
228
|
+
"outputs": [],
|
229
|
+
"stateMutability": "nonpayable",
|
242
230
|
"type": "function"
|
243
231
|
},
|
244
232
|
{
|
245
233
|
"inputs": [
|
246
234
|
{
|
247
|
-
"internalType": "
|
248
|
-
"name": "
|
249
|
-
"type": "
|
235
|
+
"internalType": "bytes4",
|
236
|
+
"name": "interfaceId",
|
237
|
+
"type": "bytes4"
|
250
238
|
}
|
251
239
|
],
|
252
|
-
"name": "
|
240
|
+
"name": "supportsInterface",
|
253
241
|
"outputs": [
|
254
242
|
{
|
255
243
|
"internalType": "bool",
|
@@ -260,36 +248,17 @@
|
|
260
248
|
"stateMutability": "view",
|
261
249
|
"type": "function"
|
262
250
|
},
|
263
|
-
{
|
264
|
-
"inputs": [],
|
265
|
-
"name": "register",
|
266
|
-
"outputs": [
|
267
|
-
{
|
268
|
-
"internalType": "NftId",
|
269
|
-
"name": "nftId",
|
270
|
-
"type": "uint96"
|
271
|
-
}
|
272
|
-
],
|
273
|
-
"stateMutability": "nonpayable",
|
274
|
-
"type": "function"
|
275
|
-
},
|
276
251
|
{
|
277
252
|
"inputs": [
|
278
253
|
{
|
279
|
-
"internalType": "
|
280
|
-
"name": "
|
281
|
-
"type": "
|
282
|
-
}
|
283
|
-
],
|
284
|
-
"name": "supportsInterface",
|
285
|
-
"outputs": [
|
286
|
-
{
|
287
|
-
"internalType": "bool",
|
288
|
-
"name": "",
|
289
|
-
"type": "bool"
|
254
|
+
"internalType": "bytes",
|
255
|
+
"name": "upgradeData",
|
256
|
+
"type": "bytes"
|
290
257
|
}
|
291
258
|
],
|
292
|
-
"
|
259
|
+
"name": "upgradeVersionable",
|
260
|
+
"outputs": [],
|
261
|
+
"stateMutability": "nonpayable",
|
293
262
|
"type": "function"
|
294
263
|
}
|
295
264
|
],
|
@@ -3,49 +3,6 @@
|
|
3
3
|
"contractName": "IVersionable",
|
4
4
|
"sourceName": "contracts/shared/IVersionable.sol",
|
5
5
|
"abi": [
|
6
|
-
{
|
7
|
-
"anonymous": false,
|
8
|
-
"inputs": [
|
9
|
-
{
|
10
|
-
"indexed": false,
|
11
|
-
"internalType": "Version",
|
12
|
-
"name": "version",
|
13
|
-
"type": "uint24"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
|
-
"internalType": "address",
|
18
|
-
"name": "implementation",
|
19
|
-
"type": "address"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"indexed": false,
|
23
|
-
"internalType": "address",
|
24
|
-
"name": "activatedBy",
|
25
|
-
"type": "address"
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"name": "LogVersionableActivated",
|
29
|
-
"type": "event"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"inputs": [
|
33
|
-
{
|
34
|
-
"internalType": "address",
|
35
|
-
"name": "implementation",
|
36
|
-
"type": "address"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"internalType": "address",
|
40
|
-
"name": "activatedBy",
|
41
|
-
"type": "address"
|
42
|
-
}
|
43
|
-
],
|
44
|
-
"name": "activate",
|
45
|
-
"outputs": [],
|
46
|
-
"stateMutability": "nonpayable",
|
47
|
-
"type": "function"
|
48
|
-
},
|
49
6
|
{
|
50
7
|
"inputs": [],
|
51
8
|
"name": "getVersion",
|
@@ -62,98 +19,32 @@
|
|
62
19
|
{
|
63
20
|
"inputs": [
|
64
21
|
{
|
65
|
-
"internalType": "
|
66
|
-
"name": "
|
67
|
-
"type": "
|
68
|
-
}
|
69
|
-
],
|
70
|
-
"name": "getVersion",
|
71
|
-
"outputs": [
|
72
|
-
{
|
73
|
-
"internalType": "Version",
|
74
|
-
"name": "version",
|
75
|
-
"type": "uint24"
|
76
|
-
}
|
77
|
-
],
|
78
|
-
"stateMutability": "view",
|
79
|
-
"type": "function"
|
80
|
-
},
|
81
|
-
{
|
82
|
-
"inputs": [],
|
83
|
-
"name": "getVersionCount",
|
84
|
-
"outputs": [
|
85
|
-
{
|
86
|
-
"internalType": "uint256",
|
87
|
-
"name": "numberOfVersions",
|
88
|
-
"type": "uint256"
|
89
|
-
}
|
90
|
-
],
|
91
|
-
"stateMutability": "view",
|
92
|
-
"type": "function"
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"inputs": [
|
96
|
-
{
|
97
|
-
"internalType": "Version",
|
98
|
-
"name": "version",
|
99
|
-
"type": "uint24"
|
100
|
-
}
|
101
|
-
],
|
102
|
-
"name": "getVersionInfo",
|
103
|
-
"outputs": [
|
22
|
+
"internalType": "address",
|
23
|
+
"name": "activatedBy",
|
24
|
+
"type": "address"
|
25
|
+
},
|
104
26
|
{
|
105
|
-
"
|
106
|
-
|
107
|
-
|
108
|
-
"name": "version",
|
109
|
-
"type": "uint24"
|
110
|
-
},
|
111
|
-
{
|
112
|
-
"internalType": "address",
|
113
|
-
"name": "implementation",
|
114
|
-
"type": "address"
|
115
|
-
},
|
116
|
-
{
|
117
|
-
"internalType": "address",
|
118
|
-
"name": "activatedBy",
|
119
|
-
"type": "address"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"internalType": "Timestamp",
|
123
|
-
"name": "activatedAt",
|
124
|
-
"type": "uint40"
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"internalType": "Blocknumber",
|
128
|
-
"name": "activatedIn",
|
129
|
-
"type": "uint32"
|
130
|
-
}
|
131
|
-
],
|
132
|
-
"internalType": "struct IVersionable.VersionInfo",
|
133
|
-
"name": "versionInfo",
|
134
|
-
"type": "tuple"
|
27
|
+
"internalType": "bytes",
|
28
|
+
"name": "activationData",
|
29
|
+
"type": "bytes"
|
135
30
|
}
|
136
31
|
],
|
137
|
-
"
|
32
|
+
"name": "initializeVersionable",
|
33
|
+
"outputs": [],
|
34
|
+
"stateMutability": "nonpayable",
|
138
35
|
"type": "function"
|
139
36
|
},
|
140
37
|
{
|
141
38
|
"inputs": [
|
142
39
|
{
|
143
|
-
"internalType": "
|
144
|
-
"name": "
|
145
|
-
"type": "
|
40
|
+
"internalType": "bytes",
|
41
|
+
"name": "upgradeData",
|
42
|
+
"type": "bytes"
|
146
43
|
}
|
147
44
|
],
|
148
|
-
"name": "
|
149
|
-
"outputs": [
|
150
|
-
|
151
|
-
"internalType": "bool",
|
152
|
-
"name": "",
|
153
|
-
"type": "bool"
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"stateMutability": "view",
|
45
|
+
"name": "upgradeVersionable",
|
46
|
+
"outputs": [],
|
47
|
+
"stateMutability": "nonpayable",
|
157
48
|
"type": "function"
|
158
49
|
}
|
159
50
|
],
|