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