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