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