@etherisc/gif-next 0.0.2-f9905e1 → 0.0.2-f9bc4c7-556
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +123 -7
- 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 +1249 -275
- 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/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +1560 -373
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +300 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{product/ProductService.sol/ProductModule.json → base/IInstanceBase.sol/IInstanceBase.json} +18 -30
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +511 -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/IService.sol/IService.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IService.sol/IService.json +300 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/InstanceBase.sol/InstanceBase.json} +140 -141
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +692 -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/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +300 -0
- 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 +296 -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 +296 -0
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +10 -0
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +4 -0
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +10 -0
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +10 -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/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/risk/IRisk.sol/IRisk.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +10 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.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 +533 -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 +533 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +523 -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/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +471 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +673 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +597 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +4 -0
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +452 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +115 -81
- 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 +265 -82
- 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 +119 -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 +116 -0
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
- package/artifacts/contracts/test/TestService.sol/TestService.json +379 -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 +218 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +206 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
- package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -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/Fee.sol/FeeLib.dbg.json +4 -0
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +218 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +153 -0
- 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/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -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 +479 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +139 -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 +88 -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 +42 -10
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/Instance.sol +47 -42
- package/contracts/instance/base/ComponentServiceBase.sol +42 -0
- package/contracts/instance/base/IInstanceBase.sol +14 -0
- package/contracts/instance/base/IKeyValueStore.sol +49 -0
- package/contracts/instance/base/ILifecycle.sol +30 -0
- package/contracts/instance/base/IService.sol +15 -0
- package/contracts/instance/base/InstanceBase.sol +80 -0
- package/contracts/instance/base/KeyValueStore.sol +156 -0
- package/contracts/instance/base/Lifecycle.sol +95 -0
- package/contracts/instance/base/ModuleBase.sol +52 -0
- package/contracts/instance/base/ServiceBase.sol +37 -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 +136 -0
- package/contracts/instance/module/bundle/IBundle.sol +58 -0
- package/contracts/instance/module/compensation/CompensationModule.sol +8 -0
- package/contracts/instance/module/compensation/ICompensation.sol +10 -0
- package/contracts/instance/module/component/ComponentModule.sol +95 -0
- package/contracts/instance/module/component/IComponent.sol +53 -0
- package/contracts/instance/module/policy/IPolicy.sol +60 -0
- package/contracts/instance/module/policy/PolicyModule.sol +76 -0
- package/contracts/instance/module/pool/IPoolModule.sol +41 -0
- package/contracts/instance/module/pool/PoolModule.sol +87 -0
- package/contracts/instance/module/risk/IRisk.sol +10 -0
- package/contracts/instance/module/risk/RiskModule.sol +8 -0
- package/contracts/instance/module/treasury/ITreasury.sol +103 -0
- package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
- package/contracts/instance/module/treasury/TreasuryModule.sol +152 -0
- package/contracts/instance/service/ComponentOwnerService.sol +170 -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/PoolService.sol +123 -0
- package/contracts/instance/service/ProductService.sol +354 -0
- package/contracts/registry/ChainNft.sol +159 -0
- package/contracts/registry/IChainNft.sol +21 -0
- package/contracts/registry/IRegistry.sol +41 -50
- package/contracts/registry/IRegistryLinked.sol +8 -0
- package/contracts/registry/Registry.sol +307 -123
- 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 +89 -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 +32 -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 +118 -0
- package/contracts/types/ChainId.sol +24 -10
- package/contracts/types/Fee.sol +51 -0
- package/contracts/types/Key32.sol +45 -0
- package/contracts/types/NftId.sol +72 -0
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +115 -0
- package/contracts/types/RoleId.sol +38 -0
- package/contracts/types/StateId.sol +101 -0
- package/contracts/types/Timestamp.sol +123 -0
- package/contracts/types/UFixed.sol +209 -0
- package/contracts/types/Version.sol +95 -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/IAccessComponentTypeRoles.json +0 -50
- 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/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
@@ -0,0 +1,174 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "BlocknumberLib",
|
4
|
+
"sourceName": "contracts/types/Blocknumber.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "Blocknumber",
|
10
|
+
"name": "a",
|
11
|
+
"type": "uint32"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "Blocknumber",
|
15
|
+
"name": "b",
|
16
|
+
"type": "uint32"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "eq",
|
20
|
+
"outputs": [
|
21
|
+
{
|
22
|
+
"internalType": "bool",
|
23
|
+
"name": "isSame",
|
24
|
+
"type": "bool"
|
25
|
+
}
|
26
|
+
],
|
27
|
+
"stateMutability": "pure",
|
28
|
+
"type": "function"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"inputs": [
|
32
|
+
{
|
33
|
+
"internalType": "Blocknumber",
|
34
|
+
"name": "a",
|
35
|
+
"type": "uint32"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"internalType": "Blocknumber",
|
39
|
+
"name": "b",
|
40
|
+
"type": "uint32"
|
41
|
+
}
|
42
|
+
],
|
43
|
+
"name": "gt",
|
44
|
+
"outputs": [
|
45
|
+
{
|
46
|
+
"internalType": "bool",
|
47
|
+
"name": "isAfter",
|
48
|
+
"type": "bool"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"stateMutability": "pure",
|
52
|
+
"type": "function"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"inputs": [
|
56
|
+
{
|
57
|
+
"internalType": "Blocknumber",
|
58
|
+
"name": "a",
|
59
|
+
"type": "uint32"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "Blocknumber",
|
63
|
+
"name": "b",
|
64
|
+
"type": "uint32"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"name": "gte",
|
68
|
+
"outputs": [
|
69
|
+
{
|
70
|
+
"internalType": "bool",
|
71
|
+
"name": "isAfterOrSame",
|
72
|
+
"type": "bool"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"stateMutability": "pure",
|
76
|
+
"type": "function"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"inputs": [
|
80
|
+
{
|
81
|
+
"internalType": "Blocknumber",
|
82
|
+
"name": "a",
|
83
|
+
"type": "uint32"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"internalType": "Blocknumber",
|
87
|
+
"name": "b",
|
88
|
+
"type": "uint32"
|
89
|
+
}
|
90
|
+
],
|
91
|
+
"name": "lt",
|
92
|
+
"outputs": [
|
93
|
+
{
|
94
|
+
"internalType": "bool",
|
95
|
+
"name": "isBefore",
|
96
|
+
"type": "bool"
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"stateMutability": "pure",
|
100
|
+
"type": "function"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"inputs": [
|
104
|
+
{
|
105
|
+
"internalType": "Blocknumber",
|
106
|
+
"name": "a",
|
107
|
+
"type": "uint32"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"internalType": "Blocknumber",
|
111
|
+
"name": "b",
|
112
|
+
"type": "uint32"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "lte",
|
116
|
+
"outputs": [
|
117
|
+
{
|
118
|
+
"internalType": "bool",
|
119
|
+
"name": "isBeforeOrSame",
|
120
|
+
"type": "bool"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"stateMutability": "pure",
|
124
|
+
"type": "function"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"inputs": [
|
128
|
+
{
|
129
|
+
"internalType": "Blocknumber",
|
130
|
+
"name": "a",
|
131
|
+
"type": "uint32"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"internalType": "Blocknumber",
|
135
|
+
"name": "b",
|
136
|
+
"type": "uint32"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"name": "ne",
|
140
|
+
"outputs": [
|
141
|
+
{
|
142
|
+
"internalType": "bool",
|
143
|
+
"name": "isDifferent",
|
144
|
+
"type": "bool"
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"stateMutability": "pure",
|
148
|
+
"type": "function"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"inputs": [
|
152
|
+
{
|
153
|
+
"internalType": "Blocknumber",
|
154
|
+
"name": "blocknumber",
|
155
|
+
"type": "uint32"
|
156
|
+
}
|
157
|
+
],
|
158
|
+
"name": "toInt",
|
159
|
+
"outputs": [
|
160
|
+
{
|
161
|
+
"internalType": "uint256",
|
162
|
+
"name": "",
|
163
|
+
"type": "uint256"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"stateMutability": "pure",
|
167
|
+
"type": "function"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"bytecode": "0x61024d61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80636303db59116100655780636303db59146100da5780636effeac4146100ed5780637b4f5d3b14610112578063946428041461012557600080fd5b8063012340281461008c578063559cbd25146100b457806356b0a7d4146100c7575b600080fd5b61009f61009a3660046101c9565b610138565b60405190151581526020015b60405180910390f35b61009f6100c23660046101c9565b61014f565b61009f6100d53660046101c9565b610162565b61009f6100e83660046101c9565b610175565b6101046100fb3660046101fc565b63ffffffff1690565b6040519081526020016100ab565b61009f6101203660046101c9565b610188565b61009f6101333660046101c9565b61019c565b600063ffffffff80831690841610155b9392505050565b600063ffffffff80841690831614610148565b600063ffffffff80831690841611610148565b600063ffffffff80831690841610610148565b600063ffffffff8084169083161415610148565b600063ffffffff8083169084161115610148565b803563ffffffff811681146101c457600080fd5b919050565b600080604083850312156101dc57600080fd5b6101e5836101b0565b91506101f3602084016101b0565b90509250929050565b60006020828403121561020e57600080fd5b610148826101b056fea26469706673582212209c3b15caeec0e7d5334a5985f9d00378c7d311267beffff2b7358b7f5af08c7764736f6c63430008140033",
|
171
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80636303db59116100655780636303db59146100da5780636effeac4146100ed5780637b4f5d3b14610112578063946428041461012557600080fd5b8063012340281461008c578063559cbd25146100b457806356b0a7d4146100c7575b600080fd5b61009f61009a3660046101c9565b610138565b60405190151581526020015b60405180910390f35b61009f6100c23660046101c9565b61014f565b61009f6100d53660046101c9565b610162565b61009f6100e83660046101c9565b610175565b6101046100fb3660046101fc565b63ffffffff1690565b6040519081526020016100ab565b61009f6101203660046101c9565b610188565b61009f6101333660046101c9565b61019c565b600063ffffffff80831690841610155b9392505050565b600063ffffffff80841690831614610148565b600063ffffffff80831690841611610148565b600063ffffffff80831690841610610148565b600063ffffffff8084169083161415610148565b600063ffffffff8083169084161115610148565b803563ffffffff811681146101c457600080fd5b919050565b600080604083850312156101dc57600080fd5b6101e5836101b0565b91506101f3602084016101b0565b90509250929050565b60006020828403121561020e57600080fd5b610148826101b056fea26469706673582212209c3b15caeec0e7d5334a5985f9d00378c7d311267beffff2b7358b7f5af08c7764736f6c63430008140033",
|
172
|
+
"linkReferences": {},
|
173
|
+
"deployedLinkReferences": {}
|
174
|
+
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"contractName": "ChainIdLib",
|
4
4
|
"sourceName": "contracts/types/ChainId.sol",
|
5
5
|
"abi": [],
|
6
|
-
"bytecode": "
|
7
|
-
"deployedBytecode": "
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ac8816ed64a5564f095b1262256f7bb457860b022bb240dc1f3c524dba44019264736f6c63430008140033",
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220ac8816ed64a5564f095b1262256f7bb457860b022bb240dc1f3c524dba44019264736f6c63430008140033",
|
8
8
|
"linkReferences": {},
|
9
9
|
"deployedLinkReferences": {}
|
10
10
|
}
|
@@ -0,0 +1,218 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "FeeLib",
|
4
|
+
"sourceName": "contracts/types/Fee.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "uint256",
|
10
|
+
"name": "amount",
|
11
|
+
"type": "uint256"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"components": [
|
15
|
+
{
|
16
|
+
"internalType": "UFixed",
|
17
|
+
"name": "fractionalFee",
|
18
|
+
"type": "uint256"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"internalType": "uint256",
|
22
|
+
"name": "fixedFee",
|
23
|
+
"type": "uint256"
|
24
|
+
}
|
25
|
+
],
|
26
|
+
"internalType": "struct Fee",
|
27
|
+
"name": "fee",
|
28
|
+
"type": "tuple"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"name": "calculateFee",
|
32
|
+
"outputs": [
|
33
|
+
{
|
34
|
+
"internalType": "uint256",
|
35
|
+
"name": "feeAmount",
|
36
|
+
"type": "uint256"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"internalType": "uint256",
|
40
|
+
"name": "netAmount",
|
41
|
+
"type": "uint256"
|
42
|
+
}
|
43
|
+
],
|
44
|
+
"stateMutability": "pure",
|
45
|
+
"type": "function"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"inputs": [
|
49
|
+
{
|
50
|
+
"components": [
|
51
|
+
{
|
52
|
+
"internalType": "UFixed",
|
53
|
+
"name": "fractionalFee",
|
54
|
+
"type": "uint256"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "uint256",
|
58
|
+
"name": "fixedFee",
|
59
|
+
"type": "uint256"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"internalType": "struct Fee",
|
63
|
+
"name": "a",
|
64
|
+
"type": "tuple"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"components": [
|
68
|
+
{
|
69
|
+
"internalType": "UFixed",
|
70
|
+
"name": "fractionalFee",
|
71
|
+
"type": "uint256"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"internalType": "uint256",
|
75
|
+
"name": "fixedFee",
|
76
|
+
"type": "uint256"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"internalType": "struct Fee",
|
80
|
+
"name": "b",
|
81
|
+
"type": "tuple"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"name": "feeIsSame",
|
85
|
+
"outputs": [
|
86
|
+
{
|
87
|
+
"internalType": "bool",
|
88
|
+
"name": "isSame",
|
89
|
+
"type": "bool"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"stateMutability": "pure",
|
93
|
+
"type": "function"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"inputs": [
|
97
|
+
{
|
98
|
+
"components": [
|
99
|
+
{
|
100
|
+
"internalType": "UFixed",
|
101
|
+
"name": "fractionalFee",
|
102
|
+
"type": "uint256"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "fixedFee",
|
107
|
+
"type": "uint256"
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"internalType": "struct Fee",
|
111
|
+
"name": "fee",
|
112
|
+
"type": "tuple"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "feeIsZero",
|
116
|
+
"outputs": [
|
117
|
+
{
|
118
|
+
"internalType": "bool",
|
119
|
+
"name": "",
|
120
|
+
"type": "bool"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"stateMutability": "pure",
|
124
|
+
"type": "function"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"inputs": [
|
128
|
+
{
|
129
|
+
"internalType": "UFixed",
|
130
|
+
"name": "fractionalFee",
|
131
|
+
"type": "uint256"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"internalType": "uint256",
|
135
|
+
"name": "fixedFee",
|
136
|
+
"type": "uint256"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"name": "toFee",
|
140
|
+
"outputs": [
|
141
|
+
{
|
142
|
+
"components": [
|
143
|
+
{
|
144
|
+
"internalType": "UFixed",
|
145
|
+
"name": "fractionalFee",
|
146
|
+
"type": "uint256"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "uint256",
|
150
|
+
"name": "fixedFee",
|
151
|
+
"type": "uint256"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"internalType": "struct Fee",
|
155
|
+
"name": "fee",
|
156
|
+
"type": "tuple"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"stateMutability": "pure",
|
160
|
+
"type": "function"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"inputs": [],
|
164
|
+
"name": "zeroFee",
|
165
|
+
"outputs": [
|
166
|
+
{
|
167
|
+
"components": [
|
168
|
+
{
|
169
|
+
"internalType": "UFixed",
|
170
|
+
"name": "fractionalFee",
|
171
|
+
"type": "uint256"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"internalType": "uint256",
|
175
|
+
"name": "fixedFee",
|
176
|
+
"type": "uint256"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"internalType": "struct Fee",
|
180
|
+
"name": "fee",
|
181
|
+
"type": "tuple"
|
182
|
+
}
|
183
|
+
],
|
184
|
+
"stateMutability": "pure",
|
185
|
+
"type": "function"
|
186
|
+
}
|
187
|
+
],
|
188
|
+
"bytecode": "0x61053261003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c80632bd182d3146100665780638de0a4c2146100ac57806395248868146100cf578063c66fb3ae146100e2578063c7010dfa1461010a575b600080fd5b604080518082018252600080825260209182018190528251808401909352808352908201525b604080518251815260209283015192810192909252015b60405180910390f35b6100bf6100ba3660046103fa565b61013e565b60405190151581526020016100a3565b6100bf6100dd366004610416565b610159565b6100f56100f036600461044b565b61017a565b604080519283526020830191909152016100a3565b61008c61011836600461046f565b604080518082018252600080825260209182015281518083019092529281529182015290565b60008160200151600014801561015357508151155b92915050565b600081602001518360200151148015610173575082518251145b9392505050565b600080600061020373__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__6345ebb61e876040518263ffffffff1660e01b81526004016101bb91815260200190565b602060405180830381865af41580156101d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fc9190610491565b85516102a0565b6020850151604051632255341b60e11b8152600481018390529192509073__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__906344aa683690602401602060405180830381865af415801561025c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102809190610491565b61028a91906104c0565b925061029683866104d3565b9150509250929050565b60006101738383670de0b6b3a764000060008080600019858709858702925082811083820303915050806000036102ea578382816102e0576102e06104e6565b0492505050610173565b8084116103355760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b604482015260640160405180910390fd5b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b6000604082840312156103af57600080fd5b6040516040810181811067ffffffffffffffff821117156103e057634e487b7160e01b600052604160045260246000fd5b604052823581526020928301359281019290925250919050565b60006040828403121561040c57600080fd5b610173838361039d565b6000806080838503121561042957600080fd5b610433848461039d565b9150610442846040850161039d565b90509250929050565b6000806060838503121561045e57600080fd5b82359150610442846020850161039d565b6000806040838503121561048257600080fd5b50508035926020909101359150565b6000602082840312156104a357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610153576101536104aa565b81810381811115610153576101536104aa565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220ce43dac16f65baa3a831022a10e378d17dafa927733d7a7e1c52c57f847ba20664736f6c63430008140033",
|
189
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c80632bd182d3146100665780638de0a4c2146100ac57806395248868146100cf578063c66fb3ae146100e2578063c7010dfa1461010a575b600080fd5b604080518082018252600080825260209182018190528251808401909352808352908201525b604080518251815260209283015192810192909252015b60405180910390f35b6100bf6100ba3660046103fa565b61013e565b60405190151581526020016100a3565b6100bf6100dd366004610416565b610159565b6100f56100f036600461044b565b61017a565b604080519283526020830191909152016100a3565b61008c61011836600461046f565b604080518082018252600080825260209182015281518083019092529281529182015290565b60008160200151600014801561015357508151155b92915050565b600081602001518360200151148015610173575082518251145b9392505050565b600080600061020373__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__6345ebb61e876040518263ffffffff1660e01b81526004016101bb91815260200190565b602060405180830381865af41580156101d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fc9190610491565b85516102a0565b6020850151604051632255341b60e11b8152600481018390529192509073__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__906344aa683690602401602060405180830381865af415801561025c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102809190610491565b61028a91906104c0565b925061029683866104d3565b9150509250929050565b60006101738383670de0b6b3a764000060008080600019858709858702925082811083820303915050806000036102ea578382816102e0576102e06104e6565b0492505050610173565b8084116103355760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b604482015260640160405180910390fd5b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b6000604082840312156103af57600080fd5b6040516040810181811067ffffffffffffffff821117156103e057634e487b7160e01b600052604160045260246000fd5b604052823581526020928301359281019290925250919050565b60006040828403121561040c57600080fd5b610173838361039d565b6000806080838503121561042957600080fd5b610433848461039d565b9150610442846040850161039d565b90509250929050565b6000806060838503121561045e57600080fd5b82359150610442846020850161039d565b6000806040838503121561048257600080fd5b50508035926020909101359150565b6000602082840312156104a357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610153576101536104aa565b81810381811115610153576101536104aa565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220ce43dac16f65baa3a831022a10e378d17dafa927733d7a7e1c52c57f847ba20664736f6c63430008140033",
|
190
|
+
"linkReferences": {
|
191
|
+
"contracts/types/UFixed.sol": {
|
192
|
+
"UFixedMathLib": [
|
193
|
+
{
|
194
|
+
"length": 20,
|
195
|
+
"start": 446
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"length": 20,
|
199
|
+
"start": 604
|
200
|
+
}
|
201
|
+
]
|
202
|
+
}
|
203
|
+
},
|
204
|
+
"deployedLinkReferences": {
|
205
|
+
"contracts/types/UFixed.sol": {
|
206
|
+
"UFixedMathLib": [
|
207
|
+
{
|
208
|
+
"length": 20,
|
209
|
+
"start": 388
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"length": 20,
|
213
|
+
"start": 546
|
214
|
+
}
|
215
|
+
]
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "Key32Lib",
|
4
|
+
"sourceName": "contracts/types/Key32.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [],
|
8
|
+
"name": "ID_MASK",
|
9
|
+
"outputs": [
|
10
|
+
{
|
11
|
+
"internalType": "bytes32",
|
12
|
+
"name": "",
|
13
|
+
"type": "bytes32"
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"stateMutability": "view",
|
17
|
+
"type": "function"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"inputs": [],
|
21
|
+
"name": "ID_SHIFT",
|
22
|
+
"outputs": [
|
23
|
+
{
|
24
|
+
"internalType": "uint8",
|
25
|
+
"name": "",
|
26
|
+
"type": "uint8"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"stateMutability": "view",
|
30
|
+
"type": "function"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"inputs": [],
|
34
|
+
"name": "TYPE_MASK",
|
35
|
+
"outputs": [
|
36
|
+
{
|
37
|
+
"internalType": "bytes32",
|
38
|
+
"name": "",
|
39
|
+
"type": "bytes32"
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"stateMutability": "view",
|
43
|
+
"type": "function"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"inputs": [],
|
47
|
+
"name": "TYPE_SHIFT",
|
48
|
+
"outputs": [
|
49
|
+
{
|
50
|
+
"internalType": "uint8",
|
51
|
+
"name": "",
|
52
|
+
"type": "uint8"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"stateMutability": "view",
|
56
|
+
"type": "function"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"inputs": [
|
60
|
+
{
|
61
|
+
"internalType": "Key32",
|
62
|
+
"name": "key",
|
63
|
+
"type": "bytes32"
|
64
|
+
}
|
65
|
+
],
|
66
|
+
"name": "toKey",
|
67
|
+
"outputs": [
|
68
|
+
{
|
69
|
+
"internalType": "ObjectType",
|
70
|
+
"name": "objectType",
|
71
|
+
"type": "uint8"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"internalType": "KeyId",
|
75
|
+
"name": "id",
|
76
|
+
"type": "bytes31"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"stateMutability": "pure",
|
80
|
+
"type": "function"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"inputs": [
|
84
|
+
{
|
85
|
+
"internalType": "ObjectType",
|
86
|
+
"name": "objectType",
|
87
|
+
"type": "uint8"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"internalType": "KeyId",
|
91
|
+
"name": "id",
|
92
|
+
"type": "bytes31"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"name": "toKey32",
|
96
|
+
"outputs": [
|
97
|
+
{
|
98
|
+
"internalType": "Key32",
|
99
|
+
"name": "",
|
100
|
+
"type": "bytes32"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"stateMutability": "pure",
|
104
|
+
"type": "function"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
"bytecode": "0x61025b61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630f94cc501461007157806329e9b22614610093578063a4dc7d86146100ad578063d92bb60d146100dc578063da3fe412146100ea578063f48016ce146100f2575b600080fd5b6100806001600160f81b031981565b6040519081526020015b60405180910390f35b61009b60f881565b60405160ff909116815260200161008a565b6100c06100bb36600461017b565b610105565b6040805160ff909316835260ff1990911660208301520161008a565b6100806001600160f81b0381565b61009b61013b565b610080610100366004610194565b61014b565b60f881811c90600090839061011c906101006101f0565b60ff1660ff60f81b6001600160f81b031916198216901b915050915091565b61014860f86101006101f0565b81565b600060ff8316600883901c8261016f826001600160f81b031960f889901b16610212565b93505050505b92915050565b60006020828403121561018d57600080fd5b5035919050565b600080604083850312156101a757600080fd5b823560ff811681146101b857600080fd5b9150602083013560ff19811681146101cf57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b61ffff82811682821603908082111561020b5761020b6101da565b5092915050565b80820180821115610175576101756101da56fea26469706673582212209f9359b88be2a0a160c8af25961ee9cdf5c01de76ffe18524c389bd9cbd8f6ec64736f6c63430008140033",
|
108
|
+
"deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630f94cc501461007157806329e9b22614610093578063a4dc7d86146100ad578063d92bb60d146100dc578063da3fe412146100ea578063f48016ce146100f2575b600080fd5b6100806001600160f81b031981565b6040519081526020015b60405180910390f35b61009b60f881565b60405160ff909116815260200161008a565b6100c06100bb36600461017b565b610105565b6040805160ff909316835260ff1990911660208301520161008a565b6100806001600160f81b0381565b61009b61013b565b610080610100366004610194565b61014b565b60f881811c90600090839061011c906101006101f0565b60ff1660ff60f81b6001600160f81b031916198216901b915050915091565b61014860f86101006101f0565b81565b600060ff8316600883901c8261016f826001600160f81b031960f889901b16610212565b93505050505b92915050565b60006020828403121561018d57600080fd5b5035919050565b600080604083850312156101a757600080fd5b823560ff811681146101b857600080fd5b9150602083013560ff19811681146101cf57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b61ffff82811682821603908082111561020b5761020b6101da565b5092915050565b80820180821115610175576101756101da56fea26469706673582212209f9359b88be2a0a160c8af25961ee9cdf5c01de76ffe18524c389bd9cbd8f6ec64736f6c63430008140033",
|
109
|
+
"linkReferences": {},
|
110
|
+
"deployedLinkReferences": {}
|
111
|
+
}
|