@etherisc/gif-next 0.0.2-81f8acb → 0.0.2-8210648-816
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +193 -6
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +301 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +557 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
- package/artifacts/contracts/{instance/component/IComponent.sol/IComponentModule.json → components/IBaseComponent.sol/IBaseComponent.json} +124 -115
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +177 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +308 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +207 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +543 -40
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +433 -50
- 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 +1844 -487
- 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 +2051 -435
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +481 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -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 +421 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +544 -0
- 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 +468 -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 +297 -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 +297 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +117 -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/{product/IProductService.sol/IProductService.json → module/component/IComponent.sol/IComponentModule.json} +56 -53
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -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 +148 -108
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +148 -108
- 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 +74 -59
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
- package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +64 -62
- 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 +113 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -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 +638 -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 +638 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +794 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +630 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +466 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +561 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +751 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +753 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1068 -0
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +194 -2
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +357 -72
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +745 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +573 -79
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +997 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +468 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- 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/INftOwnable.sol/INftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +201 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +274 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +557 -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 +716 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +744 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +305 -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 +584 -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 +270 -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 +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
- 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 +257 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -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 +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +64 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +88 -62
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
- package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -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 +79 -0
- package/contracts/components/Distribution.sol +155 -0
- package/contracts/components/IBaseComponent.sol +19 -0
- package/contracts/components/IDistributionComponent.sol +46 -0
- package/contracts/components/IPoolComponent.sol +64 -0
- package/contracts/components/IProductComponent.sol +37 -0
- package/contracts/components/Pool.sol +235 -18
- package/contracts/components/Product.sol +268 -35
- 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/SM.sol +57 -0
- package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
- package/contracts/experiment/types/TypeA.sol +14 -9
- package/contracts/experiment/types/TypeB.sol +14 -9
- package/contracts/instance/IInstance.sol +42 -8
- package/contracts/instance/IInstanceLinked.sol +8 -0
- package/contracts/instance/Instance.sol +64 -41
- package/contracts/instance/base/ComponentServiceBase.sol +49 -0
- package/contracts/instance/base/IInstanceBase.sol +23 -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 +89 -0
- package/contracts/instance/base/KeyValueStore.sol +161 -0
- package/contracts/instance/base/Lifecycle.sol +100 -0
- package/contracts/instance/base/ModuleBase.sol +57 -0
- package/contracts/instance/base/ServiceBase.sol +44 -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 +134 -0
- package/contracts/instance/module/bundle/IBundle.sol +53 -0
- package/contracts/instance/module/component/ComponentModule.sol +71 -0
- package/contracts/instance/module/component/IComponent.sol +28 -0
- package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
- package/contracts/instance/module/distribution/IDistribution.sol +10 -0
- package/contracts/instance/module/policy/IPolicy.sol +63 -0
- package/contracts/instance/module/policy/PolicyModule.sol +91 -0
- package/contracts/instance/module/pool/IPoolModule.sol +41 -0
- package/contracts/instance/module/pool/PoolModule.sol +95 -0
- package/contracts/instance/module/risk/IRisk.sol +26 -0
- package/contracts/instance/module/risk/RiskModule.sol +62 -0
- package/contracts/instance/module/treasury/ITreasury.sol +84 -0
- package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
- package/contracts/instance/module/treasury/TreasuryModule.sol +131 -0
- package/contracts/instance/service/ComponentOwnerService.sol +275 -0
- package/contracts/instance/service/DistributionService.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +20 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +37 -0
- package/contracts/instance/service/IProductService.sol +107 -0
- package/contracts/instance/service/PoolService.sol +149 -0
- package/contracts/instance/service/ProductService.sol +510 -0
- package/contracts/registry/ChainNft.sol +111 -97
- package/contracts/registry/IChainNft.sol +13 -9
- package/contracts/registry/IRegistry.sol +59 -56
- package/contracts/registry/IRegistryService.sol +29 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +430 -121
- package/contracts/registry/RegistryService.sol +368 -0
- package/contracts/registry/RegistryServiceManager.sol +43 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +21 -0
- package/contracts/shared/INftOwnable.sol +22 -0
- package/contracts/shared/IRegisterable.sol +17 -0
- package/contracts/shared/IVersionable.sol +96 -0
- package/contracts/shared/NftOwnable.sol +136 -0
- package/contracts/shared/ProxyManager.sol +94 -0
- package/contracts/shared/Registerable.sol +89 -0
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +147 -0
- package/contracts/test/TestDistribution.sol +22 -0
- package/contracts/test/TestFee.sol +25 -0
- package/contracts/test/TestPool.sol +27 -0
- package/contracts/test/TestProduct.sol +74 -0
- package/contracts/test/TestRegisterable.sol +18 -0
- package/contracts/test/TestRoleId.sol +14 -0
- package/contracts/test/TestService.sol +26 -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 +76 -18
- package/contracts/types/ChainId.sol +18 -10
- package/contracts/types/Fee.sol +56 -0
- package/contracts/types/Key32.sol +45 -0
- package/contracts/types/NftId.sol +48 -11
- package/contracts/types/NftIdSet.sol +60 -0
- package/contracts/types/ObjectType.sol +131 -0
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +38 -0
- package/contracts/types/StateId.sol +101 -0
- package/contracts/types/Timestamp.sol +85 -17
- package/contracts/types/UFixed.sol +74 -76
- package/contracts/types/Version.sol +104 -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/IPool.sol/IPoolComponent.json +0 -179
- 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/ComponentModule.json +0 -327
- 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/IComponentContract.json +0 -179
- 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/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 -167
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
- 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/Registerable.json +0 -166
- 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
@@ -3,67 +3,1103 @@
|
|
3
3
|
"contractName": "IInstance",
|
4
4
|
"sourceName": "contracts/instance/IInstance.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "registry",
|
11
|
+
"type": "address"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "NftId",
|
15
|
+
"name": "nftId",
|
16
|
+
"type": "uint96"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "ErrorAlreadyLinked",
|
20
|
+
"type": "error"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"internalType": "address",
|
26
|
+
"name": "contractAddress",
|
27
|
+
"type": "address"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name": "ErrorContractNotRegistered",
|
31
|
+
"type": "error"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"inputs": [
|
35
|
+
{
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "account",
|
38
|
+
"type": "address"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "ErrorNotOwner",
|
42
|
+
"type": "error"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"inputs": [
|
46
|
+
{
|
47
|
+
"internalType": "address",
|
48
|
+
"name": "registryAddress",
|
49
|
+
"type": "address"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"name": "ErrorNotRegistry",
|
53
|
+
"type": "error"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"inputs": [],
|
57
|
+
"name": "ErrorRegistryAddressZero",
|
58
|
+
"type": "error"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"inputs": [
|
62
|
+
{
|
63
|
+
"internalType": "address",
|
64
|
+
"name": "registry",
|
65
|
+
"type": "address"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"name": "ErrorRegistryAlreadyInitialized",
|
69
|
+
"type": "error"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"inputs": [],
|
73
|
+
"name": "ErrorRegistryNotInitialized",
|
74
|
+
"type": "error"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"anonymous": false,
|
78
|
+
"inputs": [
|
79
|
+
{
|
80
|
+
"indexed": false,
|
81
|
+
"internalType": "RoleId",
|
82
|
+
"name": "role",
|
83
|
+
"type": "bytes8"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"indexed": false,
|
87
|
+
"internalType": "string",
|
88
|
+
"name": "roleName",
|
89
|
+
"type": "string"
|
90
|
+
}
|
91
|
+
],
|
92
|
+
"name": "LogAccessRoleCreated",
|
93
|
+
"type": "event"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"anonymous": false,
|
97
|
+
"inputs": [
|
98
|
+
{
|
99
|
+
"indexed": false,
|
100
|
+
"internalType": "RoleId",
|
101
|
+
"name": "role",
|
102
|
+
"type": "bytes8"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"indexed": false,
|
106
|
+
"internalType": "address",
|
107
|
+
"name": "member",
|
108
|
+
"type": "address"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"indexed": false,
|
112
|
+
"internalType": "bool",
|
113
|
+
"name": "isMember",
|
114
|
+
"type": "bool"
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"name": "LogAccessRoleGranted",
|
118
|
+
"type": "event"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"anonymous": false,
|
122
|
+
"inputs": [
|
123
|
+
{
|
124
|
+
"indexed": false,
|
125
|
+
"internalType": "RoleId",
|
126
|
+
"name": "role",
|
127
|
+
"type": "bytes8"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"indexed": false,
|
131
|
+
"internalType": "bool",
|
132
|
+
"name": "active",
|
133
|
+
"type": "bool"
|
134
|
+
}
|
135
|
+
],
|
136
|
+
"name": "LogAccessRoleStateSet",
|
137
|
+
"type": "event"
|
138
|
+
},
|
6
139
|
{
|
7
140
|
"anonymous": false,
|
8
141
|
"inputs": [
|
9
142
|
{
|
10
|
-
"indexed": false,
|
143
|
+
"indexed": false,
|
144
|
+
"internalType": "Version",
|
145
|
+
"name": "version",
|
146
|
+
"type": "uint24"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"indexed": false,
|
150
|
+
"internalType": "address",
|
151
|
+
"name": "implementation",
|
152
|
+
"type": "address"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"indexed": false,
|
156
|
+
"internalType": "address",
|
157
|
+
"name": "activatedBy",
|
158
|
+
"type": "address"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"name": "LogVersionableInitialized",
|
162
|
+
"type": "event"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"inputs": [
|
166
|
+
{
|
167
|
+
"internalType": "NftId",
|
168
|
+
"name": "bundleNftId",
|
169
|
+
"type": "uint96"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"internalType": "NftId",
|
173
|
+
"name": "poolNftId",
|
174
|
+
"type": "uint96"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"internalType": "uint256",
|
178
|
+
"name": "amount",
|
179
|
+
"type": "uint256"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"name": "addBundleToPool",
|
183
|
+
"outputs": [],
|
184
|
+
"stateMutability": "nonpayable",
|
185
|
+
"type": "function"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"inputs": [
|
189
|
+
{
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "amount",
|
192
|
+
"type": "uint256"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"components": [
|
196
|
+
{
|
197
|
+
"internalType": "UFixed",
|
198
|
+
"name": "fractionalFee",
|
199
|
+
"type": "uint256"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"internalType": "uint256",
|
203
|
+
"name": "fixedFee",
|
204
|
+
"type": "uint256"
|
205
|
+
}
|
206
|
+
],
|
207
|
+
"internalType": "struct Fee",
|
208
|
+
"name": "fee",
|
209
|
+
"type": "tuple"
|
210
|
+
}
|
211
|
+
],
|
212
|
+
"name": "calculateFeeAmount",
|
213
|
+
"outputs": [
|
214
|
+
{
|
215
|
+
"internalType": "uint256",
|
216
|
+
"name": "feeAmount",
|
217
|
+
"type": "uint256"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"internalType": "uint256",
|
221
|
+
"name": "netAmount",
|
222
|
+
"type": "uint256"
|
223
|
+
}
|
224
|
+
],
|
225
|
+
"stateMutability": "pure",
|
226
|
+
"type": "function"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"inputs": [
|
230
|
+
{
|
231
|
+
"internalType": "NftId",
|
232
|
+
"name": "bundleNftId",
|
233
|
+
"type": "uint96"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"internalType": "NftId",
|
237
|
+
"name": "policyNftId",
|
238
|
+
"type": "uint96"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"internalType": "uint256",
|
242
|
+
"name": "amount",
|
243
|
+
"type": "uint256"
|
244
|
+
}
|
245
|
+
],
|
246
|
+
"name": "collateralizePolicy",
|
247
|
+
"outputs": [],
|
248
|
+
"stateMutability": "nonpayable",
|
249
|
+
"type": "function"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"inputs": [
|
253
|
+
{
|
254
|
+
"internalType": "NftId",
|
255
|
+
"name": "bundleNftId",
|
256
|
+
"type": "uint96"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"internalType": "NftId",
|
260
|
+
"name": "poolNftId",
|
261
|
+
"type": "uint96"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"components": [
|
265
|
+
{
|
266
|
+
"internalType": "UFixed",
|
267
|
+
"name": "fractionalFee",
|
268
|
+
"type": "uint256"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"internalType": "uint256",
|
272
|
+
"name": "fixedFee",
|
273
|
+
"type": "uint256"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"internalType": "struct Fee",
|
277
|
+
"name": "fee",
|
278
|
+
"type": "tuple"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"internalType": "uint256",
|
282
|
+
"name": "amount",
|
283
|
+
"type": "uint256"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"internalType": "uint256",
|
287
|
+
"name": "lifetime",
|
288
|
+
"type": "uint256"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"internalType": "bytes",
|
292
|
+
"name": "filter",
|
293
|
+
"type": "bytes"
|
294
|
+
}
|
295
|
+
],
|
296
|
+
"name": "createBundleInfo",
|
297
|
+
"outputs": [],
|
298
|
+
"stateMutability": "nonpayable",
|
299
|
+
"type": "function"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"inputs": [
|
303
|
+
{
|
304
|
+
"internalType": "NftId",
|
305
|
+
"name": "policyNftId",
|
306
|
+
"type": "uint96"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"internalType": "NftId",
|
310
|
+
"name": "productNftId",
|
311
|
+
"type": "uint96"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"internalType": "ReferralId",
|
315
|
+
"name": "referralId",
|
316
|
+
"type": "bytes8"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"internalType": "RiskId",
|
320
|
+
"name": "riskId",
|
321
|
+
"type": "bytes8"
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"internalType": "uint256",
|
325
|
+
"name": "sumInsuredAmount",
|
326
|
+
"type": "uint256"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"internalType": "uint256",
|
330
|
+
"name": "premiumAmount",
|
331
|
+
"type": "uint256"
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"internalType": "uint256",
|
335
|
+
"name": "lifetime",
|
336
|
+
"type": "uint256"
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"internalType": "NftId",
|
340
|
+
"name": "bundleNftId",
|
341
|
+
"type": "uint96"
|
342
|
+
}
|
343
|
+
],
|
344
|
+
"name": "createPolicyInfo",
|
345
|
+
"outputs": [],
|
346
|
+
"stateMutability": "nonpayable",
|
347
|
+
"type": "function"
|
348
|
+
},
|
349
|
+
{
|
350
|
+
"inputs": [
|
351
|
+
{
|
352
|
+
"internalType": "RiskId",
|
353
|
+
"name": "riskId",
|
354
|
+
"type": "bytes8"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"internalType": "NftId",
|
358
|
+
"name": "productNftId",
|
359
|
+
"type": "uint96"
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"internalType": "bytes",
|
363
|
+
"name": "data",
|
364
|
+
"type": "bytes"
|
365
|
+
}
|
366
|
+
],
|
367
|
+
"name": "createRisk",
|
368
|
+
"outputs": [],
|
369
|
+
"stateMutability": "nonpayable",
|
370
|
+
"type": "function"
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"inputs": [
|
374
|
+
{
|
375
|
+
"internalType": "string",
|
376
|
+
"name": "roleName",
|
377
|
+
"type": "string"
|
378
|
+
}
|
379
|
+
],
|
380
|
+
"name": "createRole",
|
381
|
+
"outputs": [
|
382
|
+
{
|
383
|
+
"internalType": "RoleId",
|
384
|
+
"name": "role",
|
385
|
+
"type": "bytes8"
|
386
|
+
}
|
387
|
+
],
|
388
|
+
"stateMutability": "nonpayable",
|
389
|
+
"type": "function"
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"inputs": [
|
393
|
+
{
|
394
|
+
"internalType": "NftId",
|
395
|
+
"name": "poolNftId",
|
396
|
+
"type": "uint96"
|
397
|
+
}
|
398
|
+
],
|
399
|
+
"name": "getBundleCount",
|
400
|
+
"outputs": [
|
401
|
+
{
|
402
|
+
"internalType": "uint256",
|
403
|
+
"name": "bundleCount",
|
404
|
+
"type": "uint256"
|
405
|
+
}
|
406
|
+
],
|
407
|
+
"stateMutability": "view",
|
408
|
+
"type": "function"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"inputs": [
|
412
|
+
{
|
413
|
+
"internalType": "NftId",
|
414
|
+
"name": "nftId",
|
415
|
+
"type": "uint96"
|
416
|
+
}
|
417
|
+
],
|
418
|
+
"name": "getBundleInfo",
|
419
|
+
"outputs": [
|
420
|
+
{
|
421
|
+
"components": [
|
422
|
+
{
|
423
|
+
"internalType": "NftId",
|
424
|
+
"name": "poolNftId",
|
425
|
+
"type": "uint96"
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"components": [
|
429
|
+
{
|
430
|
+
"internalType": "UFixed",
|
431
|
+
"name": "fractionalFee",
|
432
|
+
"type": "uint256"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "uint256",
|
436
|
+
"name": "fixedFee",
|
437
|
+
"type": "uint256"
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"internalType": "struct Fee",
|
441
|
+
"name": "fee",
|
442
|
+
"type": "tuple"
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"internalType": "bytes",
|
446
|
+
"name": "filter",
|
447
|
+
"type": "bytes"
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"internalType": "uint256",
|
451
|
+
"name": "capitalAmount",
|
452
|
+
"type": "uint256"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"internalType": "uint256",
|
456
|
+
"name": "lockedAmount",
|
457
|
+
"type": "uint256"
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"internalType": "uint256",
|
461
|
+
"name": "balanceAmount",
|
462
|
+
"type": "uint256"
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"internalType": "Timestamp",
|
466
|
+
"name": "expiredAt",
|
467
|
+
"type": "uint40"
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"internalType": "Timestamp",
|
471
|
+
"name": "closedAt",
|
472
|
+
"type": "uint40"
|
473
|
+
}
|
474
|
+
],
|
475
|
+
"internalType": "struct IBundle.BundleInfo",
|
476
|
+
"name": "bundleInfo",
|
477
|
+
"type": "tuple"
|
478
|
+
}
|
479
|
+
],
|
480
|
+
"stateMutability": "view",
|
481
|
+
"type": "function"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"inputs": [
|
485
|
+
{
|
486
|
+
"internalType": "NftId",
|
487
|
+
"name": "poolNftId",
|
488
|
+
"type": "uint96"
|
489
|
+
},
|
490
|
+
{
|
491
|
+
"internalType": "uint256",
|
492
|
+
"name": "index",
|
493
|
+
"type": "uint256"
|
494
|
+
}
|
495
|
+
],
|
496
|
+
"name": "getBundleNftId",
|
497
|
+
"outputs": [
|
498
|
+
{
|
499
|
+
"internalType": "NftId",
|
500
|
+
"name": "bundleNftId",
|
501
|
+
"type": "uint96"
|
502
|
+
}
|
503
|
+
],
|
504
|
+
"stateMutability": "view",
|
505
|
+
"type": "function"
|
506
|
+
},
|
507
|
+
{
|
508
|
+
"inputs": [],
|
509
|
+
"name": "getComponentCount",
|
510
|
+
"outputs": [
|
511
|
+
{
|
512
|
+
"internalType": "uint256",
|
513
|
+
"name": "numberOfCompnents",
|
514
|
+
"type": "uint256"
|
515
|
+
}
|
516
|
+
],
|
517
|
+
"stateMutability": "view",
|
518
|
+
"type": "function"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"inputs": [
|
522
|
+
{
|
523
|
+
"internalType": "uint256",
|
524
|
+
"name": "idx",
|
525
|
+
"type": "uint256"
|
526
|
+
}
|
527
|
+
],
|
528
|
+
"name": "getComponentId",
|
529
|
+
"outputs": [
|
530
|
+
{
|
531
|
+
"internalType": "NftId",
|
532
|
+
"name": "nftId",
|
533
|
+
"type": "uint96"
|
534
|
+
}
|
535
|
+
],
|
536
|
+
"stateMutability": "view",
|
537
|
+
"type": "function"
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"inputs": [],
|
541
|
+
"name": "getComponentOwnerService",
|
542
|
+
"outputs": [
|
543
|
+
{
|
544
|
+
"internalType": "contract IComponentOwnerService",
|
545
|
+
"name": "",
|
546
|
+
"type": "address"
|
547
|
+
}
|
548
|
+
],
|
549
|
+
"stateMutability": "view",
|
550
|
+
"type": "function"
|
551
|
+
},
|
552
|
+
{
|
553
|
+
"inputs": [
|
554
|
+
{
|
555
|
+
"internalType": "NftId",
|
556
|
+
"name": "nftId",
|
557
|
+
"type": "uint96"
|
558
|
+
}
|
559
|
+
],
|
560
|
+
"name": "getComponentToken",
|
561
|
+
"outputs": [
|
562
|
+
{
|
563
|
+
"internalType": "contract IERC20Metadata",
|
564
|
+
"name": "token",
|
565
|
+
"type": "address"
|
566
|
+
}
|
567
|
+
],
|
568
|
+
"stateMutability": "view",
|
569
|
+
"type": "function"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"inputs": [
|
573
|
+
{
|
574
|
+
"internalType": "NftId",
|
575
|
+
"name": "nftId",
|
576
|
+
"type": "uint96"
|
577
|
+
}
|
578
|
+
],
|
579
|
+
"name": "getComponentWallet",
|
580
|
+
"outputs": [
|
581
|
+
{
|
582
|
+
"internalType": "address",
|
583
|
+
"name": "wallet",
|
584
|
+
"type": "address"
|
585
|
+
}
|
586
|
+
],
|
587
|
+
"stateMutability": "view",
|
588
|
+
"type": "function"
|
589
|
+
},
|
590
|
+
{
|
591
|
+
"inputs": [],
|
592
|
+
"name": "getDistributionService",
|
593
|
+
"outputs": [
|
594
|
+
{
|
595
|
+
"internalType": "contract IDistributionService",
|
596
|
+
"name": "",
|
597
|
+
"type": "address"
|
598
|
+
}
|
599
|
+
],
|
600
|
+
"stateMutability": "view",
|
601
|
+
"type": "function"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"inputs": [
|
605
|
+
{
|
606
|
+
"internalType": "UFixed",
|
607
|
+
"name": "fractionalFee",
|
608
|
+
"type": "uint256"
|
609
|
+
},
|
610
|
+
{
|
611
|
+
"internalType": "uint256",
|
612
|
+
"name": "fixedFee",
|
613
|
+
"type": "uint256"
|
614
|
+
}
|
615
|
+
],
|
616
|
+
"name": "getFee",
|
617
|
+
"outputs": [
|
618
|
+
{
|
619
|
+
"components": [
|
620
|
+
{
|
621
|
+
"internalType": "UFixed",
|
622
|
+
"name": "fractionalFee",
|
623
|
+
"type": "uint256"
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"internalType": "uint256",
|
627
|
+
"name": "fixedFee",
|
628
|
+
"type": "uint256"
|
629
|
+
}
|
630
|
+
],
|
631
|
+
"internalType": "struct Fee",
|
632
|
+
"name": "fee",
|
633
|
+
"type": "tuple"
|
634
|
+
}
|
635
|
+
],
|
636
|
+
"stateMutability": "pure",
|
637
|
+
"type": "function"
|
638
|
+
},
|
639
|
+
{
|
640
|
+
"inputs": [],
|
641
|
+
"name": "getInitialInfo",
|
642
|
+
"outputs": [
|
643
|
+
{
|
644
|
+
"components": [
|
645
|
+
{
|
646
|
+
"internalType": "NftId",
|
647
|
+
"name": "nftId",
|
648
|
+
"type": "uint96"
|
649
|
+
},
|
650
|
+
{
|
651
|
+
"internalType": "NftId",
|
652
|
+
"name": "parentNftId",
|
653
|
+
"type": "uint96"
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"internalType": "ObjectType",
|
657
|
+
"name": "objectType",
|
658
|
+
"type": "uint8"
|
659
|
+
},
|
660
|
+
{
|
661
|
+
"internalType": "bool",
|
662
|
+
"name": "isInterceptor",
|
663
|
+
"type": "bool"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"internalType": "address",
|
667
|
+
"name": "objectAddress",
|
668
|
+
"type": "address"
|
669
|
+
},
|
670
|
+
{
|
671
|
+
"internalType": "address",
|
672
|
+
"name": "initialOwner",
|
673
|
+
"type": "address"
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"internalType": "bytes",
|
677
|
+
"name": "data",
|
678
|
+
"type": "bytes"
|
679
|
+
}
|
680
|
+
],
|
681
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
682
|
+
"name": "",
|
683
|
+
"type": "tuple"
|
684
|
+
},
|
685
|
+
{
|
686
|
+
"internalType": "bytes",
|
687
|
+
"name": "data",
|
688
|
+
"type": "bytes"
|
689
|
+
}
|
690
|
+
],
|
691
|
+
"stateMutability": "view",
|
692
|
+
"type": "function"
|
693
|
+
},
|
694
|
+
{
|
695
|
+
"inputs": [],
|
696
|
+
"name": "getInitializedVersion",
|
697
|
+
"outputs": [
|
698
|
+
{
|
699
|
+
"internalType": "uint64",
|
700
|
+
"name": "",
|
701
|
+
"type": "uint64"
|
702
|
+
}
|
703
|
+
],
|
704
|
+
"stateMutability": "view",
|
705
|
+
"type": "function"
|
706
|
+
},
|
707
|
+
{
|
708
|
+
"inputs": [],
|
709
|
+
"name": "getKeyValueStore",
|
710
|
+
"outputs": [
|
711
|
+
{
|
712
|
+
"internalType": "contract IKeyValueStore",
|
713
|
+
"name": "keyValueStore",
|
714
|
+
"type": "address"
|
715
|
+
}
|
716
|
+
],
|
717
|
+
"stateMutability": "view",
|
718
|
+
"type": "function"
|
719
|
+
},
|
720
|
+
{
|
721
|
+
"inputs": [],
|
722
|
+
"name": "getNftId",
|
723
|
+
"outputs": [
|
724
|
+
{
|
725
|
+
"internalType": "NftId",
|
726
|
+
"name": "",
|
727
|
+
"type": "uint96"
|
728
|
+
}
|
729
|
+
],
|
730
|
+
"stateMutability": "view",
|
731
|
+
"type": "function"
|
732
|
+
},
|
733
|
+
{
|
734
|
+
"inputs": [],
|
735
|
+
"name": "getOwner",
|
736
|
+
"outputs": [
|
737
|
+
{
|
738
|
+
"internalType": "address",
|
739
|
+
"name": "owner",
|
740
|
+
"type": "address"
|
741
|
+
}
|
742
|
+
],
|
743
|
+
"stateMutability": "view",
|
744
|
+
"type": "function"
|
745
|
+
},
|
746
|
+
{
|
747
|
+
"inputs": [
|
748
|
+
{
|
749
|
+
"internalType": "NftId",
|
750
|
+
"name": "nftId",
|
751
|
+
"type": "uint96"
|
752
|
+
}
|
753
|
+
],
|
754
|
+
"name": "getPolicyInfo",
|
755
|
+
"outputs": [
|
756
|
+
{
|
757
|
+
"components": [
|
758
|
+
{
|
759
|
+
"internalType": "NftId",
|
760
|
+
"name": "productNftId",
|
761
|
+
"type": "uint96"
|
762
|
+
},
|
763
|
+
{
|
764
|
+
"internalType": "NftId",
|
765
|
+
"name": "bundleNftId",
|
766
|
+
"type": "uint96"
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"internalType": "ReferralId",
|
770
|
+
"name": "referralId",
|
771
|
+
"type": "bytes8"
|
772
|
+
},
|
773
|
+
{
|
774
|
+
"internalType": "address",
|
775
|
+
"name": "beneficiary",
|
776
|
+
"type": "address"
|
777
|
+
},
|
778
|
+
{
|
779
|
+
"internalType": "RiskId",
|
780
|
+
"name": "riskId",
|
781
|
+
"type": "bytes8"
|
782
|
+
},
|
783
|
+
{
|
784
|
+
"internalType": "uint256",
|
785
|
+
"name": "sumInsuredAmount",
|
786
|
+
"type": "uint256"
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"internalType": "uint256",
|
790
|
+
"name": "premiumAmount",
|
791
|
+
"type": "uint256"
|
792
|
+
},
|
793
|
+
{
|
794
|
+
"internalType": "uint256",
|
795
|
+
"name": "premiumPaidAmount",
|
796
|
+
"type": "uint256"
|
797
|
+
},
|
798
|
+
{
|
799
|
+
"internalType": "uint256",
|
800
|
+
"name": "lifetime",
|
801
|
+
"type": "uint256"
|
802
|
+
},
|
803
|
+
{
|
804
|
+
"internalType": "bytes",
|
805
|
+
"name": "applicationData",
|
806
|
+
"type": "bytes"
|
807
|
+
},
|
808
|
+
{
|
809
|
+
"internalType": "bytes",
|
810
|
+
"name": "policyData",
|
811
|
+
"type": "bytes"
|
812
|
+
},
|
813
|
+
{
|
814
|
+
"internalType": "Timestamp",
|
815
|
+
"name": "activatedAt",
|
816
|
+
"type": "uint40"
|
817
|
+
},
|
818
|
+
{
|
819
|
+
"internalType": "Timestamp",
|
820
|
+
"name": "expiredAt",
|
821
|
+
"type": "uint40"
|
822
|
+
},
|
823
|
+
{
|
824
|
+
"internalType": "Timestamp",
|
825
|
+
"name": "closedAt",
|
826
|
+
"type": "uint40"
|
827
|
+
}
|
828
|
+
],
|
829
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
830
|
+
"name": "info",
|
831
|
+
"type": "tuple"
|
832
|
+
}
|
833
|
+
],
|
834
|
+
"stateMutability": "view",
|
835
|
+
"type": "function"
|
836
|
+
},
|
837
|
+
{
|
838
|
+
"inputs": [
|
839
|
+
{
|
840
|
+
"internalType": "NftId",
|
841
|
+
"name": "nftId",
|
842
|
+
"type": "uint96"
|
843
|
+
}
|
844
|
+
],
|
845
|
+
"name": "getPoolInfo",
|
846
|
+
"outputs": [
|
847
|
+
{
|
848
|
+
"components": [
|
849
|
+
{
|
850
|
+
"internalType": "bool",
|
851
|
+
"name": "isVerifying",
|
852
|
+
"type": "bool"
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"internalType": "UFixed",
|
856
|
+
"name": "collateralizationLevel",
|
857
|
+
"type": "uint256"
|
858
|
+
}
|
859
|
+
],
|
860
|
+
"internalType": "struct IPool.PoolInfo",
|
861
|
+
"name": "info",
|
862
|
+
"type": "tuple"
|
863
|
+
}
|
864
|
+
],
|
865
|
+
"stateMutability": "view",
|
866
|
+
"type": "function"
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"inputs": [],
|
870
|
+
"name": "getPoolService",
|
871
|
+
"outputs": [
|
872
|
+
{
|
873
|
+
"internalType": "contract IPoolService",
|
874
|
+
"name": "",
|
875
|
+
"type": "address"
|
876
|
+
}
|
877
|
+
],
|
878
|
+
"stateMutability": "view",
|
879
|
+
"type": "function"
|
880
|
+
},
|
881
|
+
{
|
882
|
+
"inputs": [
|
883
|
+
{
|
884
|
+
"internalType": "NftId",
|
885
|
+
"name": "componentNftId",
|
886
|
+
"type": "uint96"
|
887
|
+
}
|
888
|
+
],
|
889
|
+
"name": "getProductNftId",
|
890
|
+
"outputs": [
|
891
|
+
{
|
892
|
+
"internalType": "NftId",
|
893
|
+
"name": "productNftId",
|
894
|
+
"type": "uint96"
|
895
|
+
}
|
896
|
+
],
|
897
|
+
"stateMutability": "view",
|
898
|
+
"type": "function"
|
899
|
+
},
|
900
|
+
{
|
901
|
+
"inputs": [],
|
902
|
+
"name": "getProductService",
|
903
|
+
"outputs": [
|
904
|
+
{
|
905
|
+
"internalType": "contract IProductService",
|
906
|
+
"name": "",
|
907
|
+
"type": "address"
|
908
|
+
}
|
909
|
+
],
|
910
|
+
"stateMutability": "view",
|
911
|
+
"type": "function"
|
912
|
+
},
|
913
|
+
{
|
914
|
+
"inputs": [],
|
915
|
+
"name": "getRegistry",
|
916
|
+
"outputs": [
|
917
|
+
{
|
918
|
+
"internalType": "contract IRegistry",
|
919
|
+
"name": "registry",
|
920
|
+
"type": "address"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"stateMutability": "view",
|
924
|
+
"type": "function"
|
925
|
+
},
|
926
|
+
{
|
927
|
+
"inputs": [
|
928
|
+
{
|
929
|
+
"internalType": "RiskId",
|
930
|
+
"name": "riskId",
|
931
|
+
"type": "bytes8"
|
932
|
+
}
|
933
|
+
],
|
934
|
+
"name": "getRiskInfo",
|
935
|
+
"outputs": [
|
936
|
+
{
|
937
|
+
"components": [
|
938
|
+
{
|
939
|
+
"internalType": "NftId",
|
940
|
+
"name": "productNftId",
|
941
|
+
"type": "uint96"
|
942
|
+
},
|
943
|
+
{
|
944
|
+
"internalType": "bytes",
|
945
|
+
"name": "data",
|
946
|
+
"type": "bytes"
|
947
|
+
}
|
948
|
+
],
|
949
|
+
"internalType": "struct IRisk.RiskInfo",
|
950
|
+
"name": "info",
|
951
|
+
"type": "tuple"
|
952
|
+
}
|
953
|
+
],
|
954
|
+
"stateMutability": "view",
|
955
|
+
"type": "function"
|
956
|
+
},
|
957
|
+
{
|
958
|
+
"inputs": [
|
959
|
+
{
|
960
|
+
"internalType": "uint256",
|
961
|
+
"name": "idx",
|
962
|
+
"type": "uint256"
|
963
|
+
}
|
964
|
+
],
|
965
|
+
"name": "getRole",
|
966
|
+
"outputs": [
|
967
|
+
{
|
968
|
+
"internalType": "RoleId",
|
969
|
+
"name": "role",
|
970
|
+
"type": "bytes8"
|
971
|
+
}
|
972
|
+
],
|
973
|
+
"stateMutability": "view",
|
974
|
+
"type": "function"
|
975
|
+
},
|
976
|
+
{
|
977
|
+
"inputs": [],
|
978
|
+
"name": "getRoleCount",
|
979
|
+
"outputs": [
|
980
|
+
{
|
981
|
+
"internalType": "uint256",
|
982
|
+
"name": "roles",
|
983
|
+
"type": "uint256"
|
984
|
+
}
|
985
|
+
],
|
986
|
+
"stateMutability": "view",
|
987
|
+
"type": "function"
|
988
|
+
},
|
989
|
+
{
|
990
|
+
"inputs": [
|
991
|
+
{
|
992
|
+
"internalType": "string",
|
993
|
+
"name": "roleName",
|
994
|
+
"type": "string"
|
995
|
+
}
|
996
|
+
],
|
997
|
+
"name": "getRoleId",
|
998
|
+
"outputs": [
|
999
|
+
{
|
1000
|
+
"internalType": "RoleId",
|
1001
|
+
"name": "role",
|
1002
|
+
"type": "bytes8"
|
1003
|
+
}
|
1004
|
+
],
|
1005
|
+
"stateMutability": "pure",
|
1006
|
+
"type": "function"
|
1007
|
+
},
|
1008
|
+
{
|
1009
|
+
"inputs": [
|
1010
|
+
{
|
1011
|
+
"internalType": "RoleId",
|
1012
|
+
"name": "role",
|
1013
|
+
"type": "bytes8"
|
1014
|
+
}
|
1015
|
+
],
|
1016
|
+
"name": "getRoleInfo",
|
1017
|
+
"outputs": [
|
1018
|
+
{
|
1019
|
+
"components": [
|
1020
|
+
{
|
1021
|
+
"internalType": "RoleId",
|
1022
|
+
"name": "id",
|
1023
|
+
"type": "bytes8"
|
1024
|
+
},
|
1025
|
+
{
|
1026
|
+
"internalType": "string",
|
1027
|
+
"name": "name",
|
1028
|
+
"type": "string"
|
1029
|
+
},
|
1030
|
+
{
|
1031
|
+
"internalType": "bool",
|
1032
|
+
"name": "isActive",
|
1033
|
+
"type": "bool"
|
1034
|
+
}
|
1035
|
+
],
|
1036
|
+
"internalType": "struct IAccess.RoleInfo",
|
1037
|
+
"name": "info",
|
1038
|
+
"type": "tuple"
|
1039
|
+
}
|
1040
|
+
],
|
1041
|
+
"stateMutability": "view",
|
1042
|
+
"type": "function"
|
1043
|
+
},
|
1044
|
+
{
|
1045
|
+
"inputs": [
|
1046
|
+
{
|
1047
|
+
"internalType": "RoleId",
|
1048
|
+
"name": "role",
|
1049
|
+
"type": "bytes8"
|
1050
|
+
},
|
1051
|
+
{
|
11
1052
|
"internalType": "uint256",
|
12
1053
|
"name": "idx",
|
13
1054
|
"type": "uint256"
|
14
|
-
}
|
1055
|
+
}
|
1056
|
+
],
|
1057
|
+
"name": "getRoleMember",
|
1058
|
+
"outputs": [
|
15
1059
|
{
|
16
|
-
"indexed": false,
|
17
1060
|
"internalType": "address",
|
18
|
-
"name": "
|
1061
|
+
"name": "roleMember",
|
19
1062
|
"type": "address"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"indexed": false,
|
23
|
-
"internalType": "string",
|
24
|
-
"name": "comment",
|
25
|
-
"type": "string"
|
26
1063
|
}
|
27
1064
|
],
|
28
|
-
"
|
29
|
-
"type": "
|
1065
|
+
"stateMutability": "view",
|
1066
|
+
"type": "function"
|
30
1067
|
},
|
31
1068
|
{
|
32
|
-
"inputs": [
|
33
|
-
"name": "ORACLE_OWNER_ROLE",
|
34
|
-
"outputs": [
|
1069
|
+
"inputs": [
|
35
1070
|
{
|
36
|
-
"internalType": "
|
1071
|
+
"internalType": "RoleId",
|
37
1072
|
"name": "role",
|
38
|
-
"type": "
|
1073
|
+
"type": "bytes8"
|
39
1074
|
}
|
40
1075
|
],
|
41
|
-
"
|
42
|
-
"type": "function"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"inputs": [],
|
46
|
-
"name": "POOL_OWNER_ROLE",
|
1076
|
+
"name": "getRoleMemberCount",
|
47
1077
|
"outputs": [
|
48
1078
|
{
|
49
|
-
"internalType": "
|
50
|
-
"name": "
|
51
|
-
"type": "
|
1079
|
+
"internalType": "uint256",
|
1080
|
+
"name": "roleMembers",
|
1081
|
+
"type": "uint256"
|
52
1082
|
}
|
53
1083
|
],
|
54
1084
|
"stateMutability": "view",
|
55
1085
|
"type": "function"
|
56
1086
|
},
|
57
1087
|
{
|
58
|
-
"inputs": [
|
59
|
-
"name": "PRODUCT_OWNER_ROLE",
|
60
|
-
"outputs": [
|
1088
|
+
"inputs": [
|
61
1089
|
{
|
62
|
-
"internalType": "
|
63
|
-
"name": "
|
1090
|
+
"internalType": "Key32",
|
1091
|
+
"name": "key",
|
64
1092
|
"type": "bytes32"
|
65
1093
|
}
|
66
1094
|
],
|
1095
|
+
"name": "getState",
|
1096
|
+
"outputs": [
|
1097
|
+
{
|
1098
|
+
"internalType": "StateId",
|
1099
|
+
"name": "state",
|
1100
|
+
"type": "uint8"
|
1101
|
+
}
|
1102
|
+
],
|
67
1103
|
"stateMutability": "view",
|
68
1104
|
"type": "function"
|
69
1105
|
},
|
@@ -71,23 +1107,16 @@
|
|
71
1107
|
"inputs": [
|
72
1108
|
{
|
73
1109
|
"internalType": "NftId",
|
74
|
-
"name": "
|
1110
|
+
"name": "componentNftId",
|
75
1111
|
"type": "uint96"
|
76
1112
|
}
|
77
1113
|
],
|
78
|
-
"name": "
|
79
|
-
"outputs": [],
|
80
|
-
"stateMutability": "nonpayable",
|
81
|
-
"type": "function"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"inputs": [],
|
85
|
-
"name": "components",
|
1114
|
+
"name": "getTokenHandler",
|
86
1115
|
"outputs": [
|
87
1116
|
{
|
88
|
-
"internalType": "
|
89
|
-
"name": "
|
90
|
-
"type": "
|
1117
|
+
"internalType": "contract TokenHandler",
|
1118
|
+
"name": "tokenHandler",
|
1119
|
+
"type": "address"
|
91
1120
|
}
|
92
1121
|
],
|
93
1122
|
"stateMutability": "view",
|
@@ -95,176 +1124,225 @@
|
|
95
1124
|
},
|
96
1125
|
{
|
97
1126
|
"inputs": [
|
1127
|
+
{
|
1128
|
+
"internalType": "NftId",
|
1129
|
+
"name": "productNftId",
|
1130
|
+
"type": "uint96"
|
1131
|
+
}
|
1132
|
+
],
|
1133
|
+
"name": "getTreasuryInfo",
|
1134
|
+
"outputs": [
|
98
1135
|
{
|
99
1136
|
"components": [
|
100
1137
|
{
|
101
1138
|
"internalType": "NftId",
|
102
|
-
"name": "
|
1139
|
+
"name": "poolNftId",
|
103
1140
|
"type": "uint96"
|
104
1141
|
},
|
105
1142
|
{
|
106
1143
|
"internalType": "NftId",
|
107
|
-
"name": "
|
1144
|
+
"name": "distributionNftId",
|
108
1145
|
"type": "uint96"
|
109
1146
|
},
|
110
1147
|
{
|
111
|
-
"internalType": "
|
112
|
-
"name": "
|
113
|
-
"type": "
|
1148
|
+
"internalType": "contract IERC20Metadata",
|
1149
|
+
"name": "token",
|
1150
|
+
"type": "address"
|
114
1151
|
},
|
115
1152
|
{
|
116
|
-
"
|
117
|
-
|
118
|
-
|
1153
|
+
"components": [
|
1154
|
+
{
|
1155
|
+
"internalType": "UFixed",
|
1156
|
+
"name": "fractionalFee",
|
1157
|
+
"type": "uint256"
|
1158
|
+
},
|
1159
|
+
{
|
1160
|
+
"internalType": "uint256",
|
1161
|
+
"name": "fixedFee",
|
1162
|
+
"type": "uint256"
|
1163
|
+
}
|
1164
|
+
],
|
1165
|
+
"internalType": "struct Fee",
|
1166
|
+
"name": "productFee",
|
1167
|
+
"type": "tuple"
|
119
1168
|
},
|
120
1169
|
{
|
121
|
-
"
|
122
|
-
|
123
|
-
|
1170
|
+
"components": [
|
1171
|
+
{
|
1172
|
+
"internalType": "UFixed",
|
1173
|
+
"name": "fractionalFee",
|
1174
|
+
"type": "uint256"
|
1175
|
+
},
|
1176
|
+
{
|
1177
|
+
"internalType": "uint256",
|
1178
|
+
"name": "fixedFee",
|
1179
|
+
"type": "uint256"
|
1180
|
+
}
|
1181
|
+
],
|
1182
|
+
"internalType": "struct Fee",
|
1183
|
+
"name": "processingFee",
|
1184
|
+
"type": "tuple"
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
"components": [
|
1188
|
+
{
|
1189
|
+
"internalType": "UFixed",
|
1190
|
+
"name": "fractionalFee",
|
1191
|
+
"type": "uint256"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
"internalType": "uint256",
|
1195
|
+
"name": "fixedFee",
|
1196
|
+
"type": "uint256"
|
1197
|
+
}
|
1198
|
+
],
|
1199
|
+
"internalType": "struct Fee",
|
1200
|
+
"name": "poolFee",
|
1201
|
+
"type": "tuple"
|
1202
|
+
},
|
1203
|
+
{
|
1204
|
+
"components": [
|
1205
|
+
{
|
1206
|
+
"internalType": "UFixed",
|
1207
|
+
"name": "fractionalFee",
|
1208
|
+
"type": "uint256"
|
1209
|
+
},
|
1210
|
+
{
|
1211
|
+
"internalType": "uint256",
|
1212
|
+
"name": "fixedFee",
|
1213
|
+
"type": "uint256"
|
1214
|
+
}
|
1215
|
+
],
|
1216
|
+
"internalType": "struct Fee",
|
1217
|
+
"name": "stakingFee",
|
1218
|
+
"type": "tuple"
|
1219
|
+
},
|
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": "performanceFee",
|
1235
|
+
"type": "tuple"
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
"components": [
|
1239
|
+
{
|
1240
|
+
"internalType": "UFixed",
|
1241
|
+
"name": "fractionalFee",
|
1242
|
+
"type": "uint256"
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
"internalType": "uint256",
|
1246
|
+
"name": "fixedFee",
|
1247
|
+
"type": "uint256"
|
1248
|
+
}
|
1249
|
+
],
|
1250
|
+
"internalType": "struct Fee",
|
1251
|
+
"name": "distributionFee",
|
1252
|
+
"type": "tuple"
|
124
1253
|
}
|
125
1254
|
],
|
126
|
-
"internalType": "struct
|
127
|
-
"name": "
|
1255
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1256
|
+
"name": "info",
|
128
1257
|
"type": "tuple"
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"internalType": "address",
|
132
|
-
"name": "applicationOwner",
|
133
|
-
"type": "address"
|
134
|
-
},
|
135
|
-
{
|
136
|
-
"internalType": "uint256",
|
137
|
-
"name": "sumInsuredAmount",
|
138
|
-
"type": "uint256"
|
139
|
-
},
|
140
|
-
{
|
141
|
-
"internalType": "uint256",
|
142
|
-
"name": "premiumAmount",
|
143
|
-
"type": "uint256"
|
144
|
-
},
|
145
|
-
{
|
146
|
-
"internalType": "uint256",
|
147
|
-
"name": "lifetime",
|
148
|
-
"type": "uint256"
|
149
|
-
},
|
150
|
-
{
|
151
|
-
"internalType": "NftId",
|
152
|
-
"name": "bundleNftId",
|
153
|
-
"type": "uint96"
|
154
|
-
}
|
155
|
-
],
|
156
|
-
"name": "createApplication",
|
157
|
-
"outputs": [
|
158
|
-
{
|
159
|
-
"internalType": "NftId",
|
160
|
-
"name": "nftId",
|
161
|
-
"type": "uint96"
|
162
1258
|
}
|
163
1259
|
],
|
164
|
-
"stateMutability": "
|
1260
|
+
"stateMutability": "view",
|
165
1261
|
"type": "function"
|
166
1262
|
},
|
167
1263
|
{
|
168
1264
|
"inputs": [
|
169
1265
|
{
|
170
|
-
"internalType": "
|
171
|
-
"name": "
|
172
|
-
"type": "
|
1266
|
+
"internalType": "uint256",
|
1267
|
+
"name": "a",
|
1268
|
+
"type": "uint256"
|
173
1269
|
},
|
174
1270
|
{
|
175
|
-
"internalType": "
|
176
|
-
"name": "
|
177
|
-
"type": "
|
178
|
-
}
|
1271
|
+
"internalType": "int8",
|
1272
|
+
"name": "exp",
|
1273
|
+
"type": "int8"
|
1274
|
+
}
|
1275
|
+
],
|
1276
|
+
"name": "getUFixed",
|
1277
|
+
"outputs": [
|
179
1278
|
{
|
180
|
-
"internalType": "
|
181
|
-
"name": "
|
182
|
-
"type": "
|
1279
|
+
"internalType": "UFixed",
|
1280
|
+
"name": "",
|
1281
|
+
"type": "uint256"
|
183
1282
|
}
|
184
1283
|
],
|
185
|
-
"
|
186
|
-
"outputs": [],
|
187
|
-
"stateMutability": "nonpayable",
|
1284
|
+
"stateMutability": "pure",
|
188
1285
|
"type": "function"
|
189
1286
|
},
|
190
1287
|
{
|
191
1288
|
"inputs": [
|
192
1289
|
{
|
193
|
-
"internalType": "
|
194
|
-
"name": "
|
195
|
-
"type": "
|
1290
|
+
"internalType": "uint256",
|
1291
|
+
"name": "a",
|
1292
|
+
"type": "uint256"
|
196
1293
|
}
|
197
1294
|
],
|
198
|
-
"name": "
|
1295
|
+
"name": "getUFixed",
|
199
1296
|
"outputs": [
|
200
1297
|
{
|
201
|
-
"internalType": "
|
202
|
-
"name": "
|
203
|
-
"type": "
|
204
|
-
}
|
205
|
-
],
|
206
|
-
"stateMutability": "nonpayable",
|
207
|
-
"type": "function"
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"inputs": [
|
211
|
-
{
|
212
|
-
"internalType": "bytes32",
|
213
|
-
"name": "role",
|
214
|
-
"type": "bytes32"
|
1298
|
+
"internalType": "UFixed",
|
1299
|
+
"name": "",
|
1300
|
+
"type": "uint256"
|
215
1301
|
}
|
216
1302
|
],
|
217
|
-
"
|
218
|
-
"outputs": [],
|
219
|
-
"stateMutability": "nonpayable",
|
1303
|
+
"stateMutability": "pure",
|
220
1304
|
"type": "function"
|
221
1305
|
},
|
222
1306
|
{
|
223
|
-
"inputs": [
|
1307
|
+
"inputs": [],
|
1308
|
+
"name": "getVersion",
|
1309
|
+
"outputs": [
|
224
1310
|
{
|
225
|
-
"internalType": "
|
226
|
-
"name": "
|
227
|
-
"type": "
|
1311
|
+
"internalType": "Version",
|
1312
|
+
"name": "",
|
1313
|
+
"type": "uint24"
|
228
1314
|
}
|
229
1315
|
],
|
230
|
-
"
|
231
|
-
"outputs": [],
|
232
|
-
"stateMutability": "nonpayable",
|
1316
|
+
"stateMutability": "pure",
|
233
1317
|
"type": "function"
|
234
1318
|
},
|
235
1319
|
{
|
236
1320
|
"inputs": [
|
237
1321
|
{
|
238
|
-
"internalType": "
|
239
|
-
"name": "
|
240
|
-
"type": "
|
1322
|
+
"internalType": "uint256",
|
1323
|
+
"name": "index",
|
1324
|
+
"type": "uint256"
|
241
1325
|
}
|
242
1326
|
],
|
243
|
-
"name": "
|
1327
|
+
"name": "getVersion",
|
244
1328
|
"outputs": [
|
245
1329
|
{
|
246
|
-
"internalType": "
|
247
|
-
"name": "
|
248
|
-
"type": "
|
1330
|
+
"internalType": "Version",
|
1331
|
+
"name": "version",
|
1332
|
+
"type": "uint24"
|
249
1333
|
}
|
250
1334
|
],
|
251
1335
|
"stateMutability": "view",
|
252
1336
|
"type": "function"
|
253
1337
|
},
|
254
1338
|
{
|
255
|
-
"inputs": [
|
256
|
-
|
257
|
-
"internalType": "address",
|
258
|
-
"name": "componentAddress",
|
259
|
-
"type": "address"
|
260
|
-
}
|
261
|
-
],
|
262
|
-
"name": "getComponentId",
|
1339
|
+
"inputs": [],
|
1340
|
+
"name": "getVersionCount",
|
263
1341
|
"outputs": [
|
264
1342
|
{
|
265
|
-
"internalType": "
|
266
|
-
"name": "
|
267
|
-
"type": "
|
1343
|
+
"internalType": "uint256",
|
1344
|
+
"name": "numberOfVersions",
|
1345
|
+
"type": "uint256"
|
268
1346
|
}
|
269
1347
|
],
|
270
1348
|
"stateMutability": "view",
|
@@ -273,47 +1351,68 @@
|
|
273
1351
|
{
|
274
1352
|
"inputs": [
|
275
1353
|
{
|
276
|
-
"internalType": "
|
277
|
-
"name": "
|
278
|
-
"type": "
|
1354
|
+
"internalType": "Version",
|
1355
|
+
"name": "version",
|
1356
|
+
"type": "uint24"
|
279
1357
|
}
|
280
1358
|
],
|
281
|
-
"name": "
|
1359
|
+
"name": "getVersionInfo",
|
282
1360
|
"outputs": [
|
283
1361
|
{
|
284
|
-
"
|
285
|
-
|
286
|
-
|
1362
|
+
"components": [
|
1363
|
+
{
|
1364
|
+
"internalType": "Version",
|
1365
|
+
"name": "version",
|
1366
|
+
"type": "uint24"
|
1367
|
+
},
|
1368
|
+
{
|
1369
|
+
"internalType": "address",
|
1370
|
+
"name": "implementation",
|
1371
|
+
"type": "address"
|
1372
|
+
},
|
1373
|
+
{
|
1374
|
+
"internalType": "address",
|
1375
|
+
"name": "activatedBy",
|
1376
|
+
"type": "address"
|
1377
|
+
},
|
1378
|
+
{
|
1379
|
+
"internalType": "Timestamp",
|
1380
|
+
"name": "activatedAt",
|
1381
|
+
"type": "uint40"
|
1382
|
+
},
|
1383
|
+
{
|
1384
|
+
"internalType": "Blocknumber",
|
1385
|
+
"name": "activatedIn",
|
1386
|
+
"type": "uint32"
|
1387
|
+
}
|
1388
|
+
],
|
1389
|
+
"internalType": "struct IVersionable.VersionInfo",
|
1390
|
+
"name": "versionInfo",
|
1391
|
+
"type": "tuple"
|
287
1392
|
}
|
288
1393
|
],
|
289
1394
|
"stateMutability": "view",
|
290
1395
|
"type": "function"
|
291
1396
|
},
|
292
1397
|
{
|
293
|
-
"inputs": [
|
294
|
-
|
295
|
-
"internalType": "NftId",
|
296
|
-
"name": "nftId",
|
297
|
-
"type": "uint96"
|
298
|
-
}
|
299
|
-
],
|
300
|
-
"name": "getComponentInfo",
|
1398
|
+
"inputs": [],
|
1399
|
+
"name": "getZeroFee",
|
301
1400
|
"outputs": [
|
302
1401
|
{
|
303
1402
|
"components": [
|
304
1403
|
{
|
305
|
-
"internalType": "
|
306
|
-
"name": "
|
307
|
-
"type": "
|
1404
|
+
"internalType": "UFixed",
|
1405
|
+
"name": "fractionalFee",
|
1406
|
+
"type": "uint256"
|
308
1407
|
},
|
309
1408
|
{
|
310
|
-
"internalType": "
|
311
|
-
"name": "
|
312
|
-
"type": "
|
1409
|
+
"internalType": "uint256",
|
1410
|
+
"name": "fixedFee",
|
1411
|
+
"type": "uint256"
|
313
1412
|
}
|
314
1413
|
],
|
315
|
-
"internalType": "struct
|
316
|
-
"name": "
|
1414
|
+
"internalType": "struct Fee",
|
1415
|
+
"name": "fee",
|
317
1416
|
"type": "tuple"
|
318
1417
|
}
|
319
1418
|
],
|
@@ -323,82 +1422,101 @@
|
|
323
1422
|
{
|
324
1423
|
"inputs": [
|
325
1424
|
{
|
326
|
-
"internalType": "
|
327
|
-
"name": "
|
328
|
-
"type": "
|
329
|
-
}
|
330
|
-
],
|
331
|
-
"name": "getComponentOwner",
|
332
|
-
"outputs": [
|
1425
|
+
"internalType": "RoleId",
|
1426
|
+
"name": "role",
|
1427
|
+
"type": "bytes8"
|
1428
|
+
},
|
333
1429
|
{
|
334
1430
|
"internalType": "address",
|
335
|
-
"name": "
|
1431
|
+
"name": "member",
|
336
1432
|
"type": "address"
|
337
1433
|
}
|
338
1434
|
],
|
339
|
-
"
|
1435
|
+
"name": "grantRole",
|
1436
|
+
"outputs": [],
|
1437
|
+
"stateMutability": "nonpayable",
|
340
1438
|
"type": "function"
|
341
1439
|
},
|
342
1440
|
{
|
343
|
-
"inputs": [
|
344
|
-
|
1441
|
+
"inputs": [
|
1442
|
+
{
|
1443
|
+
"internalType": "RoleId",
|
1444
|
+
"name": "role",
|
1445
|
+
"type": "bytes8"
|
1446
|
+
},
|
1447
|
+
{
|
1448
|
+
"internalType": "address",
|
1449
|
+
"name": "member",
|
1450
|
+
"type": "address"
|
1451
|
+
}
|
1452
|
+
],
|
1453
|
+
"name": "hasRole",
|
345
1454
|
"outputs": [
|
346
1455
|
{
|
347
|
-
"internalType": "
|
1456
|
+
"internalType": "bool",
|
348
1457
|
"name": "",
|
349
|
-
"type": "
|
1458
|
+
"type": "bool"
|
350
1459
|
}
|
351
1460
|
],
|
352
1461
|
"stateMutability": "view",
|
353
1462
|
"type": "function"
|
354
1463
|
},
|
355
1464
|
{
|
356
|
-
"inputs": [
|
357
|
-
|
1465
|
+
"inputs": [
|
1466
|
+
{
|
1467
|
+
"internalType": "NftId",
|
1468
|
+
"name": "productNftId",
|
1469
|
+
"type": "uint96"
|
1470
|
+
}
|
1471
|
+
],
|
1472
|
+
"name": "hasTreasuryInfo",
|
358
1473
|
"outputs": [
|
359
1474
|
{
|
360
|
-
"internalType": "
|
361
|
-
"name": "
|
362
|
-
"type": "
|
1475
|
+
"internalType": "bool",
|
1476
|
+
"name": "hasInfo",
|
1477
|
+
"type": "bool"
|
363
1478
|
}
|
364
1479
|
],
|
365
1480
|
"stateMutability": "view",
|
366
1481
|
"type": "function"
|
367
1482
|
},
|
368
1483
|
{
|
369
|
-
"inputs": [
|
370
|
-
|
371
|
-
|
1484
|
+
"inputs": [
|
1485
|
+
{
|
1486
|
+
"internalType": "address",
|
1487
|
+
"name": "implementation",
|
1488
|
+
"type": "address"
|
1489
|
+
},
|
372
1490
|
{
|
373
1491
|
"internalType": "address",
|
374
|
-
"name": "
|
1492
|
+
"name": "activatedBy",
|
375
1493
|
"type": "address"
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"internalType": "bytes",
|
1497
|
+
"name": "activationData",
|
1498
|
+
"type": "bytes"
|
376
1499
|
}
|
377
1500
|
],
|
378
|
-
"
|
1501
|
+
"name": "initialize",
|
1502
|
+
"outputs": [],
|
1503
|
+
"stateMutability": "nonpayable",
|
379
1504
|
"type": "function"
|
380
1505
|
},
|
381
1506
|
{
|
382
|
-
"inputs": [
|
383
|
-
"name": "getNftId",
|
384
|
-
"outputs": [
|
1507
|
+
"inputs": [
|
385
1508
|
{
|
386
|
-
"internalType": "
|
387
|
-
"name": "
|
388
|
-
"type": "
|
1509
|
+
"internalType": "Version",
|
1510
|
+
"name": "version",
|
1511
|
+
"type": "uint24"
|
389
1512
|
}
|
390
1513
|
],
|
391
|
-
"
|
392
|
-
"type": "function"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"inputs": [],
|
396
|
-
"name": "getOwner",
|
1514
|
+
"name": "isInitialized",
|
397
1515
|
"outputs": [
|
398
1516
|
{
|
399
|
-
"internalType": "
|
400
|
-
"name": "
|
401
|
-
"type": "
|
1517
|
+
"internalType": "bool",
|
1518
|
+
"name": "",
|
1519
|
+
"type": "bool"
|
402
1520
|
}
|
403
1521
|
],
|
404
1522
|
"stateMutability": "view",
|
@@ -406,15 +1524,32 @@
|
|
406
1524
|
},
|
407
1525
|
{
|
408
1526
|
"inputs": [],
|
409
|
-
"name": "
|
410
|
-
"outputs": [
|
1527
|
+
"name": "linkToRegisteredNftId",
|
1528
|
+
"outputs": [],
|
1529
|
+
"stateMutability": "nonpayable",
|
1530
|
+
"type": "function"
|
1531
|
+
},
|
1532
|
+
{
|
1533
|
+
"inputs": [
|
411
1534
|
{
|
412
1535
|
"internalType": "NftId",
|
413
|
-
"name": "
|
1536
|
+
"name": "nftId",
|
414
1537
|
"type": "uint96"
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"internalType": "contract IERC20Metadata",
|
1541
|
+
"name": "token",
|
1542
|
+
"type": "address"
|
1543
|
+
},
|
1544
|
+
{
|
1545
|
+
"internalType": "address",
|
1546
|
+
"name": "wallet",
|
1547
|
+
"type": "address"
|
415
1548
|
}
|
416
1549
|
],
|
417
|
-
"
|
1550
|
+
"name": "registerComponent",
|
1551
|
+
"outputs": [],
|
1552
|
+
"stateMutability": "nonpayable",
|
418
1553
|
"type": "function"
|
419
1554
|
},
|
420
1555
|
{
|
@@ -423,263 +1558,223 @@
|
|
423
1558
|
"internalType": "NftId",
|
424
1559
|
"name": "nftId",
|
425
1560
|
"type": "uint96"
|
426
|
-
}
|
427
|
-
],
|
428
|
-
"name": "getPolicyInfo",
|
429
|
-
"outputs": [
|
1561
|
+
},
|
430
1562
|
{
|
431
1563
|
"components": [
|
432
1564
|
{
|
433
|
-
"internalType": "
|
434
|
-
"name": "
|
435
|
-
"type": "
|
436
|
-
},
|
437
|
-
{
|
438
|
-
"internalType": "enum IPolicy.PolicyState",
|
439
|
-
"name": "state",
|
440
|
-
"type": "uint8"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
"internalType": "uint256",
|
444
|
-
"name": "sumInsuredAmount",
|
445
|
-
"type": "uint256"
|
446
|
-
},
|
447
|
-
{
|
448
|
-
"internalType": "uint256",
|
449
|
-
"name": "premiumAmount",
|
450
|
-
"type": "uint256"
|
451
|
-
},
|
452
|
-
{
|
453
|
-
"internalType": "uint256",
|
454
|
-
"name": "lifetime",
|
455
|
-
"type": "uint256"
|
456
|
-
},
|
457
|
-
{
|
458
|
-
"internalType": "uint256",
|
459
|
-
"name": "createdAt",
|
460
|
-
"type": "uint256"
|
461
|
-
},
|
462
|
-
{
|
463
|
-
"internalType": "uint256",
|
464
|
-
"name": "activatedAt",
|
465
|
-
"type": "uint256"
|
466
|
-
},
|
467
|
-
{
|
468
|
-
"internalType": "uint256",
|
469
|
-
"name": "expiredAt",
|
470
|
-
"type": "uint256"
|
1565
|
+
"internalType": "bool",
|
1566
|
+
"name": "isVerifying",
|
1567
|
+
"type": "bool"
|
471
1568
|
},
|
472
1569
|
{
|
473
|
-
"internalType": "
|
474
|
-
"name": "
|
1570
|
+
"internalType": "UFixed",
|
1571
|
+
"name": "collateralizationLevel",
|
475
1572
|
"type": "uint256"
|
476
1573
|
}
|
477
1574
|
],
|
478
|
-
"internalType": "struct
|
1575
|
+
"internalType": "struct IPool.PoolInfo",
|
479
1576
|
"name": "info",
|
480
1577
|
"type": "tuple"
|
481
1578
|
}
|
482
1579
|
],
|
483
|
-
"
|
1580
|
+
"name": "registerPool",
|
1581
|
+
"outputs": [],
|
1582
|
+
"stateMutability": "nonpayable",
|
484
1583
|
"type": "function"
|
485
1584
|
},
|
486
1585
|
{
|
487
1586
|
"inputs": [
|
488
1587
|
{
|
489
1588
|
"internalType": "NftId",
|
490
|
-
"name": "
|
1589
|
+
"name": "productNftId",
|
491
1590
|
"type": "uint96"
|
492
|
-
}
|
493
|
-
],
|
494
|
-
"name": "getPoolInfo",
|
495
|
-
"outputs": [
|
1591
|
+
},
|
496
1592
|
{
|
497
1593
|
"components": [
|
498
1594
|
{
|
499
1595
|
"internalType": "NftId",
|
500
|
-
"name": "
|
1596
|
+
"name": "poolNftId",
|
501
1597
|
"type": "uint96"
|
502
1598
|
},
|
503
1599
|
{
|
504
|
-
"internalType": "
|
505
|
-
"name": "
|
506
|
-
"type": "
|
1600
|
+
"internalType": "NftId",
|
1601
|
+
"name": "distributionNftId",
|
1602
|
+
"type": "uint96"
|
507
1603
|
},
|
508
1604
|
{
|
509
|
-
"internalType": "
|
1605
|
+
"internalType": "contract IERC20Metadata",
|
510
1606
|
"name": "token",
|
511
1607
|
"type": "address"
|
512
1608
|
},
|
513
1609
|
{
|
514
|
-
"
|
515
|
-
|
516
|
-
|
1610
|
+
"components": [
|
1611
|
+
{
|
1612
|
+
"internalType": "UFixed",
|
1613
|
+
"name": "fractionalFee",
|
1614
|
+
"type": "uint256"
|
1615
|
+
},
|
1616
|
+
{
|
1617
|
+
"internalType": "uint256",
|
1618
|
+
"name": "fixedFee",
|
1619
|
+
"type": "uint256"
|
1620
|
+
}
|
1621
|
+
],
|
1622
|
+
"internalType": "struct Fee",
|
1623
|
+
"name": "productFee",
|
1624
|
+
"type": "tuple"
|
517
1625
|
},
|
518
1626
|
{
|
519
|
-
"
|
520
|
-
|
521
|
-
|
1627
|
+
"components": [
|
1628
|
+
{
|
1629
|
+
"internalType": "UFixed",
|
1630
|
+
"name": "fractionalFee",
|
1631
|
+
"type": "uint256"
|
1632
|
+
},
|
1633
|
+
{
|
1634
|
+
"internalType": "uint256",
|
1635
|
+
"name": "fixedFee",
|
1636
|
+
"type": "uint256"
|
1637
|
+
}
|
1638
|
+
],
|
1639
|
+
"internalType": "struct Fee",
|
1640
|
+
"name": "processingFee",
|
1641
|
+
"type": "tuple"
|
1642
|
+
},
|
1643
|
+
{
|
1644
|
+
"components": [
|
1645
|
+
{
|
1646
|
+
"internalType": "UFixed",
|
1647
|
+
"name": "fractionalFee",
|
1648
|
+
"type": "uint256"
|
1649
|
+
},
|
1650
|
+
{
|
1651
|
+
"internalType": "uint256",
|
1652
|
+
"name": "fixedFee",
|
1653
|
+
"type": "uint256"
|
1654
|
+
}
|
1655
|
+
],
|
1656
|
+
"internalType": "struct Fee",
|
1657
|
+
"name": "poolFee",
|
1658
|
+
"type": "tuple"
|
1659
|
+
},
|
1660
|
+
{
|
1661
|
+
"components": [
|
1662
|
+
{
|
1663
|
+
"internalType": "UFixed",
|
1664
|
+
"name": "fractionalFee",
|
1665
|
+
"type": "uint256"
|
1666
|
+
},
|
1667
|
+
{
|
1668
|
+
"internalType": "uint256",
|
1669
|
+
"name": "fixedFee",
|
1670
|
+
"type": "uint256"
|
1671
|
+
}
|
1672
|
+
],
|
1673
|
+
"internalType": "struct Fee",
|
1674
|
+
"name": "stakingFee",
|
1675
|
+
"type": "tuple"
|
1676
|
+
},
|
1677
|
+
{
|
1678
|
+
"components": [
|
1679
|
+
{
|
1680
|
+
"internalType": "UFixed",
|
1681
|
+
"name": "fractionalFee",
|
1682
|
+
"type": "uint256"
|
1683
|
+
},
|
1684
|
+
{
|
1685
|
+
"internalType": "uint256",
|
1686
|
+
"name": "fixedFee",
|
1687
|
+
"type": "uint256"
|
1688
|
+
}
|
1689
|
+
],
|
1690
|
+
"internalType": "struct Fee",
|
1691
|
+
"name": "performanceFee",
|
1692
|
+
"type": "tuple"
|
1693
|
+
},
|
1694
|
+
{
|
1695
|
+
"components": [
|
1696
|
+
{
|
1697
|
+
"internalType": "UFixed",
|
1698
|
+
"name": "fractionalFee",
|
1699
|
+
"type": "uint256"
|
1700
|
+
},
|
1701
|
+
{
|
1702
|
+
"internalType": "uint256",
|
1703
|
+
"name": "fixedFee",
|
1704
|
+
"type": "uint256"
|
1705
|
+
}
|
1706
|
+
],
|
1707
|
+
"internalType": "struct Fee",
|
1708
|
+
"name": "distributionFee",
|
1709
|
+
"type": "tuple"
|
522
1710
|
}
|
523
1711
|
],
|
524
|
-
"internalType": "struct
|
1712
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
525
1713
|
"name": "info",
|
526
1714
|
"type": "tuple"
|
527
1715
|
}
|
528
1716
|
],
|
529
|
-
"
|
1717
|
+
"name": "registerProductSetup",
|
1718
|
+
"outputs": [],
|
1719
|
+
"stateMutability": "nonpayable",
|
530
1720
|
"type": "function"
|
531
1721
|
},
|
532
1722
|
{
|
533
1723
|
"inputs": [
|
534
1724
|
{
|
535
1725
|
"internalType": "NftId",
|
536
|
-
"name": "
|
1726
|
+
"name": "bundleNftId",
|
537
1727
|
"type": "uint96"
|
538
|
-
}
|
539
|
-
],
|
540
|
-
"name": "getPoolNftId",
|
541
|
-
"outputs": [
|
1728
|
+
},
|
542
1729
|
{
|
543
1730
|
"internalType": "NftId",
|
544
|
-
"name": "
|
1731
|
+
"name": "policyNftId",
|
545
1732
|
"type": "uint96"
|
546
1733
|
}
|
547
1734
|
],
|
548
|
-
"
|
549
|
-
"type": "function"
|
550
|
-
},
|
551
|
-
{
|
552
|
-
"inputs": [],
|
553
|
-
"name": "getProductService",
|
554
|
-
"outputs": [
|
555
|
-
{
|
556
|
-
"internalType": "contract IProductService",
|
557
|
-
"name": "",
|
558
|
-
"type": "address"
|
559
|
-
}
|
560
|
-
],
|
561
|
-
"stateMutability": "view",
|
562
|
-
"type": "function"
|
563
|
-
},
|
564
|
-
{
|
565
|
-
"inputs": [],
|
566
|
-
"name": "getRegistry",
|
567
|
-
"outputs": [
|
568
|
-
{
|
569
|
-
"internalType": "contract IRegistry",
|
570
|
-
"name": "registry",
|
571
|
-
"type": "address"
|
572
|
-
}
|
573
|
-
],
|
574
|
-
"stateMutability": "view",
|
575
|
-
"type": "function"
|
576
|
-
},
|
577
|
-
{
|
578
|
-
"inputs": [
|
579
|
-
{
|
580
|
-
"internalType": "uint256",
|
581
|
-
"name": "idx",
|
582
|
-
"type": "uint256"
|
583
|
-
}
|
584
|
-
],
|
585
|
-
"name": "getRole",
|
586
|
-
"outputs": [
|
587
|
-
{
|
588
|
-
"internalType": "bytes32",
|
589
|
-
"name": "role",
|
590
|
-
"type": "bytes32"
|
591
|
-
}
|
592
|
-
],
|
593
|
-
"stateMutability": "view",
|
594
|
-
"type": "function"
|
595
|
-
},
|
596
|
-
{
|
597
|
-
"inputs": [],
|
598
|
-
"name": "getRoleCount",
|
1735
|
+
"name": "releasePolicy",
|
599
1736
|
"outputs": [
|
600
1737
|
{
|
601
1738
|
"internalType": "uint256",
|
602
|
-
"name": "
|
1739
|
+
"name": "collateralAmount",
|
603
1740
|
"type": "uint256"
|
604
1741
|
}
|
605
1742
|
],
|
606
|
-
"stateMutability": "
|
607
|
-
"type": "function"
|
608
|
-
},
|
609
|
-
{
|
610
|
-
"inputs": [
|
611
|
-
{
|
612
|
-
"internalType": "string",
|
613
|
-
"name": "roleName",
|
614
|
-
"type": "string"
|
615
|
-
}
|
616
|
-
],
|
617
|
-
"name": "getRoleForName",
|
618
|
-
"outputs": [
|
619
|
-
{
|
620
|
-
"internalType": "bytes32",
|
621
|
-
"name": "role",
|
622
|
-
"type": "bytes32"
|
623
|
-
}
|
624
|
-
],
|
625
|
-
"stateMutability": "pure",
|
1743
|
+
"stateMutability": "nonpayable",
|
626
1744
|
"type": "function"
|
627
1745
|
},
|
628
1746
|
{
|
629
1747
|
"inputs": [
|
630
1748
|
{
|
631
|
-
"internalType": "
|
1749
|
+
"internalType": "RoleId",
|
632
1750
|
"name": "role",
|
633
|
-
"type": "
|
634
|
-
}
|
635
|
-
],
|
636
|
-
"name": "getRoleInfo",
|
637
|
-
"outputs": [
|
1751
|
+
"type": "bytes8"
|
1752
|
+
},
|
638
1753
|
{
|
639
|
-
"
|
640
|
-
|
641
|
-
|
642
|
-
"name": "id",
|
643
|
-
"type": "bytes32"
|
644
|
-
},
|
645
|
-
{
|
646
|
-
"internalType": "string",
|
647
|
-
"name": "name",
|
648
|
-
"type": "string"
|
649
|
-
},
|
650
|
-
{
|
651
|
-
"internalType": "bool",
|
652
|
-
"name": "isActive",
|
653
|
-
"type": "bool"
|
654
|
-
}
|
655
|
-
],
|
656
|
-
"internalType": "struct IAccess.RoleInfo",
|
657
|
-
"name": "info",
|
658
|
-
"type": "tuple"
|
1754
|
+
"internalType": "address",
|
1755
|
+
"name": "member",
|
1756
|
+
"type": "address"
|
659
1757
|
}
|
660
1758
|
],
|
661
|
-
"
|
1759
|
+
"name": "revokeRole",
|
1760
|
+
"outputs": [],
|
1761
|
+
"stateMutability": "nonpayable",
|
662
1762
|
"type": "function"
|
663
1763
|
},
|
664
1764
|
{
|
665
1765
|
"inputs": [
|
666
1766
|
{
|
667
|
-
"internalType": "
|
1767
|
+
"internalType": "RoleId",
|
668
1768
|
"name": "role",
|
669
|
-
"type": "
|
670
|
-
},
|
671
|
-
{
|
672
|
-
"internalType": "uint256",
|
673
|
-
"name": "idx",
|
674
|
-
"type": "uint256"
|
1769
|
+
"type": "bytes8"
|
675
1770
|
}
|
676
1771
|
],
|
677
|
-
"name": "
|
1772
|
+
"name": "roleExists",
|
678
1773
|
"outputs": [
|
679
1774
|
{
|
680
|
-
"internalType": "
|
681
|
-
"name": "
|
682
|
-
"type": "
|
1775
|
+
"internalType": "bool",
|
1776
|
+
"name": "",
|
1777
|
+
"type": "bool"
|
683
1778
|
}
|
684
1779
|
],
|
685
1780
|
"stateMutability": "view",
|
@@ -688,49 +1783,191 @@
|
|
688
1783
|
{
|
689
1784
|
"inputs": [
|
690
1785
|
{
|
691
|
-
"internalType": "
|
692
|
-
"name": "
|
693
|
-
"type": "
|
694
|
-
}
|
695
|
-
],
|
696
|
-
"name": "getRoleMemberCount",
|
697
|
-
"outputs": [
|
1786
|
+
"internalType": "NftId",
|
1787
|
+
"name": "nftId",
|
1788
|
+
"type": "uint96"
|
1789
|
+
},
|
698
1790
|
{
|
699
|
-
"
|
700
|
-
|
701
|
-
|
1791
|
+
"components": [
|
1792
|
+
{
|
1793
|
+
"internalType": "NftId",
|
1794
|
+
"name": "poolNftId",
|
1795
|
+
"type": "uint96"
|
1796
|
+
},
|
1797
|
+
{
|
1798
|
+
"components": [
|
1799
|
+
{
|
1800
|
+
"internalType": "UFixed",
|
1801
|
+
"name": "fractionalFee",
|
1802
|
+
"type": "uint256"
|
1803
|
+
},
|
1804
|
+
{
|
1805
|
+
"internalType": "uint256",
|
1806
|
+
"name": "fixedFee",
|
1807
|
+
"type": "uint256"
|
1808
|
+
}
|
1809
|
+
],
|
1810
|
+
"internalType": "struct Fee",
|
1811
|
+
"name": "fee",
|
1812
|
+
"type": "tuple"
|
1813
|
+
},
|
1814
|
+
{
|
1815
|
+
"internalType": "bytes",
|
1816
|
+
"name": "filter",
|
1817
|
+
"type": "bytes"
|
1818
|
+
},
|
1819
|
+
{
|
1820
|
+
"internalType": "uint256",
|
1821
|
+
"name": "capitalAmount",
|
1822
|
+
"type": "uint256"
|
1823
|
+
},
|
1824
|
+
{
|
1825
|
+
"internalType": "uint256",
|
1826
|
+
"name": "lockedAmount",
|
1827
|
+
"type": "uint256"
|
1828
|
+
},
|
1829
|
+
{
|
1830
|
+
"internalType": "uint256",
|
1831
|
+
"name": "balanceAmount",
|
1832
|
+
"type": "uint256"
|
1833
|
+
},
|
1834
|
+
{
|
1835
|
+
"internalType": "Timestamp",
|
1836
|
+
"name": "expiredAt",
|
1837
|
+
"type": "uint40"
|
1838
|
+
},
|
1839
|
+
{
|
1840
|
+
"internalType": "Timestamp",
|
1841
|
+
"name": "closedAt",
|
1842
|
+
"type": "uint40"
|
1843
|
+
}
|
1844
|
+
],
|
1845
|
+
"internalType": "struct IBundle.BundleInfo",
|
1846
|
+
"name": "bundleInfo",
|
1847
|
+
"type": "tuple"
|
702
1848
|
}
|
703
1849
|
],
|
704
|
-
"
|
1850
|
+
"name": "setBundleInfo",
|
1851
|
+
"outputs": [],
|
1852
|
+
"stateMutability": "nonpayable",
|
705
1853
|
"type": "function"
|
706
1854
|
},
|
707
1855
|
{
|
708
|
-
"inputs": [
|
709
|
-
"name": "getType",
|
710
|
-
"outputs": [
|
1856
|
+
"inputs": [
|
711
1857
|
{
|
712
|
-
"internalType": "
|
713
|
-
"name": "
|
714
|
-
"type": "
|
1858
|
+
"internalType": "NftId",
|
1859
|
+
"name": "policyNftId",
|
1860
|
+
"type": "uint96"
|
1861
|
+
},
|
1862
|
+
{
|
1863
|
+
"components": [
|
1864
|
+
{
|
1865
|
+
"internalType": "NftId",
|
1866
|
+
"name": "productNftId",
|
1867
|
+
"type": "uint96"
|
1868
|
+
},
|
1869
|
+
{
|
1870
|
+
"internalType": "NftId",
|
1871
|
+
"name": "bundleNftId",
|
1872
|
+
"type": "uint96"
|
1873
|
+
},
|
1874
|
+
{
|
1875
|
+
"internalType": "ReferralId",
|
1876
|
+
"name": "referralId",
|
1877
|
+
"type": "bytes8"
|
1878
|
+
},
|
1879
|
+
{
|
1880
|
+
"internalType": "address",
|
1881
|
+
"name": "beneficiary",
|
1882
|
+
"type": "address"
|
1883
|
+
},
|
1884
|
+
{
|
1885
|
+
"internalType": "RiskId",
|
1886
|
+
"name": "riskId",
|
1887
|
+
"type": "bytes8"
|
1888
|
+
},
|
1889
|
+
{
|
1890
|
+
"internalType": "uint256",
|
1891
|
+
"name": "sumInsuredAmount",
|
1892
|
+
"type": "uint256"
|
1893
|
+
},
|
1894
|
+
{
|
1895
|
+
"internalType": "uint256",
|
1896
|
+
"name": "premiumAmount",
|
1897
|
+
"type": "uint256"
|
1898
|
+
},
|
1899
|
+
{
|
1900
|
+
"internalType": "uint256",
|
1901
|
+
"name": "premiumPaidAmount",
|
1902
|
+
"type": "uint256"
|
1903
|
+
},
|
1904
|
+
{
|
1905
|
+
"internalType": "uint256",
|
1906
|
+
"name": "lifetime",
|
1907
|
+
"type": "uint256"
|
1908
|
+
},
|
1909
|
+
{
|
1910
|
+
"internalType": "bytes",
|
1911
|
+
"name": "applicationData",
|
1912
|
+
"type": "bytes"
|
1913
|
+
},
|
1914
|
+
{
|
1915
|
+
"internalType": "bytes",
|
1916
|
+
"name": "policyData",
|
1917
|
+
"type": "bytes"
|
1918
|
+
},
|
1919
|
+
{
|
1920
|
+
"internalType": "Timestamp",
|
1921
|
+
"name": "activatedAt",
|
1922
|
+
"type": "uint40"
|
1923
|
+
},
|
1924
|
+
{
|
1925
|
+
"internalType": "Timestamp",
|
1926
|
+
"name": "expiredAt",
|
1927
|
+
"type": "uint40"
|
1928
|
+
},
|
1929
|
+
{
|
1930
|
+
"internalType": "Timestamp",
|
1931
|
+
"name": "closedAt",
|
1932
|
+
"type": "uint40"
|
1933
|
+
}
|
1934
|
+
],
|
1935
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
1936
|
+
"name": "info",
|
1937
|
+
"type": "tuple"
|
715
1938
|
}
|
716
1939
|
],
|
717
|
-
"
|
1940
|
+
"name": "setPolicyInfo",
|
1941
|
+
"outputs": [],
|
1942
|
+
"stateMutability": "nonpayable",
|
718
1943
|
"type": "function"
|
719
1944
|
},
|
720
1945
|
{
|
721
1946
|
"inputs": [
|
722
1947
|
{
|
723
|
-
"internalType": "
|
724
|
-
"name": "
|
725
|
-
"type": "
|
1948
|
+
"internalType": "RiskId",
|
1949
|
+
"name": "riskId",
|
1950
|
+
"type": "bytes8"
|
726
1951
|
},
|
727
1952
|
{
|
728
|
-
"
|
729
|
-
|
730
|
-
|
1953
|
+
"components": [
|
1954
|
+
{
|
1955
|
+
"internalType": "NftId",
|
1956
|
+
"name": "productNftId",
|
1957
|
+
"type": "uint96"
|
1958
|
+
},
|
1959
|
+
{
|
1960
|
+
"internalType": "bytes",
|
1961
|
+
"name": "data",
|
1962
|
+
"type": "bytes"
|
1963
|
+
}
|
1964
|
+
],
|
1965
|
+
"internalType": "struct IRisk.RiskInfo",
|
1966
|
+
"name": "info",
|
1967
|
+
"type": "tuple"
|
731
1968
|
}
|
732
1969
|
],
|
733
|
-
"name": "
|
1970
|
+
"name": "setRiskInfo",
|
734
1971
|
"outputs": [],
|
735
1972
|
"stateMutability": "nonpayable",
|
736
1973
|
"type": "function"
|
@@ -738,43 +1975,167 @@
|
|
738
1975
|
{
|
739
1976
|
"inputs": [
|
740
1977
|
{
|
741
|
-
"internalType": "
|
1978
|
+
"internalType": "RoleId",
|
742
1979
|
"name": "role",
|
743
|
-
"type": "
|
1980
|
+
"type": "bytes8"
|
744
1981
|
},
|
745
|
-
{
|
746
|
-
"internalType": "address",
|
747
|
-
"name": "member",
|
748
|
-
"type": "address"
|
749
|
-
}
|
750
|
-
],
|
751
|
-
"name": "hasRole",
|
752
|
-
"outputs": [
|
753
1982
|
{
|
754
1983
|
"internalType": "bool",
|
755
|
-
"name": "",
|
1984
|
+
"name": "active",
|
756
1985
|
"type": "bool"
|
757
1986
|
}
|
758
1987
|
],
|
759
|
-
"
|
1988
|
+
"name": "setRoleState",
|
1989
|
+
"outputs": [],
|
1990
|
+
"stateMutability": "nonpayable",
|
760
1991
|
"type": "function"
|
761
1992
|
},
|
762
1993
|
{
|
763
|
-
"inputs": [
|
764
|
-
"name": "isRegisterable",
|
765
|
-
"outputs": [
|
1994
|
+
"inputs": [
|
766
1995
|
{
|
767
|
-
"internalType": "
|
768
|
-
"name": "",
|
769
|
-
"type": "
|
1996
|
+
"internalType": "NftId",
|
1997
|
+
"name": "productNftId",
|
1998
|
+
"type": "uint96"
|
1999
|
+
},
|
2000
|
+
{
|
2001
|
+
"components": [
|
2002
|
+
{
|
2003
|
+
"internalType": "NftId",
|
2004
|
+
"name": "poolNftId",
|
2005
|
+
"type": "uint96"
|
2006
|
+
},
|
2007
|
+
{
|
2008
|
+
"internalType": "NftId",
|
2009
|
+
"name": "distributionNftId",
|
2010
|
+
"type": "uint96"
|
2011
|
+
},
|
2012
|
+
{
|
2013
|
+
"internalType": "contract IERC20Metadata",
|
2014
|
+
"name": "token",
|
2015
|
+
"type": "address"
|
2016
|
+
},
|
2017
|
+
{
|
2018
|
+
"components": [
|
2019
|
+
{
|
2020
|
+
"internalType": "UFixed",
|
2021
|
+
"name": "fractionalFee",
|
2022
|
+
"type": "uint256"
|
2023
|
+
},
|
2024
|
+
{
|
2025
|
+
"internalType": "uint256",
|
2026
|
+
"name": "fixedFee",
|
2027
|
+
"type": "uint256"
|
2028
|
+
}
|
2029
|
+
],
|
2030
|
+
"internalType": "struct Fee",
|
2031
|
+
"name": "productFee",
|
2032
|
+
"type": "tuple"
|
2033
|
+
},
|
2034
|
+
{
|
2035
|
+
"components": [
|
2036
|
+
{
|
2037
|
+
"internalType": "UFixed",
|
2038
|
+
"name": "fractionalFee",
|
2039
|
+
"type": "uint256"
|
2040
|
+
},
|
2041
|
+
{
|
2042
|
+
"internalType": "uint256",
|
2043
|
+
"name": "fixedFee",
|
2044
|
+
"type": "uint256"
|
2045
|
+
}
|
2046
|
+
],
|
2047
|
+
"internalType": "struct Fee",
|
2048
|
+
"name": "processingFee",
|
2049
|
+
"type": "tuple"
|
2050
|
+
},
|
2051
|
+
{
|
2052
|
+
"components": [
|
2053
|
+
{
|
2054
|
+
"internalType": "UFixed",
|
2055
|
+
"name": "fractionalFee",
|
2056
|
+
"type": "uint256"
|
2057
|
+
},
|
2058
|
+
{
|
2059
|
+
"internalType": "uint256",
|
2060
|
+
"name": "fixedFee",
|
2061
|
+
"type": "uint256"
|
2062
|
+
}
|
2063
|
+
],
|
2064
|
+
"internalType": "struct Fee",
|
2065
|
+
"name": "poolFee",
|
2066
|
+
"type": "tuple"
|
2067
|
+
},
|
2068
|
+
{
|
2069
|
+
"components": [
|
2070
|
+
{
|
2071
|
+
"internalType": "UFixed",
|
2072
|
+
"name": "fractionalFee",
|
2073
|
+
"type": "uint256"
|
2074
|
+
},
|
2075
|
+
{
|
2076
|
+
"internalType": "uint256",
|
2077
|
+
"name": "fixedFee",
|
2078
|
+
"type": "uint256"
|
2079
|
+
}
|
2080
|
+
],
|
2081
|
+
"internalType": "struct Fee",
|
2082
|
+
"name": "stakingFee",
|
2083
|
+
"type": "tuple"
|
2084
|
+
},
|
2085
|
+
{
|
2086
|
+
"components": [
|
2087
|
+
{
|
2088
|
+
"internalType": "UFixed",
|
2089
|
+
"name": "fractionalFee",
|
2090
|
+
"type": "uint256"
|
2091
|
+
},
|
2092
|
+
{
|
2093
|
+
"internalType": "uint256",
|
2094
|
+
"name": "fixedFee",
|
2095
|
+
"type": "uint256"
|
2096
|
+
}
|
2097
|
+
],
|
2098
|
+
"internalType": "struct Fee",
|
2099
|
+
"name": "performanceFee",
|
2100
|
+
"type": "tuple"
|
2101
|
+
},
|
2102
|
+
{
|
2103
|
+
"components": [
|
2104
|
+
{
|
2105
|
+
"internalType": "UFixed",
|
2106
|
+
"name": "fractionalFee",
|
2107
|
+
"type": "uint256"
|
2108
|
+
},
|
2109
|
+
{
|
2110
|
+
"internalType": "uint256",
|
2111
|
+
"name": "fixedFee",
|
2112
|
+
"type": "uint256"
|
2113
|
+
}
|
2114
|
+
],
|
2115
|
+
"internalType": "struct Fee",
|
2116
|
+
"name": "distributionFee",
|
2117
|
+
"type": "tuple"
|
2118
|
+
}
|
2119
|
+
],
|
2120
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
2121
|
+
"name": "info",
|
2122
|
+
"type": "tuple"
|
770
2123
|
}
|
771
2124
|
],
|
772
|
-
"
|
2125
|
+
"name": "setTreasuryInfo",
|
2126
|
+
"outputs": [],
|
2127
|
+
"stateMutability": "nonpayable",
|
773
2128
|
"type": "function"
|
774
2129
|
},
|
775
2130
|
{
|
776
|
-
"inputs": [
|
777
|
-
|
2131
|
+
"inputs": [
|
2132
|
+
{
|
2133
|
+
"internalType": "bytes4",
|
2134
|
+
"name": "interfaceId",
|
2135
|
+
"type": "bytes4"
|
2136
|
+
}
|
2137
|
+
],
|
2138
|
+
"name": "supportsInterface",
|
778
2139
|
"outputs": [
|
779
2140
|
{
|
780
2141
|
"internalType": "bool",
|
@@ -786,51 +2147,55 @@
|
|
786
2147
|
"type": "function"
|
787
2148
|
},
|
788
2149
|
{
|
789
|
-
"inputs": [
|
790
|
-
"name": "register",
|
791
|
-
"outputs": [
|
2150
|
+
"inputs": [
|
792
2151
|
{
|
793
2152
|
"internalType": "NftId",
|
794
2153
|
"name": "nftId",
|
795
2154
|
"type": "uint96"
|
2155
|
+
},
|
2156
|
+
{
|
2157
|
+
"internalType": "StateId",
|
2158
|
+
"name": "state",
|
2159
|
+
"type": "uint8"
|
796
2160
|
}
|
797
2161
|
],
|
2162
|
+
"name": "updateBundleState",
|
2163
|
+
"outputs": [],
|
798
2164
|
"stateMutability": "nonpayable",
|
799
2165
|
"type": "function"
|
800
2166
|
},
|
801
2167
|
{
|
802
2168
|
"inputs": [
|
803
|
-
{
|
804
|
-
"internalType": "contract IComponentContract",
|
805
|
-
"name": "component",
|
806
|
-
"type": "address"
|
807
|
-
}
|
808
|
-
],
|
809
|
-
"name": "registerComponent",
|
810
|
-
"outputs": [
|
811
2169
|
{
|
812
2170
|
"internalType": "NftId",
|
813
2171
|
"name": "nftId",
|
814
2172
|
"type": "uint96"
|
2173
|
+
},
|
2174
|
+
{
|
2175
|
+
"internalType": "StateId",
|
2176
|
+
"name": "state",
|
2177
|
+
"type": "uint8"
|
815
2178
|
}
|
816
2179
|
],
|
2180
|
+
"name": "updatePolicyState",
|
2181
|
+
"outputs": [],
|
817
2182
|
"stateMutability": "nonpayable",
|
818
2183
|
"type": "function"
|
819
2184
|
},
|
820
2185
|
{
|
821
2186
|
"inputs": [
|
822
2187
|
{
|
823
|
-
"internalType": "
|
824
|
-
"name": "
|
825
|
-
"type": "
|
2188
|
+
"internalType": "RiskId",
|
2189
|
+
"name": "riskId",
|
2190
|
+
"type": "bytes8"
|
826
2191
|
},
|
827
2192
|
{
|
828
|
-
"internalType": "
|
829
|
-
"name": "
|
830
|
-
"type": "
|
2193
|
+
"internalType": "StateId",
|
2194
|
+
"name": "state",
|
2195
|
+
"type": "uint8"
|
831
2196
|
}
|
832
2197
|
],
|
833
|
-
"name": "
|
2198
|
+
"name": "updateRiskState",
|
834
2199
|
"outputs": [],
|
835
2200
|
"stateMutability": "nonpayable",
|
836
2201
|
"type": "function"
|
@@ -838,48 +2203,40 @@
|
|
838
2203
|
{
|
839
2204
|
"inputs": [
|
840
2205
|
{
|
841
|
-
"
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
"type": "uint96"
|
846
|
-
},
|
847
|
-
{
|
848
|
-
"internalType": "enum IComponent.CState",
|
849
|
-
"name": "state",
|
850
|
-
"type": "uint8"
|
851
|
-
}
|
852
|
-
],
|
853
|
-
"internalType": "struct IComponent.ComponentInfo",
|
854
|
-
"name": "info",
|
855
|
-
"type": "tuple"
|
856
|
-
}
|
857
|
-
],
|
858
|
-
"name": "setComponentInfo",
|
859
|
-
"outputs": [
|
2206
|
+
"internalType": "Key32",
|
2207
|
+
"name": "key",
|
2208
|
+
"type": "bytes32"
|
2209
|
+
},
|
860
2210
|
{
|
861
|
-
"internalType": "
|
862
|
-
"name": "
|
863
|
-
"type": "
|
2211
|
+
"internalType": "StateId",
|
2212
|
+
"name": "state",
|
2213
|
+
"type": "uint8"
|
864
2214
|
}
|
865
2215
|
],
|
2216
|
+
"name": "updateState",
|
2217
|
+
"outputs": [],
|
866
2218
|
"stateMutability": "nonpayable",
|
867
2219
|
"type": "function"
|
868
2220
|
},
|
869
2221
|
{
|
870
2222
|
"inputs": [
|
871
2223
|
{
|
872
|
-
"internalType": "
|
873
|
-
"name": "
|
874
|
-
"type": "
|
2224
|
+
"internalType": "address",
|
2225
|
+
"name": "implementation",
|
2226
|
+
"type": "address"
|
875
2227
|
},
|
876
2228
|
{
|
877
|
-
"internalType": "
|
878
|
-
"name": "
|
879
|
-
"type": "
|
2229
|
+
"internalType": "address",
|
2230
|
+
"name": "activatedBy",
|
2231
|
+
"type": "address"
|
2232
|
+
},
|
2233
|
+
{
|
2234
|
+
"internalType": "bytes",
|
2235
|
+
"name": "upgradeData",
|
2236
|
+
"type": "bytes"
|
880
2237
|
}
|
881
2238
|
],
|
882
|
-
"name": "
|
2239
|
+
"name": "upgrade",
|
883
2240
|
"outputs": [],
|
884
2241
|
"stateMutability": "nonpayable",
|
885
2242
|
"type": "function"
|