@etherisc/gif-next 0.0.2-d408403-475 → 0.0.2-d551b5e-892
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +231 -27
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +302 -23
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +393 -54
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +217 -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 +460 -99
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +491 -80
- 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/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
- package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +868 -1164
- 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 +485 -0
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +2421 -1250
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +940 -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 +999 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +532 -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 +264 -43
- 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 +211 -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/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +375 -79
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +317 -53
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +177 -75
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +174 -53
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +337 -49
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +171 -263
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +984 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +527 -53
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +290 -359
- 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 +377 -37
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +947 -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 +487 -123
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1293 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +517 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -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} +222 -54
- 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/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
- 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 +283 -62
- 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 +75 -37
- package/contracts/components/Distribution.sol +49 -18
- package/contracts/components/IBaseComponent.sol +15 -3
- package/contracts/components/IDistributionComponent.sol +3 -7
- package/contracts/components/IPoolComponent.sol +7 -12
- package/contracts/components/IProductComponent.sol +4 -7
- package/contracts/components/Pool.sol +111 -79
- 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/IAccessManagerSimple.sol +391 -0
- package/contracts/instance/IInstance.sol +50 -45
- package/contracts/instance/IInstanceBase.sol +26 -0
- package/contracts/instance/IInstanceService.sol +32 -0
- package/contracts/instance/Instance.sol +443 -57
- package/contracts/instance/InstanceAccessManager.sol +288 -0
- package/contracts/instance/InstanceBase.sol +41 -0
- package/contracts/instance/InstanceReader.sol +315 -0
- package/contracts/instance/InstanceService.sol +252 -0
- package/contracts/instance/InstanceServiceManager.sol +57 -0
- package/contracts/instance/ObjectManager.sol +101 -0
- package/contracts/instance/base/ComponentServiceBase.sol +46 -16
- 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 +38 -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/ComponentOwnerService.sol +232 -72
- package/contracts/instance/service/DistributionService.sol +78 -19
- package/contracts/instance/service/DistributionServiceManager.sol +54 -0
- package/contracts/instance/service/IComponentOwnerService.sol +1 -3
- package/contracts/instance/service/IDistributionService.sol +1 -1
- package/contracts/instance/service/IPolicyService.sol +87 -0
- package/contracts/instance/service/IPoolService.sol +17 -3
- package/contracts/instance/service/IProductService.sol +9 -76
- package/contracts/instance/service/PolicyService.sol +513 -0
- package/contracts/instance/service/PolicyServiceManager.sol +54 -0
- package/contracts/instance/service/PoolService.sol +219 -51
- package/contracts/instance/service/PoolServiceManager.sol +54 -0
- package/contracts/instance/service/ProductService.sol +100 -436
- package/contracts/instance/service/ProductServiceManager.sol +54 -0
- package/contracts/registry/ChainNft.sol +80 -37
- package/contracts/registry/IRegistry.sol +49 -25
- package/contracts/registry/IRegistryService.sol +50 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +336 -270
- package/contracts/registry/RegistryService.sol +358 -0
- package/contracts/registry/RegistryServiceManager.sol +80 -0
- package/contracts/registry/TokenRegistry.sol +111 -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/{instance/base → shared}/IService.sol +3 -3
- 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 +55 -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 +5 -13
- 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 +62 -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/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
- 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/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/shared/IOwnable.sol +0 -6
- 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",
|
@@ -717,315 +363,145 @@
|
|
717
363
|
"type": "bytes"
|
718
364
|
},
|
719
365
|
{
|
720
|
-
"internalType": "
|
721
|
-
"name": "
|
722
|
-
"type": "
|
723
|
-
},
|
724
|
-
{
|
725
|
-
"internalType": "Timestamp",
|
726
|
-
"name": "expiredAt",
|
727
|
-
"type": "uint40"
|
728
|
-
},
|
729
|
-
{
|
730
|
-
"internalType": "Timestamp",
|
731
|
-
"name": "closedAt",
|
732
|
-
"type": "uint40"
|
733
|
-
}
|
734
|
-
],
|
735
|
-
"internalType": "struct IPolicy.PolicyInfo",
|
736
|
-
"name": "info",
|
737
|
-
"type": "tuple"
|
738
|
-
}
|
739
|
-
],
|
740
|
-
"stateMutability": "view",
|
741
|
-
"type": "function"
|
742
|
-
},
|
743
|
-
{
|
744
|
-
"inputs": [
|
745
|
-
{
|
746
|
-
"internalType": "NftId",
|
747
|
-
"name": "nftId",
|
748
|
-
"type": "uint96"
|
749
|
-
}
|
750
|
-
],
|
751
|
-
"name": "getPoolInfo",
|
752
|
-
"outputs": [
|
753
|
-
{
|
754
|
-
"components": [
|
755
|
-
{
|
756
|
-
"internalType": "bool",
|
757
|
-
"name": "isVerifying",
|
758
|
-
"type": "bool"
|
759
|
-
},
|
760
|
-
{
|
761
|
-
"internalType": "UFixed",
|
762
|
-
"name": "collateralizationLevel",
|
763
|
-
"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": [
|
844
|
-
{
|
845
|
-
"internalType": "NftId",
|
846
|
-
"name": "productNftId",
|
847
|
-
"type": "uint96"
|
848
|
-
},
|
849
|
-
{
|
850
|
-
"internalType": "bytes",
|
851
|
-
"name": "data",
|
852
|
-
"type": "bytes"
|
853
|
-
}
|
854
|
-
],
|
855
|
-
"internalType": "struct IRisk.RiskInfo",
|
856
|
-
"name": "info",
|
857
|
-
"type": "tuple"
|
858
|
-
}
|
859
|
-
],
|
860
|
-
"stateMutability": "view",
|
861
|
-
"type": "function"
|
862
|
-
},
|
863
|
-
{
|
864
|
-
"inputs": [
|
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": [
|
926
|
-
{
|
927
|
-
"internalType": "RoleId",
|
928
|
-
"name": "id",
|
929
|
-
"type": "bytes8"
|
366
|
+
"internalType": "uint16",
|
367
|
+
"name": "claimsCount",
|
368
|
+
"type": "uint16"
|
930
369
|
},
|
931
370
|
{
|
932
|
-
"internalType": "
|
933
|
-
"name": "
|
934
|
-
"type": "
|
371
|
+
"internalType": "uint16",
|
372
|
+
"name": "openClaimsCount",
|
373
|
+
"type": "uint16"
|
935
374
|
},
|
936
375
|
{
|
937
|
-
"internalType": "
|
938
|
-
"name": "
|
939
|
-
"type": "
|
940
|
-
}
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
"
|
959
|
-
"
|
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"
|
376
|
+
"internalType": "uint256",
|
377
|
+
"name": "payoutAmount",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "Timestamp",
|
382
|
+
"name": "activatedAt",
|
383
|
+
"type": "uint40"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"internalType": "Timestamp",
|
387
|
+
"name": "expiredAt",
|
388
|
+
"type": "uint40"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"internalType": "Timestamp",
|
392
|
+
"name": "closedAt",
|
393
|
+
"type": "uint40"
|
394
|
+
}
|
395
|
+
],
|
396
|
+
"internalType": "struct IPolicy.PolicyInfo",
|
397
|
+
"name": "policy",
|
398
|
+
"type": "tuple"
|
1007
399
|
}
|
1008
400
|
],
|
1009
|
-
"
|
401
|
+
"name": "createPolicy",
|
402
|
+
"outputs": [],
|
403
|
+
"stateMutability": "nonpayable",
|
1010
404
|
"type": "function"
|
1011
405
|
},
|
1012
406
|
{
|
1013
407
|
"inputs": [
|
1014
408
|
{
|
1015
409
|
"internalType": "NftId",
|
1016
|
-
"name": "
|
410
|
+
"name": "poolNftId",
|
1017
411
|
"type": "uint96"
|
1018
|
-
}
|
1019
|
-
],
|
1020
|
-
"name": "getTokenHandler",
|
1021
|
-
"outputs": [
|
412
|
+
},
|
1022
413
|
{
|
1023
|
-
"
|
1024
|
-
|
1025
|
-
|
414
|
+
"components": [
|
415
|
+
{
|
416
|
+
"internalType": "NftId",
|
417
|
+
"name": "productNftId",
|
418
|
+
"type": "uint96"
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"internalType": "contract TokenHandler",
|
422
|
+
"name": "tokenHandler",
|
423
|
+
"type": "address"
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"internalType": "UFixed",
|
427
|
+
"name": "collateralizationLevel",
|
428
|
+
"type": "uint256"
|
429
|
+
},
|
430
|
+
{
|
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"
|
446
|
+
},
|
447
|
+
{
|
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
|
+
},
|
464
|
+
{
|
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"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"internalType": "bool",
|
483
|
+
"name": "isIntercepting",
|
484
|
+
"type": "bool"
|
485
|
+
},
|
486
|
+
{
|
487
|
+
"internalType": "bool",
|
488
|
+
"name": "isConfirmingApplication",
|
489
|
+
"type": "bool"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"internalType": "address",
|
493
|
+
"name": "wallet",
|
494
|
+
"type": "address"
|
495
|
+
}
|
496
|
+
],
|
497
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
498
|
+
"name": "setup",
|
499
|
+
"type": "tuple"
|
1026
500
|
}
|
1027
501
|
],
|
1028
|
-
"
|
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,209 @@
|
|
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": "getComponentOwnerService",
|
1196
782
|
"outputs": [
|
1197
783
|
{
|
1198
|
-
"internalType": "
|
784
|
+
"internalType": "contract IComponentOwnerService",
|
1199
785
|
"name": "",
|
1200
|
-
"type": "
|
786
|
+
"type": "address"
|
1201
787
|
}
|
1202
788
|
],
|
1203
|
-
"stateMutability": "
|
789
|
+
"stateMutability": "view",
|
1204
790
|
"type": "function"
|
1205
791
|
},
|
1206
792
|
{
|
1207
793
|
"inputs": [
|
1208
794
|
{
|
1209
|
-
"internalType": "
|
1210
|
-
"name": "
|
1211
|
-
"type": "
|
795
|
+
"internalType": "Key32",
|
796
|
+
"name": "key",
|
797
|
+
"type": "bytes32"
|
1212
798
|
}
|
1213
799
|
],
|
1214
|
-
"name": "
|
800
|
+
"name": "getData",
|
1215
801
|
"outputs": [
|
1216
802
|
{
|
1217
|
-
"internalType": "
|
1218
|
-
"name": "",
|
1219
|
-
"type": "
|
803
|
+
"internalType": "bytes",
|
804
|
+
"name": "data",
|
805
|
+
"type": "bytes"
|
1220
806
|
}
|
1221
807
|
],
|
1222
|
-
"stateMutability": "
|
808
|
+
"stateMutability": "view",
|
1223
809
|
"type": "function"
|
1224
810
|
},
|
1225
811
|
{
|
1226
812
|
"inputs": [],
|
1227
|
-
"name": "
|
813
|
+
"name": "getDistributionService",
|
1228
814
|
"outputs": [
|
1229
815
|
{
|
1230
|
-
"internalType": "
|
816
|
+
"internalType": "contract IDistributionService",
|
1231
817
|
"name": "",
|
1232
|
-
"type": "
|
818
|
+
"type": "address"
|
1233
819
|
}
|
1234
820
|
],
|
1235
|
-
"stateMutability": "
|
821
|
+
"stateMutability": "view",
|
1236
822
|
"type": "function"
|
1237
823
|
},
|
1238
824
|
{
|
1239
825
|
"inputs": [
|
1240
826
|
{
|
1241
|
-
"internalType": "
|
1242
|
-
"name": "
|
1243
|
-
"type": "
|
827
|
+
"internalType": "ObjectType",
|
828
|
+
"name": "objectType",
|
829
|
+
"type": "uint8"
|
1244
830
|
}
|
1245
831
|
],
|
1246
|
-
"name": "
|
832
|
+
"name": "getInitialState",
|
1247
833
|
"outputs": [
|
1248
834
|
{
|
1249
|
-
"internalType": "
|
1250
|
-
"name": "
|
1251
|
-
"type": "
|
835
|
+
"internalType": "StateId",
|
836
|
+
"name": "",
|
837
|
+
"type": "uint8"
|
1252
838
|
}
|
1253
839
|
],
|
1254
840
|
"stateMutability": "view",
|
@@ -1256,12 +842,12 @@
|
|
1256
842
|
},
|
1257
843
|
{
|
1258
844
|
"inputs": [],
|
1259
|
-
"name": "
|
845
|
+
"name": "getInstanceReader",
|
1260
846
|
"outputs": [
|
1261
847
|
{
|
1262
|
-
"internalType": "
|
1263
|
-
"name": "
|
1264
|
-
"type": "
|
848
|
+
"internalType": "contract InstanceReader",
|
849
|
+
"name": "",
|
850
|
+
"type": "address"
|
1265
851
|
}
|
1266
852
|
],
|
1267
853
|
"stateMutability": "view",
|
@@ -1270,43 +856,43 @@
|
|
1270
856
|
{
|
1271
857
|
"inputs": [
|
1272
858
|
{
|
1273
|
-
"internalType": "
|
1274
|
-
"name": "
|
1275
|
-
"type": "
|
859
|
+
"internalType": "Key32",
|
860
|
+
"name": "key",
|
861
|
+
"type": "bytes32"
|
1276
862
|
}
|
1277
863
|
],
|
1278
|
-
"name": "
|
864
|
+
"name": "getMetadata",
|
1279
865
|
"outputs": [
|
1280
866
|
{
|
1281
867
|
"components": [
|
1282
868
|
{
|
1283
|
-
"internalType": "
|
1284
|
-
"name": "
|
1285
|
-
"type": "
|
869
|
+
"internalType": "ObjectType",
|
870
|
+
"name": "objectType",
|
871
|
+
"type": "uint8"
|
1286
872
|
},
|
1287
873
|
{
|
1288
|
-
"internalType": "
|
1289
|
-
"name": "
|
1290
|
-
"type": "
|
874
|
+
"internalType": "StateId",
|
875
|
+
"name": "state",
|
876
|
+
"type": "uint8"
|
1291
877
|
},
|
1292
878
|
{
|
1293
879
|
"internalType": "address",
|
1294
|
-
"name": "
|
880
|
+
"name": "updatedBy",
|
1295
881
|
"type": "address"
|
1296
882
|
},
|
1297
883
|
{
|
1298
|
-
"internalType": "
|
1299
|
-
"name": "
|
1300
|
-
"type": "
|
884
|
+
"internalType": "Blocknumber",
|
885
|
+
"name": "updatedIn",
|
886
|
+
"type": "uint32"
|
1301
887
|
},
|
1302
888
|
{
|
1303
889
|
"internalType": "Blocknumber",
|
1304
|
-
"name": "
|
890
|
+
"name": "createdIn",
|
1305
891
|
"type": "uint32"
|
1306
892
|
}
|
1307
893
|
],
|
1308
|
-
"internalType": "struct
|
1309
|
-
"name": "
|
894
|
+
"internalType": "struct IKeyValueStore.Metadata",
|
895
|
+
"name": "metadata",
|
1310
896
|
"type": "tuple"
|
1311
897
|
}
|
1312
898
|
],
|
@@ -1315,66 +901,38 @@
|
|
1315
901
|
},
|
1316
902
|
{
|
1317
903
|
"inputs": [],
|
1318
|
-
"name": "
|
904
|
+
"name": "getPolicyService",
|
1319
905
|
"outputs": [
|
1320
906
|
{
|
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"
|
907
|
+
"internalType": "contract IPolicyService",
|
908
|
+
"name": "",
|
909
|
+
"type": "address"
|
1336
910
|
}
|
1337
911
|
],
|
1338
912
|
"stateMutability": "view",
|
1339
913
|
"type": "function"
|
1340
914
|
},
|
1341
915
|
{
|
1342
|
-
"inputs": [
|
1343
|
-
|
1344
|
-
|
1345
|
-
"name": "role",
|
1346
|
-
"type": "bytes8"
|
1347
|
-
},
|
916
|
+
"inputs": [],
|
917
|
+
"name": "getPoolService",
|
918
|
+
"outputs": [
|
1348
919
|
{
|
1349
|
-
"internalType": "
|
1350
|
-
"name": "
|
920
|
+
"internalType": "contract IPoolService",
|
921
|
+
"name": "",
|
1351
922
|
"type": "address"
|
1352
923
|
}
|
1353
924
|
],
|
1354
|
-
"
|
1355
|
-
"outputs": [],
|
1356
|
-
"stateMutability": "nonpayable",
|
925
|
+
"stateMutability": "view",
|
1357
926
|
"type": "function"
|
1358
927
|
},
|
1359
928
|
{
|
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",
|
929
|
+
"inputs": [],
|
930
|
+
"name": "getProductService",
|
1373
931
|
"outputs": [
|
1374
932
|
{
|
1375
|
-
"internalType": "
|
933
|
+
"internalType": "contract IProductService",
|
1376
934
|
"name": "",
|
1377
|
-
"type": "
|
935
|
+
"type": "address"
|
1378
936
|
}
|
1379
937
|
],
|
1380
938
|
"stateMutability": "view",
|
@@ -1383,17 +941,17 @@
|
|
1383
941
|
{
|
1384
942
|
"inputs": [
|
1385
943
|
{
|
1386
|
-
"internalType": "
|
1387
|
-
"name": "
|
1388
|
-
"type": "
|
944
|
+
"internalType": "Key32",
|
945
|
+
"name": "key",
|
946
|
+
"type": "bytes32"
|
1389
947
|
}
|
1390
948
|
],
|
1391
|
-
"name": "
|
949
|
+
"name": "getState",
|
1392
950
|
"outputs": [
|
1393
951
|
{
|
1394
|
-
"internalType": "
|
1395
|
-
"name": "
|
1396
|
-
"type": "
|
952
|
+
"internalType": "StateId",
|
953
|
+
"name": "state",
|
954
|
+
"type": "uint8"
|
1397
955
|
}
|
1398
956
|
],
|
1399
957
|
"stateMutability": "view",
|
@@ -1402,12 +960,12 @@
|
|
1402
960
|
{
|
1403
961
|
"inputs": [
|
1404
962
|
{
|
1405
|
-
"internalType": "
|
1406
|
-
"name": "
|
1407
|
-
"type": "
|
963
|
+
"internalType": "ObjectType",
|
964
|
+
"name": "objectType",
|
965
|
+
"type": "uint8"
|
1408
966
|
}
|
1409
967
|
],
|
1410
|
-
"name": "
|
968
|
+
"name": "hasLifecycle",
|
1411
969
|
"outputs": [
|
1412
970
|
{
|
1413
971
|
"internalType": "bool",
|
@@ -1418,154 +976,83 @@
|
|
1418
976
|
"stateMutability": "view",
|
1419
977
|
"type": "function"
|
1420
978
|
},
|
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
979
|
{
|
1435
980
|
"inputs": [
|
1436
981
|
{
|
1437
|
-
"internalType": "
|
1438
|
-
"name": "
|
1439
|
-
"type": "
|
982
|
+
"internalType": "ObjectType",
|
983
|
+
"name": "objectType",
|
984
|
+
"type": "uint8"
|
1440
985
|
},
|
1441
986
|
{
|
1442
|
-
"internalType": "
|
1443
|
-
"name": "
|
1444
|
-
"type": "
|
987
|
+
"internalType": "StateId",
|
988
|
+
"name": "fromId",
|
989
|
+
"type": "uint8"
|
1445
990
|
},
|
1446
991
|
{
|
1447
|
-
"internalType": "
|
1448
|
-
"name": "
|
1449
|
-
"type": "
|
992
|
+
"internalType": "StateId",
|
993
|
+
"name": "toId",
|
994
|
+
"type": "uint8"
|
1450
995
|
}
|
1451
996
|
],
|
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
|
-
},
|
997
|
+
"name": "isValidTransition",
|
998
|
+
"outputs": [
|
1464
999
|
{
|
1465
1000
|
"internalType": "bool",
|
1466
|
-
"name": "
|
1001
|
+
"name": "",
|
1467
1002
|
"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
1003
|
}
|
1497
1004
|
],
|
1498
|
-
"
|
1499
|
-
"outputs": [],
|
1500
|
-
"stateMutability": "nonpayable",
|
1005
|
+
"stateMutability": "view",
|
1501
1006
|
"type": "function"
|
1502
1007
|
},
|
1503
1008
|
{
|
1504
1009
|
"inputs": [
|
1505
1010
|
{
|
1506
|
-
"internalType": "
|
1507
|
-
"name": "
|
1508
|
-
"type": "
|
1509
|
-
},
|
1510
|
-
{
|
1511
|
-
"internalType": "NftId",
|
1512
|
-
"name": "policyNftId",
|
1513
|
-
"type": "uint96"
|
1011
|
+
"internalType": "bytes4",
|
1012
|
+
"name": "interfaceId",
|
1013
|
+
"type": "bytes4"
|
1514
1014
|
}
|
1515
1015
|
],
|
1516
|
-
"name": "
|
1016
|
+
"name": "supportsInterface",
|
1517
1017
|
"outputs": [
|
1518
1018
|
{
|
1519
|
-
"internalType": "
|
1520
|
-
"name": "
|
1521
|
-
"type": "
|
1019
|
+
"internalType": "bool",
|
1020
|
+
"name": "",
|
1021
|
+
"type": "bool"
|
1522
1022
|
}
|
1523
1023
|
],
|
1524
|
-
"stateMutability": "
|
1024
|
+
"stateMutability": "view",
|
1525
1025
|
"type": "function"
|
1526
1026
|
},
|
1527
1027
|
{
|
1528
1028
|
"inputs": [
|
1529
1029
|
{
|
1530
|
-
"internalType": "
|
1531
|
-
"name": "
|
1532
|
-
"type": "
|
1030
|
+
"internalType": "ObjectType",
|
1031
|
+
"name": "objectType",
|
1032
|
+
"type": "uint8"
|
1533
1033
|
},
|
1534
1034
|
{
|
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"
|
1035
|
+
"internalType": "KeyId",
|
1036
|
+
"name": "id",
|
1037
|
+
"type": "bytes31"
|
1551
1038
|
}
|
1552
1039
|
],
|
1553
|
-
"name": "
|
1040
|
+
"name": "toKey32",
|
1554
1041
|
"outputs": [
|
1555
1042
|
{
|
1556
|
-
"internalType": "
|
1043
|
+
"internalType": "Key32",
|
1557
1044
|
"name": "",
|
1558
|
-
"type": "
|
1045
|
+
"type": "bytes32"
|
1559
1046
|
}
|
1560
1047
|
],
|
1561
|
-
"stateMutability": "
|
1048
|
+
"stateMutability": "pure",
|
1562
1049
|
"type": "function"
|
1563
1050
|
},
|
1564
1051
|
{
|
1565
1052
|
"inputs": [
|
1566
1053
|
{
|
1567
1054
|
"internalType": "NftId",
|
1568
|
-
"name": "
|
1055
|
+
"name": "bundleNftId",
|
1569
1056
|
"type": "uint96"
|
1570
1057
|
},
|
1571
1058
|
{
|
@@ -1613,22 +1100,130 @@
|
|
1613
1100
|
"type": "uint256"
|
1614
1101
|
},
|
1615
1102
|
{
|
1616
|
-
"internalType": "
|
1617
|
-
"name": "
|
1618
|
-
"type": "
|
1103
|
+
"internalType": "uint256",
|
1104
|
+
"name": "lifetime",
|
1105
|
+
"type": "uint256"
|
1106
|
+
},
|
1107
|
+
{
|
1108
|
+
"internalType": "Timestamp",
|
1109
|
+
"name": "expiredAt",
|
1110
|
+
"type": "uint40"
|
1111
|
+
},
|
1112
|
+
{
|
1113
|
+
"internalType": "Timestamp",
|
1114
|
+
"name": "closedAt",
|
1115
|
+
"type": "uint40"
|
1116
|
+
}
|
1117
|
+
],
|
1118
|
+
"internalType": "struct IBundle.BundleInfo",
|
1119
|
+
"name": "bundle",
|
1120
|
+
"type": "tuple"
|
1121
|
+
},
|
1122
|
+
{
|
1123
|
+
"internalType": "StateId",
|
1124
|
+
"name": "newState",
|
1125
|
+
"type": "uint8"
|
1126
|
+
}
|
1127
|
+
],
|
1128
|
+
"name": "updateBundle",
|
1129
|
+
"outputs": [],
|
1130
|
+
"stateMutability": "nonpayable",
|
1131
|
+
"type": "function"
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
"inputs": [
|
1135
|
+
{
|
1136
|
+
"internalType": "NftId",
|
1137
|
+
"name": "bundleNftId",
|
1138
|
+
"type": "uint96"
|
1139
|
+
},
|
1140
|
+
{
|
1141
|
+
"internalType": "StateId",
|
1142
|
+
"name": "newState",
|
1143
|
+
"type": "uint8"
|
1144
|
+
}
|
1145
|
+
],
|
1146
|
+
"name": "updateBundleState",
|
1147
|
+
"outputs": [],
|
1148
|
+
"stateMutability": "nonpayable",
|
1149
|
+
"type": "function"
|
1150
|
+
},
|
1151
|
+
{
|
1152
|
+
"inputs": [
|
1153
|
+
{
|
1154
|
+
"internalType": "NftId",
|
1155
|
+
"name": "distributionNftId",
|
1156
|
+
"type": "uint96"
|
1157
|
+
},
|
1158
|
+
{
|
1159
|
+
"components": [
|
1160
|
+
{
|
1161
|
+
"internalType": "NftId",
|
1162
|
+
"name": "productNftId",
|
1163
|
+
"type": "uint96"
|
1164
|
+
},
|
1165
|
+
{
|
1166
|
+
"internalType": "contract TokenHandler",
|
1167
|
+
"name": "tokenHandler",
|
1168
|
+
"type": "address"
|
1169
|
+
},
|
1170
|
+
{
|
1171
|
+
"components": [
|
1172
|
+
{
|
1173
|
+
"internalType": "UFixed",
|
1174
|
+
"name": "fractionalFee",
|
1175
|
+
"type": "uint256"
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
"internalType": "uint256",
|
1179
|
+
"name": "fixedFee",
|
1180
|
+
"type": "uint256"
|
1181
|
+
}
|
1182
|
+
],
|
1183
|
+
"internalType": "struct Fee",
|
1184
|
+
"name": "distributionFee",
|
1185
|
+
"type": "tuple"
|
1186
|
+
},
|
1187
|
+
{
|
1188
|
+
"internalType": "bool",
|
1189
|
+
"name": "isIntercepting",
|
1190
|
+
"type": "bool"
|
1619
1191
|
},
|
1620
1192
|
{
|
1621
|
-
"internalType": "
|
1622
|
-
"name": "
|
1623
|
-
"type": "
|
1193
|
+
"internalType": "address",
|
1194
|
+
"name": "wallet",
|
1195
|
+
"type": "address"
|
1624
1196
|
}
|
1625
1197
|
],
|
1626
|
-
"internalType": "struct
|
1627
|
-
"name": "
|
1198
|
+
"internalType": "struct ISetup.DistributionSetupInfo",
|
1199
|
+
"name": "setup",
|
1628
1200
|
"type": "tuple"
|
1201
|
+
},
|
1202
|
+
{
|
1203
|
+
"internalType": "StateId",
|
1204
|
+
"name": "newState",
|
1205
|
+
"type": "uint8"
|
1206
|
+
}
|
1207
|
+
],
|
1208
|
+
"name": "updateDistributionSetup",
|
1209
|
+
"outputs": [],
|
1210
|
+
"stateMutability": "nonpayable",
|
1211
|
+
"type": "function"
|
1212
|
+
},
|
1213
|
+
{
|
1214
|
+
"inputs": [
|
1215
|
+
{
|
1216
|
+
"internalType": "NftId",
|
1217
|
+
"name": "distributionNftId",
|
1218
|
+
"type": "uint96"
|
1219
|
+
},
|
1220
|
+
{
|
1221
|
+
"internalType": "StateId",
|
1222
|
+
"name": "newState",
|
1223
|
+
"type": "uint8"
|
1629
1224
|
}
|
1630
1225
|
],
|
1631
|
-
"name": "
|
1226
|
+
"name": "updateDistributionSetupState",
|
1632
1227
|
"outputs": [],
|
1633
1228
|
"stateMutability": "nonpayable",
|
1634
1229
|
"type": "function"
|
@@ -1657,11 +1252,6 @@
|
|
1657
1252
|
"name": "referralId",
|
1658
1253
|
"type": "bytes8"
|
1659
1254
|
},
|
1660
|
-
{
|
1661
|
-
"internalType": "address",
|
1662
|
-
"name": "beneficiary",
|
1663
|
-
"type": "address"
|
1664
|
-
},
|
1665
1255
|
{
|
1666
1256
|
"internalType": "RiskId",
|
1667
1257
|
"name": "riskId",
|
@@ -1697,6 +1287,21 @@
|
|
1697
1287
|
"name": "policyData",
|
1698
1288
|
"type": "bytes"
|
1699
1289
|
},
|
1290
|
+
{
|
1291
|
+
"internalType": "uint16",
|
1292
|
+
"name": "claimsCount",
|
1293
|
+
"type": "uint16"
|
1294
|
+
},
|
1295
|
+
{
|
1296
|
+
"internalType": "uint16",
|
1297
|
+
"name": "openClaimsCount",
|
1298
|
+
"type": "uint16"
|
1299
|
+
},
|
1300
|
+
{
|
1301
|
+
"internalType": "uint256",
|
1302
|
+
"name": "payoutAmount",
|
1303
|
+
"type": "uint256"
|
1304
|
+
},
|
1700
1305
|
{
|
1701
1306
|
"internalType": "Timestamp",
|
1702
1307
|
"name": "activatedAt",
|
@@ -1714,11 +1319,16 @@
|
|
1714
1319
|
}
|
1715
1320
|
],
|
1716
1321
|
"internalType": "struct IPolicy.PolicyInfo",
|
1717
|
-
"name": "
|
1322
|
+
"name": "policy",
|
1718
1323
|
"type": "tuple"
|
1324
|
+
},
|
1325
|
+
{
|
1326
|
+
"internalType": "StateId",
|
1327
|
+
"name": "newState",
|
1328
|
+
"type": "uint8"
|
1719
1329
|
}
|
1720
1330
|
],
|
1721
|
-
"name": "
|
1331
|
+
"name": "updatePolicy",
|
1722
1332
|
"outputs": [],
|
1723
1333
|
"stateMutability": "nonpayable",
|
1724
1334
|
"type": "function"
|
@@ -1726,9 +1336,27 @@
|
|
1726
1336
|
{
|
1727
1337
|
"inputs": [
|
1728
1338
|
{
|
1729
|
-
"internalType": "
|
1730
|
-
"name": "
|
1731
|
-
"type": "
|
1339
|
+
"internalType": "NftId",
|
1340
|
+
"name": "policyNftId",
|
1341
|
+
"type": "uint96"
|
1342
|
+
},
|
1343
|
+
{
|
1344
|
+
"internalType": "StateId",
|
1345
|
+
"name": "newState",
|
1346
|
+
"type": "uint8"
|
1347
|
+
}
|
1348
|
+
],
|
1349
|
+
"name": "updatePolicyState",
|
1350
|
+
"outputs": [],
|
1351
|
+
"stateMutability": "nonpayable",
|
1352
|
+
"type": "function"
|
1353
|
+
},
|
1354
|
+
{
|
1355
|
+
"inputs": [
|
1356
|
+
{
|
1357
|
+
"internalType": "NftId",
|
1358
|
+
"name": "poolNftId",
|
1359
|
+
"type": "uint96"
|
1732
1360
|
},
|
1733
1361
|
{
|
1734
1362
|
"components": [
|
@@ -1738,17 +1366,93 @@
|
|
1738
1366
|
"type": "uint96"
|
1739
1367
|
},
|
1740
1368
|
{
|
1741
|
-
"internalType": "
|
1742
|
-
"name": "
|
1743
|
-
"type": "
|
1369
|
+
"internalType": "contract TokenHandler",
|
1370
|
+
"name": "tokenHandler",
|
1371
|
+
"type": "address"
|
1372
|
+
},
|
1373
|
+
{
|
1374
|
+
"internalType": "UFixed",
|
1375
|
+
"name": "collateralizationLevel",
|
1376
|
+
"type": "uint256"
|
1377
|
+
},
|
1378
|
+
{
|
1379
|
+
"components": [
|
1380
|
+
{
|
1381
|
+
"internalType": "UFixed",
|
1382
|
+
"name": "fractionalFee",
|
1383
|
+
"type": "uint256"
|
1384
|
+
},
|
1385
|
+
{
|
1386
|
+
"internalType": "uint256",
|
1387
|
+
"name": "fixedFee",
|
1388
|
+
"type": "uint256"
|
1389
|
+
}
|
1390
|
+
],
|
1391
|
+
"internalType": "struct Fee",
|
1392
|
+
"name": "poolFee",
|
1393
|
+
"type": "tuple"
|
1394
|
+
},
|
1395
|
+
{
|
1396
|
+
"components": [
|
1397
|
+
{
|
1398
|
+
"internalType": "UFixed",
|
1399
|
+
"name": "fractionalFee",
|
1400
|
+
"type": "uint256"
|
1401
|
+
},
|
1402
|
+
{
|
1403
|
+
"internalType": "uint256",
|
1404
|
+
"name": "fixedFee",
|
1405
|
+
"type": "uint256"
|
1406
|
+
}
|
1407
|
+
],
|
1408
|
+
"internalType": "struct Fee",
|
1409
|
+
"name": "stakingFee",
|
1410
|
+
"type": "tuple"
|
1411
|
+
},
|
1412
|
+
{
|
1413
|
+
"components": [
|
1414
|
+
{
|
1415
|
+
"internalType": "UFixed",
|
1416
|
+
"name": "fractionalFee",
|
1417
|
+
"type": "uint256"
|
1418
|
+
},
|
1419
|
+
{
|
1420
|
+
"internalType": "uint256",
|
1421
|
+
"name": "fixedFee",
|
1422
|
+
"type": "uint256"
|
1423
|
+
}
|
1424
|
+
],
|
1425
|
+
"internalType": "struct Fee",
|
1426
|
+
"name": "performanceFee",
|
1427
|
+
"type": "tuple"
|
1428
|
+
},
|
1429
|
+
{
|
1430
|
+
"internalType": "bool",
|
1431
|
+
"name": "isIntercepting",
|
1432
|
+
"type": "bool"
|
1433
|
+
},
|
1434
|
+
{
|
1435
|
+
"internalType": "bool",
|
1436
|
+
"name": "isConfirmingApplication",
|
1437
|
+
"type": "bool"
|
1438
|
+
},
|
1439
|
+
{
|
1440
|
+
"internalType": "address",
|
1441
|
+
"name": "wallet",
|
1442
|
+
"type": "address"
|
1744
1443
|
}
|
1745
1444
|
],
|
1746
|
-
"internalType": "struct
|
1747
|
-
"name": "
|
1445
|
+
"internalType": "struct ISetup.PoolSetupInfo",
|
1446
|
+
"name": "setup",
|
1748
1447
|
"type": "tuple"
|
1448
|
+
},
|
1449
|
+
{
|
1450
|
+
"internalType": "StateId",
|
1451
|
+
"name": "newState",
|
1452
|
+
"type": "uint8"
|
1749
1453
|
}
|
1750
1454
|
],
|
1751
|
-
"name": "
|
1455
|
+
"name": "updatePoolSetup",
|
1752
1456
|
"outputs": [],
|
1753
1457
|
"stateMutability": "nonpayable",
|
1754
1458
|
"type": "function"
|
@@ -1756,17 +1460,17 @@
|
|
1756
1460
|
{
|
1757
1461
|
"inputs": [
|
1758
1462
|
{
|
1759
|
-
"internalType": "
|
1760
|
-
"name": "
|
1761
|
-
"type": "
|
1463
|
+
"internalType": "NftId",
|
1464
|
+
"name": "poolNftId",
|
1465
|
+
"type": "uint96"
|
1762
1466
|
},
|
1763
1467
|
{
|
1764
|
-
"internalType": "
|
1765
|
-
"name": "
|
1766
|
-
"type": "
|
1468
|
+
"internalType": "StateId",
|
1469
|
+
"name": "newState",
|
1470
|
+
"type": "uint8"
|
1767
1471
|
}
|
1768
1472
|
],
|
1769
|
-
"name": "
|
1473
|
+
"name": "updatePoolSetupState",
|
1770
1474
|
"outputs": [],
|
1771
1475
|
"stateMutability": "nonpayable",
|
1772
1476
|
"type": "function"
|
@@ -1781,9 +1485,14 @@
|
|
1781
1485
|
{
|
1782
1486
|
"components": [
|
1783
1487
|
{
|
1784
|
-
"internalType": "
|
1785
|
-
"name": "
|
1786
|
-
"type": "
|
1488
|
+
"internalType": "contract IERC20Metadata",
|
1489
|
+
"name": "token",
|
1490
|
+
"type": "address"
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
"internalType": "contract TokenHandler",
|
1494
|
+
"name": "tokenHandler",
|
1495
|
+
"type": "address"
|
1787
1496
|
},
|
1788
1497
|
{
|
1789
1498
|
"internalType": "NftId",
|
@@ -1791,9 +1500,9 @@
|
|
1791
1500
|
"type": "uint96"
|
1792
1501
|
},
|
1793
1502
|
{
|
1794
|
-
"internalType": "
|
1795
|
-
"name": "
|
1796
|
-
"type": "
|
1503
|
+
"internalType": "NftId",
|
1504
|
+
"name": "poolNftId",
|
1505
|
+
"type": "uint96"
|
1797
1506
|
},
|
1798
1507
|
{
|
1799
1508
|
"components": [
|
@@ -1809,7 +1518,7 @@
|
|
1809
1518
|
}
|
1810
1519
|
],
|
1811
1520
|
"internalType": "struct Fee",
|
1812
|
-
"name": "
|
1521
|
+
"name": "distributionFee",
|
1813
1522
|
"type": "tuple"
|
1814
1523
|
},
|
1815
1524
|
{
|
@@ -1826,7 +1535,7 @@
|
|
1826
1535
|
}
|
1827
1536
|
],
|
1828
1537
|
"internalType": "struct Fee",
|
1829
|
-
"name": "
|
1538
|
+
"name": "productFee",
|
1830
1539
|
"type": "tuple"
|
1831
1540
|
},
|
1832
1541
|
{
|
@@ -1843,7 +1552,7 @@
|
|
1843
1552
|
}
|
1844
1553
|
],
|
1845
1554
|
"internalType": "struct Fee",
|
1846
|
-
"name": "
|
1555
|
+
"name": "processingFee",
|
1847
1556
|
"type": "tuple"
|
1848
1557
|
},
|
1849
1558
|
{
|
@@ -1860,7 +1569,7 @@
|
|
1860
1569
|
}
|
1861
1570
|
],
|
1862
1571
|
"internalType": "struct Fee",
|
1863
|
-
"name": "
|
1572
|
+
"name": "poolFee",
|
1864
1573
|
"type": "tuple"
|
1865
1574
|
},
|
1866
1575
|
{
|
@@ -1877,7 +1586,7 @@
|
|
1877
1586
|
}
|
1878
1587
|
],
|
1879
1588
|
"internalType": "struct Fee",
|
1880
|
-
"name": "
|
1589
|
+
"name": "stakingFee",
|
1881
1590
|
"type": "tuple"
|
1882
1591
|
},
|
1883
1592
|
{
|
@@ -1894,53 +1603,31 @@
|
|
1894
1603
|
}
|
1895
1604
|
],
|
1896
1605
|
"internalType": "struct Fee",
|
1897
|
-
"name": "
|
1606
|
+
"name": "performanceFee",
|
1898
1607
|
"type": "tuple"
|
1608
|
+
},
|
1609
|
+
{
|
1610
|
+
"internalType": "bool",
|
1611
|
+
"name": "isIntercepting",
|
1612
|
+
"type": "bool"
|
1613
|
+
},
|
1614
|
+
{
|
1615
|
+
"internalType": "address",
|
1616
|
+
"name": "wallet",
|
1617
|
+
"type": "address"
|
1899
1618
|
}
|
1900
1619
|
],
|
1901
|
-
"internalType": "struct
|
1902
|
-
"name": "
|
1620
|
+
"internalType": "struct ISetup.ProductSetupInfo",
|
1621
|
+
"name": "setup",
|
1903
1622
|
"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
1623
|
},
|
1937
1624
|
{
|
1938
1625
|
"internalType": "StateId",
|
1939
|
-
"name": "
|
1626
|
+
"name": "newState",
|
1940
1627
|
"type": "uint8"
|
1941
1628
|
}
|
1942
1629
|
],
|
1943
|
-
"name": "
|
1630
|
+
"name": "updateProductSetup",
|
1944
1631
|
"outputs": [],
|
1945
1632
|
"stateMutability": "nonpayable",
|
1946
1633
|
"type": "function"
|
@@ -1949,16 +1636,16 @@
|
|
1949
1636
|
"inputs": [
|
1950
1637
|
{
|
1951
1638
|
"internalType": "NftId",
|
1952
|
-
"name": "
|
1639
|
+
"name": "productNftId",
|
1953
1640
|
"type": "uint96"
|
1954
1641
|
},
|
1955
1642
|
{
|
1956
1643
|
"internalType": "StateId",
|
1957
|
-
"name": "
|
1644
|
+
"name": "newState",
|
1958
1645
|
"type": "uint8"
|
1959
1646
|
}
|
1960
1647
|
],
|
1961
|
-
"name": "
|
1648
|
+
"name": "updateProductSetupState",
|
1962
1649
|
"outputs": [],
|
1963
1650
|
"stateMutability": "nonpayable",
|
1964
1651
|
"type": "function"
|
@@ -1970,13 +1657,30 @@
|
|
1970
1657
|
"name": "riskId",
|
1971
1658
|
"type": "bytes8"
|
1972
1659
|
},
|
1660
|
+
{
|
1661
|
+
"components": [
|
1662
|
+
{
|
1663
|
+
"internalType": "NftId",
|
1664
|
+
"name": "productNftId",
|
1665
|
+
"type": "uint96"
|
1666
|
+
},
|
1667
|
+
{
|
1668
|
+
"internalType": "bytes",
|
1669
|
+
"name": "data",
|
1670
|
+
"type": "bytes"
|
1671
|
+
}
|
1672
|
+
],
|
1673
|
+
"internalType": "struct IRisk.RiskInfo",
|
1674
|
+
"name": "risk",
|
1675
|
+
"type": "tuple"
|
1676
|
+
},
|
1973
1677
|
{
|
1974
1678
|
"internalType": "StateId",
|
1975
|
-
"name": "
|
1679
|
+
"name": "newState",
|
1976
1680
|
"type": "uint8"
|
1977
1681
|
}
|
1978
1682
|
],
|
1979
|
-
"name": "
|
1683
|
+
"name": "updateRisk",
|
1980
1684
|
"outputs": [],
|
1981
1685
|
"stateMutability": "nonpayable",
|
1982
1686
|
"type": "function"
|
@@ -1984,17 +1688,17 @@
|
|
1984
1688
|
{
|
1985
1689
|
"inputs": [
|
1986
1690
|
{
|
1987
|
-
"internalType": "
|
1988
|
-
"name": "
|
1989
|
-
"type": "
|
1691
|
+
"internalType": "RiskId",
|
1692
|
+
"name": "riskId",
|
1693
|
+
"type": "bytes8"
|
1990
1694
|
},
|
1991
1695
|
{
|
1992
1696
|
"internalType": "StateId",
|
1993
|
-
"name": "
|
1697
|
+
"name": "newState",
|
1994
1698
|
"type": "uint8"
|
1995
1699
|
}
|
1996
1700
|
],
|
1997
|
-
"name": "
|
1701
|
+
"name": "updateRiskState",
|
1998
1702
|
"outputs": [],
|
1999
1703
|
"stateMutability": "nonpayable",
|
2000
1704
|
"type": "function"
|