@etherisc/gif-next 0.0.2-ed4dd55 → 0.0.2-efdb520-159
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +125 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → BaseComponent.sol/BaseComponent.json} +55 -60
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/IComponent.sol/IComponentContract.json → components/IBaseComponent.sol/IBaseComponent.json} +54 -59
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +356 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +279 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +225 -33
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +154 -62
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +105 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +4 -0
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +105 -0
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1364 -234
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
- package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +4 -0
- package/artifacts/contracts/instance/{access/IAccess.sol/IAccessComponentTypeRoles.json → IServiceLinked.sol/IServiceLinked.json} +14 -14
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1652 -373
- package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → InstanceBase.sol/InstanceBase.json} +130 -144
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +276 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +276 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +188 -0
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
- package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponentModule.json +54 -111
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +4 -0
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +134 -0
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.json +182 -0
- package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +221 -0
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +146 -116
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +146 -116
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +63 -63
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +149 -0
- package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.json +10 -0
- package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.json +10 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +10 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +538 -0
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +538 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +519 -0
- package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.json +300 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +364 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +376 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +477 -0
- package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IService.sol/IService.json +300 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +499 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +685 -0
- package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.json +300 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +115 -89
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +244 -77
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +22 -67
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +164 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +23 -68
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/{instance/pool/PoolModule.sol/PoolModule.json → shared/Versionable.sol/Versionable.json} +72 -70
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +95 -0
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +387 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +393 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +82 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +407 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +222 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +230 -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 +4 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
- 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/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +85 -3
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -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/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 +4 -0
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +236 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +453 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +78 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
- package/contracts/components/BaseComponent.sol +89 -0
- package/contracts/components/IBaseComponent.sol +19 -0
- package/contracts/components/IPoolComponent.sol +57 -0
- package/contracts/components/IProductComponent.sol +19 -0
- package/contracts/components/Pool.sol +161 -16
- package/contracts/components/Product.sol +79 -27
- package/contracts/experiment/errors/Require.sol +38 -0
- package/contracts/experiment/errors/Revert.sol +44 -0
- package/contracts/experiment/inheritance/A.sol +8 -11
- package/contracts/experiment/inheritance/B.sol +10 -5
- package/contracts/experiment/inheritance/C.sol +11 -5
- package/contracts/experiment/inheritance/IA.sol +2 -7
- package/contracts/experiment/inheritance/IB.sol +3 -2
- package/contracts/experiment/inheritance/IC.sol +4 -3
- package/contracts/experiment/statemachine/Dummy.sol +27 -0
- package/contracts/experiment/statemachine/ISM.sol +25 -0
- package/contracts/experiment/statemachine/README.md +112 -0
- package/contracts/experiment/statemachine/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/IInstance.sol +38 -8
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/IServiceLinked.sol +12 -0
- package/contracts/instance/Instance.sol +43 -44
- package/contracts/instance/InstanceBase.sol +74 -0
- package/contracts/instance/module/access/Access.sol +149 -0
- package/contracts/instance/module/access/IAccess.sol +53 -0
- package/contracts/instance/module/bundle/BundleModule.sol +228 -0
- package/contracts/instance/module/bundle/IBundle.sol +53 -0
- package/contracts/instance/module/component/ComponentModule.sol +104 -0
- package/contracts/instance/module/component/IComponent.sol +53 -0
- package/contracts/instance/module/lifecycle/ILifecycle.sol +47 -0
- package/contracts/instance/module/lifecycle/LifecycleModule.sol +89 -0
- package/contracts/instance/module/policy/IPolicy.sol +60 -0
- package/contracts/instance/module/policy/PolicyModule.sol +84 -0
- package/contracts/instance/module/pool/IPoolModule.sol +41 -0
- package/contracts/instance/module/pool/PoolModule.sol +87 -0
- package/contracts/instance/module/product/IProductModule.sol +6 -0
- package/contracts/instance/module/product/ProductModule.sol +8 -0
- package/contracts/instance/module/treasury/ITreasury.sol +104 -0
- package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
- package/contracts/instance/module/treasury/TreasuryModule.sol +148 -0
- package/contracts/instance/service/ComponentOwnerService.sol +174 -0
- package/contracts/instance/service/ComponentServiceBase.sol +41 -0
- package/contracts/instance/service/IComponentOwnerService.sol +22 -0
- package/contracts/instance/service/IPoolService.sol +30 -0
- package/contracts/instance/service/IProductService.sol +58 -0
- package/contracts/instance/service/IService.sol +15 -0
- package/contracts/instance/service/PoolService.sol +98 -0
- package/contracts/instance/service/ProductService.sol +358 -0
- package/contracts/instance/service/ServiceBase.sol +39 -0
- package/contracts/registry/ChainNft.sol +80 -94
- package/contracts/registry/IChainNft.sol +10 -7
- package/contracts/registry/IRegistry.sol +40 -51
- package/contracts/registry/IRegistryLinked.sol +8 -0
- package/contracts/registry/Registry.sol +312 -107
- package/contracts/shared/ERC165.sol +21 -0
- package/contracts/shared/IOwnable.sol +6 -0
- package/contracts/shared/IRegisterable.sol +24 -0
- package/contracts/shared/IVersionable.sol +52 -0
- package/contracts/shared/Registerable.sol +86 -0
- package/contracts/shared/Versionable.sol +92 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestPool.sol +22 -0
- package/contracts/test/TestProduct.sol +44 -0
- package/contracts/test/TestRegisterable.sol +19 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +35 -0
- package/contracts/test/TestToken.sol +26 -0
- package/contracts/test/TestVersion.sol +47 -0
- package/contracts/test/TestVersionable.sol +20 -0
- package/contracts/types/AddressSet.sol +58 -0
- package/contracts/types/Blocknumber.sol +118 -0
- package/contracts/types/ChainId.sol +24 -10
- package/contracts/types/Fee.sol +32 -0
- package/contracts/types/NftId.sol +40 -8
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +115 -0
- package/contracts/types/RoleId.sol +36 -0
- package/contracts/types/StateId.sol +95 -0
- package/contracts/types/Timestamp.sol +123 -0
- package/contracts/types/UFixed.sol +206 -0
- package/contracts/types/Version.sol +91 -0
- package/package.json +19 -5
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- package/artifacts/contracts/components/Component.sol/Component.json +0 -179
- 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/IProduct.sol/IProductComponent.dbg.json +0 -4
- package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
- package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
- 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/IAccessModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
- package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -105
- 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/IComponentModule.dbg.json +0 -4
- 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/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/PolicyModule.sol/PolicyModule.dbg.json +0 -4
- 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/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/IProductService.sol/IProductService.json +0 -114
- 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 -125
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
- 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/contracts/components/Component.sol +0 -62
- package/contracts/components/IPool.sol +0 -9
- package/contracts/components/IProduct.sol +0 -11
- package/contracts/instance/access/Access.sol +0 -218
- package/contracts/instance/access/IAccess.sol +0 -83
- package/contracts/instance/component/ComponentModule.sol +0 -259
- package/contracts/instance/component/IComponent.sol +0 -94
- package/contracts/instance/policy/IPolicy.sol +0 -66
- package/contracts/instance/policy/PolicyModule.sol +0 -106
- package/contracts/instance/pool/IPoolModule.sol +0 -40
- package/contracts/instance/pool/PoolModule.sol +0 -83
- package/contracts/instance/product/IProductService.sol +0 -45
- package/contracts/instance/product/ProductService.sol +0 -105
@@ -1,54 +1,59 @@
|
|
1
1
|
{
|
2
2
|
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "
|
4
|
-
"sourceName": "contracts/instance/
|
3
|
+
"contractName": "InstanceBase",
|
4
|
+
"sourceName": "contracts/instance/InstanceBase.sol",
|
5
5
|
"abi": [
|
6
6
|
{
|
7
7
|
"anonymous": false,
|
8
8
|
"inputs": [
|
9
9
|
{
|
10
10
|
"indexed": false,
|
11
|
-
"internalType": "
|
12
|
-
"name": "
|
13
|
-
"type": "
|
11
|
+
"internalType": "Version",
|
12
|
+
"name": "version",
|
13
|
+
"type": "uint24"
|
14
14
|
},
|
15
15
|
{
|
16
16
|
"indexed": false,
|
17
17
|
"internalType": "address",
|
18
|
-
"name": "
|
18
|
+
"name": "implementation",
|
19
19
|
"type": "address"
|
20
20
|
},
|
21
21
|
{
|
22
22
|
"indexed": false,
|
23
|
-
"internalType": "
|
24
|
-
"name": "
|
25
|
-
"type": "
|
23
|
+
"internalType": "address",
|
24
|
+
"name": "activatedBy",
|
25
|
+
"type": "address"
|
26
26
|
}
|
27
27
|
],
|
28
|
-
"name": "
|
28
|
+
"name": "LogVersionableActivated",
|
29
29
|
"type": "event"
|
30
30
|
},
|
31
31
|
{
|
32
|
-
"inputs": [
|
33
|
-
|
34
|
-
|
32
|
+
"inputs": [
|
33
|
+
{
|
34
|
+
"internalType": "address",
|
35
|
+
"name": "implementation",
|
36
|
+
"type": "address"
|
37
|
+
},
|
35
38
|
{
|
36
|
-
"internalType": "
|
37
|
-
"name": "
|
38
|
-
"type": "
|
39
|
+
"internalType": "address",
|
40
|
+
"name": "activatedBy",
|
41
|
+
"type": "address"
|
39
42
|
}
|
40
43
|
],
|
41
|
-
"
|
44
|
+
"name": "activate",
|
45
|
+
"outputs": [],
|
46
|
+
"stateMutability": "nonpayable",
|
42
47
|
"type": "function"
|
43
48
|
},
|
44
49
|
{
|
45
50
|
"inputs": [],
|
46
|
-
"name": "
|
51
|
+
"name": "getComponentOwnerService",
|
47
52
|
"outputs": [
|
48
53
|
{
|
49
|
-
"internalType": "
|
50
|
-
"name": "
|
51
|
-
"type": "
|
54
|
+
"internalType": "contract IComponentOwnerService",
|
55
|
+
"name": "service",
|
56
|
+
"type": "address"
|
52
57
|
}
|
53
58
|
],
|
54
59
|
"stateMutability": "view",
|
@@ -56,12 +61,12 @@
|
|
56
61
|
},
|
57
62
|
{
|
58
63
|
"inputs": [],
|
59
|
-
"name": "
|
64
|
+
"name": "getData",
|
60
65
|
"outputs": [
|
61
66
|
{
|
62
|
-
"internalType": "
|
63
|
-
"name": "
|
64
|
-
"type": "
|
67
|
+
"internalType": "bytes",
|
68
|
+
"name": "data",
|
69
|
+
"type": "bytes"
|
65
70
|
}
|
66
71
|
],
|
67
72
|
"stateMutability": "view",
|
@@ -69,99 +74,76 @@
|
|
69
74
|
},
|
70
75
|
{
|
71
76
|
"inputs": [],
|
72
|
-
"name": "
|
77
|
+
"name": "getNftId",
|
73
78
|
"outputs": [
|
74
79
|
{
|
75
|
-
"internalType": "
|
76
|
-
"name": "
|
77
|
-
"type": "
|
80
|
+
"internalType": "NftId",
|
81
|
+
"name": "nftId",
|
82
|
+
"type": "uint96"
|
78
83
|
}
|
79
84
|
],
|
80
85
|
"stateMutability": "view",
|
81
86
|
"type": "function"
|
82
87
|
},
|
83
88
|
{
|
84
|
-
"inputs": [
|
89
|
+
"inputs": [],
|
90
|
+
"name": "getOwner",
|
91
|
+
"outputs": [
|
85
92
|
{
|
86
93
|
"internalType": "address",
|
87
|
-
"name": "
|
94
|
+
"name": "owner",
|
88
95
|
"type": "address"
|
89
96
|
}
|
90
97
|
],
|
91
|
-
"
|
98
|
+
"stateMutability": "view",
|
99
|
+
"type": "function"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"inputs": [],
|
103
|
+
"name": "getParentNftId",
|
92
104
|
"outputs": [
|
93
105
|
{
|
94
|
-
"internalType": "
|
95
|
-
"name": "
|
96
|
-
"type": "
|
106
|
+
"internalType": "NftId",
|
107
|
+
"name": "nftId",
|
108
|
+
"type": "uint96"
|
97
109
|
}
|
98
110
|
],
|
99
111
|
"stateMutability": "view",
|
100
112
|
"type": "function"
|
101
113
|
},
|
102
114
|
{
|
103
|
-
"inputs": [
|
104
|
-
|
105
|
-
"internalType": "uint256",
|
106
|
-
"name": "idx",
|
107
|
-
"type": "uint256"
|
108
|
-
}
|
109
|
-
],
|
110
|
-
"name": "getComponentId",
|
115
|
+
"inputs": [],
|
116
|
+
"name": "getPoolService",
|
111
117
|
"outputs": [
|
112
118
|
{
|
113
|
-
"internalType": "
|
114
|
-
"name": "
|
115
|
-
"type": "
|
119
|
+
"internalType": "contract IPoolService",
|
120
|
+
"name": "service",
|
121
|
+
"type": "address"
|
116
122
|
}
|
117
123
|
],
|
118
124
|
"stateMutability": "view",
|
119
125
|
"type": "function"
|
120
126
|
},
|
121
127
|
{
|
122
|
-
"inputs": [
|
123
|
-
|
124
|
-
"internalType": "uint256",
|
125
|
-
"name": "id",
|
126
|
-
"type": "uint256"
|
127
|
-
}
|
128
|
-
],
|
129
|
-
"name": "getComponentInfo",
|
128
|
+
"inputs": [],
|
129
|
+
"name": "getProductService",
|
130
130
|
"outputs": [
|
131
131
|
{
|
132
|
-
"
|
133
|
-
|
134
|
-
|
135
|
-
"name": "nftId",
|
136
|
-
"type": "uint256"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
"internalType": "enum IComponent.CState",
|
140
|
-
"name": "state",
|
141
|
-
"type": "uint8"
|
142
|
-
}
|
143
|
-
],
|
144
|
-
"internalType": "struct IComponent.ComponentInfo",
|
145
|
-
"name": "",
|
146
|
-
"type": "tuple"
|
132
|
+
"internalType": "contract IProductService",
|
133
|
+
"name": "service",
|
134
|
+
"type": "address"
|
147
135
|
}
|
148
136
|
],
|
149
137
|
"stateMutability": "view",
|
150
138
|
"type": "function"
|
151
139
|
},
|
152
140
|
{
|
153
|
-
"inputs": [
|
154
|
-
|
155
|
-
"internalType": "uint256",
|
156
|
-
"name": "id",
|
157
|
-
"type": "uint256"
|
158
|
-
}
|
159
|
-
],
|
160
|
-
"name": "getComponentOwner",
|
141
|
+
"inputs": [],
|
142
|
+
"name": "getRegistry",
|
161
143
|
"outputs": [
|
162
144
|
{
|
163
|
-
"internalType": "
|
164
|
-
"name": "
|
145
|
+
"internalType": "contract IRegistry",
|
146
|
+
"name": "registry",
|
165
147
|
"type": "address"
|
166
148
|
}
|
167
149
|
],
|
@@ -170,44 +152,44 @@
|
|
170
152
|
},
|
171
153
|
{
|
172
154
|
"inputs": [],
|
173
|
-
"name": "
|
155
|
+
"name": "getType",
|
174
156
|
"outputs": [
|
175
157
|
{
|
176
|
-
"internalType": "
|
177
|
-
"name": "",
|
178
|
-
"type": "
|
158
|
+
"internalType": "ObjectType",
|
159
|
+
"name": "objectType",
|
160
|
+
"type": "uint8"
|
179
161
|
}
|
180
162
|
],
|
181
|
-
"stateMutability": "
|
163
|
+
"stateMutability": "pure",
|
182
164
|
"type": "function"
|
183
165
|
},
|
184
166
|
{
|
185
167
|
"inputs": [],
|
186
|
-
"name": "
|
168
|
+
"name": "getVersion",
|
187
169
|
"outputs": [
|
188
170
|
{
|
189
|
-
"internalType": "
|
190
|
-
"name": "
|
191
|
-
"type": "
|
171
|
+
"internalType": "Version",
|
172
|
+
"name": "",
|
173
|
+
"type": "uint24"
|
192
174
|
}
|
193
175
|
],
|
194
|
-
"stateMutability": "
|
176
|
+
"stateMutability": "pure",
|
195
177
|
"type": "function"
|
196
178
|
},
|
197
179
|
{
|
198
180
|
"inputs": [
|
199
181
|
{
|
200
182
|
"internalType": "uint256",
|
201
|
-
"name": "
|
183
|
+
"name": "idx",
|
202
184
|
"type": "uint256"
|
203
185
|
}
|
204
186
|
],
|
205
|
-
"name": "
|
187
|
+
"name": "getVersion",
|
206
188
|
"outputs": [
|
207
189
|
{
|
208
|
-
"internalType": "
|
209
|
-
"name": "
|
210
|
-
"type": "
|
190
|
+
"internalType": "Version",
|
191
|
+
"name": "",
|
192
|
+
"type": "uint24"
|
211
193
|
}
|
212
194
|
],
|
213
195
|
"stateMutability": "view",
|
@@ -215,12 +197,12 @@
|
|
215
197
|
},
|
216
198
|
{
|
217
199
|
"inputs": [],
|
218
|
-
"name": "
|
200
|
+
"name": "getVersionCount",
|
219
201
|
"outputs": [
|
220
202
|
{
|
221
|
-
"internalType": "
|
222
|
-
"name": "
|
223
|
-
"type": "
|
203
|
+
"internalType": "uint256",
|
204
|
+
"name": "",
|
205
|
+
"type": "uint256"
|
224
206
|
}
|
225
207
|
],
|
226
208
|
"stateMutability": "view",
|
@@ -229,17 +211,44 @@
|
|
229
211
|
{
|
230
212
|
"inputs": [
|
231
213
|
{
|
232
|
-
"internalType": "
|
233
|
-
"name": "
|
234
|
-
"type": "
|
214
|
+
"internalType": "Version",
|
215
|
+
"name": "_version",
|
216
|
+
"type": "uint24"
|
235
217
|
}
|
236
218
|
],
|
237
|
-
"name": "
|
219
|
+
"name": "getVersionInfo",
|
238
220
|
"outputs": [
|
239
221
|
{
|
240
|
-
"
|
241
|
-
|
242
|
-
|
222
|
+
"components": [
|
223
|
+
{
|
224
|
+
"internalType": "Version",
|
225
|
+
"name": "version",
|
226
|
+
"type": "uint24"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"internalType": "address",
|
230
|
+
"name": "implementation",
|
231
|
+
"type": "address"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"internalType": "address",
|
235
|
+
"name": "activatedBy",
|
236
|
+
"type": "address"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"internalType": "Blocknumber",
|
240
|
+
"name": "activatedIn",
|
241
|
+
"type": "uint32"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"internalType": "Timestamp",
|
245
|
+
"name": "activatedAt",
|
246
|
+
"type": "uint40"
|
247
|
+
}
|
248
|
+
],
|
249
|
+
"internalType": "struct IVersionable.VersionInfo",
|
250
|
+
"name": "",
|
251
|
+
"type": "tuple"
|
243
252
|
}
|
244
253
|
],
|
245
254
|
"stateMutability": "view",
|
@@ -248,17 +257,12 @@
|
|
248
257
|
{
|
249
258
|
"inputs": [
|
250
259
|
{
|
251
|
-
"internalType": "
|
252
|
-
"name": "
|
253
|
-
"type": "
|
254
|
-
},
|
255
|
-
{
|
256
|
-
"internalType": "address",
|
257
|
-
"name": "member",
|
258
|
-
"type": "address"
|
260
|
+
"internalType": "Version",
|
261
|
+
"name": "_version",
|
262
|
+
"type": "uint24"
|
259
263
|
}
|
260
264
|
],
|
261
|
-
"name": "
|
265
|
+
"name": "isActivated",
|
262
266
|
"outputs": [
|
263
267
|
{
|
264
268
|
"internalType": "bool",
|
@@ -270,19 +274,13 @@
|
|
270
274
|
"type": "function"
|
271
275
|
},
|
272
276
|
{
|
273
|
-
"inputs": [
|
274
|
-
|
275
|
-
"internalType": "contract IComponentContract",
|
276
|
-
"name": "component",
|
277
|
-
"type": "address"
|
278
|
-
}
|
279
|
-
],
|
280
|
-
"name": "registerComponent",
|
277
|
+
"inputs": [],
|
278
|
+
"name": "register",
|
281
279
|
"outputs": [
|
282
280
|
{
|
283
|
-
"internalType": "
|
281
|
+
"internalType": "NftId",
|
284
282
|
"name": "nftId",
|
285
|
-
"type": "
|
283
|
+
"type": "uint96"
|
286
284
|
}
|
287
285
|
],
|
288
286
|
"stateMutability": "nonpayable",
|
@@ -291,32 +289,20 @@
|
|
291
289
|
{
|
292
290
|
"inputs": [
|
293
291
|
{
|
294
|
-
"
|
295
|
-
|
296
|
-
|
297
|
-
"name": "nftId",
|
298
|
-
"type": "uint256"
|
299
|
-
},
|
300
|
-
{
|
301
|
-
"internalType": "enum IComponent.CState",
|
302
|
-
"name": "state",
|
303
|
-
"type": "uint8"
|
304
|
-
}
|
305
|
-
],
|
306
|
-
"internalType": "struct IComponent.ComponentInfo",
|
307
|
-
"name": "info",
|
308
|
-
"type": "tuple"
|
292
|
+
"internalType": "bytes4",
|
293
|
+
"name": "interfaceId",
|
294
|
+
"type": "bytes4"
|
309
295
|
}
|
310
296
|
],
|
311
|
-
"name": "
|
297
|
+
"name": "supportsInterface",
|
312
298
|
"outputs": [
|
313
299
|
{
|
314
|
-
"internalType": "
|
315
|
-
"name": "
|
316
|
-
"type": "
|
300
|
+
"internalType": "bool",
|
301
|
+
"name": "",
|
302
|
+
"type": "bool"
|
317
303
|
}
|
318
304
|
],
|
319
|
-
"stateMutability": "
|
305
|
+
"stateMutability": "view",
|
320
306
|
"type": "function"
|
321
307
|
}
|
322
308
|
],
|