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