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