@etherisc/gif-next 0.0.2-cc253b3 → 0.0.2-ce2fc91-485
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +148 -7
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{Component.sol/Component.json → BaseComponent.sol/BaseComponent.json} +48 -53
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +48 -53
- 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/{IProduct.sol → IProductComponent.sol}/IProductComponent.json +139 -52
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +218 -44
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +144 -70
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
- 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 +1259 -235
- 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 +1516 -345
- 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} +137 -138
- 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/{component/IComponent.sol/IComponentContract.json → base/ServiceBase.sol/ServiceBase.json} +148 -27
- 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 +241 -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 +86 -90
- 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 +152 -112
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +152 -112
- 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 +57 -57
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +50 -63
- 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 +507 -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 +103 -77
- 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 +194 -69
- 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 +18 -63
- 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 +18 -63
- 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 +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 +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +91 -6
- 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 +77 -26
- package/contracts/experiment/errors/Require.sol +10 -5
- package/contracts/experiment/errors/Revert.sol +13 -8
- 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 +40 -8
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/Instance.sol +47 -43
- 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 +104 -0
- package/contracts/instance/module/component/IComponent.sol +63 -0
- package/contracts/instance/module/policy/IPolicy.sol +61 -0
- package/contracts/instance/module/policy/PolicyModule.sol +77 -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 +176 -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 +80 -94
- package/contracts/registry/IChainNft.sol +10 -7
- package/contracts/registry/IRegistry.sol +38 -51
- package/contracts/registry/IRegistryLinked.sol +8 -0
- package/contracts/registry/Registry.sol +310 -111
- 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 +55 -9
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +119 -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/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/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 -147
- package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
- package/artifacts/contracts/instance/component/IComponent.sol/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 -167
- 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 -12
- package/contracts/instance/access/Access.sol +0 -218
- package/contracts/instance/access/IAccess.sol +0 -83
- package/contracts/instance/component/ComponentModule.sol +0 -248
- package/contracts/instance/component/IComponent.sol +0 -95
- package/contracts/instance/policy/IPolicy.sol +0 -66
- package/contracts/instance/policy/PolicyModule.sol +0 -107
- package/contracts/instance/pool/IPoolModule.sol +0 -41
- package/contracts/instance/pool/PoolModule.sol +0 -86
- package/contracts/instance/product/IProductService.sol +0 -46
- package/contracts/instance/product/ProductService.sol +0 -108
@@ -8,71 +8,100 @@
|
|
8
8
|
"inputs": [
|
9
9
|
{
|
10
10
|
"indexed": false,
|
11
|
-
"internalType": "
|
12
|
-
"name": "
|
13
|
-
"type": "
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"indexed": false,
|
17
|
-
"internalType": "address",
|
18
|
-
"name": "module",
|
19
|
-
"type": "address"
|
11
|
+
"internalType": "RoleId",
|
12
|
+
"name": "role",
|
13
|
+
"type": "bytes8"
|
20
14
|
},
|
21
15
|
{
|
22
16
|
"indexed": false,
|
23
17
|
"internalType": "string",
|
24
|
-
"name": "
|
18
|
+
"name": "roleName",
|
25
19
|
"type": "string"
|
26
20
|
}
|
27
21
|
],
|
28
|
-
"name": "
|
22
|
+
"name": "LogAccessRoleCreated",
|
29
23
|
"type": "event"
|
30
24
|
},
|
31
25
|
{
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"outputs": [
|
26
|
+
"anonymous": false,
|
27
|
+
"inputs": [
|
35
28
|
{
|
36
|
-
"
|
29
|
+
"indexed": false,
|
30
|
+
"internalType": "RoleId",
|
37
31
|
"name": "role",
|
38
|
-
"type": "
|
32
|
+
"type": "bytes8"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"indexed": false,
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "member",
|
38
|
+
"type": "address"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"indexed": false,
|
42
|
+
"internalType": "bool",
|
43
|
+
"name": "isMember",
|
44
|
+
"type": "bool"
|
39
45
|
}
|
40
46
|
],
|
41
|
-
"
|
42
|
-
"type": "
|
47
|
+
"name": "LogAccessRoleGranted",
|
48
|
+
"type": "event"
|
43
49
|
},
|
44
50
|
{
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"outputs": [
|
51
|
+
"anonymous": false,
|
52
|
+
"inputs": [
|
48
53
|
{
|
49
|
-
"
|
54
|
+
"indexed": false,
|
55
|
+
"internalType": "RoleId",
|
50
56
|
"name": "role",
|
51
|
-
"type": "
|
57
|
+
"type": "bytes8"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"indexed": false,
|
61
|
+
"internalType": "bool",
|
62
|
+
"name": "active",
|
63
|
+
"type": "bool"
|
52
64
|
}
|
53
65
|
],
|
54
|
-
"
|
55
|
-
"type": "
|
66
|
+
"name": "LogAccessRoleStateSet",
|
67
|
+
"type": "event"
|
56
68
|
},
|
57
69
|
{
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"outputs": [
|
70
|
+
"anonymous": false,
|
71
|
+
"inputs": [
|
61
72
|
{
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
73
|
+
"indexed": false,
|
74
|
+
"internalType": "Version",
|
75
|
+
"name": "version",
|
76
|
+
"type": "uint24"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"indexed": false,
|
80
|
+
"internalType": "address",
|
81
|
+
"name": "implementation",
|
82
|
+
"type": "address"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"indexed": false,
|
86
|
+
"internalType": "address",
|
87
|
+
"name": "activatedBy",
|
88
|
+
"type": "address"
|
65
89
|
}
|
66
90
|
],
|
67
|
-
"
|
68
|
-
"type": "
|
91
|
+
"name": "LogVersionableActivated",
|
92
|
+
"type": "event"
|
69
93
|
},
|
70
94
|
{
|
71
95
|
"inputs": [
|
72
96
|
{
|
73
|
-
"internalType": "
|
74
|
-
"name": "
|
75
|
-
"type": "
|
97
|
+
"internalType": "address",
|
98
|
+
"name": "implementation",
|
99
|
+
"type": "address"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"internalType": "address",
|
103
|
+
"name": "activatedBy",
|
104
|
+
"type": "address"
|
76
105
|
}
|
77
106
|
],
|
78
107
|
"name": "activate",
|
@@ -81,56 +110,103 @@
|
|
81
110
|
"type": "function"
|
82
111
|
},
|
83
112
|
{
|
84
|
-
"inputs": [
|
85
|
-
|
86
|
-
|
113
|
+
"inputs": [
|
114
|
+
{
|
115
|
+
"internalType": "NftId",
|
116
|
+
"name": "bundleNftId",
|
117
|
+
"type": "uint96"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"internalType": "NftId",
|
121
|
+
"name": "poolNftId",
|
122
|
+
"type": "uint96"
|
123
|
+
},
|
87
124
|
{
|
88
125
|
"internalType": "uint256",
|
89
|
-
"name": "
|
126
|
+
"name": "amount",
|
90
127
|
"type": "uint256"
|
91
128
|
}
|
92
129
|
],
|
93
|
-
"
|
130
|
+
"name": "addBundleToPool",
|
131
|
+
"outputs": [],
|
132
|
+
"stateMutability": "nonpayable",
|
94
133
|
"type": "function"
|
95
134
|
},
|
96
135
|
{
|
97
136
|
"inputs": [
|
137
|
+
{
|
138
|
+
"internalType": "uint256",
|
139
|
+
"name": "amount",
|
140
|
+
"type": "uint256"
|
141
|
+
},
|
98
142
|
{
|
99
143
|
"components": [
|
100
144
|
{
|
101
|
-
"internalType": "
|
102
|
-
"name": "
|
103
|
-
"type": "
|
104
|
-
},
|
105
|
-
{
|
106
|
-
"internalType": "NftId",
|
107
|
-
"name": "parentNftId",
|
108
|
-
"type": "uint96"
|
145
|
+
"internalType": "UFixed",
|
146
|
+
"name": "fractionalFee",
|
147
|
+
"type": "uint256"
|
109
148
|
},
|
110
149
|
{
|
111
150
|
"internalType": "uint256",
|
112
|
-
"name": "
|
151
|
+
"name": "fixedFee",
|
113
152
|
"type": "uint256"
|
114
|
-
},
|
115
|
-
{
|
116
|
-
"internalType": "address",
|
117
|
-
"name": "objectAddress",
|
118
|
-
"type": "address"
|
119
|
-
},
|
120
|
-
{
|
121
|
-
"internalType": "address",
|
122
|
-
"name": "initialOwner",
|
123
|
-
"type": "address"
|
124
153
|
}
|
125
154
|
],
|
126
|
-
"internalType": "struct
|
127
|
-
"name": "
|
155
|
+
"internalType": "struct Fee",
|
156
|
+
"name": "fee",
|
128
157
|
"type": "tuple"
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"name": "calculateFeeAmount",
|
161
|
+
"outputs": [
|
162
|
+
{
|
163
|
+
"internalType": "uint256",
|
164
|
+
"name": "feeAmount",
|
165
|
+
"type": "uint256"
|
129
166
|
},
|
130
167
|
{
|
131
|
-
"internalType": "
|
132
|
-
"name": "
|
133
|
-
"type": "
|
168
|
+
"internalType": "uint256",
|
169
|
+
"name": "netAmount",
|
170
|
+
"type": "uint256"
|
171
|
+
}
|
172
|
+
],
|
173
|
+
"stateMutability": "pure",
|
174
|
+
"type": "function"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"inputs": [
|
178
|
+
{
|
179
|
+
"internalType": "NftId",
|
180
|
+
"name": "bundleNftId",
|
181
|
+
"type": "uint96"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"internalType": "NftId",
|
185
|
+
"name": "policyNftId",
|
186
|
+
"type": "uint96"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"internalType": "uint256",
|
190
|
+
"name": "amount",
|
191
|
+
"type": "uint256"
|
192
|
+
}
|
193
|
+
],
|
194
|
+
"name": "collateralizePolicy",
|
195
|
+
"outputs": [],
|
196
|
+
"stateMutability": "nonpayable",
|
197
|
+
"type": "function"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"inputs": [
|
201
|
+
{
|
202
|
+
"internalType": "NftId",
|
203
|
+
"name": "productNftId",
|
204
|
+
"type": "uint96"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"internalType": "NftId",
|
208
|
+
"name": "policyNftId",
|
209
|
+
"type": "uint96"
|
134
210
|
},
|
135
211
|
{
|
136
212
|
"internalType": "uint256",
|
@@ -154,13 +230,7 @@
|
|
154
230
|
}
|
155
231
|
],
|
156
232
|
"name": "createApplication",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "NftId",
|
160
|
-
"name": "nftId",
|
161
|
-
"type": "uint96"
|
162
|
-
}
|
163
|
-
],
|
233
|
+
"outputs": [],
|
164
234
|
"stateMutability": "nonpayable",
|
165
235
|
"type": "function"
|
166
236
|
},
|
@@ -168,21 +238,31 @@
|
|
168
238
|
"inputs": [
|
169
239
|
{
|
170
240
|
"internalType": "NftId",
|
171
|
-
"name": "
|
241
|
+
"name": "bundleNftId",
|
172
242
|
"type": "uint96"
|
173
243
|
},
|
174
244
|
{
|
175
|
-
"internalType": "
|
176
|
-
"name": "
|
177
|
-
"type": "
|
245
|
+
"internalType": "NftId",
|
246
|
+
"name": "poolNftId",
|
247
|
+
"type": "uint96"
|
178
248
|
},
|
179
249
|
{
|
180
|
-
"internalType": "
|
181
|
-
"name": "
|
182
|
-
"type": "
|
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"
|
183
263
|
}
|
184
264
|
],
|
185
|
-
"name": "
|
265
|
+
"name": "createBundleInfo",
|
186
266
|
"outputs": [],
|
187
267
|
"stateMutability": "nonpayable",
|
188
268
|
"type": "function"
|
@@ -198,9 +278,9 @@
|
|
198
278
|
"name": "createRole",
|
199
279
|
"outputs": [
|
200
280
|
{
|
201
|
-
"internalType": "
|
281
|
+
"internalType": "RoleId",
|
202
282
|
"name": "role",
|
203
|
-
"type": "
|
283
|
+
"type": "bytes8"
|
204
284
|
}
|
205
285
|
],
|
206
286
|
"stateMutability": "nonpayable",
|
@@ -209,43 +289,78 @@
|
|
209
289
|
{
|
210
290
|
"inputs": [
|
211
291
|
{
|
212
|
-
"internalType": "
|
213
|
-
"name": "
|
214
|
-
"type": "
|
292
|
+
"internalType": "NftId",
|
293
|
+
"name": "poolNftId",
|
294
|
+
"type": "uint96"
|
215
295
|
}
|
216
296
|
],
|
217
|
-
"name": "
|
218
|
-
"outputs": [
|
219
|
-
"stateMutability": "nonpayable",
|
220
|
-
"type": "function"
|
221
|
-
},
|
222
|
-
{
|
223
|
-
"inputs": [
|
297
|
+
"name": "getBundleCount",
|
298
|
+
"outputs": [
|
224
299
|
{
|
225
|
-
"internalType": "
|
226
|
-
"name": "
|
227
|
-
"type": "
|
300
|
+
"internalType": "uint256",
|
301
|
+
"name": "bundleCount",
|
302
|
+
"type": "uint256"
|
228
303
|
}
|
229
304
|
],
|
230
|
-
"
|
231
|
-
"outputs": [],
|
232
|
-
"stateMutability": "nonpayable",
|
305
|
+
"stateMutability": "view",
|
233
306
|
"type": "function"
|
234
307
|
},
|
235
308
|
{
|
236
309
|
"inputs": [
|
237
310
|
{
|
238
311
|
"internalType": "NftId",
|
239
|
-
"name": "
|
312
|
+
"name": "bundleNftId",
|
240
313
|
"type": "uint96"
|
241
314
|
}
|
242
315
|
],
|
243
|
-
"name": "
|
316
|
+
"name": "getBundleInfo",
|
244
317
|
"outputs": [
|
245
318
|
{
|
246
|
-
"
|
247
|
-
|
248
|
-
|
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"
|
249
364
|
}
|
250
365
|
],
|
251
366
|
"stateMutability": "view",
|
@@ -254,16 +369,21 @@
|
|
254
369
|
{
|
255
370
|
"inputs": [
|
256
371
|
{
|
257
|
-
"internalType": "
|
258
|
-
"name": "
|
259
|
-
"type": "
|
372
|
+
"internalType": "NftId",
|
373
|
+
"name": "poolNftId",
|
374
|
+
"type": "uint96"
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"internalType": "uint256",
|
378
|
+
"name": "index",
|
379
|
+
"type": "uint256"
|
260
380
|
}
|
261
381
|
],
|
262
|
-
"name": "
|
382
|
+
"name": "getBundleNftId",
|
263
383
|
"outputs": [
|
264
384
|
{
|
265
385
|
"internalType": "NftId",
|
266
|
-
"name": "
|
386
|
+
"name": "bundleNftId",
|
267
387
|
"type": "uint96"
|
268
388
|
}
|
269
389
|
],
|
@@ -271,7 +391,20 @@
|
|
271
391
|
"type": "function"
|
272
392
|
},
|
273
393
|
{
|
274
|
-
"inputs": [
|
394
|
+
"inputs": [],
|
395
|
+
"name": "getComponentCount",
|
396
|
+
"outputs": [
|
397
|
+
{
|
398
|
+
"internalType": "uint256",
|
399
|
+
"name": "numberOfCompnents",
|
400
|
+
"type": "uint256"
|
401
|
+
}
|
402
|
+
],
|
403
|
+
"stateMutability": "view",
|
404
|
+
"type": "function"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"inputs": [
|
275
408
|
{
|
276
409
|
"internalType": "uint256",
|
277
410
|
"name": "idx",
|
@@ -307,9 +440,9 @@
|
|
307
440
|
"type": "uint96"
|
308
441
|
},
|
309
442
|
{
|
310
|
-
"internalType": "
|
311
|
-
"name": "
|
312
|
-
"type": "
|
443
|
+
"internalType": "contract IERC20Metadata",
|
444
|
+
"name": "token",
|
445
|
+
"type": "address"
|
313
446
|
}
|
314
447
|
],
|
315
448
|
"internalType": "struct IComponent.ComponentInfo",
|
@@ -320,6 +453,19 @@
|
|
320
453
|
"stateMutability": "view",
|
321
454
|
"type": "function"
|
322
455
|
},
|
456
|
+
{
|
457
|
+
"inputs": [],
|
458
|
+
"name": "getComponentOwnerService",
|
459
|
+
"outputs": [
|
460
|
+
{
|
461
|
+
"internalType": "contract IComponentOwnerService",
|
462
|
+
"name": "",
|
463
|
+
"type": "address"
|
464
|
+
}
|
465
|
+
],
|
466
|
+
"stateMutability": "view",
|
467
|
+
"type": "function"
|
468
|
+
},
|
323
469
|
{
|
324
470
|
"inputs": [
|
325
471
|
{
|
@@ -328,12 +474,12 @@
|
|
328
474
|
"type": "uint96"
|
329
475
|
}
|
330
476
|
],
|
331
|
-
"name": "
|
477
|
+
"name": "getComponentState",
|
332
478
|
"outputs": [
|
333
479
|
{
|
334
|
-
"internalType": "
|
335
|
-
"name": "
|
336
|
-
"type": "
|
480
|
+
"internalType": "StateId",
|
481
|
+
"name": "state",
|
482
|
+
"type": "uint8"
|
337
483
|
}
|
338
484
|
],
|
339
485
|
"stateMutability": "view",
|
@@ -341,37 +487,60 @@
|
|
341
487
|
},
|
342
488
|
{
|
343
489
|
"inputs": [],
|
344
|
-
"name": "
|
490
|
+
"name": "getData",
|
345
491
|
"outputs": [
|
346
492
|
{
|
347
|
-
"internalType": "
|
348
|
-
"name": "",
|
349
|
-
"type": "
|
493
|
+
"internalType": "bytes",
|
494
|
+
"name": "data",
|
495
|
+
"type": "bytes"
|
350
496
|
}
|
351
497
|
],
|
352
498
|
"stateMutability": "view",
|
353
499
|
"type": "function"
|
354
500
|
},
|
355
501
|
{
|
356
|
-
"inputs": [
|
357
|
-
|
502
|
+
"inputs": [
|
503
|
+
{
|
504
|
+
"internalType": "UFixed",
|
505
|
+
"name": "fractionalFee",
|
506
|
+
"type": "uint256"
|
507
|
+
},
|
508
|
+
{
|
509
|
+
"internalType": "uint256",
|
510
|
+
"name": "fixedFee",
|
511
|
+
"type": "uint256"
|
512
|
+
}
|
513
|
+
],
|
514
|
+
"name": "getFee",
|
358
515
|
"outputs": [
|
359
516
|
{
|
360
|
-
"
|
361
|
-
|
362
|
-
|
517
|
+
"components": [
|
518
|
+
{
|
519
|
+
"internalType": "UFixed",
|
520
|
+
"name": "fractionalFee",
|
521
|
+
"type": "uint256"
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"internalType": "uint256",
|
525
|
+
"name": "fixedFee",
|
526
|
+
"type": "uint256"
|
527
|
+
}
|
528
|
+
],
|
529
|
+
"internalType": "struct Fee",
|
530
|
+
"name": "fee",
|
531
|
+
"type": "tuple"
|
363
532
|
}
|
364
533
|
],
|
365
|
-
"stateMutability": "
|
534
|
+
"stateMutability": "pure",
|
366
535
|
"type": "function"
|
367
536
|
},
|
368
537
|
{
|
369
538
|
"inputs": [],
|
370
|
-
"name": "
|
539
|
+
"name": "getKeyValueStore",
|
371
540
|
"outputs": [
|
372
541
|
{
|
373
|
-
"internalType": "
|
374
|
-
"name": "
|
542
|
+
"internalType": "contract IKeyValueStore",
|
543
|
+
"name": "keyValueStore",
|
375
544
|
"type": "address"
|
376
545
|
}
|
377
546
|
],
|
@@ -410,7 +579,7 @@
|
|
410
579
|
"outputs": [
|
411
580
|
{
|
412
581
|
"internalType": "NftId",
|
413
|
-
"name": "
|
582
|
+
"name": "nftId",
|
414
583
|
"type": "uint96"
|
415
584
|
}
|
416
585
|
],
|
@@ -435,7 +604,22 @@
|
|
435
604
|
"type": "uint96"
|
436
605
|
},
|
437
606
|
{
|
438
|
-
"internalType": "
|
607
|
+
"internalType": "NftId",
|
608
|
+
"name": "productNftId",
|
609
|
+
"type": "uint96"
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"internalType": "NftId",
|
613
|
+
"name": "bundleNftId",
|
614
|
+
"type": "uint96"
|
615
|
+
},
|
616
|
+
{
|
617
|
+
"internalType": "address",
|
618
|
+
"name": "beneficiary",
|
619
|
+
"type": "address"
|
620
|
+
},
|
621
|
+
{
|
622
|
+
"internalType": "StateId",
|
439
623
|
"name": "state",
|
440
624
|
"type": "uint8"
|
441
625
|
},
|
@@ -451,28 +635,48 @@
|
|
451
635
|
},
|
452
636
|
{
|
453
637
|
"internalType": "uint256",
|
454
|
-
"name": "
|
638
|
+
"name": "premiumPaidAmount",
|
455
639
|
"type": "uint256"
|
456
640
|
},
|
457
641
|
{
|
458
642
|
"internalType": "uint256",
|
459
|
-
"name": "
|
643
|
+
"name": "lifetime",
|
460
644
|
"type": "uint256"
|
461
645
|
},
|
462
646
|
{
|
463
|
-
"internalType": "
|
647
|
+
"internalType": "bytes",
|
648
|
+
"name": "applicationData",
|
649
|
+
"type": "bytes"
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"internalType": "bytes",
|
653
|
+
"name": "policyData",
|
654
|
+
"type": "bytes"
|
655
|
+
},
|
656
|
+
{
|
657
|
+
"internalType": "Timestamp",
|
658
|
+
"name": "createdAt",
|
659
|
+
"type": "uint40"
|
660
|
+
},
|
661
|
+
{
|
662
|
+
"internalType": "Timestamp",
|
464
663
|
"name": "activatedAt",
|
465
|
-
"type": "
|
664
|
+
"type": "uint40"
|
466
665
|
},
|
467
666
|
{
|
468
|
-
"internalType": "
|
667
|
+
"internalType": "Timestamp",
|
469
668
|
"name": "expiredAt",
|
470
|
-
"type": "
|
669
|
+
"type": "uint40"
|
471
670
|
},
|
472
671
|
{
|
473
|
-
"internalType": "
|
672
|
+
"internalType": "Timestamp",
|
474
673
|
"name": "closedAt",
|
475
|
-
"type": "
|
674
|
+
"type": "uint40"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"internalType": "Blocknumber",
|
678
|
+
"name": "updatedIn",
|
679
|
+
"type": "uint32"
|
476
680
|
}
|
477
681
|
],
|
478
682
|
"internalType": "struct IPolicy.PolicyInfo",
|
@@ -501,23 +705,13 @@
|
|
501
705
|
"type": "uint96"
|
502
706
|
},
|
503
707
|
{
|
504
|
-
"internalType": "
|
505
|
-
"name": "
|
506
|
-
"type": "
|
507
|
-
},
|
508
|
-
{
|
509
|
-
"internalType": "address",
|
510
|
-
"name": "token",
|
511
|
-
"type": "address"
|
512
|
-
},
|
513
|
-
{
|
514
|
-
"internalType": "uint256",
|
515
|
-
"name": "capital",
|
516
|
-
"type": "uint256"
|
708
|
+
"internalType": "bool",
|
709
|
+
"name": "isVerifying",
|
710
|
+
"type": "bool"
|
517
711
|
},
|
518
712
|
{
|
519
|
-
"internalType": "
|
520
|
-
"name": "
|
713
|
+
"internalType": "UFixed",
|
714
|
+
"name": "collateralizationLevel",
|
521
715
|
"type": "uint256"
|
522
716
|
}
|
523
717
|
],
|
@@ -529,20 +723,79 @@
|
|
529
723
|
"stateMutability": "view",
|
530
724
|
"type": "function"
|
531
725
|
},
|
726
|
+
{
|
727
|
+
"inputs": [],
|
728
|
+
"name": "getPoolService",
|
729
|
+
"outputs": [
|
730
|
+
{
|
731
|
+
"internalType": "contract IPoolService",
|
732
|
+
"name": "",
|
733
|
+
"type": "address"
|
734
|
+
}
|
735
|
+
],
|
736
|
+
"stateMutability": "view",
|
737
|
+
"type": "function"
|
738
|
+
},
|
532
739
|
{
|
533
740
|
"inputs": [
|
534
741
|
{
|
535
742
|
"internalType": "NftId",
|
536
|
-
"name": "
|
743
|
+
"name": "poolNftId",
|
537
744
|
"type": "uint96"
|
538
745
|
}
|
539
746
|
],
|
540
|
-
"name": "
|
747
|
+
"name": "getPoolSetup",
|
541
748
|
"outputs": [
|
542
749
|
{
|
543
|
-
"
|
544
|
-
|
545
|
-
|
750
|
+
"components": [
|
751
|
+
{
|
752
|
+
"internalType": "NftId",
|
753
|
+
"name": "poolNftId",
|
754
|
+
"type": "uint96"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"internalType": "address",
|
758
|
+
"name": "wallet",
|
759
|
+
"type": "address"
|
760
|
+
},
|
761
|
+
{
|
762
|
+
"components": [
|
763
|
+
{
|
764
|
+
"internalType": "UFixed",
|
765
|
+
"name": "fractionalFee",
|
766
|
+
"type": "uint256"
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"internalType": "uint256",
|
770
|
+
"name": "fixedFee",
|
771
|
+
"type": "uint256"
|
772
|
+
}
|
773
|
+
],
|
774
|
+
"internalType": "struct Fee",
|
775
|
+
"name": "stakingFee",
|
776
|
+
"type": "tuple"
|
777
|
+
},
|
778
|
+
{
|
779
|
+
"components": [
|
780
|
+
{
|
781
|
+
"internalType": "UFixed",
|
782
|
+
"name": "fractionalFee",
|
783
|
+
"type": "uint256"
|
784
|
+
},
|
785
|
+
{
|
786
|
+
"internalType": "uint256",
|
787
|
+
"name": "fixedFee",
|
788
|
+
"type": "uint256"
|
789
|
+
}
|
790
|
+
],
|
791
|
+
"internalType": "struct Fee",
|
792
|
+
"name": "performanceFee",
|
793
|
+
"type": "tuple"
|
794
|
+
}
|
795
|
+
],
|
796
|
+
"internalType": "struct ITreasury.PoolSetup",
|
797
|
+
"name": "setup",
|
798
|
+
"type": "tuple"
|
546
799
|
}
|
547
800
|
],
|
548
801
|
"stateMutability": "view",
|
@@ -561,6 +814,86 @@
|
|
561
814
|
"stateMutability": "view",
|
562
815
|
"type": "function"
|
563
816
|
},
|
817
|
+
{
|
818
|
+
"inputs": [
|
819
|
+
{
|
820
|
+
"internalType": "NftId",
|
821
|
+
"name": "productNftId",
|
822
|
+
"type": "uint96"
|
823
|
+
}
|
824
|
+
],
|
825
|
+
"name": "getProductSetup",
|
826
|
+
"outputs": [
|
827
|
+
{
|
828
|
+
"components": [
|
829
|
+
{
|
830
|
+
"internalType": "NftId",
|
831
|
+
"name": "productNftId",
|
832
|
+
"type": "uint96"
|
833
|
+
},
|
834
|
+
{
|
835
|
+
"internalType": "NftId",
|
836
|
+
"name": "distributorNftId",
|
837
|
+
"type": "uint96"
|
838
|
+
},
|
839
|
+
{
|
840
|
+
"internalType": "NftId",
|
841
|
+
"name": "poolNftId",
|
842
|
+
"type": "uint96"
|
843
|
+
},
|
844
|
+
{
|
845
|
+
"internalType": "contract IERC20Metadata",
|
846
|
+
"name": "token",
|
847
|
+
"type": "address"
|
848
|
+
},
|
849
|
+
{
|
850
|
+
"internalType": "address",
|
851
|
+
"name": "wallet",
|
852
|
+
"type": "address"
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"components": [
|
856
|
+
{
|
857
|
+
"internalType": "UFixed",
|
858
|
+
"name": "fractionalFee",
|
859
|
+
"type": "uint256"
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"internalType": "uint256",
|
863
|
+
"name": "fixedFee",
|
864
|
+
"type": "uint256"
|
865
|
+
}
|
866
|
+
],
|
867
|
+
"internalType": "struct Fee",
|
868
|
+
"name": "policyFee",
|
869
|
+
"type": "tuple"
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"components": [
|
873
|
+
{
|
874
|
+
"internalType": "UFixed",
|
875
|
+
"name": "fractionalFee",
|
876
|
+
"type": "uint256"
|
877
|
+
},
|
878
|
+
{
|
879
|
+
"internalType": "uint256",
|
880
|
+
"name": "fixedFee",
|
881
|
+
"type": "uint256"
|
882
|
+
}
|
883
|
+
],
|
884
|
+
"internalType": "struct Fee",
|
885
|
+
"name": "processingFee",
|
886
|
+
"type": "tuple"
|
887
|
+
}
|
888
|
+
],
|
889
|
+
"internalType": "struct ITreasury.ProductSetup",
|
890
|
+
"name": "setup",
|
891
|
+
"type": "tuple"
|
892
|
+
}
|
893
|
+
],
|
894
|
+
"stateMutability": "view",
|
895
|
+
"type": "function"
|
896
|
+
},
|
564
897
|
{
|
565
898
|
"inputs": [],
|
566
899
|
"name": "getRegistry",
|
@@ -585,9 +918,9 @@
|
|
585
918
|
"name": "getRole",
|
586
919
|
"outputs": [
|
587
920
|
{
|
588
|
-
"internalType": "
|
921
|
+
"internalType": "RoleId",
|
589
922
|
"name": "role",
|
590
|
-
"type": "
|
923
|
+
"type": "bytes8"
|
591
924
|
}
|
592
925
|
],
|
593
926
|
"stateMutability": "view",
|
@@ -614,12 +947,12 @@
|
|
614
947
|
"type": "string"
|
615
948
|
}
|
616
949
|
],
|
617
|
-
"name": "
|
950
|
+
"name": "getRoleId",
|
618
951
|
"outputs": [
|
619
952
|
{
|
620
|
-
"internalType": "
|
953
|
+
"internalType": "RoleId",
|
621
954
|
"name": "role",
|
622
|
-
"type": "
|
955
|
+
"type": "bytes8"
|
623
956
|
}
|
624
957
|
],
|
625
958
|
"stateMutability": "pure",
|
@@ -628,9 +961,9 @@
|
|
628
961
|
{
|
629
962
|
"inputs": [
|
630
963
|
{
|
631
|
-
"internalType": "
|
964
|
+
"internalType": "RoleId",
|
632
965
|
"name": "role",
|
633
|
-
"type": "
|
966
|
+
"type": "bytes8"
|
634
967
|
}
|
635
968
|
],
|
636
969
|
"name": "getRoleInfo",
|
@@ -638,9 +971,9 @@
|
|
638
971
|
{
|
639
972
|
"components": [
|
640
973
|
{
|
641
|
-
"internalType": "
|
974
|
+
"internalType": "RoleId",
|
642
975
|
"name": "id",
|
643
|
-
"type": "
|
976
|
+
"type": "bytes8"
|
644
977
|
},
|
645
978
|
{
|
646
979
|
"internalType": "string",
|
@@ -664,9 +997,9 @@
|
|
664
997
|
{
|
665
998
|
"inputs": [
|
666
999
|
{
|
667
|
-
"internalType": "
|
1000
|
+
"internalType": "RoleId",
|
668
1001
|
"name": "role",
|
669
|
-
"type": "
|
1002
|
+
"type": "bytes8"
|
670
1003
|
},
|
671
1004
|
{
|
672
1005
|
"internalType": "uint256",
|
@@ -678,7 +1011,7 @@
|
|
678
1011
|
"outputs": [
|
679
1012
|
{
|
680
1013
|
"internalType": "address",
|
681
|
-
"name": "
|
1014
|
+
"name": "roleMember",
|
682
1015
|
"type": "address"
|
683
1016
|
}
|
684
1017
|
],
|
@@ -688,9 +1021,9 @@
|
|
688
1021
|
{
|
689
1022
|
"inputs": [
|
690
1023
|
{
|
691
|
-
"internalType": "
|
1024
|
+
"internalType": "RoleId",
|
692
1025
|
"name": "role",
|
693
|
-
"type": "
|
1026
|
+
"type": "bytes8"
|
694
1027
|
}
|
695
1028
|
],
|
696
1029
|
"name": "getRoleMemberCount",
|
@@ -705,68 +1038,75 @@
|
|
705
1038
|
"type": "function"
|
706
1039
|
},
|
707
1040
|
{
|
708
|
-
"inputs": [
|
709
|
-
|
1041
|
+
"inputs": [
|
1042
|
+
{
|
1043
|
+
"internalType": "NftId",
|
1044
|
+
"name": "componentNftId",
|
1045
|
+
"type": "uint96"
|
1046
|
+
}
|
1047
|
+
],
|
1048
|
+
"name": "getTokenHandler",
|
710
1049
|
"outputs": [
|
711
1050
|
{
|
712
|
-
"internalType": "
|
713
|
-
"name": "
|
714
|
-
"type": "
|
1051
|
+
"internalType": "contract TokenHandler",
|
1052
|
+
"name": "tokenHandler",
|
1053
|
+
"type": "address"
|
715
1054
|
}
|
716
1055
|
],
|
717
1056
|
"stateMutability": "view",
|
718
1057
|
"type": "function"
|
719
1058
|
},
|
720
1059
|
{
|
721
|
-
"inputs": [
|
722
|
-
|
723
|
-
|
724
|
-
"name": "role",
|
725
|
-
"type": "bytes32"
|
726
|
-
},
|
1060
|
+
"inputs": [],
|
1061
|
+
"name": "getType",
|
1062
|
+
"outputs": [
|
727
1063
|
{
|
728
|
-
"internalType": "
|
729
|
-
"name": "
|
730
|
-
"type": "
|
1064
|
+
"internalType": "ObjectType",
|
1065
|
+
"name": "objectType",
|
1066
|
+
"type": "uint8"
|
731
1067
|
}
|
732
1068
|
],
|
733
|
-
"
|
734
|
-
"outputs": [],
|
735
|
-
"stateMutability": "nonpayable",
|
1069
|
+
"stateMutability": "pure",
|
736
1070
|
"type": "function"
|
737
1071
|
},
|
738
1072
|
{
|
739
1073
|
"inputs": [
|
740
1074
|
{
|
741
|
-
"internalType": "
|
742
|
-
"name": "
|
743
|
-
"type": "
|
1075
|
+
"internalType": "uint256",
|
1076
|
+
"name": "a",
|
1077
|
+
"type": "uint256"
|
744
1078
|
},
|
745
1079
|
{
|
746
|
-
"internalType": "
|
747
|
-
"name": "
|
748
|
-
"type": "
|
1080
|
+
"internalType": "int8",
|
1081
|
+
"name": "exp",
|
1082
|
+
"type": "int8"
|
749
1083
|
}
|
750
1084
|
],
|
751
|
-
"name": "
|
1085
|
+
"name": "getUFixed",
|
752
1086
|
"outputs": [
|
753
1087
|
{
|
754
|
-
"internalType": "
|
1088
|
+
"internalType": "UFixed",
|
755
1089
|
"name": "",
|
756
|
-
"type": "
|
1090
|
+
"type": "uint256"
|
757
1091
|
}
|
758
1092
|
],
|
759
|
-
"stateMutability": "
|
1093
|
+
"stateMutability": "pure",
|
760
1094
|
"type": "function"
|
761
1095
|
},
|
762
1096
|
{
|
763
|
-
"inputs": [
|
764
|
-
|
1097
|
+
"inputs": [
|
1098
|
+
{
|
1099
|
+
"internalType": "uint256",
|
1100
|
+
"name": "a",
|
1101
|
+
"type": "uint256"
|
1102
|
+
}
|
1103
|
+
],
|
1104
|
+
"name": "getUFixed",
|
765
1105
|
"outputs": [
|
766
1106
|
{
|
767
|
-
"internalType": "
|
1107
|
+
"internalType": "UFixed",
|
768
1108
|
"name": "",
|
769
|
-
"type": "
|
1109
|
+
"type": "uint256"
|
770
1110
|
}
|
771
1111
|
],
|
772
1112
|
"stateMutability": "pure",
|
@@ -774,39 +1114,184 @@
|
|
774
1114
|
},
|
775
1115
|
{
|
776
1116
|
"inputs": [],
|
777
|
-
"name": "
|
1117
|
+
"name": "getVersion",
|
778
1118
|
"outputs": [
|
779
1119
|
{
|
780
|
-
"internalType": "
|
1120
|
+
"internalType": "Version",
|
781
1121
|
"name": "",
|
782
|
-
"type": "
|
1122
|
+
"type": "uint24"
|
783
1123
|
}
|
784
1124
|
],
|
785
|
-
"stateMutability": "
|
1125
|
+
"stateMutability": "pure",
|
786
1126
|
"type": "function"
|
787
1127
|
},
|
788
1128
|
{
|
789
|
-
"inputs": [
|
790
|
-
"name": "register",
|
791
|
-
"outputs": [
|
1129
|
+
"inputs": [
|
792
1130
|
{
|
793
|
-
"internalType": "
|
794
|
-
"name": "
|
795
|
-
"type": "
|
1131
|
+
"internalType": "uint256",
|
1132
|
+
"name": "index",
|
1133
|
+
"type": "uint256"
|
1134
|
+
}
|
1135
|
+
],
|
1136
|
+
"name": "getVersion",
|
1137
|
+
"outputs": [
|
1138
|
+
{
|
1139
|
+
"internalType": "Version",
|
1140
|
+
"name": "version",
|
1141
|
+
"type": "uint24"
|
1142
|
+
}
|
1143
|
+
],
|
1144
|
+
"stateMutability": "view",
|
1145
|
+
"type": "function"
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
"inputs": [],
|
1149
|
+
"name": "getVersionCount",
|
1150
|
+
"outputs": [
|
1151
|
+
{
|
1152
|
+
"internalType": "uint256",
|
1153
|
+
"name": "numberOfVersions",
|
1154
|
+
"type": "uint256"
|
1155
|
+
}
|
1156
|
+
],
|
1157
|
+
"stateMutability": "view",
|
1158
|
+
"type": "function"
|
1159
|
+
},
|
1160
|
+
{
|
1161
|
+
"inputs": [
|
1162
|
+
{
|
1163
|
+
"internalType": "Version",
|
1164
|
+
"name": "version",
|
1165
|
+
"type": "uint24"
|
1166
|
+
}
|
1167
|
+
],
|
1168
|
+
"name": "getVersionInfo",
|
1169
|
+
"outputs": [
|
1170
|
+
{
|
1171
|
+
"components": [
|
1172
|
+
{
|
1173
|
+
"internalType": "Version",
|
1174
|
+
"name": "version",
|
1175
|
+
"type": "uint24"
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
"internalType": "address",
|
1179
|
+
"name": "implementation",
|
1180
|
+
"type": "address"
|
1181
|
+
},
|
1182
|
+
{
|
1183
|
+
"internalType": "address",
|
1184
|
+
"name": "activatedBy",
|
1185
|
+
"type": "address"
|
1186
|
+
},
|
1187
|
+
{
|
1188
|
+
"internalType": "Timestamp",
|
1189
|
+
"name": "activatedAt",
|
1190
|
+
"type": "uint40"
|
1191
|
+
},
|
1192
|
+
{
|
1193
|
+
"internalType": "Blocknumber",
|
1194
|
+
"name": "activatedIn",
|
1195
|
+
"type": "uint32"
|
1196
|
+
}
|
1197
|
+
],
|
1198
|
+
"internalType": "struct IVersionable.VersionInfo",
|
1199
|
+
"name": "versionInfo",
|
1200
|
+
"type": "tuple"
|
1201
|
+
}
|
1202
|
+
],
|
1203
|
+
"stateMutability": "view",
|
1204
|
+
"type": "function"
|
1205
|
+
},
|
1206
|
+
{
|
1207
|
+
"inputs": [],
|
1208
|
+
"name": "getZeroFee",
|
1209
|
+
"outputs": [
|
1210
|
+
{
|
1211
|
+
"components": [
|
1212
|
+
{
|
1213
|
+
"internalType": "UFixed",
|
1214
|
+
"name": "fractionalFee",
|
1215
|
+
"type": "uint256"
|
1216
|
+
},
|
1217
|
+
{
|
1218
|
+
"internalType": "uint256",
|
1219
|
+
"name": "fixedFee",
|
1220
|
+
"type": "uint256"
|
1221
|
+
}
|
1222
|
+
],
|
1223
|
+
"internalType": "struct Fee",
|
1224
|
+
"name": "fee",
|
1225
|
+
"type": "tuple"
|
1226
|
+
}
|
1227
|
+
],
|
1228
|
+
"stateMutability": "pure",
|
1229
|
+
"type": "function"
|
1230
|
+
},
|
1231
|
+
{
|
1232
|
+
"inputs": [
|
1233
|
+
{
|
1234
|
+
"internalType": "RoleId",
|
1235
|
+
"name": "role",
|
1236
|
+
"type": "bytes8"
|
1237
|
+
},
|
1238
|
+
{
|
1239
|
+
"internalType": "address",
|
1240
|
+
"name": "member",
|
1241
|
+
"type": "address"
|
796
1242
|
}
|
797
1243
|
],
|
1244
|
+
"name": "grantRole",
|
1245
|
+
"outputs": [],
|
798
1246
|
"stateMutability": "nonpayable",
|
799
1247
|
"type": "function"
|
800
1248
|
},
|
801
1249
|
{
|
802
1250
|
"inputs": [
|
803
1251
|
{
|
804
|
-
"internalType": "
|
805
|
-
"name": "
|
1252
|
+
"internalType": "RoleId",
|
1253
|
+
"name": "role",
|
1254
|
+
"type": "bytes8"
|
1255
|
+
},
|
1256
|
+
{
|
1257
|
+
"internalType": "address",
|
1258
|
+
"name": "member",
|
806
1259
|
"type": "address"
|
807
1260
|
}
|
808
1261
|
],
|
809
|
-
"name": "
|
1262
|
+
"name": "hasRole",
|
1263
|
+
"outputs": [
|
1264
|
+
{
|
1265
|
+
"internalType": "bool",
|
1266
|
+
"name": "hasRole",
|
1267
|
+
"type": "bool"
|
1268
|
+
}
|
1269
|
+
],
|
1270
|
+
"stateMutability": "view",
|
1271
|
+
"type": "function"
|
1272
|
+
},
|
1273
|
+
{
|
1274
|
+
"inputs": [
|
1275
|
+
{
|
1276
|
+
"internalType": "Version",
|
1277
|
+
"name": "version",
|
1278
|
+
"type": "uint24"
|
1279
|
+
}
|
1280
|
+
],
|
1281
|
+
"name": "isActivated",
|
1282
|
+
"outputs": [
|
1283
|
+
{
|
1284
|
+
"internalType": "bool",
|
1285
|
+
"name": "",
|
1286
|
+
"type": "bool"
|
1287
|
+
}
|
1288
|
+
],
|
1289
|
+
"stateMutability": "view",
|
1290
|
+
"type": "function"
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"inputs": [],
|
1294
|
+
"name": "register",
|
810
1295
|
"outputs": [
|
811
1296
|
{
|
812
1297
|
"internalType": "NftId",
|
@@ -820,66 +1305,605 @@
|
|
820
1305
|
{
|
821
1306
|
"inputs": [
|
822
1307
|
{
|
823
|
-
"internalType": "
|
824
|
-
"name": "
|
825
|
-
"type": "
|
1308
|
+
"internalType": "NftId",
|
1309
|
+
"name": "nftId",
|
1310
|
+
"type": "uint96"
|
826
1311
|
},
|
827
1312
|
{
|
828
|
-
"internalType": "
|
829
|
-
"name": "
|
1313
|
+
"internalType": "ObjectType",
|
1314
|
+
"name": "objectType",
|
1315
|
+
"type": "uint8"
|
1316
|
+
},
|
1317
|
+
{
|
1318
|
+
"internalType": "contract IERC20Metadata",
|
1319
|
+
"name": "token",
|
830
1320
|
"type": "address"
|
831
1321
|
}
|
832
1322
|
],
|
833
|
-
"name": "
|
1323
|
+
"name": "registerComponent",
|
834
1324
|
"outputs": [],
|
835
1325
|
"stateMutability": "nonpayable",
|
836
1326
|
"type": "function"
|
837
1327
|
},
|
838
1328
|
{
|
839
1329
|
"inputs": [
|
1330
|
+
{
|
1331
|
+
"internalType": "NftId",
|
1332
|
+
"name": "poolNftId",
|
1333
|
+
"type": "uint96"
|
1334
|
+
},
|
1335
|
+
{
|
1336
|
+
"internalType": "address",
|
1337
|
+
"name": "wallet",
|
1338
|
+
"type": "address"
|
1339
|
+
},
|
840
1340
|
{
|
841
1341
|
"components": [
|
842
1342
|
{
|
843
|
-
"internalType": "
|
844
|
-
"name": "
|
845
|
-
"type": "
|
1343
|
+
"internalType": "UFixed",
|
1344
|
+
"name": "fractionalFee",
|
1345
|
+
"type": "uint256"
|
846
1346
|
},
|
847
1347
|
{
|
848
|
-
"internalType": "
|
849
|
-
"name": "
|
850
|
-
"type": "
|
1348
|
+
"internalType": "uint256",
|
1349
|
+
"name": "fixedFee",
|
1350
|
+
"type": "uint256"
|
851
1351
|
}
|
852
1352
|
],
|
853
|
-
"internalType": "struct
|
854
|
-
"name": "
|
1353
|
+
"internalType": "struct Fee",
|
1354
|
+
"name": "stakingFee",
|
1355
|
+
"type": "tuple"
|
1356
|
+
},
|
1357
|
+
{
|
1358
|
+
"components": [
|
1359
|
+
{
|
1360
|
+
"internalType": "UFixed",
|
1361
|
+
"name": "fractionalFee",
|
1362
|
+
"type": "uint256"
|
1363
|
+
},
|
1364
|
+
{
|
1365
|
+
"internalType": "uint256",
|
1366
|
+
"name": "fixedFee",
|
1367
|
+
"type": "uint256"
|
1368
|
+
}
|
1369
|
+
],
|
1370
|
+
"internalType": "struct Fee",
|
1371
|
+
"name": "performanceFee",
|
855
1372
|
"type": "tuple"
|
856
1373
|
}
|
857
1374
|
],
|
858
|
-
"name": "
|
859
|
-
"outputs": [
|
1375
|
+
"name": "registerPool",
|
1376
|
+
"outputs": [],
|
1377
|
+
"stateMutability": "nonpayable",
|
1378
|
+
"type": "function"
|
1379
|
+
},
|
1380
|
+
{
|
1381
|
+
"inputs": [
|
860
1382
|
{
|
861
1383
|
"internalType": "NftId",
|
862
|
-
"name": "
|
1384
|
+
"name": "poolNftId",
|
863
1385
|
"type": "uint96"
|
1386
|
+
},
|
1387
|
+
{
|
1388
|
+
"internalType": "bool",
|
1389
|
+
"name": "isVerifying",
|
1390
|
+
"type": "bool"
|
1391
|
+
},
|
1392
|
+
{
|
1393
|
+
"internalType": "UFixed",
|
1394
|
+
"name": "collateralizationLevel",
|
1395
|
+
"type": "uint256"
|
864
1396
|
}
|
865
1397
|
],
|
1398
|
+
"name": "registerPool",
|
1399
|
+
"outputs": [],
|
866
1400
|
"stateMutability": "nonpayable",
|
867
1401
|
"type": "function"
|
868
1402
|
},
|
869
1403
|
{
|
870
1404
|
"inputs": [
|
1405
|
+
{
|
1406
|
+
"internalType": "NftId",
|
1407
|
+
"name": "productNftId",
|
1408
|
+
"type": "uint96"
|
1409
|
+
},
|
1410
|
+
{
|
1411
|
+
"internalType": "NftId",
|
1412
|
+
"name": "distributorNftId",
|
1413
|
+
"type": "uint96"
|
1414
|
+
},
|
871
1415
|
{
|
872
1416
|
"internalType": "NftId",
|
873
1417
|
"name": "poolNftId",
|
874
1418
|
"type": "uint96"
|
875
1419
|
},
|
1420
|
+
{
|
1421
|
+
"internalType": "contract IERC20Metadata",
|
1422
|
+
"name": "token",
|
1423
|
+
"type": "address"
|
1424
|
+
},
|
1425
|
+
{
|
1426
|
+
"internalType": "address",
|
1427
|
+
"name": "wallet",
|
1428
|
+
"type": "address"
|
1429
|
+
},
|
1430
|
+
{
|
1431
|
+
"components": [
|
1432
|
+
{
|
1433
|
+
"internalType": "UFixed",
|
1434
|
+
"name": "fractionalFee",
|
1435
|
+
"type": "uint256"
|
1436
|
+
},
|
1437
|
+
{
|
1438
|
+
"internalType": "uint256",
|
1439
|
+
"name": "fixedFee",
|
1440
|
+
"type": "uint256"
|
1441
|
+
}
|
1442
|
+
],
|
1443
|
+
"internalType": "struct Fee",
|
1444
|
+
"name": "policyFee",
|
1445
|
+
"type": "tuple"
|
1446
|
+
},
|
1447
|
+
{
|
1448
|
+
"components": [
|
1449
|
+
{
|
1450
|
+
"internalType": "UFixed",
|
1451
|
+
"name": "fractionalFee",
|
1452
|
+
"type": "uint256"
|
1453
|
+
},
|
1454
|
+
{
|
1455
|
+
"internalType": "uint256",
|
1456
|
+
"name": "fixedFee",
|
1457
|
+
"type": "uint256"
|
1458
|
+
}
|
1459
|
+
],
|
1460
|
+
"internalType": "struct Fee",
|
1461
|
+
"name": "processingFee",
|
1462
|
+
"type": "tuple"
|
1463
|
+
}
|
1464
|
+
],
|
1465
|
+
"name": "registerProduct",
|
1466
|
+
"outputs": [],
|
1467
|
+
"stateMutability": "nonpayable",
|
1468
|
+
"type": "function"
|
1469
|
+
},
|
1470
|
+
{
|
1471
|
+
"inputs": [
|
1472
|
+
{
|
1473
|
+
"internalType": "NftId",
|
1474
|
+
"name": "bundleNftId",
|
1475
|
+
"type": "uint96"
|
1476
|
+
},
|
876
1477
|
{
|
877
1478
|
"internalType": "NftId",
|
878
1479
|
"name": "policyNftId",
|
879
1480
|
"type": "uint96"
|
880
1481
|
}
|
881
1482
|
],
|
882
|
-
"name": "
|
1483
|
+
"name": "releasePolicy",
|
1484
|
+
"outputs": [
|
1485
|
+
{
|
1486
|
+
"internalType": "uint256",
|
1487
|
+
"name": "collateralAmount",
|
1488
|
+
"type": "uint256"
|
1489
|
+
}
|
1490
|
+
],
|
1491
|
+
"stateMutability": "nonpayable",
|
1492
|
+
"type": "function"
|
1493
|
+
},
|
1494
|
+
{
|
1495
|
+
"inputs": [
|
1496
|
+
{
|
1497
|
+
"internalType": "RoleId",
|
1498
|
+
"name": "role",
|
1499
|
+
"type": "bytes8"
|
1500
|
+
},
|
1501
|
+
{
|
1502
|
+
"internalType": "address",
|
1503
|
+
"name": "member",
|
1504
|
+
"type": "address"
|
1505
|
+
}
|
1506
|
+
],
|
1507
|
+
"name": "revokeRole",
|
1508
|
+
"outputs": [],
|
1509
|
+
"stateMutability": "nonpayable",
|
1510
|
+
"type": "function"
|
1511
|
+
},
|
1512
|
+
{
|
1513
|
+
"inputs": [
|
1514
|
+
{
|
1515
|
+
"internalType": "RoleId",
|
1516
|
+
"name": "role",
|
1517
|
+
"type": "bytes8"
|
1518
|
+
}
|
1519
|
+
],
|
1520
|
+
"name": "roleExists",
|
1521
|
+
"outputs": [
|
1522
|
+
{
|
1523
|
+
"internalType": "bool",
|
1524
|
+
"name": "",
|
1525
|
+
"type": "bool"
|
1526
|
+
}
|
1527
|
+
],
|
1528
|
+
"stateMutability": "view",
|
1529
|
+
"type": "function"
|
1530
|
+
},
|
1531
|
+
{
|
1532
|
+
"inputs": [
|
1533
|
+
{
|
1534
|
+
"components": [
|
1535
|
+
{
|
1536
|
+
"internalType": "NftId",
|
1537
|
+
"name": "nftId",
|
1538
|
+
"type": "uint96"
|
1539
|
+
},
|
1540
|
+
{
|
1541
|
+
"internalType": "NftId",
|
1542
|
+
"name": "poolNftId",
|
1543
|
+
"type": "uint96"
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"internalType": "bytes",
|
1547
|
+
"name": "filter",
|
1548
|
+
"type": "bytes"
|
1549
|
+
},
|
1550
|
+
{
|
1551
|
+
"internalType": "uint256",
|
1552
|
+
"name": "capitalAmount",
|
1553
|
+
"type": "uint256"
|
1554
|
+
},
|
1555
|
+
{
|
1556
|
+
"internalType": "uint256",
|
1557
|
+
"name": "lockedAmount",
|
1558
|
+
"type": "uint256"
|
1559
|
+
},
|
1560
|
+
{
|
1561
|
+
"internalType": "uint256",
|
1562
|
+
"name": "balanceAmount",
|
1563
|
+
"type": "uint256"
|
1564
|
+
},
|
1565
|
+
{
|
1566
|
+
"internalType": "Timestamp",
|
1567
|
+
"name": "expiredAt",
|
1568
|
+
"type": "uint40"
|
1569
|
+
},
|
1570
|
+
{
|
1571
|
+
"internalType": "Timestamp",
|
1572
|
+
"name": "closedAt",
|
1573
|
+
"type": "uint40"
|
1574
|
+
}
|
1575
|
+
],
|
1576
|
+
"internalType": "struct IBundle.BundleInfo",
|
1577
|
+
"name": "bundleInfo",
|
1578
|
+
"type": "tuple"
|
1579
|
+
}
|
1580
|
+
],
|
1581
|
+
"name": "setBundleInfo",
|
1582
|
+
"outputs": [],
|
1583
|
+
"stateMutability": "nonpayable",
|
1584
|
+
"type": "function"
|
1585
|
+
},
|
1586
|
+
{
|
1587
|
+
"inputs": [
|
1588
|
+
{
|
1589
|
+
"components": [
|
1590
|
+
{
|
1591
|
+
"internalType": "NftId",
|
1592
|
+
"name": "nftId",
|
1593
|
+
"type": "uint96"
|
1594
|
+
},
|
1595
|
+
{
|
1596
|
+
"internalType": "contract IERC20Metadata",
|
1597
|
+
"name": "token",
|
1598
|
+
"type": "address"
|
1599
|
+
}
|
1600
|
+
],
|
1601
|
+
"internalType": "struct IComponent.ComponentInfo",
|
1602
|
+
"name": "info",
|
1603
|
+
"type": "tuple"
|
1604
|
+
}
|
1605
|
+
],
|
1606
|
+
"name": "setComponentInfo",
|
1607
|
+
"outputs": [],
|
1608
|
+
"stateMutability": "nonpayable",
|
1609
|
+
"type": "function"
|
1610
|
+
},
|
1611
|
+
{
|
1612
|
+
"inputs": [
|
1613
|
+
{
|
1614
|
+
"components": [
|
1615
|
+
{
|
1616
|
+
"internalType": "NftId",
|
1617
|
+
"name": "nftId",
|
1618
|
+
"type": "uint96"
|
1619
|
+
},
|
1620
|
+
{
|
1621
|
+
"internalType": "NftId",
|
1622
|
+
"name": "productNftId",
|
1623
|
+
"type": "uint96"
|
1624
|
+
},
|
1625
|
+
{
|
1626
|
+
"internalType": "NftId",
|
1627
|
+
"name": "bundleNftId",
|
1628
|
+
"type": "uint96"
|
1629
|
+
},
|
1630
|
+
{
|
1631
|
+
"internalType": "address",
|
1632
|
+
"name": "beneficiary",
|
1633
|
+
"type": "address"
|
1634
|
+
},
|
1635
|
+
{
|
1636
|
+
"internalType": "StateId",
|
1637
|
+
"name": "state",
|
1638
|
+
"type": "uint8"
|
1639
|
+
},
|
1640
|
+
{
|
1641
|
+
"internalType": "uint256",
|
1642
|
+
"name": "sumInsuredAmount",
|
1643
|
+
"type": "uint256"
|
1644
|
+
},
|
1645
|
+
{
|
1646
|
+
"internalType": "uint256",
|
1647
|
+
"name": "premiumAmount",
|
1648
|
+
"type": "uint256"
|
1649
|
+
},
|
1650
|
+
{
|
1651
|
+
"internalType": "uint256",
|
1652
|
+
"name": "premiumPaidAmount",
|
1653
|
+
"type": "uint256"
|
1654
|
+
},
|
1655
|
+
{
|
1656
|
+
"internalType": "uint256",
|
1657
|
+
"name": "lifetime",
|
1658
|
+
"type": "uint256"
|
1659
|
+
},
|
1660
|
+
{
|
1661
|
+
"internalType": "bytes",
|
1662
|
+
"name": "applicationData",
|
1663
|
+
"type": "bytes"
|
1664
|
+
},
|
1665
|
+
{
|
1666
|
+
"internalType": "bytes",
|
1667
|
+
"name": "policyData",
|
1668
|
+
"type": "bytes"
|
1669
|
+
},
|
1670
|
+
{
|
1671
|
+
"internalType": "Timestamp",
|
1672
|
+
"name": "createdAt",
|
1673
|
+
"type": "uint40"
|
1674
|
+
},
|
1675
|
+
{
|
1676
|
+
"internalType": "Timestamp",
|
1677
|
+
"name": "activatedAt",
|
1678
|
+
"type": "uint40"
|
1679
|
+
},
|
1680
|
+
{
|
1681
|
+
"internalType": "Timestamp",
|
1682
|
+
"name": "expiredAt",
|
1683
|
+
"type": "uint40"
|
1684
|
+
},
|
1685
|
+
{
|
1686
|
+
"internalType": "Timestamp",
|
1687
|
+
"name": "closedAt",
|
1688
|
+
"type": "uint40"
|
1689
|
+
},
|
1690
|
+
{
|
1691
|
+
"internalType": "Blocknumber",
|
1692
|
+
"name": "updatedIn",
|
1693
|
+
"type": "uint32"
|
1694
|
+
}
|
1695
|
+
],
|
1696
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1697
|
+
"name": "policyInfo",
|
1698
|
+
"type": "tuple"
|
1699
|
+
}
|
1700
|
+
],
|
1701
|
+
"name": "setPolicyInfo",
|
1702
|
+
"outputs": [],
|
1703
|
+
"stateMutability": "nonpayable",
|
1704
|
+
"type": "function"
|
1705
|
+
},
|
1706
|
+
{
|
1707
|
+
"inputs": [
|
1708
|
+
{
|
1709
|
+
"internalType": "NftId",
|
1710
|
+
"name": "poolNftId",
|
1711
|
+
"type": "uint96"
|
1712
|
+
},
|
1713
|
+
{
|
1714
|
+
"components": [
|
1715
|
+
{
|
1716
|
+
"internalType": "UFixed",
|
1717
|
+
"name": "fractionalFee",
|
1718
|
+
"type": "uint256"
|
1719
|
+
},
|
1720
|
+
{
|
1721
|
+
"internalType": "uint256",
|
1722
|
+
"name": "fixedFee",
|
1723
|
+
"type": "uint256"
|
1724
|
+
}
|
1725
|
+
],
|
1726
|
+
"internalType": "struct Fee",
|
1727
|
+
"name": "stakingFee",
|
1728
|
+
"type": "tuple"
|
1729
|
+
},
|
1730
|
+
{
|
1731
|
+
"components": [
|
1732
|
+
{
|
1733
|
+
"internalType": "UFixed",
|
1734
|
+
"name": "fractionalFee",
|
1735
|
+
"type": "uint256"
|
1736
|
+
},
|
1737
|
+
{
|
1738
|
+
"internalType": "uint256",
|
1739
|
+
"name": "fixedFee",
|
1740
|
+
"type": "uint256"
|
1741
|
+
}
|
1742
|
+
],
|
1743
|
+
"internalType": "struct Fee",
|
1744
|
+
"name": "performanceFee",
|
1745
|
+
"type": "tuple"
|
1746
|
+
}
|
1747
|
+
],
|
1748
|
+
"name": "setPoolFees",
|
1749
|
+
"outputs": [],
|
1750
|
+
"stateMutability": "nonpayable",
|
1751
|
+
"type": "function"
|
1752
|
+
},
|
1753
|
+
{
|
1754
|
+
"inputs": [
|
1755
|
+
{
|
1756
|
+
"internalType": "NftId",
|
1757
|
+
"name": "productNftId",
|
1758
|
+
"type": "uint96"
|
1759
|
+
},
|
1760
|
+
{
|
1761
|
+
"components": [
|
1762
|
+
{
|
1763
|
+
"internalType": "UFixed",
|
1764
|
+
"name": "fractionalFee",
|
1765
|
+
"type": "uint256"
|
1766
|
+
},
|
1767
|
+
{
|
1768
|
+
"internalType": "uint256",
|
1769
|
+
"name": "fixedFee",
|
1770
|
+
"type": "uint256"
|
1771
|
+
}
|
1772
|
+
],
|
1773
|
+
"internalType": "struct Fee",
|
1774
|
+
"name": "policyFee",
|
1775
|
+
"type": "tuple"
|
1776
|
+
},
|
1777
|
+
{
|
1778
|
+
"components": [
|
1779
|
+
{
|
1780
|
+
"internalType": "UFixed",
|
1781
|
+
"name": "fractionalFee",
|
1782
|
+
"type": "uint256"
|
1783
|
+
},
|
1784
|
+
{
|
1785
|
+
"internalType": "uint256",
|
1786
|
+
"name": "fixedFee",
|
1787
|
+
"type": "uint256"
|
1788
|
+
}
|
1789
|
+
],
|
1790
|
+
"internalType": "struct Fee",
|
1791
|
+
"name": "processingFee",
|
1792
|
+
"type": "tuple"
|
1793
|
+
}
|
1794
|
+
],
|
1795
|
+
"name": "setProductFees",
|
1796
|
+
"outputs": [],
|
1797
|
+
"stateMutability": "nonpayable",
|
1798
|
+
"type": "function"
|
1799
|
+
},
|
1800
|
+
{
|
1801
|
+
"inputs": [
|
1802
|
+
{
|
1803
|
+
"internalType": "RoleId",
|
1804
|
+
"name": "role",
|
1805
|
+
"type": "bytes8"
|
1806
|
+
},
|
1807
|
+
{
|
1808
|
+
"internalType": "bool",
|
1809
|
+
"name": "active",
|
1810
|
+
"type": "bool"
|
1811
|
+
}
|
1812
|
+
],
|
1813
|
+
"name": "setRoleState",
|
1814
|
+
"outputs": [],
|
1815
|
+
"stateMutability": "nonpayable",
|
1816
|
+
"type": "function"
|
1817
|
+
},
|
1818
|
+
{
|
1819
|
+
"inputs": [
|
1820
|
+
{
|
1821
|
+
"internalType": "bytes4",
|
1822
|
+
"name": "interfaceId",
|
1823
|
+
"type": "bytes4"
|
1824
|
+
}
|
1825
|
+
],
|
1826
|
+
"name": "supportsInterface",
|
1827
|
+
"outputs": [
|
1828
|
+
{
|
1829
|
+
"internalType": "bool",
|
1830
|
+
"name": "",
|
1831
|
+
"type": "bool"
|
1832
|
+
}
|
1833
|
+
],
|
1834
|
+
"stateMutability": "view",
|
1835
|
+
"type": "function"
|
1836
|
+
},
|
1837
|
+
{
|
1838
|
+
"inputs": [
|
1839
|
+
{
|
1840
|
+
"internalType": "NftId",
|
1841
|
+
"name": "bundleNftId",
|
1842
|
+
"type": "uint96"
|
1843
|
+
}
|
1844
|
+
],
|
1845
|
+
"name": "toBundleKey32",
|
1846
|
+
"outputs": [
|
1847
|
+
{
|
1848
|
+
"internalType": "Key32",
|
1849
|
+
"name": "key32",
|
1850
|
+
"type": "bytes32"
|
1851
|
+
}
|
1852
|
+
],
|
1853
|
+
"stateMutability": "view",
|
1854
|
+
"type": "function"
|
1855
|
+
},
|
1856
|
+
{
|
1857
|
+
"inputs": [
|
1858
|
+
{
|
1859
|
+
"internalType": "NftId",
|
1860
|
+
"name": "nftId",
|
1861
|
+
"type": "uint96"
|
1862
|
+
}
|
1863
|
+
],
|
1864
|
+
"name": "toComponentKey32",
|
1865
|
+
"outputs": [
|
1866
|
+
{
|
1867
|
+
"internalType": "Key32",
|
1868
|
+
"name": "key32",
|
1869
|
+
"type": "bytes32"
|
1870
|
+
}
|
1871
|
+
],
|
1872
|
+
"stateMutability": "view",
|
1873
|
+
"type": "function"
|
1874
|
+
},
|
1875
|
+
{
|
1876
|
+
"inputs": [
|
1877
|
+
{
|
1878
|
+
"internalType": "NftId",
|
1879
|
+
"name": "bundleNftId",
|
1880
|
+
"type": "uint96"
|
1881
|
+
},
|
1882
|
+
{
|
1883
|
+
"internalType": "StateId",
|
1884
|
+
"name": "state",
|
1885
|
+
"type": "uint8"
|
1886
|
+
}
|
1887
|
+
],
|
1888
|
+
"name": "updateBundleState",
|
1889
|
+
"outputs": [],
|
1890
|
+
"stateMutability": "nonpayable",
|
1891
|
+
"type": "function"
|
1892
|
+
},
|
1893
|
+
{
|
1894
|
+
"inputs": [
|
1895
|
+
{
|
1896
|
+
"internalType": "NftId",
|
1897
|
+
"name": "nftId",
|
1898
|
+
"type": "uint96"
|
1899
|
+
},
|
1900
|
+
{
|
1901
|
+
"internalType": "StateId",
|
1902
|
+
"name": "state",
|
1903
|
+
"type": "uint8"
|
1904
|
+
}
|
1905
|
+
],
|
1906
|
+
"name": "updateComponentState",
|
883
1907
|
"outputs": [],
|
884
1908
|
"stateMutability": "nonpayable",
|
885
1909
|
"type": "function"
|