@etherisc/gif-next 0.0.2-d3543ee-217 → 0.0.2-d96b9e1-825
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +76 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{Component.sol/Component.json → BaseComponent.sol/BaseComponent.json} +26 -57
- 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} +26 -57
- 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/{IPool.sol/IPoolComponent.json → IProductComponent.sol/IProductComponent.json} +89 -65
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +134 -75
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +72 -113
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- 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 +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +719 -332
- 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 +962 -531
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/ComponentServiceBase.sol/ComponentServiceBase.json} +133 -132
- 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/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
- 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/base/InstanceBase.sol/InstanceBase.json +326 -0
- 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 +33 -62
- 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 +132 -125
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +132 -125
- 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 +67 -47
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +51 -57
- 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/{treasury → module/treasury}/ITreasury.sol/ITreasury.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasuryModule.json +100 -57
- 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/{treasury → module/treasury}/TreasuryModule.sol/TreasuryModule.json +100 -57
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +491 -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 +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 +147 -30
- 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 +241 -25
- 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 +16 -61
- 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 +16 -61
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +164 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
- package/artifacts/contracts/test/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 +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/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- 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 +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -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/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 +64 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +58 -58
- 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/{IProduct.sol → IProductComponent.sol} +9 -6
- package/contracts/components/Pool.sol +140 -18
- package/contracts/components/Product.sol +53 -25
- package/contracts/instance/IInstance.sol +38 -11
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/Instance.sol +44 -48
- 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/{lifecycle → base}/ILifecycle.sol +4 -21
- package/contracts/instance/base/IService.sol +15 -0
- package/contracts/instance/base/InstanceBase.sol +80 -0
- package/contracts/instance/base/KeyValueStore.sol +147 -0
- package/contracts/instance/{lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +36 -29
- 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/{treasury → module/treasury}/ITreasury.sol +27 -15
- package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
- package/contracts/instance/{treasury → module/treasury}/TreasuryModule.sol +43 -59
- 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 +61 -37
- package/contracts/registry/IRegistry.sol +24 -34
- package/contracts/registry/IRegistryLinked.sol +8 -0
- package/contracts/registry/Registry.sol +284 -85
- 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/types/AddressSet.sol +58 -0
- package/contracts/types/Fee.sol +39 -20
- package/contracts/types/Key32.sol +45 -0
- package/contracts/types/NftId.sol +22 -1
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +22 -14
- package/contracts/types/RoleId.sol +36 -0
- package/contracts/types/StateId.sol +13 -3
- package/contracts/types/Timestamp.sol +22 -1
- package/contracts/types/UFixed.sol +15 -15
- package/contracts/types/Version.sol +95 -0
- package/package.json +8 -3
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
- 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 -74
- 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 -202
- 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 -141
- package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
- package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
- package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
- 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 -127
- 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 -196
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
- package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
- package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
- 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 -77
- package/contracts/components/IPool.sol +0 -15
- package/contracts/instance/access/Access.sol +0 -165
- package/contracts/instance/access/IAccess.sol +0 -63
- package/contracts/instance/component/ComponentModule.sol +0 -274
- package/contracts/instance/component/IComponent.sol +0 -74
- package/contracts/instance/policy/IPolicy.sol +0 -50
- package/contracts/instance/policy/PolicyModule.sol +0 -114
- package/contracts/instance/pool/IPoolModule.sol +0 -23
- package/contracts/instance/pool/PoolModule.sol +0 -81
- package/contracts/instance/product/IProductService.sol +0 -36
- package/contracts/instance/product/ProductService.sol +0 -136
- package/contracts/instance/treasury/TokenHandler.sol +0 -24
@@ -3,71 +3,23 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
-
{
|
7
|
-
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "NftId",
|
10
|
-
"name": "nftId",
|
11
|
-
"type": "uint96"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"internalType": "ObjectType",
|
15
|
-
"name": "objectType",
|
16
|
-
"type": "uint8"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"internalType": "StateId",
|
20
|
-
"name": "fromStateId",
|
21
|
-
"type": "uint8"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"internalType": "StateId",
|
25
|
-
"name": "toStateId",
|
26
|
-
"type": "uint8"
|
27
|
-
}
|
28
|
-
],
|
29
|
-
"name": "ErrorInvalidStateTransition",
|
30
|
-
"type": "error"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"inputs": [
|
34
|
-
{
|
35
|
-
"internalType": "NftId",
|
36
|
-
"name": "nftId",
|
37
|
-
"type": "uint96"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"internalType": "ObjectType",
|
41
|
-
"name": "objectType",
|
42
|
-
"type": "uint8"
|
43
|
-
}
|
44
|
-
],
|
45
|
-
"name": "ErrorNoLifecycle",
|
46
|
-
"type": "error"
|
47
|
-
},
|
48
6
|
{
|
49
7
|
"anonymous": false,
|
50
8
|
"inputs": [
|
51
9
|
{
|
52
10
|
"indexed": false,
|
53
|
-
"internalType": "
|
54
|
-
"name": "
|
55
|
-
"type": "
|
56
|
-
},
|
57
|
-
{
|
58
|
-
"indexed": false,
|
59
|
-
"internalType": "StateId",
|
60
|
-
"name": "fromStateId",
|
61
|
-
"type": "uint8"
|
11
|
+
"internalType": "RoleId",
|
12
|
+
"name": "role",
|
13
|
+
"type": "bytes8"
|
62
14
|
},
|
63
15
|
{
|
64
16
|
"indexed": false,
|
65
|
-
"internalType": "
|
66
|
-
"name": "
|
67
|
-
"type": "
|
17
|
+
"internalType": "string",
|
18
|
+
"name": "roleName",
|
19
|
+
"type": "string"
|
68
20
|
}
|
69
21
|
],
|
70
|
-
"name": "
|
22
|
+
"name": "LogAccessRoleCreated",
|
71
23
|
"type": "event"
|
72
24
|
},
|
73
25
|
{
|
@@ -75,30 +27,24 @@
|
|
75
27
|
"inputs": [
|
76
28
|
{
|
77
29
|
"indexed": false,
|
78
|
-
"internalType": "
|
79
|
-
"name": "
|
80
|
-
"type": "
|
81
|
-
},
|
82
|
-
{
|
83
|
-
"indexed": false,
|
84
|
-
"internalType": "ObjectType",
|
85
|
-
"name": "objectType",
|
86
|
-
"type": "uint8"
|
30
|
+
"internalType": "RoleId",
|
31
|
+
"name": "role",
|
32
|
+
"type": "bytes8"
|
87
33
|
},
|
88
34
|
{
|
89
35
|
"indexed": false,
|
90
|
-
"internalType": "
|
91
|
-
"name": "
|
92
|
-
"type": "
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "member",
|
38
|
+
"type": "address"
|
93
39
|
},
|
94
40
|
{
|
95
41
|
"indexed": false,
|
96
|
-
"internalType": "
|
97
|
-
"name": "
|
98
|
-
"type": "
|
42
|
+
"internalType": "bool",
|
43
|
+
"name": "isMember",
|
44
|
+
"type": "bool"
|
99
45
|
}
|
100
46
|
],
|
101
|
-
"name": "
|
47
|
+
"name": "LogAccessRoleGranted",
|
102
48
|
"type": "event"
|
103
49
|
},
|
104
50
|
{
|
@@ -106,24 +52,18 @@
|
|
106
52
|
"inputs": [
|
107
53
|
{
|
108
54
|
"indexed": false,
|
109
|
-
"internalType": "
|
110
|
-
"name": "
|
111
|
-
"type": "
|
112
|
-
},
|
113
|
-
{
|
114
|
-
"indexed": false,
|
115
|
-
"internalType": "address",
|
116
|
-
"name": "module",
|
117
|
-
"type": "address"
|
55
|
+
"internalType": "RoleId",
|
56
|
+
"name": "role",
|
57
|
+
"type": "bytes8"
|
118
58
|
},
|
119
59
|
{
|
120
60
|
"indexed": false,
|
121
|
-
"internalType": "
|
122
|
-
"name": "
|
123
|
-
"type": "
|
61
|
+
"internalType": "bool",
|
62
|
+
"name": "active",
|
63
|
+
"type": "bool"
|
124
64
|
}
|
125
65
|
],
|
126
|
-
"name": "
|
66
|
+
"name": "LogAccessRoleStateSet",
|
127
67
|
"type": "event"
|
128
68
|
},
|
129
69
|
{
|
@@ -131,74 +71,63 @@
|
|
131
71
|
"inputs": [
|
132
72
|
{
|
133
73
|
"indexed": false,
|
134
|
-
"internalType": "
|
135
|
-
"name": "
|
136
|
-
"type": "
|
74
|
+
"internalType": "Version",
|
75
|
+
"name": "version",
|
76
|
+
"type": "uint24"
|
137
77
|
},
|
138
78
|
{
|
139
79
|
"indexed": false,
|
140
|
-
"internalType": "
|
141
|
-
"name": "
|
142
|
-
"type": "
|
80
|
+
"internalType": "address",
|
81
|
+
"name": "implementation",
|
82
|
+
"type": "address"
|
143
83
|
},
|
144
84
|
{
|
145
85
|
"indexed": false,
|
146
|
-
"internalType": "
|
147
|
-
"name": "
|
148
|
-
"type": "
|
86
|
+
"internalType": "address",
|
87
|
+
"name": "activatedBy",
|
88
|
+
"type": "address"
|
149
89
|
}
|
150
90
|
],
|
151
|
-
"name": "
|
91
|
+
"name": "LogVersionableActivated",
|
152
92
|
"type": "event"
|
153
93
|
},
|
154
94
|
{
|
155
|
-
"inputs": [
|
156
|
-
"name": "ORACLE_OWNER_ROLE",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "bytes32",
|
160
|
-
"name": "role",
|
161
|
-
"type": "bytes32"
|
162
|
-
}
|
163
|
-
],
|
164
|
-
"stateMutability": "view",
|
165
|
-
"type": "function"
|
166
|
-
},
|
167
|
-
{
|
168
|
-
"inputs": [],
|
169
|
-
"name": "POOL_OWNER_ROLE",
|
170
|
-
"outputs": [
|
95
|
+
"inputs": [
|
171
96
|
{
|
172
|
-
"internalType": "
|
173
|
-
"name": "
|
174
|
-
"type": "
|
175
|
-
}
|
176
|
-
],
|
177
|
-
"stateMutability": "view",
|
178
|
-
"type": "function"
|
179
|
-
},
|
180
|
-
{
|
181
|
-
"inputs": [],
|
182
|
-
"name": "PRODUCT_OWNER_ROLE",
|
183
|
-
"outputs": [
|
97
|
+
"internalType": "address",
|
98
|
+
"name": "implementation",
|
99
|
+
"type": "address"
|
100
|
+
},
|
184
101
|
{
|
185
|
-
"internalType": "
|
186
|
-
"name": "
|
187
|
-
"type": "
|
102
|
+
"internalType": "address",
|
103
|
+
"name": "activatedBy",
|
104
|
+
"type": "address"
|
188
105
|
}
|
189
106
|
],
|
190
|
-
"
|
107
|
+
"name": "activate",
|
108
|
+
"outputs": [],
|
109
|
+
"stateMutability": "nonpayable",
|
191
110
|
"type": "function"
|
192
111
|
},
|
193
112
|
{
|
194
113
|
"inputs": [
|
195
114
|
{
|
196
115
|
"internalType": "NftId",
|
197
|
-
"name": "
|
116
|
+
"name": "bundleNftId",
|
198
117
|
"type": "uint96"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"internalType": "NftId",
|
121
|
+
"name": "poolNftId",
|
122
|
+
"type": "uint96"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"internalType": "uint256",
|
126
|
+
"name": "amount",
|
127
|
+
"type": "uint256"
|
199
128
|
}
|
200
129
|
],
|
201
|
-
"name": "
|
130
|
+
"name": "addBundleToPool",
|
202
131
|
"outputs": [],
|
203
132
|
"stateMutability": "nonpayable",
|
204
133
|
"type": "function"
|
@@ -245,56 +174,39 @@
|
|
245
174
|
"type": "function"
|
246
175
|
},
|
247
176
|
{
|
248
|
-
"inputs": [
|
249
|
-
|
250
|
-
|
177
|
+
"inputs": [
|
178
|
+
{
|
179
|
+
"internalType": "NftId",
|
180
|
+
"name": "bundleNftId",
|
181
|
+
"type": "uint96"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"internalType": "NftId",
|
185
|
+
"name": "policyNftId",
|
186
|
+
"type": "uint96"
|
187
|
+
},
|
251
188
|
{
|
252
189
|
"internalType": "uint256",
|
253
|
-
"name": "
|
190
|
+
"name": "amount",
|
254
191
|
"type": "uint256"
|
255
192
|
}
|
256
193
|
],
|
257
|
-
"
|
194
|
+
"name": "collateralizePolicy",
|
195
|
+
"outputs": [],
|
196
|
+
"stateMutability": "nonpayable",
|
258
197
|
"type": "function"
|
259
198
|
},
|
260
199
|
{
|
261
200
|
"inputs": [
|
262
201
|
{
|
263
|
-
"
|
264
|
-
|
265
|
-
|
266
|
-
"name": "nftId",
|
267
|
-
"type": "uint96"
|
268
|
-
},
|
269
|
-
{
|
270
|
-
"internalType": "NftId",
|
271
|
-
"name": "parentNftId",
|
272
|
-
"type": "uint96"
|
273
|
-
},
|
274
|
-
{
|
275
|
-
"internalType": "ObjectType",
|
276
|
-
"name": "objectType",
|
277
|
-
"type": "uint8"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
"internalType": "address",
|
281
|
-
"name": "objectAddress",
|
282
|
-
"type": "address"
|
283
|
-
},
|
284
|
-
{
|
285
|
-
"internalType": "address",
|
286
|
-
"name": "initialOwner",
|
287
|
-
"type": "address"
|
288
|
-
}
|
289
|
-
],
|
290
|
-
"internalType": "struct IRegistry.RegistryInfo",
|
291
|
-
"name": "productInfo",
|
292
|
-
"type": "tuple"
|
202
|
+
"internalType": "NftId",
|
203
|
+
"name": "productNftId",
|
204
|
+
"type": "uint96"
|
293
205
|
},
|
294
206
|
{
|
295
|
-
"internalType": "
|
296
|
-
"name": "
|
297
|
-
"type": "
|
207
|
+
"internalType": "NftId",
|
208
|
+
"name": "policyNftId",
|
209
|
+
"type": "uint96"
|
298
210
|
},
|
299
211
|
{
|
300
212
|
"internalType": "uint256",
|
@@ -318,13 +230,40 @@
|
|
318
230
|
}
|
319
231
|
],
|
320
232
|
"name": "createApplication",
|
321
|
-
"outputs": [
|
233
|
+
"outputs": [],
|
234
|
+
"stateMutability": "nonpayable",
|
235
|
+
"type": "function"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"inputs": [
|
322
239
|
{
|
323
240
|
"internalType": "NftId",
|
324
|
-
"name": "
|
241
|
+
"name": "bundleNftId",
|
325
242
|
"type": "uint96"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"internalType": "NftId",
|
246
|
+
"name": "poolNftId",
|
247
|
+
"type": "uint96"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"internalType": "uint256",
|
251
|
+
"name": "amount",
|
252
|
+
"type": "uint256"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"internalType": "uint256",
|
256
|
+
"name": "lifetime",
|
257
|
+
"type": "uint256"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"internalType": "bytes",
|
261
|
+
"name": "filter",
|
262
|
+
"type": "bytes"
|
326
263
|
}
|
327
264
|
],
|
265
|
+
"name": "createBundleInfo",
|
266
|
+
"outputs": [],
|
328
267
|
"stateMutability": "nonpayable",
|
329
268
|
"type": "function"
|
330
269
|
},
|
@@ -339,9 +278,9 @@
|
|
339
278
|
"name": "createRole",
|
340
279
|
"outputs": [
|
341
280
|
{
|
342
|
-
"internalType": "
|
281
|
+
"internalType": "RoleId",
|
343
282
|
"name": "role",
|
344
|
-
"type": "
|
283
|
+
"type": "bytes8"
|
345
284
|
}
|
346
285
|
],
|
347
286
|
"stateMutability": "nonpayable",
|
@@ -350,42 +289,101 @@
|
|
350
289
|
{
|
351
290
|
"inputs": [
|
352
291
|
{
|
353
|
-
"internalType": "
|
354
|
-
"name": "
|
355
|
-
"type": "
|
292
|
+
"internalType": "NftId",
|
293
|
+
"name": "poolNftId",
|
294
|
+
"type": "uint96"
|
356
295
|
}
|
357
296
|
],
|
358
|
-
"name": "
|
359
|
-
"outputs": [
|
360
|
-
|
297
|
+
"name": "getBundleCount",
|
298
|
+
"outputs": [
|
299
|
+
{
|
300
|
+
"internalType": "uint256",
|
301
|
+
"name": "bundleCount",
|
302
|
+
"type": "uint256"
|
303
|
+
}
|
304
|
+
],
|
305
|
+
"stateMutability": "view",
|
361
306
|
"type": "function"
|
362
307
|
},
|
363
308
|
{
|
364
309
|
"inputs": [
|
365
310
|
{
|
366
|
-
"internalType": "
|
367
|
-
"name": "
|
368
|
-
"type": "
|
311
|
+
"internalType": "NftId",
|
312
|
+
"name": "bundleNftId",
|
313
|
+
"type": "uint96"
|
369
314
|
}
|
370
315
|
],
|
371
|
-
"name": "
|
372
|
-
"outputs": [
|
373
|
-
|
316
|
+
"name": "getBundleInfo",
|
317
|
+
"outputs": [
|
318
|
+
{
|
319
|
+
"components": [
|
320
|
+
{
|
321
|
+
"internalType": "NftId",
|
322
|
+
"name": "nftId",
|
323
|
+
"type": "uint96"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"internalType": "NftId",
|
327
|
+
"name": "poolNftId",
|
328
|
+
"type": "uint96"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"internalType": "bytes",
|
332
|
+
"name": "filter",
|
333
|
+
"type": "bytes"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"internalType": "uint256",
|
337
|
+
"name": "capitalAmount",
|
338
|
+
"type": "uint256"
|
339
|
+
},
|
340
|
+
{
|
341
|
+
"internalType": "uint256",
|
342
|
+
"name": "lockedAmount",
|
343
|
+
"type": "uint256"
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"internalType": "uint256",
|
347
|
+
"name": "balanceAmount",
|
348
|
+
"type": "uint256"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"internalType": "Timestamp",
|
352
|
+
"name": "expiredAt",
|
353
|
+
"type": "uint40"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"internalType": "Timestamp",
|
357
|
+
"name": "closedAt",
|
358
|
+
"type": "uint40"
|
359
|
+
}
|
360
|
+
],
|
361
|
+
"internalType": "struct IBundle.BundleInfo",
|
362
|
+
"name": "bundleInfo",
|
363
|
+
"type": "tuple"
|
364
|
+
}
|
365
|
+
],
|
366
|
+
"stateMutability": "view",
|
374
367
|
"type": "function"
|
375
368
|
},
|
376
369
|
{
|
377
370
|
"inputs": [
|
378
371
|
{
|
379
372
|
"internalType": "NftId",
|
380
|
-
"name": "
|
373
|
+
"name": "poolNftId",
|
381
374
|
"type": "uint96"
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"internalType": "uint256",
|
378
|
+
"name": "index",
|
379
|
+
"type": "uint256"
|
382
380
|
}
|
383
381
|
],
|
384
|
-
"name": "
|
382
|
+
"name": "getBundleNftId",
|
385
383
|
"outputs": [
|
386
384
|
{
|
387
385
|
"internalType": "NftId",
|
388
|
-
"name": "
|
386
|
+
"name": "bundleNftId",
|
389
387
|
"type": "uint96"
|
390
388
|
}
|
391
389
|
],
|
@@ -393,19 +391,13 @@
|
|
393
391
|
"type": "function"
|
394
392
|
},
|
395
393
|
{
|
396
|
-
"inputs": [
|
397
|
-
|
398
|
-
"internalType": "address",
|
399
|
-
"name": "componentAddress",
|
400
|
-
"type": "address"
|
401
|
-
}
|
402
|
-
],
|
403
|
-
"name": "getComponentId",
|
394
|
+
"inputs": [],
|
395
|
+
"name": "getComponentCount",
|
404
396
|
"outputs": [
|
405
397
|
{
|
406
|
-
"internalType": "
|
407
|
-
"name": "
|
408
|
-
"type": "
|
398
|
+
"internalType": "uint256",
|
399
|
+
"name": "numberOfCompnents",
|
400
|
+
"type": "uint256"
|
409
401
|
}
|
410
402
|
],
|
411
403
|
"stateMutability": "view",
|
@@ -493,32 +485,49 @@
|
|
493
485
|
"type": "function"
|
494
486
|
},
|
495
487
|
{
|
496
|
-
"inputs": [
|
497
|
-
|
488
|
+
"inputs": [
|
489
|
+
{
|
490
|
+
"internalType": "UFixed",
|
491
|
+
"name": "fractionalFee",
|
492
|
+
"type": "uint256"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"internalType": "uint256",
|
496
|
+
"name": "fixedFee",
|
497
|
+
"type": "uint256"
|
498
|
+
}
|
499
|
+
],
|
500
|
+
"name": "getFee",
|
498
501
|
"outputs": [
|
499
502
|
{
|
500
|
-
"
|
501
|
-
|
502
|
-
|
503
|
+
"components": [
|
504
|
+
{
|
505
|
+
"internalType": "UFixed",
|
506
|
+
"name": "fractionalFee",
|
507
|
+
"type": "uint256"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"internalType": "uint256",
|
511
|
+
"name": "fixedFee",
|
512
|
+
"type": "uint256"
|
513
|
+
}
|
514
|
+
],
|
515
|
+
"internalType": "struct Fee",
|
516
|
+
"name": "fee",
|
517
|
+
"type": "tuple"
|
503
518
|
}
|
504
519
|
],
|
505
|
-
"stateMutability": "
|
520
|
+
"stateMutability": "pure",
|
506
521
|
"type": "function"
|
507
522
|
},
|
508
523
|
{
|
509
|
-
"inputs": [
|
510
|
-
|
511
|
-
"internalType": "ObjectType",
|
512
|
-
"name": "objectType",
|
513
|
-
"type": "uint8"
|
514
|
-
}
|
515
|
-
],
|
516
|
-
"name": "getInitialState",
|
524
|
+
"inputs": [],
|
525
|
+
"name": "getKeyValueStore",
|
517
526
|
"outputs": [
|
518
527
|
{
|
519
|
-
"internalType": "
|
520
|
-
"name": "",
|
521
|
-
"type": "
|
528
|
+
"internalType": "contract IKeyValueStore",
|
529
|
+
"name": "keyValueStore",
|
530
|
+
"type": "address"
|
522
531
|
}
|
523
532
|
],
|
524
533
|
"stateMutability": "view",
|
@@ -556,7 +565,7 @@
|
|
556
565
|
"outputs": [
|
557
566
|
{
|
558
567
|
"internalType": "NftId",
|
559
|
-
"name": "
|
568
|
+
"name": "nftId",
|
560
569
|
"type": "uint96"
|
561
570
|
}
|
562
571
|
],
|
@@ -580,6 +589,21 @@
|
|
580
589
|
"name": "nftId",
|
581
590
|
"type": "uint96"
|
582
591
|
},
|
592
|
+
{
|
593
|
+
"internalType": "NftId",
|
594
|
+
"name": "productNftId",
|
595
|
+
"type": "uint96"
|
596
|
+
},
|
597
|
+
{
|
598
|
+
"internalType": "NftId",
|
599
|
+
"name": "bundleNftId",
|
600
|
+
"type": "uint96"
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"internalType": "address",
|
604
|
+
"name": "beneficiary",
|
605
|
+
"type": "address"
|
606
|
+
},
|
583
607
|
{
|
584
608
|
"internalType": "StateId",
|
585
609
|
"name": "state",
|
@@ -606,29 +630,34 @@
|
|
606
630
|
"type": "uint256"
|
607
631
|
},
|
608
632
|
{
|
609
|
-
"internalType": "
|
610
|
-
"name": "
|
611
|
-
"type": "
|
633
|
+
"internalType": "bytes",
|
634
|
+
"name": "data",
|
635
|
+
"type": "bytes"
|
612
636
|
},
|
613
637
|
{
|
614
|
-
"internalType": "
|
615
|
-
"name": "
|
616
|
-
"type": "
|
638
|
+
"internalType": "Timestamp",
|
639
|
+
"name": "createdAt",
|
640
|
+
"type": "uint40"
|
617
641
|
},
|
618
642
|
{
|
619
|
-
"internalType": "
|
643
|
+
"internalType": "Timestamp",
|
620
644
|
"name": "activatedAt",
|
621
|
-
"type": "
|
645
|
+
"type": "uint40"
|
622
646
|
},
|
623
647
|
{
|
624
|
-
"internalType": "
|
648
|
+
"internalType": "Timestamp",
|
625
649
|
"name": "expiredAt",
|
626
|
-
"type": "
|
650
|
+
"type": "uint40"
|
627
651
|
},
|
628
652
|
{
|
629
|
-
"internalType": "
|
653
|
+
"internalType": "Timestamp",
|
630
654
|
"name": "closedAt",
|
631
|
-
"type": "
|
655
|
+
"type": "uint40"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"internalType": "Blocknumber",
|
659
|
+
"name": "updatedIn",
|
660
|
+
"type": "uint32"
|
632
661
|
}
|
633
662
|
],
|
634
663
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -657,13 +686,13 @@
|
|
657
686
|
"type": "uint96"
|
658
687
|
},
|
659
688
|
{
|
660
|
-
"internalType": "
|
661
|
-
"name": "
|
662
|
-
"type": "
|
689
|
+
"internalType": "bool",
|
690
|
+
"name": "isVerifying",
|
691
|
+
"type": "bool"
|
663
692
|
},
|
664
693
|
{
|
665
|
-
"internalType": "
|
666
|
-
"name": "
|
694
|
+
"internalType": "UFixed",
|
695
|
+
"name": "collateralizationLevel",
|
667
696
|
"type": "uint256"
|
668
697
|
}
|
669
698
|
],
|
@@ -675,6 +704,19 @@
|
|
675
704
|
"stateMutability": "view",
|
676
705
|
"type": "function"
|
677
706
|
},
|
707
|
+
{
|
708
|
+
"inputs": [],
|
709
|
+
"name": "getPoolService",
|
710
|
+
"outputs": [
|
711
|
+
{
|
712
|
+
"internalType": "contract IPoolService",
|
713
|
+
"name": "",
|
714
|
+
"type": "address"
|
715
|
+
}
|
716
|
+
],
|
717
|
+
"stateMutability": "view",
|
718
|
+
"type": "function"
|
719
|
+
},
|
678
720
|
{
|
679
721
|
"inputs": [
|
680
722
|
{
|
@@ -732,7 +774,7 @@
|
|
732
774
|
"type": "tuple"
|
733
775
|
}
|
734
776
|
],
|
735
|
-
"internalType": "struct
|
777
|
+
"internalType": "struct ITreasury.PoolSetup",
|
736
778
|
"name": "setup",
|
737
779
|
"type": "tuple"
|
738
780
|
}
|
@@ -781,15 +823,10 @@
|
|
781
823
|
"type": "uint96"
|
782
824
|
},
|
783
825
|
{
|
784
|
-
"internalType": "contract
|
826
|
+
"internalType": "contract IERC20Metadata",
|
785
827
|
"name": "token",
|
786
828
|
"type": "address"
|
787
829
|
},
|
788
|
-
{
|
789
|
-
"internalType": "contract TokenHandler",
|
790
|
-
"name": "tokenHandler",
|
791
|
-
"type": "address"
|
792
|
-
},
|
793
830
|
{
|
794
831
|
"internalType": "address",
|
795
832
|
"name": "wallet",
|
@@ -830,7 +867,7 @@
|
|
830
867
|
"type": "tuple"
|
831
868
|
}
|
832
869
|
],
|
833
|
-
"internalType": "struct
|
870
|
+
"internalType": "struct ITreasury.ProductSetup",
|
834
871
|
"name": "setup",
|
835
872
|
"type": "tuple"
|
836
873
|
}
|
@@ -862,9 +899,9 @@
|
|
862
899
|
"name": "getRole",
|
863
900
|
"outputs": [
|
864
901
|
{
|
865
|
-
"internalType": "
|
902
|
+
"internalType": "RoleId",
|
866
903
|
"name": "role",
|
867
|
-
"type": "
|
904
|
+
"type": "bytes8"
|
868
905
|
}
|
869
906
|
],
|
870
907
|
"stateMutability": "view",
|
@@ -891,12 +928,12 @@
|
|
891
928
|
"type": "string"
|
892
929
|
}
|
893
930
|
],
|
894
|
-
"name": "
|
931
|
+
"name": "getRoleId",
|
895
932
|
"outputs": [
|
896
933
|
{
|
897
|
-
"internalType": "
|
934
|
+
"internalType": "RoleId",
|
898
935
|
"name": "role",
|
899
|
-
"type": "
|
936
|
+
"type": "bytes8"
|
900
937
|
}
|
901
938
|
],
|
902
939
|
"stateMutability": "pure",
|
@@ -905,9 +942,9 @@
|
|
905
942
|
{
|
906
943
|
"inputs": [
|
907
944
|
{
|
908
|
-
"internalType": "
|
945
|
+
"internalType": "RoleId",
|
909
946
|
"name": "role",
|
910
|
-
"type": "
|
947
|
+
"type": "bytes8"
|
911
948
|
}
|
912
949
|
],
|
913
950
|
"name": "getRoleInfo",
|
@@ -915,9 +952,9 @@
|
|
915
952
|
{
|
916
953
|
"components": [
|
917
954
|
{
|
918
|
-
"internalType": "
|
955
|
+
"internalType": "RoleId",
|
919
956
|
"name": "id",
|
920
|
-
"type": "
|
957
|
+
"type": "bytes8"
|
921
958
|
},
|
922
959
|
{
|
923
960
|
"internalType": "string",
|
@@ -941,9 +978,9 @@
|
|
941
978
|
{
|
942
979
|
"inputs": [
|
943
980
|
{
|
944
|
-
"internalType": "
|
981
|
+
"internalType": "RoleId",
|
945
982
|
"name": "role",
|
946
|
-
"type": "
|
983
|
+
"type": "bytes8"
|
947
984
|
},
|
948
985
|
{
|
949
986
|
"internalType": "uint256",
|
@@ -955,7 +992,7 @@
|
|
955
992
|
"outputs": [
|
956
993
|
{
|
957
994
|
"internalType": "address",
|
958
|
-
"name": "
|
995
|
+
"name": "roleMember",
|
959
996
|
"type": "address"
|
960
997
|
}
|
961
998
|
],
|
@@ -965,9 +1002,9 @@
|
|
965
1002
|
{
|
966
1003
|
"inputs": [
|
967
1004
|
{
|
968
|
-
"internalType": "
|
1005
|
+
"internalType": "RoleId",
|
969
1006
|
"name": "role",
|
970
|
-
"type": "
|
1007
|
+
"type": "bytes8"
|
971
1008
|
}
|
972
1009
|
],
|
973
1010
|
"name": "getRoleMemberCount",
|
@@ -985,7 +1022,7 @@
|
|
985
1022
|
"inputs": [
|
986
1023
|
{
|
987
1024
|
"internalType": "NftId",
|
988
|
-
"name": "
|
1025
|
+
"name": "componentNftId",
|
989
1026
|
"type": "uint96"
|
990
1027
|
}
|
991
1028
|
],
|
@@ -1010,72 +1047,92 @@
|
|
1010
1047
|
"type": "uint8"
|
1011
1048
|
}
|
1012
1049
|
],
|
1013
|
-
"stateMutability": "
|
1050
|
+
"stateMutability": "pure",
|
1014
1051
|
"type": "function"
|
1015
1052
|
},
|
1016
1053
|
{
|
1017
1054
|
"inputs": [
|
1018
1055
|
{
|
1019
|
-
"internalType": "
|
1020
|
-
"name": "
|
1021
|
-
"type": "
|
1056
|
+
"internalType": "uint256",
|
1057
|
+
"name": "a",
|
1058
|
+
"type": "uint256"
|
1022
1059
|
},
|
1023
1060
|
{
|
1024
|
-
"internalType": "
|
1025
|
-
"name": "
|
1026
|
-
"type": "
|
1061
|
+
"internalType": "int8",
|
1062
|
+
"name": "exp",
|
1063
|
+
"type": "int8"
|
1027
1064
|
}
|
1028
1065
|
],
|
1029
|
-
"name": "
|
1030
|
-
"outputs": [
|
1031
|
-
|
1066
|
+
"name": "getUFixed",
|
1067
|
+
"outputs": [
|
1068
|
+
{
|
1069
|
+
"internalType": "UFixed",
|
1070
|
+
"name": "",
|
1071
|
+
"type": "uint256"
|
1072
|
+
}
|
1073
|
+
],
|
1074
|
+
"stateMutability": "pure",
|
1032
1075
|
"type": "function"
|
1033
1076
|
},
|
1034
1077
|
{
|
1035
1078
|
"inputs": [
|
1036
1079
|
{
|
1037
|
-
"internalType": "
|
1038
|
-
"name": "
|
1039
|
-
"type": "
|
1040
|
-
},
|
1041
|
-
{
|
1042
|
-
"internalType": "address",
|
1043
|
-
"name": "member",
|
1044
|
-
"type": "address"
|
1080
|
+
"internalType": "uint256",
|
1081
|
+
"name": "a",
|
1082
|
+
"type": "uint256"
|
1045
1083
|
}
|
1046
1084
|
],
|
1047
|
-
"name": "
|
1085
|
+
"name": "getUFixed",
|
1048
1086
|
"outputs": [
|
1049
1087
|
{
|
1050
|
-
"internalType": "
|
1088
|
+
"internalType": "UFixed",
|
1051
1089
|
"name": "",
|
1052
|
-
"type": "
|
1090
|
+
"type": "uint256"
|
1053
1091
|
}
|
1054
1092
|
],
|
1055
|
-
"stateMutability": "
|
1093
|
+
"stateMutability": "pure",
|
1056
1094
|
"type": "function"
|
1057
1095
|
},
|
1058
1096
|
{
|
1059
1097
|
"inputs": [],
|
1060
|
-
"name": "
|
1098
|
+
"name": "getVersion",
|
1061
1099
|
"outputs": [
|
1062
1100
|
{
|
1063
|
-
"internalType": "
|
1101
|
+
"internalType": "Version",
|
1064
1102
|
"name": "",
|
1065
|
-
"type": "
|
1103
|
+
"type": "uint24"
|
1066
1104
|
}
|
1067
1105
|
],
|
1068
1106
|
"stateMutability": "pure",
|
1069
1107
|
"type": "function"
|
1070
1108
|
},
|
1109
|
+
{
|
1110
|
+
"inputs": [
|
1111
|
+
{
|
1112
|
+
"internalType": "uint256",
|
1113
|
+
"name": "index",
|
1114
|
+
"type": "uint256"
|
1115
|
+
}
|
1116
|
+
],
|
1117
|
+
"name": "getVersion",
|
1118
|
+
"outputs": [
|
1119
|
+
{
|
1120
|
+
"internalType": "Version",
|
1121
|
+
"name": "version",
|
1122
|
+
"type": "uint24"
|
1123
|
+
}
|
1124
|
+
],
|
1125
|
+
"stateMutability": "view",
|
1126
|
+
"type": "function"
|
1127
|
+
},
|
1071
1128
|
{
|
1072
1129
|
"inputs": [],
|
1073
|
-
"name": "
|
1130
|
+
"name": "getVersionCount",
|
1074
1131
|
"outputs": [
|
1075
1132
|
{
|
1076
|
-
"internalType": "
|
1077
|
-
"name": "",
|
1078
|
-
"type": "
|
1133
|
+
"internalType": "uint256",
|
1134
|
+
"name": "numberOfVersions",
|
1135
|
+
"type": "uint256"
|
1079
1136
|
}
|
1080
1137
|
],
|
1081
1138
|
"stateMutability": "view",
|
@@ -1084,85 +1141,138 @@
|
|
1084
1141
|
{
|
1085
1142
|
"inputs": [
|
1086
1143
|
{
|
1087
|
-
"internalType": "
|
1088
|
-
"name": "
|
1089
|
-
"type": "
|
1090
|
-
},
|
1091
|
-
{
|
1092
|
-
"internalType": "StateId",
|
1093
|
-
"name": "fromId",
|
1094
|
-
"type": "uint8"
|
1095
|
-
},
|
1096
|
-
{
|
1097
|
-
"internalType": "StateId",
|
1098
|
-
"name": "toId",
|
1099
|
-
"type": "uint8"
|
1144
|
+
"internalType": "Version",
|
1145
|
+
"name": "version",
|
1146
|
+
"type": "uint24"
|
1100
1147
|
}
|
1101
1148
|
],
|
1102
|
-
"name": "
|
1149
|
+
"name": "getVersionInfo",
|
1103
1150
|
"outputs": [
|
1104
1151
|
{
|
1105
|
-
"
|
1106
|
-
|
1107
|
-
|
1152
|
+
"components": [
|
1153
|
+
{
|
1154
|
+
"internalType": "Version",
|
1155
|
+
"name": "version",
|
1156
|
+
"type": "uint24"
|
1157
|
+
},
|
1158
|
+
{
|
1159
|
+
"internalType": "address",
|
1160
|
+
"name": "implementation",
|
1161
|
+
"type": "address"
|
1162
|
+
},
|
1163
|
+
{
|
1164
|
+
"internalType": "address",
|
1165
|
+
"name": "activatedBy",
|
1166
|
+
"type": "address"
|
1167
|
+
},
|
1168
|
+
{
|
1169
|
+
"internalType": "Timestamp",
|
1170
|
+
"name": "activatedAt",
|
1171
|
+
"type": "uint40"
|
1172
|
+
},
|
1173
|
+
{
|
1174
|
+
"internalType": "Blocknumber",
|
1175
|
+
"name": "activatedIn",
|
1176
|
+
"type": "uint32"
|
1177
|
+
}
|
1178
|
+
],
|
1179
|
+
"internalType": "struct IVersionable.VersionInfo",
|
1180
|
+
"name": "versionInfo",
|
1181
|
+
"type": "tuple"
|
1108
1182
|
}
|
1109
1183
|
],
|
1110
1184
|
"stateMutability": "view",
|
1111
1185
|
"type": "function"
|
1112
1186
|
},
|
1113
1187
|
{
|
1114
|
-
"inputs": [
|
1188
|
+
"inputs": [],
|
1189
|
+
"name": "getZeroFee",
|
1190
|
+
"outputs": [
|
1115
1191
|
{
|
1116
|
-
"
|
1117
|
-
|
1118
|
-
|
1192
|
+
"components": [
|
1193
|
+
{
|
1194
|
+
"internalType": "UFixed",
|
1195
|
+
"name": "fractionalFee",
|
1196
|
+
"type": "uint256"
|
1197
|
+
},
|
1198
|
+
{
|
1199
|
+
"internalType": "uint256",
|
1200
|
+
"name": "fixedFee",
|
1201
|
+
"type": "uint256"
|
1202
|
+
}
|
1203
|
+
],
|
1204
|
+
"internalType": "struct Fee",
|
1205
|
+
"name": "fee",
|
1206
|
+
"type": "tuple"
|
1119
1207
|
}
|
1120
1208
|
],
|
1121
|
-
"
|
1122
|
-
"outputs": [],
|
1123
|
-
"stateMutability": "nonpayable",
|
1209
|
+
"stateMutability": "pure",
|
1124
1210
|
"type": "function"
|
1125
1211
|
},
|
1126
1212
|
{
|
1127
1213
|
"inputs": [
|
1128
1214
|
{
|
1129
|
-
"internalType": "
|
1130
|
-
"name": "
|
1131
|
-
"type": "
|
1215
|
+
"internalType": "RoleId",
|
1216
|
+
"name": "role",
|
1217
|
+
"type": "bytes8"
|
1132
1218
|
},
|
1133
1219
|
{
|
1134
|
-
"internalType": "
|
1135
|
-
"name": "
|
1136
|
-
"type": "
|
1220
|
+
"internalType": "address",
|
1221
|
+
"name": "member",
|
1222
|
+
"type": "address"
|
1137
1223
|
}
|
1138
1224
|
],
|
1139
|
-
"name": "
|
1225
|
+
"name": "grantRole",
|
1140
1226
|
"outputs": [],
|
1141
1227
|
"stateMutability": "nonpayable",
|
1142
1228
|
"type": "function"
|
1143
1229
|
},
|
1144
1230
|
{
|
1145
|
-
"inputs": [
|
1146
|
-
|
1231
|
+
"inputs": [
|
1232
|
+
{
|
1233
|
+
"internalType": "RoleId",
|
1234
|
+
"name": "role",
|
1235
|
+
"type": "bytes8"
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
"internalType": "address",
|
1239
|
+
"name": "member",
|
1240
|
+
"type": "address"
|
1241
|
+
}
|
1242
|
+
],
|
1243
|
+
"name": "hasRole",
|
1147
1244
|
"outputs": [
|
1148
1245
|
{
|
1149
|
-
"internalType": "
|
1150
|
-
"name": "
|
1151
|
-
"type": "
|
1246
|
+
"internalType": "bool",
|
1247
|
+
"name": "hasRole",
|
1248
|
+
"type": "bool"
|
1152
1249
|
}
|
1153
1250
|
],
|
1154
|
-
"stateMutability": "
|
1251
|
+
"stateMutability": "view",
|
1155
1252
|
"type": "function"
|
1156
1253
|
},
|
1157
1254
|
{
|
1158
1255
|
"inputs": [
|
1159
1256
|
{
|
1160
|
-
"internalType": "
|
1161
|
-
"name": "
|
1162
|
-
"type": "
|
1257
|
+
"internalType": "Version",
|
1258
|
+
"name": "version",
|
1259
|
+
"type": "uint24"
|
1163
1260
|
}
|
1164
1261
|
],
|
1165
|
-
"name": "
|
1262
|
+
"name": "isActivated",
|
1263
|
+
"outputs": [
|
1264
|
+
{
|
1265
|
+
"internalType": "bool",
|
1266
|
+
"name": "",
|
1267
|
+
"type": "bool"
|
1268
|
+
}
|
1269
|
+
],
|
1270
|
+
"stateMutability": "view",
|
1271
|
+
"type": "function"
|
1272
|
+
},
|
1273
|
+
{
|
1274
|
+
"inputs": [],
|
1275
|
+
"name": "register",
|
1166
1276
|
"outputs": [
|
1167
1277
|
{
|
1168
1278
|
"internalType": "NftId",
|
@@ -1179,9 +1289,19 @@
|
|
1179
1289
|
"internalType": "NftId",
|
1180
1290
|
"name": "nftId",
|
1181
1291
|
"type": "uint96"
|
1292
|
+
},
|
1293
|
+
{
|
1294
|
+
"internalType": "ObjectType",
|
1295
|
+
"name": "objectType",
|
1296
|
+
"type": "uint8"
|
1297
|
+
},
|
1298
|
+
{
|
1299
|
+
"internalType": "contract IERC20Metadata",
|
1300
|
+
"name": "token",
|
1301
|
+
"type": "address"
|
1182
1302
|
}
|
1183
1303
|
],
|
1184
|
-
"name": "
|
1304
|
+
"name": "registerComponent",
|
1185
1305
|
"outputs": [],
|
1186
1306
|
"stateMutability": "nonpayable",
|
1187
1307
|
"type": "function"
|
@@ -1238,6 +1358,29 @@
|
|
1238
1358
|
"stateMutability": "nonpayable",
|
1239
1359
|
"type": "function"
|
1240
1360
|
},
|
1361
|
+
{
|
1362
|
+
"inputs": [
|
1363
|
+
{
|
1364
|
+
"internalType": "NftId",
|
1365
|
+
"name": "poolNftId",
|
1366
|
+
"type": "uint96"
|
1367
|
+
},
|
1368
|
+
{
|
1369
|
+
"internalType": "bool",
|
1370
|
+
"name": "isVerifying",
|
1371
|
+
"type": "bool"
|
1372
|
+
},
|
1373
|
+
{
|
1374
|
+
"internalType": "UFixed",
|
1375
|
+
"name": "collateralizationLevel",
|
1376
|
+
"type": "uint256"
|
1377
|
+
}
|
1378
|
+
],
|
1379
|
+
"name": "registerPool",
|
1380
|
+
"outputs": [],
|
1381
|
+
"stateMutability": "nonpayable",
|
1382
|
+
"type": "function"
|
1383
|
+
},
|
1241
1384
|
{
|
1242
1385
|
"inputs": [
|
1243
1386
|
{
|
@@ -1256,7 +1399,7 @@
|
|
1256
1399
|
"type": "uint96"
|
1257
1400
|
},
|
1258
1401
|
{
|
1259
|
-
"internalType": "contract
|
1402
|
+
"internalType": "contract IERC20Metadata",
|
1260
1403
|
"name": "token",
|
1261
1404
|
"type": "address"
|
1262
1405
|
},
|
@@ -1308,9 +1451,33 @@
|
|
1308
1451
|
{
|
1309
1452
|
"inputs": [
|
1310
1453
|
{
|
1311
|
-
"internalType": "
|
1454
|
+
"internalType": "NftId",
|
1455
|
+
"name": "bundleNftId",
|
1456
|
+
"type": "uint96"
|
1457
|
+
},
|
1458
|
+
{
|
1459
|
+
"internalType": "NftId",
|
1460
|
+
"name": "policyNftId",
|
1461
|
+
"type": "uint96"
|
1462
|
+
}
|
1463
|
+
],
|
1464
|
+
"name": "releasePolicy",
|
1465
|
+
"outputs": [
|
1466
|
+
{
|
1467
|
+
"internalType": "uint256",
|
1468
|
+
"name": "collateralAmount",
|
1469
|
+
"type": "uint256"
|
1470
|
+
}
|
1471
|
+
],
|
1472
|
+
"stateMutability": "nonpayable",
|
1473
|
+
"type": "function"
|
1474
|
+
},
|
1475
|
+
{
|
1476
|
+
"inputs": [
|
1477
|
+
{
|
1478
|
+
"internalType": "RoleId",
|
1312
1479
|
"name": "role",
|
1313
|
-
"type": "
|
1480
|
+
"type": "bytes8"
|
1314
1481
|
},
|
1315
1482
|
{
|
1316
1483
|
"internalType": "address",
|
@@ -1323,6 +1490,80 @@
|
|
1323
1490
|
"stateMutability": "nonpayable",
|
1324
1491
|
"type": "function"
|
1325
1492
|
},
|
1493
|
+
{
|
1494
|
+
"inputs": [
|
1495
|
+
{
|
1496
|
+
"internalType": "RoleId",
|
1497
|
+
"name": "role",
|
1498
|
+
"type": "bytes8"
|
1499
|
+
}
|
1500
|
+
],
|
1501
|
+
"name": "roleExists",
|
1502
|
+
"outputs": [
|
1503
|
+
{
|
1504
|
+
"internalType": "bool",
|
1505
|
+
"name": "",
|
1506
|
+
"type": "bool"
|
1507
|
+
}
|
1508
|
+
],
|
1509
|
+
"stateMutability": "view",
|
1510
|
+
"type": "function"
|
1511
|
+
},
|
1512
|
+
{
|
1513
|
+
"inputs": [
|
1514
|
+
{
|
1515
|
+
"components": [
|
1516
|
+
{
|
1517
|
+
"internalType": "NftId",
|
1518
|
+
"name": "nftId",
|
1519
|
+
"type": "uint96"
|
1520
|
+
},
|
1521
|
+
{
|
1522
|
+
"internalType": "NftId",
|
1523
|
+
"name": "poolNftId",
|
1524
|
+
"type": "uint96"
|
1525
|
+
},
|
1526
|
+
{
|
1527
|
+
"internalType": "bytes",
|
1528
|
+
"name": "filter",
|
1529
|
+
"type": "bytes"
|
1530
|
+
},
|
1531
|
+
{
|
1532
|
+
"internalType": "uint256",
|
1533
|
+
"name": "capitalAmount",
|
1534
|
+
"type": "uint256"
|
1535
|
+
},
|
1536
|
+
{
|
1537
|
+
"internalType": "uint256",
|
1538
|
+
"name": "lockedAmount",
|
1539
|
+
"type": "uint256"
|
1540
|
+
},
|
1541
|
+
{
|
1542
|
+
"internalType": "uint256",
|
1543
|
+
"name": "balanceAmount",
|
1544
|
+
"type": "uint256"
|
1545
|
+
},
|
1546
|
+
{
|
1547
|
+
"internalType": "Timestamp",
|
1548
|
+
"name": "expiredAt",
|
1549
|
+
"type": "uint40"
|
1550
|
+
},
|
1551
|
+
{
|
1552
|
+
"internalType": "Timestamp",
|
1553
|
+
"name": "closedAt",
|
1554
|
+
"type": "uint40"
|
1555
|
+
}
|
1556
|
+
],
|
1557
|
+
"internalType": "struct IBundle.BundleInfo",
|
1558
|
+
"name": "bundleInfo",
|
1559
|
+
"type": "tuple"
|
1560
|
+
}
|
1561
|
+
],
|
1562
|
+
"name": "setBundleInfo",
|
1563
|
+
"outputs": [],
|
1564
|
+
"stateMutability": "nonpayable",
|
1565
|
+
"type": "function"
|
1566
|
+
},
|
1326
1567
|
{
|
1327
1568
|
"inputs": [
|
1328
1569
|
{
|
@@ -1359,6 +1600,96 @@
|
|
1359
1600
|
"stateMutability": "nonpayable",
|
1360
1601
|
"type": "function"
|
1361
1602
|
},
|
1603
|
+
{
|
1604
|
+
"inputs": [
|
1605
|
+
{
|
1606
|
+
"components": [
|
1607
|
+
{
|
1608
|
+
"internalType": "NftId",
|
1609
|
+
"name": "nftId",
|
1610
|
+
"type": "uint96"
|
1611
|
+
},
|
1612
|
+
{
|
1613
|
+
"internalType": "NftId",
|
1614
|
+
"name": "productNftId",
|
1615
|
+
"type": "uint96"
|
1616
|
+
},
|
1617
|
+
{
|
1618
|
+
"internalType": "NftId",
|
1619
|
+
"name": "bundleNftId",
|
1620
|
+
"type": "uint96"
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
"internalType": "address",
|
1624
|
+
"name": "beneficiary",
|
1625
|
+
"type": "address"
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
"internalType": "StateId",
|
1629
|
+
"name": "state",
|
1630
|
+
"type": "uint8"
|
1631
|
+
},
|
1632
|
+
{
|
1633
|
+
"internalType": "uint256",
|
1634
|
+
"name": "sumInsuredAmount",
|
1635
|
+
"type": "uint256"
|
1636
|
+
},
|
1637
|
+
{
|
1638
|
+
"internalType": "uint256",
|
1639
|
+
"name": "premiumAmount",
|
1640
|
+
"type": "uint256"
|
1641
|
+
},
|
1642
|
+
{
|
1643
|
+
"internalType": "uint256",
|
1644
|
+
"name": "premiumPaidAmount",
|
1645
|
+
"type": "uint256"
|
1646
|
+
},
|
1647
|
+
{
|
1648
|
+
"internalType": "uint256",
|
1649
|
+
"name": "lifetime",
|
1650
|
+
"type": "uint256"
|
1651
|
+
},
|
1652
|
+
{
|
1653
|
+
"internalType": "bytes",
|
1654
|
+
"name": "data",
|
1655
|
+
"type": "bytes"
|
1656
|
+
},
|
1657
|
+
{
|
1658
|
+
"internalType": "Timestamp",
|
1659
|
+
"name": "createdAt",
|
1660
|
+
"type": "uint40"
|
1661
|
+
},
|
1662
|
+
{
|
1663
|
+
"internalType": "Timestamp",
|
1664
|
+
"name": "activatedAt",
|
1665
|
+
"type": "uint40"
|
1666
|
+
},
|
1667
|
+
{
|
1668
|
+
"internalType": "Timestamp",
|
1669
|
+
"name": "expiredAt",
|
1670
|
+
"type": "uint40"
|
1671
|
+
},
|
1672
|
+
{
|
1673
|
+
"internalType": "Timestamp",
|
1674
|
+
"name": "closedAt",
|
1675
|
+
"type": "uint40"
|
1676
|
+
},
|
1677
|
+
{
|
1678
|
+
"internalType": "Blocknumber",
|
1679
|
+
"name": "updatedIn",
|
1680
|
+
"type": "uint32"
|
1681
|
+
}
|
1682
|
+
],
|
1683
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1684
|
+
"name": "policyInfo",
|
1685
|
+
"type": "tuple"
|
1686
|
+
}
|
1687
|
+
],
|
1688
|
+
"name": "setPolicyInfo",
|
1689
|
+
"outputs": [],
|
1690
|
+
"stateMutability": "nonpayable",
|
1691
|
+
"type": "function"
|
1692
|
+
},
|
1362
1693
|
{
|
1363
1694
|
"inputs": [
|
1364
1695
|
{
|
@@ -1453,20 +1784,76 @@
|
|
1453
1784
|
"stateMutability": "nonpayable",
|
1454
1785
|
"type": "function"
|
1455
1786
|
},
|
1787
|
+
{
|
1788
|
+
"inputs": [
|
1789
|
+
{
|
1790
|
+
"internalType": "RoleId",
|
1791
|
+
"name": "role",
|
1792
|
+
"type": "bytes8"
|
1793
|
+
},
|
1794
|
+
{
|
1795
|
+
"internalType": "bool",
|
1796
|
+
"name": "active",
|
1797
|
+
"type": "bool"
|
1798
|
+
}
|
1799
|
+
],
|
1800
|
+
"name": "setRoleState",
|
1801
|
+
"outputs": [],
|
1802
|
+
"stateMutability": "nonpayable",
|
1803
|
+
"type": "function"
|
1804
|
+
},
|
1805
|
+
{
|
1806
|
+
"inputs": [
|
1807
|
+
{
|
1808
|
+
"internalType": "bytes4",
|
1809
|
+
"name": "interfaceId",
|
1810
|
+
"type": "bytes4"
|
1811
|
+
}
|
1812
|
+
],
|
1813
|
+
"name": "supportsInterface",
|
1814
|
+
"outputs": [
|
1815
|
+
{
|
1816
|
+
"internalType": "bool",
|
1817
|
+
"name": "",
|
1818
|
+
"type": "bool"
|
1819
|
+
}
|
1820
|
+
],
|
1821
|
+
"stateMutability": "view",
|
1822
|
+
"type": "function"
|
1823
|
+
},
|
1456
1824
|
{
|
1457
1825
|
"inputs": [
|
1458
1826
|
{
|
1459
1827
|
"internalType": "NftId",
|
1460
|
-
"name": "
|
1828
|
+
"name": "bundleNftId",
|
1461
1829
|
"type": "uint96"
|
1462
|
-
}
|
1830
|
+
}
|
1831
|
+
],
|
1832
|
+
"name": "toBundleKey32",
|
1833
|
+
"outputs": [
|
1834
|
+
{
|
1835
|
+
"internalType": "Key32",
|
1836
|
+
"name": "key32",
|
1837
|
+
"type": "bytes32"
|
1838
|
+
}
|
1839
|
+
],
|
1840
|
+
"stateMutability": "view",
|
1841
|
+
"type": "function"
|
1842
|
+
},
|
1843
|
+
{
|
1844
|
+
"inputs": [
|
1463
1845
|
{
|
1464
1846
|
"internalType": "NftId",
|
1465
|
-
"name": "
|
1847
|
+
"name": "bundleNftId",
|
1466
1848
|
"type": "uint96"
|
1849
|
+
},
|
1850
|
+
{
|
1851
|
+
"internalType": "StateId",
|
1852
|
+
"name": "state",
|
1853
|
+
"type": "uint8"
|
1467
1854
|
}
|
1468
1855
|
],
|
1469
|
-
"name": "
|
1856
|
+
"name": "updateBundleState",
|
1470
1857
|
"outputs": [],
|
1471
1858
|
"stateMutability": "nonpayable",
|
1472
1859
|
"type": "function"
|