@etherisc/gif-next 0.0.2-da77c50-824 → 0.0.2-db81915-875

Sign up to get free protection for your applications and to get access to all the features.
Files changed (478) hide show
  1. package/README.md +249 -23
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +842 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1345 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +605 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +969 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +823 -115
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +608 -57
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1132 -143
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +967 -105
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +190 -0
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1743 -1154
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +633 -0
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +2187 -1199
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1330 -0
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1403 -0
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1140 -0
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +741 -0
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +607 -0
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  45. package/artifacts/contracts/instance/{module/lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  47. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +532 -0
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  49. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +194 -0
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  51. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  52. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  53. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  54. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  55. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  56. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  57. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  58. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  59. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  60. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  61. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IRisk.sol/IRisk.json} +2 -2
  62. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  63. package/artifacts/contracts/instance/module/{pool/IPoolModule.sol/IPool.json → ISetup.sol/ISetup.json} +2 -2
  64. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  65. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  66. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1060 -0
  68. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +681 -0
  70. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1266 -0
  72. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +725 -0
  74. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1040 -0
  76. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
  78. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1774 -0
  80. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +793 -0
  82. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +627 -0
  84. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +686 -0
  86. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +602 -0
  88. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +1090 -0
  90. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +937 -0
  92. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +577 -109
  94. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +186 -213
  96. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1511 -0
  98. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +741 -0
  100. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +955 -217
  102. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
  104. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  105. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +456 -301
  106. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
  108. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  109. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +199 -12
  110. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  111. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +485 -34
  112. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  113. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +866 -0
  114. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  115. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +52 -0
  116. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  117. package/artifacts/contracts/registry/Registry.sol/Registry.json +487 -101
  118. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  119. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1158 -0
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
  124. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  125. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  128. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  129. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  131. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  132. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  133. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +38 -74
  134. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  136. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +100 -33
  138. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  139. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  140. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  141. package/artifacts/contracts/{instance/InstanceBase.sol/InstanceBase.json → shared/IService.sol/IService.json} +164 -142
  142. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +16 -125
  144. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  145. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
  146. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  147. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  148. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  149. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
  150. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  151. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +256 -25
  152. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  153. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  154. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  155. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → shared/Service.sol/Service.json} +261 -217
  156. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  157. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  158. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  159. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  160. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  161. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +29 -115
  162. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestFee.sol/TestFee.json +30 -6
  164. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +272 -26
  166. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  167. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +44 -10
  168. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  169. package/artifacts/contracts/test/TestService.sol/TestService.json +343 -154
  170. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  171. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  172. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  173. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +14 -18
  174. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  175. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +37 -163
  176. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  177. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  178. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  179. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  180. package/artifacts/contracts/types/Amount.sol/AmountLib.json +185 -0
  181. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  183. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  186. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  188. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/Fee.sol/FeeLib.json +288 -0
  190. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  191. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  192. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +78 -4
  194. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  195. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  196. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  198. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  199. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  200. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  201. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  202. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -0
  204. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  206. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  208. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  210. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  212. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +51 -7
  214. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  215. package/artifacts/contracts/{experiment/types/TypeB.sol/TypeBLib.json → types/UFixed.sol/MathLib.json} +4 -4
  216. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  218. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  219. package/artifacts/contracts/types/Version.sol/VersionLib.json +101 -2
  220. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  221. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  222. package/contracts/components/Component.sol +253 -0
  223. package/contracts/components/Distribution.sol +284 -0
  224. package/contracts/components/IComponent.sol +76 -0
  225. package/contracts/components/IDistributionComponent.sol +71 -0
  226. package/contracts/components/IPoolComponent.sol +98 -42
  227. package/contracts/components/IProductComponent.sol +30 -9
  228. package/contracts/components/Pool.sol +237 -109
  229. package/contracts/components/Product.sol +301 -47
  230. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  231. package/contracts/instance/BundleManager.sol +126 -0
  232. package/contracts/instance/Cloneable.sol +51 -0
  233. package/contracts/instance/IInstance.sol +94 -42
  234. package/contracts/instance/IInstanceService.sol +68 -0
  235. package/contracts/instance/Instance.sol +293 -45
  236. package/contracts/instance/InstanceAccessManager.sol +527 -0
  237. package/contracts/instance/InstanceReader.sol +317 -0
  238. package/contracts/instance/InstanceService.sol +478 -0
  239. package/contracts/instance/InstanceServiceManager.sol +54 -0
  240. package/contracts/instance/ObjectManager.sol +82 -0
  241. package/contracts/instance/base/ComponentService.sol +121 -0
  242. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  243. package/contracts/instance/base/ILifecycle.sol +30 -0
  244. package/contracts/instance/base/KeyValueStore.sol +180 -0
  245. package/contracts/instance/base/Lifecycle.sol +117 -0
  246. package/contracts/instance/module/IAccess.sol +54 -0
  247. package/contracts/instance/module/IBundle.sol +23 -0
  248. package/contracts/instance/module/IComponents.sol +41 -0
  249. package/contracts/instance/module/IDistribution.sol +41 -0
  250. package/contracts/instance/module/IPolicy.sol +77 -0
  251. package/contracts/instance/module/IRisk.sol +11 -0
  252. package/contracts/instance/module/ISetup.sol +33 -0
  253. package/contracts/instance/module/ITreasury.sol +23 -0
  254. package/contracts/instance/service/ApplicationService.sol +355 -0
  255. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  256. package/contracts/instance/service/BundleService.sol +436 -0
  257. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  258. package/contracts/instance/service/ClaimService.sol +239 -0
  259. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  260. package/contracts/instance/service/DistributionService.sol +431 -0
  261. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  262. package/contracts/instance/service/IApplicationService.sol +78 -0
  263. package/contracts/instance/service/IBundleService.sol +96 -0
  264. package/contracts/instance/service/IClaimService.sol +92 -0
  265. package/contracts/instance/service/IDistributionService.sol +99 -0
  266. package/contracts/instance/service/IPolicyService.sol +137 -0
  267. package/contracts/instance/service/IPoolService.sol +81 -12
  268. package/contracts/instance/service/IProductService.sol +21 -39
  269. package/contracts/instance/service/PolicyService.sol +541 -0
  270. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  271. package/contracts/instance/service/PoolService.sol +256 -51
  272. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  273. package/contracts/instance/service/ProductService.sol +150 -298
  274. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  275. package/contracts/registry/ChainNft.sol +87 -36
  276. package/contracts/registry/IRegistry.sol +68 -24
  277. package/contracts/registry/IRegistryService.sol +68 -0
  278. package/contracts/registry/ITransferInterceptor.sol +7 -0
  279. package/contracts/registry/Registry.sol +372 -286
  280. package/contracts/registry/RegistryAccessManager.sol +216 -0
  281. package/contracts/registry/RegistryService.sol +282 -0
  282. package/contracts/registry/RegistryServiceManager.sol +62 -0
  283. package/contracts/registry/ReleaseManager.sol +324 -0
  284. package/contracts/registry/TokenRegistry.sol +116 -0
  285. package/contracts/shared/ContractDeployerLib.sol +72 -0
  286. package/contracts/shared/ERC165.sol +14 -8
  287. package/contracts/shared/INftOwnable.sol +23 -0
  288. package/contracts/shared/IPolicyHolder.sol +26 -0
  289. package/contracts/shared/IRegisterable.sol +10 -19
  290. package/contracts/shared/IRegistryLinked.sol +12 -0
  291. package/contracts/shared/IService.sol +16 -0
  292. package/contracts/shared/IVersionable.sol +38 -37
  293. package/contracts/shared/NftOwnable.sol +120 -0
  294. package/contracts/shared/PolicyHolder.sol +81 -0
  295. package/contracts/shared/ProxyManager.sol +169 -0
  296. package/contracts/shared/Registerable.sol +54 -66
  297. package/contracts/shared/RegistryLinked.sol +48 -0
  298. package/contracts/shared/Service.sol +72 -0
  299. package/contracts/shared/TokenHandler.sol +33 -0
  300. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  301. package/contracts/shared/Versionable.sol +38 -71
  302. package/contracts/test/TestFee.sol +4 -4
  303. package/contracts/test/TestRegisterable.sol +5 -6
  304. package/contracts/test/TestRoleId.sol +2 -2
  305. package/contracts/test/TestService.sol +8 -18
  306. package/contracts/test/TestVersion.sol +4 -7
  307. package/contracts/test/TestVersionable.sol +2 -5
  308. package/contracts/test/Usdc.sol +26 -0
  309. package/contracts/types/Amount.sol +65 -0
  310. package/contracts/types/Blocknumber.sol +1 -0
  311. package/contracts/types/ClaimId.sol +75 -0
  312. package/contracts/types/DistributorType.sol +55 -0
  313. package/contracts/types/Fee.sol +52 -20
  314. package/contracts/types/Key32.sol +50 -0
  315. package/contracts/types/NftId.sol +24 -1
  316. package/contracts/types/NftIdSet.sol +26 -24
  317. package/contracts/types/NumberId.sol +52 -0
  318. package/contracts/types/ObjectType.sol +56 -14
  319. package/contracts/types/PayoutId.sol +82 -0
  320. package/contracts/types/Referral.sol +89 -0
  321. package/contracts/types/RiskId.sol +43 -0
  322. package/contracts/types/RoleId.sol +72 -11
  323. package/contracts/types/Seconds.sol +54 -0
  324. package/contracts/types/StateId.sol +19 -4
  325. package/contracts/types/Timestamp.sol +22 -13
  326. package/contracts/types/UFixed.sol +145 -25
  327. package/contracts/types/Version.sol +43 -26
  328. package/package.json +6 -5
  329. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  330. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  331. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  333. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  334. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  335. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  336. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  337. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  338. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  339. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  340. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  342. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  344. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  346. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  348. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  350. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  351. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  352. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  353. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  354. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  355. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  356. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  357. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  358. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  359. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  360. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  361. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  363. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  364. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  365. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  366. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.dbg.json +0 -4
  367. package/artifacts/contracts/instance/IServiceLinked.sol/IServiceLinked.json +0 -50
  368. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  369. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  370. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  371. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  372. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  373. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  374. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  375. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -276
  376. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  377. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  378. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -276
  379. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  380. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  381. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  382. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  383. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  384. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  385. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  386. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  387. package/artifacts/contracts/instance/module/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  389. package/artifacts/contracts/instance/module/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  390. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  391. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  392. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  393. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  394. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  395. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  396. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  397. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  398. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  399. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  400. package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.dbg.json +0 -4
  401. package/artifacts/contracts/instance/module/product/IProductModule.sol/IProductModule.json +0 -10
  402. package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.dbg.json +0 -4
  403. package/artifacts/contracts/instance/module/product/ProductModule.sol/ProductModule.json +0 -10
  404. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  405. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  406. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -538
  407. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  408. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  409. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  410. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -538
  411. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  412. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -519
  413. package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  414. package/artifacts/contracts/instance/service/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  415. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  416. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -364
  417. package/artifacts/contracts/instance/service/IService.sol/IService.dbg.json +0 -4
  418. package/artifacts/contracts/instance/service/IService.sol/IService.json +0 -300
  419. package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  420. package/artifacts/contracts/instance/service/ServiceBase.sol/ServiceBase.json +0 -300
  421. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  422. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  423. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  424. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  425. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  426. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  427. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  428. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  429. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  430. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  431. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
  432. package/contracts/components/BaseComponent.sol +0 -89
  433. package/contracts/components/IBaseComponent.sol +0 -19
  434. package/contracts/experiment/errors/Require.sol +0 -38
  435. package/contracts/experiment/errors/Revert.sol +0 -44
  436. package/contracts/experiment/inheritance/A.sol +0 -53
  437. package/contracts/experiment/inheritance/B.sol +0 -28
  438. package/contracts/experiment/inheritance/C.sol +0 -34
  439. package/contracts/experiment/inheritance/IA.sol +0 -13
  440. package/contracts/experiment/inheritance/IB.sol +0 -10
  441. package/contracts/experiment/inheritance/IC.sol +0 -12
  442. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  443. package/contracts/experiment/statemachine/ISM.sol +0 -25
  444. package/contracts/experiment/statemachine/README.md +0 -112
  445. package/contracts/experiment/statemachine/SM.sol +0 -57
  446. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  447. package/contracts/experiment/types/TypeA.sol +0 -47
  448. package/contracts/experiment/types/TypeB.sol +0 -29
  449. package/contracts/instance/IInstanceLinked.sol +0 -8
  450. package/contracts/instance/IServiceLinked.sol +0 -12
  451. package/contracts/instance/InstanceBase.sol +0 -74
  452. package/contracts/instance/module/access/Access.sol +0 -149
  453. package/contracts/instance/module/access/IAccess.sol +0 -53
  454. package/contracts/instance/module/bundle/BundleModule.sol +0 -228
  455. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  456. package/contracts/instance/module/component/ComponentModule.sol +0 -104
  457. package/contracts/instance/module/component/IComponent.sol +0 -53
  458. package/contracts/instance/module/lifecycle/ILifecycle.sol +0 -47
  459. package/contracts/instance/module/lifecycle/LifecycleModule.sol +0 -89
  460. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  461. package/contracts/instance/module/policy/PolicyModule.sol +0 -84
  462. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  463. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  464. package/contracts/instance/module/product/IProductModule.sol +0 -6
  465. package/contracts/instance/module/product/ProductModule.sol +0 -8
  466. package/contracts/instance/module/treasury/ITreasury.sol +0 -104
  467. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  468. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -148
  469. package/contracts/instance/service/ComponentOwnerService.sol +0 -174
  470. package/contracts/instance/service/ComponentServiceBase.sol +0 -41
  471. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  472. package/contracts/instance/service/IService.sol +0 -15
  473. package/contracts/instance/service/ServiceBase.sol +0 -39
  474. package/contracts/registry/IChainNft.sol +0 -21
  475. package/contracts/registry/IRegistryLinked.sol +0 -8
  476. package/contracts/shared/IOwnable.sol +0 -6
  477. package/contracts/test/TestPool.sol +0 -22
  478. package/contracts/test/TestProduct.sol +0 -44
@@ -6,10 +6,109 @@
6
6
  {
7
7
  "inputs": [
8
8
  {
9
- "internalType": "NftId",
10
- "name": "nftId",
11
- "type": "uint96"
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
12
23
  },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "instanceBundleManager",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorInstanceBundleManagerAlreadySet",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "instanceAuthority",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "instance",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "address",
81
+ "name": "instanceAccessManager",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "ErrorInstanceInstanceAccessManagerAlreadySet",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "address",
92
+ "name": "instanceAuthority",
93
+ "type": "address"
94
+ }
95
+ ],
96
+ "name": "ErrorInstanceInstanceAccessManagerAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [
101
+ {
102
+ "internalType": "address",
103
+ "name": "instanceAuthority",
104
+ "type": "address"
105
+ }
106
+ ],
107
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [
13
112
  {
14
113
  "internalType": "ObjectType",
15
114
  "name": "objectType",
@@ -35,77 +134,76 @@
35
134
  "internalType": "NftId",
36
135
  "name": "nftId",
37
136
  "type": "uint96"
38
- },
39
- {
40
- "internalType": "ObjectType",
41
- "name": "objectType",
42
- "type": "uint8"
43
137
  }
44
138
  ],
45
- "name": "ErrorNoLifecycle",
139
+ "name": "ErrorNftOwnableAlreadyLinked",
46
140
  "type": "error"
47
141
  },
48
142
  {
49
- "anonymous": false,
50
143
  "inputs": [
51
144
  {
52
- "indexed": false,
53
- "internalType": "RoleId",
54
- "name": "role",
55
- "type": "bytes8"
56
- },
145
+ "internalType": "address",
146
+ "name": "contractAddress",
147
+ "type": "address"
148
+ }
149
+ ],
150
+ "name": "ErrorNftOwnableContractNotRegistered",
151
+ "type": "error"
152
+ },
153
+ {
154
+ "inputs": [],
155
+ "name": "ErrorNftOwnableInitialOwnerZero",
156
+ "type": "error"
157
+ },
158
+ {
159
+ "inputs": [
57
160
  {
58
- "indexed": false,
59
- "internalType": "string",
60
- "name": "roleName",
61
- "type": "string"
161
+ "internalType": "address",
162
+ "name": "account",
163
+ "type": "address"
62
164
  }
63
165
  ],
64
- "name": "LogAccessRoleCreated",
65
- "type": "event"
166
+ "name": "ErrorNftOwnableNotOwner",
167
+ "type": "error"
66
168
  },
67
169
  {
68
- "anonymous": false,
69
170
  "inputs": [
70
171
  {
71
- "indexed": false,
72
- "internalType": "RoleId",
73
- "name": "role",
74
- "type": "bytes8"
172
+ "internalType": "NftId",
173
+ "name": "nftId",
174
+ "type": "uint96"
75
175
  },
76
176
  {
77
- "indexed": false,
177
+ "internalType": "ObjectType",
178
+ "name": "objectType",
179
+ "type": "uint8"
180
+ }
181
+ ],
182
+ "name": "ErrorNoLifecycle",
183
+ "type": "error"
184
+ },
185
+ {
186
+ "inputs": [
187
+ {
78
188
  "internalType": "address",
79
- "name": "member",
189
+ "name": "registryAddress",
80
190
  "type": "address"
81
- },
82
- {
83
- "indexed": false,
84
- "internalType": "bool",
85
- "name": "isMember",
86
- "type": "bool"
87
191
  }
88
192
  ],
89
- "name": "LogAccessRoleGranted",
90
- "type": "event"
193
+ "name": "ErrorNotRegistry",
194
+ "type": "error"
91
195
  },
92
196
  {
93
197
  "anonymous": false,
94
198
  "inputs": [
95
199
  {
96
200
  "indexed": false,
97
- "internalType": "RoleId",
98
- "name": "role",
99
- "type": "bytes8"
100
- },
101
- {
102
- "indexed": false,
103
- "internalType": "bool",
104
- "name": "active",
105
- "type": "bool"
201
+ "internalType": "address",
202
+ "name": "authority",
203
+ "type": "address"
106
204
  }
107
205
  ],
108
- "name": "LogAccessRoleStateSet",
206
+ "name": "AuthorityUpdated",
109
207
  "type": "event"
110
208
  },
111
209
  {
@@ -113,35 +211,41 @@
113
211
  "inputs": [
114
212
  {
115
213
  "indexed": false,
116
- "internalType": "NftId",
117
- "name": "nftId",
118
- "type": "uint96"
214
+ "internalType": "ObjectType",
215
+ "name": "objectType",
216
+ "type": "uint8"
119
217
  },
120
218
  {
121
219
  "indexed": false,
122
- "internalType": "StateId",
123
- "name": "fromStateId",
124
- "type": "uint8"
220
+ "internalType": "KeyId",
221
+ "name": "keyId",
222
+ "type": "bytes31"
125
223
  },
126
224
  {
127
225
  "indexed": false,
128
226
  "internalType": "StateId",
129
- "name": "toStateId",
227
+ "name": "state",
130
228
  "type": "uint8"
229
+ },
230
+ {
231
+ "indexed": false,
232
+ "internalType": "address",
233
+ "name": "createdBy",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": false,
238
+ "internalType": "address",
239
+ "name": "txOrigin",
240
+ "type": "address"
131
241
  }
132
242
  ],
133
- "name": "LogBundleStateChanged",
243
+ "name": "LogInfoCreated",
134
244
  "type": "event"
135
245
  },
136
246
  {
137
247
  "anonymous": false,
138
248
  "inputs": [
139
- {
140
- "indexed": false,
141
- "internalType": "NftId",
142
- "name": "nftId",
143
- "type": "uint96"
144
- },
145
249
  {
146
250
  "indexed": false,
147
251
  "internalType": "ObjectType",
@@ -150,18 +254,36 @@
150
254
  },
151
255
  {
152
256
  "indexed": false,
153
- "internalType": "StateId",
154
- "name": "fromStateId",
155
- "type": "uint8"
257
+ "internalType": "KeyId",
258
+ "name": "keyId",
259
+ "type": "bytes31"
156
260
  },
157
261
  {
158
262
  "indexed": false,
159
263
  "internalType": "StateId",
160
- "name": "toStateId",
264
+ "name": "state",
161
265
  "type": "uint8"
266
+ },
267
+ {
268
+ "indexed": false,
269
+ "internalType": "address",
270
+ "name": "updatedBy",
271
+ "type": "address"
272
+ },
273
+ {
274
+ "indexed": false,
275
+ "internalType": "address",
276
+ "name": "txOrigin",
277
+ "type": "address"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "Blocknumber",
282
+ "name": "lastUpdatedIn",
283
+ "type": "uint32"
162
284
  }
163
285
  ],
164
- "name": "LogComponentStateChanged",
286
+ "name": "LogInfoUpdated",
165
287
  "type": "event"
166
288
  },
167
289
  {
@@ -169,187 +291,156 @@
169
291
  "inputs": [
170
292
  {
171
293
  "indexed": false,
172
- "internalType": "NftId",
173
- "name": "nftId",
174
- "type": "uint96"
294
+ "internalType": "ObjectType",
295
+ "name": "objectType",
296
+ "type": "uint8"
175
297
  },
176
298
  {
177
299
  "indexed": false,
178
- "internalType": "StateId",
179
- "name": "fromStateId",
180
- "type": "uint8"
300
+ "internalType": "KeyId",
301
+ "name": "keyId",
302
+ "type": "bytes31"
181
303
  },
182
304
  {
183
305
  "indexed": false,
184
306
  "internalType": "StateId",
185
- "name": "toStateId",
307
+ "name": "stateOld",
186
308
  "type": "uint8"
187
- }
188
- ],
189
- "name": "LogPolicyStateChanged",
190
- "type": "event"
191
- },
192
- {
193
- "anonymous": false,
194
- "inputs": [
309
+ },
195
310
  {
196
311
  "indexed": false,
197
- "internalType": "Version",
198
- "name": "version",
199
- "type": "uint24"
312
+ "internalType": "StateId",
313
+ "name": "stateNew",
314
+ "type": "uint8"
200
315
  },
201
316
  {
202
317
  "indexed": false,
203
318
  "internalType": "address",
204
- "name": "implementation",
319
+ "name": "updatedBy",
205
320
  "type": "address"
206
321
  },
207
322
  {
208
323
  "indexed": false,
209
324
  "internalType": "address",
210
- "name": "activatedBy",
325
+ "name": "txOrigin",
211
326
  "type": "address"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "Blocknumber",
331
+ "name": "lastUpdatedIn",
332
+ "type": "uint32"
212
333
  }
213
334
  ],
214
- "name": "LogVersionableActivated",
335
+ "name": "LogStateUpdated",
215
336
  "type": "event"
216
337
  },
217
338
  {
218
- "inputs": [
219
- {
220
- "internalType": "address",
221
- "name": "implementation",
222
- "type": "address"
223
- },
339
+ "inputs": [],
340
+ "name": "authority",
341
+ "outputs": [
224
342
  {
225
343
  "internalType": "address",
226
- "name": "activatedBy",
344
+ "name": "",
227
345
  "type": "address"
228
346
  }
229
347
  ],
230
- "name": "activate",
231
- "outputs": [],
232
- "stateMutability": "nonpayable",
348
+ "stateMutability": "view",
233
349
  "type": "function"
234
350
  },
235
351
  {
236
352
  "inputs": [
237
353
  {
238
354
  "internalType": "NftId",
239
- "name": "bundleNftId",
240
- "type": "uint96"
241
- },
242
- {
243
- "internalType": "NftId",
244
- "name": "poolNftId",
355
+ "name": "applicationNftId",
245
356
  "type": "uint96"
246
357
  },
247
- {
248
- "internalType": "uint256",
249
- "name": "amount",
250
- "type": "uint256"
251
- }
252
- ],
253
- "name": "addBundleToPool",
254
- "outputs": [],
255
- "stateMutability": "nonpayable",
256
- "type": "function"
257
- },
258
- {
259
- "inputs": [
260
- {
261
- "internalType": "uint256",
262
- "name": "amount",
263
- "type": "uint256"
264
- },
265
358
  {
266
359
  "components": [
267
360
  {
268
- "internalType": "UFixed",
269
- "name": "fractionalFee",
270
- "type": "uint256"
361
+ "internalType": "NftId",
362
+ "name": "productNftId",
363
+ "type": "uint96"
271
364
  },
272
365
  {
273
- "internalType": "uint256",
274
- "name": "fixedFee",
275
- "type": "uint256"
276
- }
277
- ],
278
- "internalType": "struct Fee",
279
- "name": "fee",
280
- "type": "tuple"
281
- }
282
- ],
283
- "name": "calculateFeeAmount",
284
- "outputs": [
285
- {
286
- "internalType": "uint256",
287
- "name": "feeAmount",
288
- "type": "uint256"
289
- },
290
- {
291
- "internalType": "uint256",
292
- "name": "netAmount",
293
- "type": "uint256"
294
- }
295
- ],
296
- "stateMutability": "pure",
297
- "type": "function"
298
- },
299
- {
300
- "inputs": [
301
- {
302
- "internalType": "NftId",
303
- "name": "bundleNftId",
304
- "type": "uint96"
305
- },
306
- {
307
- "internalType": "NftId",
308
- "name": "policyNftId",
309
- "type": "uint96"
310
- },
311
- {
312
- "internalType": "uint256",
313
- "name": "amount",
314
- "type": "uint256"
315
- }
316
- ],
317
- "name": "collateralizePolicy",
318
- "outputs": [],
319
- "stateMutability": "nonpayable",
320
- "type": "function"
321
- },
322
- {
323
- "inputs": [
324
- {
325
- "internalType": "NftId",
326
- "name": "productNftId",
327
- "type": "uint96"
328
- },
329
- {
330
- "internalType": "NftId",
331
- "name": "policyNftId",
332
- "type": "uint96"
333
- },
334
- {
335
- "internalType": "uint256",
336
- "name": "sumInsuredAmount",
337
- "type": "uint256"
338
- },
339
- {
340
- "internalType": "uint256",
341
- "name": "premiumAmount",
342
- "type": "uint256"
343
- },
344
- {
345
- "internalType": "uint256",
346
- "name": "lifetime",
347
- "type": "uint256"
348
- },
349
- {
350
- "internalType": "NftId",
351
- "name": "bundleNftId",
352
- "type": "uint96"
366
+ "internalType": "NftId",
367
+ "name": "bundleNftId",
368
+ "type": "uint96"
369
+ },
370
+ {
371
+ "internalType": "ReferralId",
372
+ "name": "referralId",
373
+ "type": "bytes8"
374
+ },
375
+ {
376
+ "internalType": "RiskId",
377
+ "name": "riskId",
378
+ "type": "bytes8"
379
+ },
380
+ {
381
+ "internalType": "uint256",
382
+ "name": "sumInsuredAmount",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "premiumAmount",
388
+ "type": "uint256"
389
+ },
390
+ {
391
+ "internalType": "uint256",
392
+ "name": "premiumPaidAmount",
393
+ "type": "uint256"
394
+ },
395
+ {
396
+ "internalType": "Seconds",
397
+ "name": "lifetime",
398
+ "type": "uint40"
399
+ },
400
+ {
401
+ "internalType": "bytes",
402
+ "name": "applicationData",
403
+ "type": "bytes"
404
+ },
405
+ {
406
+ "internalType": "bytes",
407
+ "name": "policyData",
408
+ "type": "bytes"
409
+ },
410
+ {
411
+ "internalType": "uint16",
412
+ "name": "claimsCount",
413
+ "type": "uint16"
414
+ },
415
+ {
416
+ "internalType": "uint16",
417
+ "name": "openClaimsCount",
418
+ "type": "uint16"
419
+ },
420
+ {
421
+ "internalType": "Amount",
422
+ "name": "payoutAmount",
423
+ "type": "uint96"
424
+ },
425
+ {
426
+ "internalType": "Timestamp",
427
+ "name": "activatedAt",
428
+ "type": "uint40"
429
+ },
430
+ {
431
+ "internalType": "Timestamp",
432
+ "name": "expiredAt",
433
+ "type": "uint40"
434
+ },
435
+ {
436
+ "internalType": "Timestamp",
437
+ "name": "closedAt",
438
+ "type": "uint40"
439
+ }
440
+ ],
441
+ "internalType": "struct IPolicy.PolicyInfo",
442
+ "name": "policy",
443
+ "type": "tuple"
353
444
  }
354
445
  ],
355
446
  "name": "createApplication",
@@ -364,96 +455,29 @@
364
455
  "name": "bundleNftId",
365
456
  "type": "uint96"
366
457
  },
367
- {
368
- "internalType": "NftId",
369
- "name": "poolNftId",
370
- "type": "uint96"
371
- },
372
- {
373
- "internalType": "uint256",
374
- "name": "amount",
375
- "type": "uint256"
376
- },
377
- {
378
- "internalType": "uint256",
379
- "name": "lifetime",
380
- "type": "uint256"
381
- },
382
- {
383
- "internalType": "bytes",
384
- "name": "filter",
385
- "type": "bytes"
386
- }
387
- ],
388
- "name": "createBundleInfo",
389
- "outputs": [],
390
- "stateMutability": "nonpayable",
391
- "type": "function"
392
- },
393
- {
394
- "inputs": [
395
- {
396
- "internalType": "string",
397
- "name": "roleName",
398
- "type": "string"
399
- }
400
- ],
401
- "name": "createRole",
402
- "outputs": [
403
- {
404
- "internalType": "RoleId",
405
- "name": "role",
406
- "type": "bytes8"
407
- }
408
- ],
409
- "stateMutability": "nonpayable",
410
- "type": "function"
411
- },
412
- {
413
- "inputs": [
414
- {
415
- "internalType": "NftId",
416
- "name": "poolNftId",
417
- "type": "uint96"
418
- }
419
- ],
420
- "name": "getBundleCount",
421
- "outputs": [
422
- {
423
- "internalType": "uint256",
424
- "name": "bundleCount",
425
- "type": "uint256"
426
- }
427
- ],
428
- "stateMutability": "view",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [
433
- {
434
- "internalType": "NftId",
435
- "name": "bundleNftId",
436
- "type": "uint96"
437
- }
438
- ],
439
- "name": "getBundleInfo",
440
- "outputs": [
441
458
  {
442
459
  "components": [
443
- {
444
- "internalType": "NftId",
445
- "name": "nftId",
446
- "type": "uint96"
447
- },
448
460
  {
449
461
  "internalType": "NftId",
450
462
  "name": "poolNftId",
451
463
  "type": "uint96"
452
464
  },
453
465
  {
454
- "internalType": "StateId",
455
- "name": "state",
456
- "type": "uint8"
466
+ "components": [
467
+ {
468
+ "internalType": "UFixed",
469
+ "name": "fractionalFee",
470
+ "type": "uint256"
471
+ },
472
+ {
473
+ "internalType": "uint256",
474
+ "name": "fixedFee",
475
+ "type": "uint256"
476
+ }
477
+ ],
478
+ "internalType": "struct Fee",
479
+ "name": "fee",
480
+ "type": "tuple"
457
481
  },
458
482
  {
459
483
  "internalType": "bytes",
@@ -461,23 +485,23 @@
461
485
  "type": "bytes"
462
486
  },
463
487
  {
464
- "internalType": "uint256",
488
+ "internalType": "Amount",
465
489
  "name": "capitalAmount",
466
- "type": "uint256"
490
+ "type": "uint96"
467
491
  },
468
492
  {
469
- "internalType": "uint256",
493
+ "internalType": "Amount",
470
494
  "name": "lockedAmount",
471
- "type": "uint256"
495
+ "type": "uint96"
472
496
  },
473
497
  {
474
- "internalType": "uint256",
475
- "name": "balanceAmount",
476
- "type": "uint256"
498
+ "internalType": "Amount",
499
+ "name": "feeAmount",
500
+ "type": "uint96"
477
501
  },
478
502
  {
479
- "internalType": "Timestamp",
480
- "name": "createdAt",
503
+ "internalType": "Seconds",
504
+ "name": "lifetime",
481
505
  "type": "uint40"
482
506
  },
483
507
  {
@@ -489,359 +513,597 @@
489
513
  "internalType": "Timestamp",
490
514
  "name": "closedAt",
491
515
  "type": "uint40"
492
- },
493
- {
494
- "internalType": "Blocknumber",
495
- "name": "updatedIn",
496
- "type": "uint32"
497
516
  }
498
517
  ],
499
518
  "internalType": "struct IBundle.BundleInfo",
500
- "name": "bundleInfo",
519
+ "name": "bundle",
501
520
  "type": "tuple"
502
521
  }
503
522
  ],
504
- "stateMutability": "view",
523
+ "name": "createBundle",
524
+ "outputs": [],
525
+ "stateMutability": "nonpayable",
505
526
  "type": "function"
506
527
  },
507
528
  {
508
529
  "inputs": [
509
530
  {
510
531
  "internalType": "NftId",
511
- "name": "poolNftId",
532
+ "name": "policyNftId",
512
533
  "type": "uint96"
513
534
  },
514
535
  {
515
- "internalType": "uint256",
516
- "name": "index",
517
- "type": "uint256"
518
- }
519
- ],
520
- "name": "getBundleNftId",
521
- "outputs": [
522
- {
523
- "internalType": "NftId",
524
- "name": "bundleNftId",
525
- "type": "uint96"
526
- }
527
- ],
528
- "stateMutability": "view",
529
- "type": "function"
530
- },
531
- {
532
- "inputs": [],
533
- "name": "getComponentCount",
534
- "outputs": [
535
- {
536
- "internalType": "uint256",
537
- "name": "numberOfCompnents",
538
- "type": "uint256"
539
- }
540
- ],
541
- "stateMutability": "view",
542
- "type": "function"
543
- },
544
- {
545
- "inputs": [
546
- {
547
- "internalType": "uint256",
548
- "name": "idx",
549
- "type": "uint256"
550
- }
551
- ],
552
- "name": "getComponentId",
553
- "outputs": [
536
+ "internalType": "ClaimId",
537
+ "name": "claimId",
538
+ "type": "uint16"
539
+ },
554
540
  {
555
- "internalType": "NftId",
556
- "name": "nftId",
557
- "type": "uint96"
541
+ "components": [
542
+ {
543
+ "internalType": "Amount",
544
+ "name": "claimAmount",
545
+ "type": "uint96"
546
+ },
547
+ {
548
+ "internalType": "Amount",
549
+ "name": "paidAmount",
550
+ "type": "uint96"
551
+ },
552
+ {
553
+ "internalType": "uint8",
554
+ "name": "payoutsCount",
555
+ "type": "uint8"
556
+ },
557
+ {
558
+ "internalType": "uint8",
559
+ "name": "openPayoutsCount",
560
+ "type": "uint8"
561
+ },
562
+ {
563
+ "internalType": "bytes",
564
+ "name": "data",
565
+ "type": "bytes"
566
+ },
567
+ {
568
+ "internalType": "Timestamp",
569
+ "name": "closedAt",
570
+ "type": "uint40"
571
+ }
572
+ ],
573
+ "internalType": "struct IPolicy.ClaimInfo",
574
+ "name": "claim",
575
+ "type": "tuple"
558
576
  }
559
577
  ],
560
- "stateMutability": "view",
578
+ "name": "createClaim",
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable",
561
581
  "type": "function"
562
582
  },
563
583
  {
564
584
  "inputs": [
565
585
  {
566
586
  "internalType": "NftId",
567
- "name": "nftId",
587
+ "name": "distributionNftId",
568
588
  "type": "uint96"
569
- }
570
- ],
571
- "name": "getComponentInfo",
572
- "outputs": [
589
+ },
573
590
  {
574
591
  "components": [
575
592
  {
576
593
  "internalType": "NftId",
577
- "name": "nftId",
594
+ "name": "productNftId",
578
595
  "type": "uint96"
579
596
  },
580
597
  {
581
- "internalType": "StateId",
582
- "name": "state",
583
- "type": "uint8"
598
+ "internalType": "contract TokenHandler",
599
+ "name": "tokenHandler",
600
+ "type": "address"
584
601
  },
585
602
  {
586
- "internalType": "contract IERC20Metadata",
587
- "name": "token",
603
+ "components": [
604
+ {
605
+ "internalType": "UFixed",
606
+ "name": "fractionalFee",
607
+ "type": "uint256"
608
+ },
609
+ {
610
+ "internalType": "uint256",
611
+ "name": "fixedFee",
612
+ "type": "uint256"
613
+ }
614
+ ],
615
+ "internalType": "struct Fee",
616
+ "name": "minDistributionOwnerFee",
617
+ "type": "tuple"
618
+ },
619
+ {
620
+ "components": [
621
+ {
622
+ "internalType": "UFixed",
623
+ "name": "fractionalFee",
624
+ "type": "uint256"
625
+ },
626
+ {
627
+ "internalType": "uint256",
628
+ "name": "fixedFee",
629
+ "type": "uint256"
630
+ }
631
+ ],
632
+ "internalType": "struct Fee",
633
+ "name": "distributionFee",
634
+ "type": "tuple"
635
+ },
636
+ {
637
+ "internalType": "address",
638
+ "name": "wallet",
588
639
  "type": "address"
640
+ },
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "sumDistributionOwnerFees",
644
+ "type": "uint256"
589
645
  }
590
646
  ],
591
- "internalType": "struct IComponent.ComponentInfo",
592
- "name": "info",
647
+ "internalType": "struct ISetup.DistributionSetupInfo",
648
+ "name": "setup",
593
649
  "type": "tuple"
594
650
  }
595
651
  ],
596
- "stateMutability": "view",
597
- "type": "function"
598
- },
599
- {
600
- "inputs": [],
601
- "name": "getComponentOwnerService",
602
- "outputs": [
603
- {
604
- "internalType": "contract IComponentOwnerService",
605
- "name": "",
606
- "type": "address"
607
- }
608
- ],
609
- "stateMutability": "view",
610
- "type": "function"
611
- },
612
- {
613
- "inputs": [],
614
- "name": "getData",
615
- "outputs": [
616
- {
617
- "internalType": "bytes",
618
- "name": "data",
619
- "type": "bytes"
620
- }
621
- ],
622
- "stateMutability": "view",
652
+ "name": "createDistributionSetup",
653
+ "outputs": [],
654
+ "stateMutability": "nonpayable",
623
655
  "type": "function"
624
656
  },
625
657
  {
626
658
  "inputs": [
627
659
  {
628
- "internalType": "UFixed",
629
- "name": "fractionalFee",
630
- "type": "uint256"
660
+ "internalType": "NftId",
661
+ "name": "nftId",
662
+ "type": "uint96"
631
663
  },
632
- {
633
- "internalType": "uint256",
634
- "name": "fixedFee",
635
- "type": "uint256"
636
- }
637
- ],
638
- "name": "getFee",
639
- "outputs": [
640
664
  {
641
665
  "components": [
642
666
  {
643
- "internalType": "UFixed",
644
- "name": "fractionalFee",
667
+ "internalType": "DistributorType",
668
+ "name": "distributorType",
669
+ "type": "bytes8"
670
+ },
671
+ {
672
+ "internalType": "bool",
673
+ "name": "active",
674
+ "type": "bool"
675
+ },
676
+ {
677
+ "internalType": "bytes",
678
+ "name": "data",
679
+ "type": "bytes"
680
+ },
681
+ {
682
+ "internalType": "uint256",
683
+ "name": "sumCommisions",
645
684
  "type": "uint256"
646
685
  },
647
686
  {
648
687
  "internalType": "uint256",
649
- "name": "fixedFee",
688
+ "name": "numPoliciesSold",
650
689
  "type": "uint256"
651
690
  }
652
691
  ],
653
- "internalType": "struct Fee",
654
- "name": "fee",
692
+ "internalType": "struct IDistribution.DistributorInfo",
693
+ "name": "info",
655
694
  "type": "tuple"
656
695
  }
657
696
  ],
658
- "stateMutability": "pure",
697
+ "name": "createDistributor",
698
+ "outputs": [],
699
+ "stateMutability": "nonpayable",
659
700
  "type": "function"
660
701
  },
661
702
  {
662
703
  "inputs": [
663
704
  {
664
- "internalType": "ObjectType",
665
- "name": "objectType",
666
- "type": "uint8"
667
- }
668
- ],
669
- "name": "getInitialState",
670
- "outputs": [
705
+ "internalType": "DistributorType",
706
+ "name": "distributorType",
707
+ "type": "bytes8"
708
+ },
671
709
  {
672
- "internalType": "StateId",
673
- "name": "",
674
- "type": "uint8"
710
+ "components": [
711
+ {
712
+ "internalType": "string",
713
+ "name": "name",
714
+ "type": "string"
715
+ },
716
+ {
717
+ "internalType": "UFixed",
718
+ "name": "minDiscountPercentage",
719
+ "type": "uint256"
720
+ },
721
+ {
722
+ "internalType": "UFixed",
723
+ "name": "maxDiscountPercentage",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "internalType": "UFixed",
728
+ "name": "commissionPercentage",
729
+ "type": "uint256"
730
+ },
731
+ {
732
+ "internalType": "uint32",
733
+ "name": "maxReferralCount",
734
+ "type": "uint32"
735
+ },
736
+ {
737
+ "internalType": "uint32",
738
+ "name": "maxReferralLifetime",
739
+ "type": "uint32"
740
+ },
741
+ {
742
+ "internalType": "bool",
743
+ "name": "allowSelfReferrals",
744
+ "type": "bool"
745
+ },
746
+ {
747
+ "internalType": "bool",
748
+ "name": "allowRenewals",
749
+ "type": "bool"
750
+ },
751
+ {
752
+ "internalType": "bytes",
753
+ "name": "data",
754
+ "type": "bytes"
755
+ }
756
+ ],
757
+ "internalType": "struct IDistribution.DistributorTypeInfo",
758
+ "name": "info",
759
+ "type": "tuple"
675
760
  }
676
761
  ],
677
- "stateMutability": "view",
762
+ "name": "createDistributorType",
763
+ "outputs": [],
764
+ "stateMutability": "nonpayable",
678
765
  "type": "function"
679
766
  },
680
767
  {
681
- "inputs": [],
682
- "name": "getNftId",
683
- "outputs": [
768
+ "inputs": [
684
769
  {
685
770
  "internalType": "NftId",
686
- "name": "nftId",
771
+ "name": "policyNftId",
687
772
  "type": "uint96"
688
- }
689
- ],
690
- "stateMutability": "view",
691
- "type": "function"
692
- },
693
- {
694
- "inputs": [],
695
- "name": "getOwner",
696
- "outputs": [
773
+ },
697
774
  {
698
- "internalType": "address",
699
- "name": "owner",
700
- "type": "address"
775
+ "internalType": "PayoutId",
776
+ "name": "payoutId",
777
+ "type": "uint24"
778
+ },
779
+ {
780
+ "components": [
781
+ {
782
+ "internalType": "ClaimId",
783
+ "name": "claimId",
784
+ "type": "uint16"
785
+ },
786
+ {
787
+ "internalType": "Amount",
788
+ "name": "amount",
789
+ "type": "uint96"
790
+ },
791
+ {
792
+ "internalType": "bytes",
793
+ "name": "data",
794
+ "type": "bytes"
795
+ },
796
+ {
797
+ "internalType": "Timestamp",
798
+ "name": "paidAt",
799
+ "type": "uint40"
800
+ }
801
+ ],
802
+ "internalType": "struct IPolicy.PayoutInfo",
803
+ "name": "claim",
804
+ "type": "tuple"
701
805
  }
702
806
  ],
703
- "stateMutability": "view",
807
+ "name": "createPayout",
808
+ "outputs": [],
809
+ "stateMutability": "nonpayable",
704
810
  "type": "function"
705
811
  },
706
812
  {
707
- "inputs": [],
708
- "name": "getParentNftId",
709
- "outputs": [
813
+ "inputs": [
710
814
  {
711
815
  "internalType": "NftId",
712
- "name": "nftId",
816
+ "name": "poolNftId",
713
817
  "type": "uint96"
818
+ },
819
+ {
820
+ "components": [
821
+ {
822
+ "internalType": "string",
823
+ "name": "name",
824
+ "type": "string"
825
+ },
826
+ {
827
+ "internalType": "contract IERC20Metadata",
828
+ "name": "token",
829
+ "type": "address"
830
+ },
831
+ {
832
+ "internalType": "contract TokenHandler",
833
+ "name": "tokenHandler",
834
+ "type": "address"
835
+ },
836
+ {
837
+ "internalType": "address",
838
+ "name": "wallet",
839
+ "type": "address"
840
+ },
841
+ {
842
+ "internalType": "Amount",
843
+ "name": "balanceAmount",
844
+ "type": "uint96"
845
+ },
846
+ {
847
+ "internalType": "Amount",
848
+ "name": "feeAmount",
849
+ "type": "uint96"
850
+ },
851
+ {
852
+ "internalType": "bytes",
853
+ "name": "data",
854
+ "type": "bytes"
855
+ }
856
+ ],
857
+ "internalType": "struct IComponents.ComponentInfo",
858
+ "name": "info",
859
+ "type": "tuple"
714
860
  }
715
861
  ],
716
- "stateMutability": "view",
862
+ "name": "createPoolSetup",
863
+ "outputs": [],
864
+ "stateMutability": "nonpayable",
717
865
  "type": "function"
718
866
  },
719
867
  {
720
868
  "inputs": [
721
869
  {
722
870
  "internalType": "NftId",
723
- "name": "nftId",
871
+ "name": "productNftId",
724
872
  "type": "uint96"
725
- }
726
- ],
727
- "name": "getPolicyInfo",
728
- "outputs": [
873
+ },
729
874
  {
730
875
  "components": [
731
876
  {
732
- "internalType": "NftId",
733
- "name": "nftId",
734
- "type": "uint96"
877
+ "internalType": "contract IERC20Metadata",
878
+ "name": "token",
879
+ "type": "address"
880
+ },
881
+ {
882
+ "internalType": "contract TokenHandler",
883
+ "name": "tokenHandler",
884
+ "type": "address"
735
885
  },
736
886
  {
737
887
  "internalType": "NftId",
738
- "name": "productNftId",
888
+ "name": "distributionNftId",
739
889
  "type": "uint96"
740
890
  },
741
891
  {
742
892
  "internalType": "NftId",
743
- "name": "bundleNftId",
893
+ "name": "poolNftId",
744
894
  "type": "uint96"
745
895
  },
746
896
  {
747
- "internalType": "address",
748
- "name": "beneficiary",
749
- "type": "address"
897
+ "components": [
898
+ {
899
+ "internalType": "UFixed",
900
+ "name": "fractionalFee",
901
+ "type": "uint256"
902
+ },
903
+ {
904
+ "internalType": "uint256",
905
+ "name": "fixedFee",
906
+ "type": "uint256"
907
+ }
908
+ ],
909
+ "internalType": "struct Fee",
910
+ "name": "productFee",
911
+ "type": "tuple"
750
912
  },
751
913
  {
752
- "internalType": "StateId",
753
- "name": "state",
754
- "type": "uint8"
914
+ "components": [
915
+ {
916
+ "internalType": "UFixed",
917
+ "name": "fractionalFee",
918
+ "type": "uint256"
919
+ },
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "fixedFee",
923
+ "type": "uint256"
924
+ }
925
+ ],
926
+ "internalType": "struct Fee",
927
+ "name": "processingFee",
928
+ "type": "tuple"
755
929
  },
756
930
  {
757
- "internalType": "uint256",
758
- "name": "sumInsuredAmount",
759
- "type": "uint256"
931
+ "internalType": "bool",
932
+ "name": "isIntercepting",
933
+ "type": "bool"
760
934
  },
761
935
  {
762
- "internalType": "uint256",
763
- "name": "premiumAmount",
764
- "type": "uint256"
936
+ "internalType": "address",
937
+ "name": "wallet",
938
+ "type": "address"
939
+ }
940
+ ],
941
+ "internalType": "struct ISetup.ProductSetupInfo",
942
+ "name": "setup",
943
+ "type": "tuple"
944
+ }
945
+ ],
946
+ "name": "createProductSetup",
947
+ "outputs": [],
948
+ "stateMutability": "nonpayable",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
953
+ {
954
+ "internalType": "ReferralId",
955
+ "name": "referralId",
956
+ "type": "bytes8"
957
+ },
958
+ {
959
+ "components": [
960
+ {
961
+ "internalType": "NftId",
962
+ "name": "distributorNftId",
963
+ "type": "uint96"
765
964
  },
766
965
  {
767
- "internalType": "uint256",
768
- "name": "premiumPaidAmount",
769
- "type": "uint256"
966
+ "internalType": "string",
967
+ "name": "referralCode",
968
+ "type": "string"
770
969
  },
771
970
  {
772
- "internalType": "uint256",
773
- "name": "lifetime",
971
+ "internalType": "UFixed",
972
+ "name": "discountPercentage",
774
973
  "type": "uint256"
775
974
  },
776
975
  {
777
- "internalType": "bytes",
778
- "name": "data",
779
- "type": "bytes"
976
+ "internalType": "uint32",
977
+ "name": "maxReferrals",
978
+ "type": "uint32"
780
979
  },
781
980
  {
782
- "internalType": "Timestamp",
783
- "name": "createdAt",
784
- "type": "uint40"
981
+ "internalType": "uint32",
982
+ "name": "usedReferrals",
983
+ "type": "uint32"
785
984
  },
786
985
  {
787
986
  "internalType": "Timestamp",
788
- "name": "activatedAt",
987
+ "name": "expiryAt",
789
988
  "type": "uint40"
790
989
  },
791
990
  {
792
- "internalType": "Timestamp",
793
- "name": "expiredAt",
794
- "type": "uint40"
795
- },
991
+ "internalType": "bytes",
992
+ "name": "data",
993
+ "type": "bytes"
994
+ }
995
+ ],
996
+ "internalType": "struct IDistribution.ReferralInfo",
997
+ "name": "referralInfo",
998
+ "type": "tuple"
999
+ }
1000
+ ],
1001
+ "name": "createReferral",
1002
+ "outputs": [],
1003
+ "stateMutability": "nonpayable",
1004
+ "type": "function"
1005
+ },
1006
+ {
1007
+ "inputs": [
1008
+ {
1009
+ "internalType": "RiskId",
1010
+ "name": "riskId",
1011
+ "type": "bytes8"
1012
+ },
1013
+ {
1014
+ "components": [
796
1015
  {
797
- "internalType": "Timestamp",
798
- "name": "closedAt",
799
- "type": "uint40"
1016
+ "internalType": "NftId",
1017
+ "name": "productNftId",
1018
+ "type": "uint96"
800
1019
  },
801
1020
  {
802
- "internalType": "Blocknumber",
803
- "name": "updatedIn",
804
- "type": "uint32"
1021
+ "internalType": "bytes",
1022
+ "name": "data",
1023
+ "type": "bytes"
805
1024
  }
806
1025
  ],
807
- "internalType": "struct IPolicy.PolicyInfo",
808
- "name": "info",
1026
+ "internalType": "struct IRisk.RiskInfo",
1027
+ "name": "risk",
809
1028
  "type": "tuple"
810
1029
  }
811
1030
  ],
812
- "stateMutability": "view",
1031
+ "name": "createRisk",
1032
+ "outputs": [],
1033
+ "stateMutability": "nonpayable",
813
1034
  "type": "function"
814
1035
  },
815
1036
  {
816
1037
  "inputs": [
817
1038
  {
818
- "internalType": "NftId",
819
- "name": "nftId",
820
- "type": "uint96"
1039
+ "internalType": "Key32",
1040
+ "name": "key",
1041
+ "type": "bytes32"
1042
+ }
1043
+ ],
1044
+ "name": "exists",
1045
+ "outputs": [
1046
+ {
1047
+ "internalType": "bool",
1048
+ "name": "",
1049
+ "type": "bool"
1050
+ }
1051
+ ],
1052
+ "stateMutability": "view",
1053
+ "type": "function"
1054
+ },
1055
+ {
1056
+ "inputs": [
1057
+ {
1058
+ "internalType": "Key32",
1059
+ "name": "key",
1060
+ "type": "bytes32"
821
1061
  }
822
1062
  ],
823
- "name": "getPoolInfo",
1063
+ "name": "get",
824
1064
  "outputs": [
825
1065
  {
826
1066
  "components": [
827
1067
  {
828
- "internalType": "NftId",
829
- "name": "nftId",
830
- "type": "uint96"
831
- },
832
- {
833
- "internalType": "bool",
834
- "name": "isVerifying",
835
- "type": "bool"
1068
+ "components": [
1069
+ {
1070
+ "internalType": "ObjectType",
1071
+ "name": "objectType",
1072
+ "type": "uint8"
1073
+ },
1074
+ {
1075
+ "internalType": "StateId",
1076
+ "name": "state",
1077
+ "type": "uint8"
1078
+ },
1079
+ {
1080
+ "internalType": "address",
1081
+ "name": "updatedBy",
1082
+ "type": "address"
1083
+ },
1084
+ {
1085
+ "internalType": "Blocknumber",
1086
+ "name": "updatedIn",
1087
+ "type": "uint32"
1088
+ },
1089
+ {
1090
+ "internalType": "Blocknumber",
1091
+ "name": "createdIn",
1092
+ "type": "uint32"
1093
+ }
1094
+ ],
1095
+ "internalType": "struct IKeyValueStore.Metadata",
1096
+ "name": "metadata",
1097
+ "type": "tuple"
836
1098
  },
837
1099
  {
838
- "internalType": "UFixed",
839
- "name": "collateralizationLevel",
840
- "type": "uint256"
1100
+ "internalType": "bytes",
1101
+ "name": "data",
1102
+ "type": "bytes"
841
1103
  }
842
1104
  ],
843
- "internalType": "struct IPool.PoolInfo",
844
- "name": "info",
1105
+ "internalType": "struct IKeyValueStore.Value",
1106
+ "name": "value",
845
1107
  "type": "tuple"
846
1108
  }
847
1109
  ],
@@ -850,10 +1112,10 @@
850
1112
  },
851
1113
  {
852
1114
  "inputs": [],
853
- "name": "getPoolService",
1115
+ "name": "getBundleManager",
854
1116
  "outputs": [
855
1117
  {
856
- "internalType": "contract IPoolService",
1118
+ "internalType": "contract BundleManager",
857
1119
  "name": "",
858
1120
  "type": "address"
859
1121
  }
@@ -864,74 +1126,110 @@
864
1126
  {
865
1127
  "inputs": [
866
1128
  {
867
- "internalType": "NftId",
868
- "name": "poolNftId",
869
- "type": "uint96"
1129
+ "internalType": "Key32",
1130
+ "name": "key",
1131
+ "type": "bytes32"
1132
+ }
1133
+ ],
1134
+ "name": "getData",
1135
+ "outputs": [
1136
+ {
1137
+ "internalType": "bytes",
1138
+ "name": "data",
1139
+ "type": "bytes"
870
1140
  }
871
1141
  ],
872
- "name": "getPoolSetup",
1142
+ "stateMutability": "view",
1143
+ "type": "function"
1144
+ },
1145
+ {
1146
+ "inputs": [],
1147
+ "name": "getInitialInfo",
873
1148
  "outputs": [
874
1149
  {
875
1150
  "components": [
876
1151
  {
877
1152
  "internalType": "NftId",
878
- "name": "poolNftId",
1153
+ "name": "nftId",
1154
+ "type": "uint96"
1155
+ },
1156
+ {
1157
+ "internalType": "NftId",
1158
+ "name": "parentNftId",
879
1159
  "type": "uint96"
880
1160
  },
1161
+ {
1162
+ "internalType": "ObjectType",
1163
+ "name": "objectType",
1164
+ "type": "uint8"
1165
+ },
1166
+ {
1167
+ "internalType": "bool",
1168
+ "name": "isInterceptor",
1169
+ "type": "bool"
1170
+ },
881
1171
  {
882
1172
  "internalType": "address",
883
- "name": "wallet",
1173
+ "name": "objectAddress",
884
1174
  "type": "address"
885
1175
  },
886
1176
  {
887
- "components": [
888
- {
889
- "internalType": "UFixed",
890
- "name": "fractionalFee",
891
- "type": "uint256"
892
- },
893
- {
894
- "internalType": "uint256",
895
- "name": "fixedFee",
896
- "type": "uint256"
897
- }
898
- ],
899
- "internalType": "struct Fee",
900
- "name": "stakingFee",
901
- "type": "tuple"
1177
+ "internalType": "address",
1178
+ "name": "initialOwner",
1179
+ "type": "address"
902
1180
  },
903
1181
  {
904
- "components": [
905
- {
906
- "internalType": "UFixed",
907
- "name": "fractionalFee",
908
- "type": "uint256"
909
- },
910
- {
911
- "internalType": "uint256",
912
- "name": "fixedFee",
913
- "type": "uint256"
914
- }
915
- ],
916
- "internalType": "struct Fee",
917
- "name": "performanceFee",
918
- "type": "tuple"
1182
+ "internalType": "bytes",
1183
+ "name": "data",
1184
+ "type": "bytes"
919
1185
  }
920
1186
  ],
921
- "internalType": "struct ITreasury.PoolSetup",
922
- "name": "setup",
1187
+ "internalType": "struct IRegistry.ObjectInfo",
1188
+ "name": "",
923
1189
  "type": "tuple"
924
1190
  }
925
1191
  ],
926
1192
  "stateMutability": "view",
927
1193
  "type": "function"
928
1194
  },
1195
+ {
1196
+ "inputs": [
1197
+ {
1198
+ "internalType": "ObjectType",
1199
+ "name": "objectType",
1200
+ "type": "uint8"
1201
+ }
1202
+ ],
1203
+ "name": "getInitialState",
1204
+ "outputs": [
1205
+ {
1206
+ "internalType": "StateId",
1207
+ "name": "",
1208
+ "type": "uint8"
1209
+ }
1210
+ ],
1211
+ "stateMutability": "view",
1212
+ "type": "function"
1213
+ },
1214
+ {
1215
+ "inputs": [],
1216
+ "name": "getInstanceAccessManager",
1217
+ "outputs": [
1218
+ {
1219
+ "internalType": "contract InstanceAccessManager",
1220
+ "name": "",
1221
+ "type": "address"
1222
+ }
1223
+ ],
1224
+ "stateMutability": "view",
1225
+ "type": "function"
1226
+ },
929
1227
  {
930
1228
  "inputs": [],
931
- "name": "getProductService",
1229
+ "name": "getInstanceReader",
932
1230
  "outputs": [
933
1231
  {
934
- "internalType": "contract IProductService",
1232
+ "internalType": "contract InstanceReader",
935
1233
  "name": "",
936
1234
  "type": "address"
937
1235
  }
@@ -939,85 +1237,59 @@
939
1237
  "stateMutability": "view",
940
1238
  "type": "function"
941
1239
  },
1240
+ {
1241
+ "inputs": [],
1242
+ "name": "getMajorVersion",
1243
+ "outputs": [
1244
+ {
1245
+ "internalType": "VersionPart",
1246
+ "name": "majorVersion",
1247
+ "type": "uint8"
1248
+ }
1249
+ ],
1250
+ "stateMutability": "pure",
1251
+ "type": "function"
1252
+ },
942
1253
  {
943
1254
  "inputs": [
944
1255
  {
945
- "internalType": "NftId",
946
- "name": "productNftId",
947
- "type": "uint96"
1256
+ "internalType": "Key32",
1257
+ "name": "key",
1258
+ "type": "bytes32"
948
1259
  }
949
1260
  ],
950
- "name": "getProductSetup",
1261
+ "name": "getMetadata",
951
1262
  "outputs": [
952
1263
  {
953
1264
  "components": [
954
1265
  {
955
- "internalType": "NftId",
956
- "name": "productNftId",
957
- "type": "uint96"
958
- },
959
- {
960
- "internalType": "NftId",
961
- "name": "distributorNftId",
962
- "type": "uint96"
963
- },
964
- {
965
- "internalType": "NftId",
966
- "name": "poolNftId",
967
- "type": "uint96"
968
- },
969
- {
970
- "internalType": "contract IERC20Metadata",
971
- "name": "token",
972
- "type": "address"
1266
+ "internalType": "ObjectType",
1267
+ "name": "objectType",
1268
+ "type": "uint8"
973
1269
  },
974
1270
  {
975
- "internalType": "contract TokenHandler",
976
- "name": "tokenHandler",
977
- "type": "address"
1271
+ "internalType": "StateId",
1272
+ "name": "state",
1273
+ "type": "uint8"
978
1274
  },
979
1275
  {
980
1276
  "internalType": "address",
981
- "name": "wallet",
1277
+ "name": "updatedBy",
982
1278
  "type": "address"
983
1279
  },
984
1280
  {
985
- "components": [
986
- {
987
- "internalType": "UFixed",
988
- "name": "fractionalFee",
989
- "type": "uint256"
990
- },
991
- {
992
- "internalType": "uint256",
993
- "name": "fixedFee",
994
- "type": "uint256"
995
- }
996
- ],
997
- "internalType": "struct Fee",
998
- "name": "policyFee",
999
- "type": "tuple"
1281
+ "internalType": "Blocknumber",
1282
+ "name": "updatedIn",
1283
+ "type": "uint32"
1000
1284
  },
1001
1285
  {
1002
- "components": [
1003
- {
1004
- "internalType": "UFixed",
1005
- "name": "fractionalFee",
1006
- "type": "uint256"
1007
- },
1008
- {
1009
- "internalType": "uint256",
1010
- "name": "fixedFee",
1011
- "type": "uint256"
1012
- }
1013
- ],
1014
- "internalType": "struct Fee",
1015
- "name": "processingFee",
1016
- "type": "tuple"
1286
+ "internalType": "Blocknumber",
1287
+ "name": "createdIn",
1288
+ "type": "uint32"
1017
1289
  }
1018
1290
  ],
1019
- "internalType": "struct ITreasury.ProductSetup",
1020
- "name": "setup",
1291
+ "internalType": "struct IKeyValueStore.Metadata",
1292
+ "name": "metadata",
1021
1293
  "type": "tuple"
1022
1294
  }
1023
1295
  ],
@@ -1026,31 +1298,38 @@
1026
1298
  },
1027
1299
  {
1028
1300
  "inputs": [],
1029
- "name": "getRegistry",
1301
+ "name": "getNftId",
1030
1302
  "outputs": [
1031
1303
  {
1032
- "internalType": "contract IRegistry",
1033
- "name": "registry",
1034
- "type": "address"
1304
+ "internalType": "NftId",
1305
+ "name": "",
1306
+ "type": "uint96"
1035
1307
  }
1036
1308
  ],
1037
1309
  "stateMutability": "view",
1038
1310
  "type": "function"
1039
1311
  },
1040
1312
  {
1041
- "inputs": [
1313
+ "inputs": [],
1314
+ "name": "getOwner",
1315
+ "outputs": [
1042
1316
  {
1043
- "internalType": "uint256",
1044
- "name": "idx",
1045
- "type": "uint256"
1317
+ "internalType": "address",
1318
+ "name": "",
1319
+ "type": "address"
1046
1320
  }
1047
1321
  ],
1048
- "name": "getRole",
1322
+ "stateMutability": "view",
1323
+ "type": "function"
1324
+ },
1325
+ {
1326
+ "inputs": [],
1327
+ "name": "getRegistry",
1049
1328
  "outputs": [
1050
1329
  {
1051
- "internalType": "RoleId",
1052
- "name": "role",
1053
- "type": "bytes8"
1330
+ "internalType": "contract IRegistry",
1331
+ "name": "",
1332
+ "type": "address"
1054
1333
  }
1055
1334
  ],
1056
1335
  "stateMutability": "view",
@@ -1058,12 +1337,31 @@
1058
1337
  },
1059
1338
  {
1060
1339
  "inputs": [],
1061
- "name": "getRoleCount",
1340
+ "name": "getRegistryAddress",
1062
1341
  "outputs": [
1063
1342
  {
1064
- "internalType": "uint256",
1065
- "name": "roles",
1066
- "type": "uint256"
1343
+ "internalType": "address",
1344
+ "name": "",
1345
+ "type": "address"
1346
+ }
1347
+ ],
1348
+ "stateMutability": "view",
1349
+ "type": "function"
1350
+ },
1351
+ {
1352
+ "inputs": [
1353
+ {
1354
+ "internalType": "Key32",
1355
+ "name": "key",
1356
+ "type": "bytes32"
1357
+ }
1358
+ ],
1359
+ "name": "getState",
1360
+ "outputs": [
1361
+ {
1362
+ "internalType": "StateId",
1363
+ "name": "state",
1364
+ "type": "uint8"
1067
1365
  }
1068
1366
  ],
1069
1367
  "stateMutability": "view",
@@ -1072,128 +1370,163 @@
1072
1370
  {
1073
1371
  "inputs": [
1074
1372
  {
1075
- "internalType": "string",
1076
- "name": "roleName",
1077
- "type": "string"
1373
+ "internalType": "ObjectType",
1374
+ "name": "objectType",
1375
+ "type": "uint8"
1376
+ }
1377
+ ],
1378
+ "name": "hasLifecycle",
1379
+ "outputs": [
1380
+ {
1381
+ "internalType": "bool",
1382
+ "name": "",
1383
+ "type": "bool"
1078
1384
  }
1079
1385
  ],
1080
- "name": "getRoleId",
1386
+ "stateMutability": "view",
1387
+ "type": "function"
1388
+ },
1389
+ {
1390
+ "inputs": [],
1391
+ "name": "isConsumingScheduledOp",
1081
1392
  "outputs": [
1082
1393
  {
1083
- "internalType": "RoleId",
1084
- "name": "role",
1085
- "type": "bytes8"
1394
+ "internalType": "bytes4",
1395
+ "name": "",
1396
+ "type": "bytes4"
1086
1397
  }
1087
1398
  ],
1088
- "stateMutability": "pure",
1399
+ "stateMutability": "view",
1089
1400
  "type": "function"
1090
1401
  },
1091
1402
  {
1092
1403
  "inputs": [
1093
1404
  {
1094
- "internalType": "RoleId",
1095
- "name": "role",
1096
- "type": "bytes8"
1405
+ "internalType": "ObjectType",
1406
+ "name": "objectType",
1407
+ "type": "uint8"
1408
+ },
1409
+ {
1410
+ "internalType": "StateId",
1411
+ "name": "fromId",
1412
+ "type": "uint8"
1413
+ },
1414
+ {
1415
+ "internalType": "StateId",
1416
+ "name": "toId",
1417
+ "type": "uint8"
1097
1418
  }
1098
1419
  ],
1099
- "name": "getRoleInfo",
1420
+ "name": "isValidTransition",
1100
1421
  "outputs": [
1101
1422
  {
1102
- "components": [
1103
- {
1104
- "internalType": "RoleId",
1105
- "name": "id",
1106
- "type": "bytes8"
1107
- },
1108
- {
1109
- "internalType": "string",
1110
- "name": "name",
1111
- "type": "string"
1112
- },
1113
- {
1114
- "internalType": "bool",
1115
- "name": "isActive",
1116
- "type": "bool"
1117
- }
1118
- ],
1119
- "internalType": "struct IAccess.RoleInfo",
1120
- "name": "info",
1121
- "type": "tuple"
1423
+ "internalType": "bool",
1424
+ "name": "",
1425
+ "type": "bool"
1122
1426
  }
1123
1427
  ],
1124
1428
  "stateMutability": "view",
1125
1429
  "type": "function"
1126
1430
  },
1431
+ {
1432
+ "inputs": [],
1433
+ "name": "linkToRegisteredNftId",
1434
+ "outputs": [],
1435
+ "stateMutability": "nonpayable",
1436
+ "type": "function"
1437
+ },
1127
1438
  {
1128
1439
  "inputs": [
1129
1440
  {
1130
- "internalType": "RoleId",
1131
- "name": "role",
1132
- "type": "bytes8"
1441
+ "internalType": "address",
1442
+ "name": "to",
1443
+ "type": "address"
1133
1444
  },
1134
1445
  {
1135
1446
  "internalType": "uint256",
1136
- "name": "idx",
1447
+ "name": "tokenId",
1137
1448
  "type": "uint256"
1138
1449
  }
1139
1450
  ],
1140
- "name": "getRoleMember",
1141
- "outputs": [
1451
+ "name": "nftMint",
1452
+ "outputs": [],
1453
+ "stateMutability": "nonpayable",
1454
+ "type": "function"
1455
+ },
1456
+ {
1457
+ "inputs": [
1142
1458
  {
1143
1459
  "internalType": "address",
1144
- "name": "roleMember",
1460
+ "name": "from",
1145
1461
  "type": "address"
1462
+ },
1463
+ {
1464
+ "internalType": "address",
1465
+ "name": "to",
1466
+ "type": "address"
1467
+ },
1468
+ {
1469
+ "internalType": "uint256",
1470
+ "name": "tokenId",
1471
+ "type": "uint256"
1146
1472
  }
1147
1473
  ],
1148
- "stateMutability": "view",
1474
+ "name": "nftTransferFrom",
1475
+ "outputs": [],
1476
+ "stateMutability": "nonpayable",
1149
1477
  "type": "function"
1150
1478
  },
1151
1479
  {
1152
1480
  "inputs": [
1153
1481
  {
1154
- "internalType": "RoleId",
1155
- "name": "role",
1156
- "type": "bytes8"
1157
- }
1158
- ],
1159
- "name": "getRoleMemberCount",
1160
- "outputs": [
1161
- {
1162
- "internalType": "uint256",
1163
- "name": "roleMembers",
1164
- "type": "uint256"
1482
+ "internalType": "address",
1483
+ "name": "",
1484
+ "type": "address"
1165
1485
  }
1166
1486
  ],
1167
- "stateMutability": "view",
1487
+ "name": "setAuthority",
1488
+ "outputs": [],
1489
+ "stateMutability": "nonpayable",
1168
1490
  "type": "function"
1169
1491
  },
1170
1492
  {
1171
1493
  "inputs": [
1172
1494
  {
1173
- "internalType": "NftId",
1174
- "name": "productNftId",
1175
- "type": "uint96"
1495
+ "internalType": "bytes4",
1496
+ "name": "interfaceId",
1497
+ "type": "bytes4"
1176
1498
  }
1177
1499
  ],
1178
- "name": "getTokenHandler",
1500
+ "name": "supportsInterface",
1179
1501
  "outputs": [
1180
1502
  {
1181
- "internalType": "contract TokenHandler",
1182
- "name": "tokenHandler",
1183
- "type": "address"
1503
+ "internalType": "bool",
1504
+ "name": "",
1505
+ "type": "bool"
1184
1506
  }
1185
1507
  ],
1186
1508
  "stateMutability": "view",
1187
1509
  "type": "function"
1188
1510
  },
1189
1511
  {
1190
- "inputs": [],
1191
- "name": "getType",
1192
- "outputs": [
1512
+ "inputs": [
1193
1513
  {
1194
1514
  "internalType": "ObjectType",
1195
1515
  "name": "objectType",
1196
1516
  "type": "uint8"
1517
+ },
1518
+ {
1519
+ "internalType": "KeyId",
1520
+ "name": "id",
1521
+ "type": "bytes31"
1522
+ }
1523
+ ],
1524
+ "name": "toKey32",
1525
+ "outputs": [
1526
+ {
1527
+ "internalType": "Key32",
1528
+ "name": "",
1529
+ "type": "bytes32"
1197
1530
  }
1198
1531
  ],
1199
1532
  "stateMutability": "pure",
@@ -1202,176 +1535,402 @@
1202
1535
  {
1203
1536
  "inputs": [
1204
1537
  {
1205
- "internalType": "uint256",
1206
- "name": "a",
1207
- "type": "uint256"
1538
+ "internalType": "NftId",
1539
+ "name": "applicationNftId",
1540
+ "type": "uint96"
1208
1541
  },
1209
1542
  {
1210
- "internalType": "int8",
1211
- "name": "exp",
1212
- "type": "int8"
1213
- }
1214
- ],
1215
- "name": "getUFixed",
1216
- "outputs": [
1543
+ "components": [
1544
+ {
1545
+ "internalType": "NftId",
1546
+ "name": "productNftId",
1547
+ "type": "uint96"
1548
+ },
1549
+ {
1550
+ "internalType": "NftId",
1551
+ "name": "bundleNftId",
1552
+ "type": "uint96"
1553
+ },
1554
+ {
1555
+ "internalType": "ReferralId",
1556
+ "name": "referralId",
1557
+ "type": "bytes8"
1558
+ },
1559
+ {
1560
+ "internalType": "RiskId",
1561
+ "name": "riskId",
1562
+ "type": "bytes8"
1563
+ },
1564
+ {
1565
+ "internalType": "uint256",
1566
+ "name": "sumInsuredAmount",
1567
+ "type": "uint256"
1568
+ },
1569
+ {
1570
+ "internalType": "uint256",
1571
+ "name": "premiumAmount",
1572
+ "type": "uint256"
1573
+ },
1574
+ {
1575
+ "internalType": "uint256",
1576
+ "name": "premiumPaidAmount",
1577
+ "type": "uint256"
1578
+ },
1579
+ {
1580
+ "internalType": "Seconds",
1581
+ "name": "lifetime",
1582
+ "type": "uint40"
1583
+ },
1584
+ {
1585
+ "internalType": "bytes",
1586
+ "name": "applicationData",
1587
+ "type": "bytes"
1588
+ },
1589
+ {
1590
+ "internalType": "bytes",
1591
+ "name": "policyData",
1592
+ "type": "bytes"
1593
+ },
1594
+ {
1595
+ "internalType": "uint16",
1596
+ "name": "claimsCount",
1597
+ "type": "uint16"
1598
+ },
1599
+ {
1600
+ "internalType": "uint16",
1601
+ "name": "openClaimsCount",
1602
+ "type": "uint16"
1603
+ },
1604
+ {
1605
+ "internalType": "Amount",
1606
+ "name": "payoutAmount",
1607
+ "type": "uint96"
1608
+ },
1609
+ {
1610
+ "internalType": "Timestamp",
1611
+ "name": "activatedAt",
1612
+ "type": "uint40"
1613
+ },
1614
+ {
1615
+ "internalType": "Timestamp",
1616
+ "name": "expiredAt",
1617
+ "type": "uint40"
1618
+ },
1619
+ {
1620
+ "internalType": "Timestamp",
1621
+ "name": "closedAt",
1622
+ "type": "uint40"
1623
+ }
1624
+ ],
1625
+ "internalType": "struct IPolicy.PolicyInfo",
1626
+ "name": "policy",
1627
+ "type": "tuple"
1628
+ },
1217
1629
  {
1218
- "internalType": "UFixed",
1219
- "name": "",
1220
- "type": "uint256"
1630
+ "internalType": "StateId",
1631
+ "name": "newState",
1632
+ "type": "uint8"
1221
1633
  }
1222
1634
  ],
1223
- "stateMutability": "pure",
1635
+ "name": "updateApplication",
1636
+ "outputs": [],
1637
+ "stateMutability": "nonpayable",
1224
1638
  "type": "function"
1225
1639
  },
1226
1640
  {
1227
1641
  "inputs": [
1228
1642
  {
1229
- "internalType": "uint256",
1230
- "name": "a",
1231
- "type": "uint256"
1232
- }
1233
- ],
1234
- "name": "getUFixed",
1235
- "outputs": [
1643
+ "internalType": "NftId",
1644
+ "name": "applicationNftId",
1645
+ "type": "uint96"
1646
+ },
1236
1647
  {
1237
- "internalType": "UFixed",
1238
- "name": "",
1239
- "type": "uint256"
1648
+ "internalType": "StateId",
1649
+ "name": "newState",
1650
+ "type": "uint8"
1240
1651
  }
1241
1652
  ],
1242
- "stateMutability": "pure",
1653
+ "name": "updateApplicationState",
1654
+ "outputs": [],
1655
+ "stateMutability": "nonpayable",
1243
1656
  "type": "function"
1244
1657
  },
1245
1658
  {
1246
- "inputs": [],
1247
- "name": "getVersion",
1248
- "outputs": [
1659
+ "inputs": [
1660
+ {
1661
+ "internalType": "NftId",
1662
+ "name": "bundleNftId",
1663
+ "type": "uint96"
1664
+ },
1665
+ {
1666
+ "components": [
1667
+ {
1668
+ "internalType": "NftId",
1669
+ "name": "poolNftId",
1670
+ "type": "uint96"
1671
+ },
1672
+ {
1673
+ "components": [
1674
+ {
1675
+ "internalType": "UFixed",
1676
+ "name": "fractionalFee",
1677
+ "type": "uint256"
1678
+ },
1679
+ {
1680
+ "internalType": "uint256",
1681
+ "name": "fixedFee",
1682
+ "type": "uint256"
1683
+ }
1684
+ ],
1685
+ "internalType": "struct Fee",
1686
+ "name": "fee",
1687
+ "type": "tuple"
1688
+ },
1689
+ {
1690
+ "internalType": "bytes",
1691
+ "name": "filter",
1692
+ "type": "bytes"
1693
+ },
1694
+ {
1695
+ "internalType": "Amount",
1696
+ "name": "capitalAmount",
1697
+ "type": "uint96"
1698
+ },
1699
+ {
1700
+ "internalType": "Amount",
1701
+ "name": "lockedAmount",
1702
+ "type": "uint96"
1703
+ },
1704
+ {
1705
+ "internalType": "Amount",
1706
+ "name": "feeAmount",
1707
+ "type": "uint96"
1708
+ },
1709
+ {
1710
+ "internalType": "Seconds",
1711
+ "name": "lifetime",
1712
+ "type": "uint40"
1713
+ },
1714
+ {
1715
+ "internalType": "Timestamp",
1716
+ "name": "expiredAt",
1717
+ "type": "uint40"
1718
+ },
1719
+ {
1720
+ "internalType": "Timestamp",
1721
+ "name": "closedAt",
1722
+ "type": "uint40"
1723
+ }
1724
+ ],
1725
+ "internalType": "struct IBundle.BundleInfo",
1726
+ "name": "bundle",
1727
+ "type": "tuple"
1728
+ },
1249
1729
  {
1250
- "internalType": "Version",
1251
- "name": "",
1252
- "type": "uint24"
1730
+ "internalType": "StateId",
1731
+ "name": "newState",
1732
+ "type": "uint8"
1253
1733
  }
1254
1734
  ],
1255
- "stateMutability": "pure",
1735
+ "name": "updateBundle",
1736
+ "outputs": [],
1737
+ "stateMutability": "nonpayable",
1256
1738
  "type": "function"
1257
1739
  },
1258
1740
  {
1259
1741
  "inputs": [
1260
1742
  {
1261
- "internalType": "uint256",
1262
- "name": "index",
1263
- "type": "uint256"
1264
- }
1265
- ],
1266
- "name": "getVersion",
1267
- "outputs": [
1268
- {
1269
- "internalType": "Version",
1270
- "name": "version",
1271
- "type": "uint24"
1272
- }
1273
- ],
1274
- "stateMutability": "view",
1275
- "type": "function"
1276
- },
1277
- {
1278
- "inputs": [],
1279
- "name": "getVersionCount",
1280
- "outputs": [
1743
+ "internalType": "NftId",
1744
+ "name": "bundleNftId",
1745
+ "type": "uint96"
1746
+ },
1281
1747
  {
1282
- "internalType": "uint256",
1283
- "name": "numberOfVersions",
1284
- "type": "uint256"
1748
+ "internalType": "StateId",
1749
+ "name": "newState",
1750
+ "type": "uint8"
1285
1751
  }
1286
1752
  ],
1287
- "stateMutability": "view",
1753
+ "name": "updateBundleState",
1754
+ "outputs": [],
1755
+ "stateMutability": "nonpayable",
1288
1756
  "type": "function"
1289
1757
  },
1290
1758
  {
1291
1759
  "inputs": [
1292
1760
  {
1293
- "internalType": "Version",
1294
- "name": "version",
1295
- "type": "uint24"
1296
- }
1297
- ],
1298
- "name": "getVersionInfo",
1299
- "outputs": [
1761
+ "internalType": "NftId",
1762
+ "name": "policyNftId",
1763
+ "type": "uint96"
1764
+ },
1765
+ {
1766
+ "internalType": "ClaimId",
1767
+ "name": "claimId",
1768
+ "type": "uint16"
1769
+ },
1300
1770
  {
1301
1771
  "components": [
1302
1772
  {
1303
- "internalType": "Version",
1304
- "name": "version",
1305
- "type": "uint24"
1773
+ "internalType": "Amount",
1774
+ "name": "claimAmount",
1775
+ "type": "uint96"
1306
1776
  },
1307
1777
  {
1308
- "internalType": "address",
1309
- "name": "implementation",
1310
- "type": "address"
1778
+ "internalType": "Amount",
1779
+ "name": "paidAmount",
1780
+ "type": "uint96"
1311
1781
  },
1312
1782
  {
1313
- "internalType": "address",
1314
- "name": "activatedBy",
1315
- "type": "address"
1783
+ "internalType": "uint8",
1784
+ "name": "payoutsCount",
1785
+ "type": "uint8"
1316
1786
  },
1317
1787
  {
1318
- "internalType": "Blocknumber",
1319
- "name": "activatedIn",
1320
- "type": "uint32"
1788
+ "internalType": "uint8",
1789
+ "name": "openPayoutsCount",
1790
+ "type": "uint8"
1791
+ },
1792
+ {
1793
+ "internalType": "bytes",
1794
+ "name": "data",
1795
+ "type": "bytes"
1321
1796
  },
1322
1797
  {
1323
1798
  "internalType": "Timestamp",
1324
- "name": "activatedAt",
1799
+ "name": "closedAt",
1325
1800
  "type": "uint40"
1326
1801
  }
1327
1802
  ],
1328
- "internalType": "struct IVersionable.VersionInfo",
1329
- "name": "versionInfo",
1803
+ "internalType": "struct IPolicy.ClaimInfo",
1804
+ "name": "claim",
1330
1805
  "type": "tuple"
1806
+ },
1807
+ {
1808
+ "internalType": "StateId",
1809
+ "name": "newState",
1810
+ "type": "uint8"
1331
1811
  }
1332
1812
  ],
1333
- "stateMutability": "view",
1813
+ "name": "updateClaim",
1814
+ "outputs": [],
1815
+ "stateMutability": "nonpayable",
1334
1816
  "type": "function"
1335
1817
  },
1336
1818
  {
1337
- "inputs": [],
1338
- "name": "getZeroFee",
1339
- "outputs": [
1819
+ "inputs": [
1820
+ {
1821
+ "internalType": "NftId",
1822
+ "name": "policyNftId",
1823
+ "type": "uint96"
1824
+ },
1825
+ {
1826
+ "internalType": "ClaimId",
1827
+ "name": "claimId",
1828
+ "type": "uint16"
1829
+ },
1830
+ {
1831
+ "internalType": "StateId",
1832
+ "name": "newState",
1833
+ "type": "uint8"
1834
+ }
1835
+ ],
1836
+ "name": "updateClaimState",
1837
+ "outputs": [],
1838
+ "stateMutability": "nonpayable",
1839
+ "type": "function"
1840
+ },
1841
+ {
1842
+ "inputs": [
1843
+ {
1844
+ "internalType": "NftId",
1845
+ "name": "distributionNftId",
1846
+ "type": "uint96"
1847
+ },
1340
1848
  {
1341
1849
  "components": [
1342
1850
  {
1343
- "internalType": "UFixed",
1344
- "name": "fractionalFee",
1345
- "type": "uint256"
1851
+ "internalType": "NftId",
1852
+ "name": "productNftId",
1853
+ "type": "uint96"
1854
+ },
1855
+ {
1856
+ "internalType": "contract TokenHandler",
1857
+ "name": "tokenHandler",
1858
+ "type": "address"
1859
+ },
1860
+ {
1861
+ "components": [
1862
+ {
1863
+ "internalType": "UFixed",
1864
+ "name": "fractionalFee",
1865
+ "type": "uint256"
1866
+ },
1867
+ {
1868
+ "internalType": "uint256",
1869
+ "name": "fixedFee",
1870
+ "type": "uint256"
1871
+ }
1872
+ ],
1873
+ "internalType": "struct Fee",
1874
+ "name": "minDistributionOwnerFee",
1875
+ "type": "tuple"
1876
+ },
1877
+ {
1878
+ "components": [
1879
+ {
1880
+ "internalType": "UFixed",
1881
+ "name": "fractionalFee",
1882
+ "type": "uint256"
1883
+ },
1884
+ {
1885
+ "internalType": "uint256",
1886
+ "name": "fixedFee",
1887
+ "type": "uint256"
1888
+ }
1889
+ ],
1890
+ "internalType": "struct Fee",
1891
+ "name": "distributionFee",
1892
+ "type": "tuple"
1893
+ },
1894
+ {
1895
+ "internalType": "address",
1896
+ "name": "wallet",
1897
+ "type": "address"
1346
1898
  },
1347
1899
  {
1348
1900
  "internalType": "uint256",
1349
- "name": "fixedFee",
1901
+ "name": "sumDistributionOwnerFees",
1350
1902
  "type": "uint256"
1351
1903
  }
1352
1904
  ],
1353
- "internalType": "struct Fee",
1354
- "name": "fee",
1905
+ "internalType": "struct ISetup.DistributionSetupInfo",
1906
+ "name": "setup",
1355
1907
  "type": "tuple"
1908
+ },
1909
+ {
1910
+ "internalType": "StateId",
1911
+ "name": "newState",
1912
+ "type": "uint8"
1356
1913
  }
1357
1914
  ],
1358
- "stateMutability": "pure",
1915
+ "name": "updateDistributionSetup",
1916
+ "outputs": [],
1917
+ "stateMutability": "nonpayable",
1359
1918
  "type": "function"
1360
1919
  },
1361
1920
  {
1362
1921
  "inputs": [
1363
1922
  {
1364
- "internalType": "RoleId",
1365
- "name": "role",
1366
- "type": "bytes8"
1923
+ "internalType": "NftId",
1924
+ "name": "distributionNftId",
1925
+ "type": "uint96"
1367
1926
  },
1368
1927
  {
1369
- "internalType": "address",
1370
- "name": "member",
1371
- "type": "address"
1928
+ "internalType": "StateId",
1929
+ "name": "newState",
1930
+ "type": "uint8"
1372
1931
  }
1373
1932
  ],
1374
- "name": "grantRole",
1933
+ "name": "updateDistributionSetupState",
1375
1934
  "outputs": [],
1376
1935
  "stateMutability": "nonpayable",
1377
1936
  "type": "function"
@@ -1379,107 +1938,155 @@
1379
1938
  {
1380
1939
  "inputs": [
1381
1940
  {
1382
- "internalType": "RoleId",
1383
- "name": "role",
1384
- "type": "bytes8"
1941
+ "internalType": "NftId",
1942
+ "name": "nftId",
1943
+ "type": "uint96"
1385
1944
  },
1386
1945
  {
1387
- "internalType": "address",
1388
- "name": "member",
1389
- "type": "address"
1390
- }
1391
- ],
1392
- "name": "hasRole",
1393
- "outputs": [
1946
+ "components": [
1947
+ {
1948
+ "internalType": "DistributorType",
1949
+ "name": "distributorType",
1950
+ "type": "bytes8"
1951
+ },
1952
+ {
1953
+ "internalType": "bool",
1954
+ "name": "active",
1955
+ "type": "bool"
1956
+ },
1957
+ {
1958
+ "internalType": "bytes",
1959
+ "name": "data",
1960
+ "type": "bytes"
1961
+ },
1962
+ {
1963
+ "internalType": "uint256",
1964
+ "name": "sumCommisions",
1965
+ "type": "uint256"
1966
+ },
1967
+ {
1968
+ "internalType": "uint256",
1969
+ "name": "numPoliciesSold",
1970
+ "type": "uint256"
1971
+ }
1972
+ ],
1973
+ "internalType": "struct IDistribution.DistributorInfo",
1974
+ "name": "info",
1975
+ "type": "tuple"
1976
+ },
1394
1977
  {
1395
- "internalType": "bool",
1396
- "name": "hasRole",
1397
- "type": "bool"
1978
+ "internalType": "StateId",
1979
+ "name": "newState",
1980
+ "type": "uint8"
1398
1981
  }
1399
1982
  ],
1400
- "stateMutability": "view",
1983
+ "name": "updateDistributor",
1984
+ "outputs": [],
1985
+ "stateMutability": "nonpayable",
1401
1986
  "type": "function"
1402
1987
  },
1403
1988
  {
1404
1989
  "inputs": [
1405
1990
  {
1406
- "internalType": "Version",
1407
- "name": "version",
1408
- "type": "uint24"
1409
- }
1410
- ],
1411
- "name": "isActivated",
1412
- "outputs": [
1991
+ "internalType": "NftId",
1992
+ "name": "nftId",
1993
+ "type": "uint96"
1994
+ },
1413
1995
  {
1414
- "internalType": "bool",
1415
- "name": "",
1416
- "type": "bool"
1996
+ "internalType": "StateId",
1997
+ "name": "newState",
1998
+ "type": "uint8"
1417
1999
  }
1418
2000
  ],
1419
- "stateMutability": "view",
2001
+ "name": "updateDistributorState",
2002
+ "outputs": [],
2003
+ "stateMutability": "nonpayable",
1420
2004
  "type": "function"
1421
2005
  },
1422
2006
  {
1423
2007
  "inputs": [
1424
2008
  {
1425
- "internalType": "ObjectType",
1426
- "name": "objectType",
1427
- "type": "uint8"
2009
+ "internalType": "DistributorType",
2010
+ "name": "distributorType",
2011
+ "type": "bytes8"
1428
2012
  },
1429
2013
  {
1430
- "internalType": "StateId",
1431
- "name": "fromId",
1432
- "type": "uint8"
2014
+ "components": [
2015
+ {
2016
+ "internalType": "string",
2017
+ "name": "name",
2018
+ "type": "string"
2019
+ },
2020
+ {
2021
+ "internalType": "UFixed",
2022
+ "name": "minDiscountPercentage",
2023
+ "type": "uint256"
2024
+ },
2025
+ {
2026
+ "internalType": "UFixed",
2027
+ "name": "maxDiscountPercentage",
2028
+ "type": "uint256"
2029
+ },
2030
+ {
2031
+ "internalType": "UFixed",
2032
+ "name": "commissionPercentage",
2033
+ "type": "uint256"
2034
+ },
2035
+ {
2036
+ "internalType": "uint32",
2037
+ "name": "maxReferralCount",
2038
+ "type": "uint32"
2039
+ },
2040
+ {
2041
+ "internalType": "uint32",
2042
+ "name": "maxReferralLifetime",
2043
+ "type": "uint32"
2044
+ },
2045
+ {
2046
+ "internalType": "bool",
2047
+ "name": "allowSelfReferrals",
2048
+ "type": "bool"
2049
+ },
2050
+ {
2051
+ "internalType": "bool",
2052
+ "name": "allowRenewals",
2053
+ "type": "bool"
2054
+ },
2055
+ {
2056
+ "internalType": "bytes",
2057
+ "name": "data",
2058
+ "type": "bytes"
2059
+ }
2060
+ ],
2061
+ "internalType": "struct IDistribution.DistributorTypeInfo",
2062
+ "name": "info",
2063
+ "type": "tuple"
1433
2064
  },
1434
2065
  {
1435
2066
  "internalType": "StateId",
1436
- "name": "toId",
2067
+ "name": "newState",
1437
2068
  "type": "uint8"
1438
2069
  }
1439
2070
  ],
1440
- "name": "isValidTransition",
1441
- "outputs": [
1442
- {
1443
- "internalType": "bool",
1444
- "name": "",
1445
- "type": "bool"
1446
- }
1447
- ],
1448
- "stateMutability": "view",
1449
- "type": "function"
1450
- },
1451
- {
1452
- "inputs": [],
1453
- "name": "register",
1454
- "outputs": [
1455
- {
1456
- "internalType": "NftId",
1457
- "name": "nftId",
1458
- "type": "uint96"
1459
- }
1460
- ],
2071
+ "name": "updateDistributorType",
2072
+ "outputs": [],
1461
2073
  "stateMutability": "nonpayable",
1462
2074
  "type": "function"
1463
2075
  },
1464
2076
  {
1465
2077
  "inputs": [
1466
2078
  {
1467
- "internalType": "NftId",
1468
- "name": "nftId",
1469
- "type": "uint96"
2079
+ "internalType": "DistributorType",
2080
+ "name": "distributorType",
2081
+ "type": "bytes8"
1470
2082
  },
1471
2083
  {
1472
- "internalType": "ObjectType",
1473
- "name": "objectType",
2084
+ "internalType": "StateId",
2085
+ "name": "newState",
1474
2086
  "type": "uint8"
1475
- },
1476
- {
1477
- "internalType": "contract IERC20Metadata",
1478
- "name": "token",
1479
- "type": "address"
1480
2087
  }
1481
2088
  ],
1482
- "name": "registerComponent",
2089
+ "name": "updateDistributorTypeState",
1483
2090
  "outputs": [],
1484
2091
  "stateMutability": "nonpayable",
1485
2092
  "type": "function"
@@ -1488,50 +2095,48 @@
1488
2095
  "inputs": [
1489
2096
  {
1490
2097
  "internalType": "NftId",
1491
- "name": "poolNftId",
2098
+ "name": "policyNftId",
1492
2099
  "type": "uint96"
1493
2100
  },
1494
2101
  {
1495
- "internalType": "address",
1496
- "name": "wallet",
1497
- "type": "address"
2102
+ "internalType": "PayoutId",
2103
+ "name": "payoutId",
2104
+ "type": "uint24"
1498
2105
  },
1499
2106
  {
1500
2107
  "components": [
1501
2108
  {
1502
- "internalType": "UFixed",
1503
- "name": "fractionalFee",
1504
- "type": "uint256"
2109
+ "internalType": "ClaimId",
2110
+ "name": "claimId",
2111
+ "type": "uint16"
1505
2112
  },
1506
2113
  {
1507
- "internalType": "uint256",
1508
- "name": "fixedFee",
1509
- "type": "uint256"
1510
- }
1511
- ],
1512
- "internalType": "struct Fee",
1513
- "name": "stakingFee",
1514
- "type": "tuple"
1515
- },
1516
- {
1517
- "components": [
2114
+ "internalType": "Amount",
2115
+ "name": "amount",
2116
+ "type": "uint96"
2117
+ },
1518
2118
  {
1519
- "internalType": "UFixed",
1520
- "name": "fractionalFee",
1521
- "type": "uint256"
2119
+ "internalType": "bytes",
2120
+ "name": "data",
2121
+ "type": "bytes"
1522
2122
  },
1523
2123
  {
1524
- "internalType": "uint256",
1525
- "name": "fixedFee",
1526
- "type": "uint256"
2124
+ "internalType": "Timestamp",
2125
+ "name": "paidAt",
2126
+ "type": "uint40"
1527
2127
  }
1528
2128
  ],
1529
- "internalType": "struct Fee",
1530
- "name": "performanceFee",
2129
+ "internalType": "struct IPolicy.PayoutInfo",
2130
+ "name": "claim",
1531
2131
  "type": "tuple"
2132
+ },
2133
+ {
2134
+ "internalType": "StateId",
2135
+ "name": "newState",
2136
+ "type": "uint8"
1532
2137
  }
1533
2138
  ],
1534
- "name": "registerPool",
2139
+ "name": "updatePayout",
1535
2140
  "outputs": [],
1536
2141
  "stateMutability": "nonpayable",
1537
2142
  "type": "function"
@@ -1540,21 +2145,21 @@
1540
2145
  "inputs": [
1541
2146
  {
1542
2147
  "internalType": "NftId",
1543
- "name": "poolNftId",
2148
+ "name": "policyNftId",
1544
2149
  "type": "uint96"
1545
2150
  },
1546
2151
  {
1547
- "internalType": "bool",
1548
- "name": "isVerifying",
1549
- "type": "bool"
2152
+ "internalType": "PayoutId",
2153
+ "name": "payoutId",
2154
+ "type": "uint24"
1550
2155
  },
1551
2156
  {
1552
- "internalType": "UFixed",
1553
- "name": "collateralizationLevel",
1554
- "type": "uint256"
2157
+ "internalType": "StateId",
2158
+ "name": "newState",
2159
+ "type": "uint8"
1555
2160
  }
1556
2161
  ],
1557
- "name": "registerPool",
2162
+ "name": "updatePayoutState",
1558
2163
  "outputs": [],
1559
2164
  "stateMutability": "nonpayable",
1560
2165
  "type": "function"
@@ -1563,107 +2168,181 @@
1563
2168
  "inputs": [
1564
2169
  {
1565
2170
  "internalType": "NftId",
1566
- "name": "productNftId",
1567
- "type": "uint96"
1568
- },
1569
- {
1570
- "internalType": "NftId",
1571
- "name": "distributorNftId",
1572
- "type": "uint96"
1573
- },
1574
- {
1575
- "internalType": "NftId",
1576
- "name": "poolNftId",
2171
+ "name": "policyNftId",
1577
2172
  "type": "uint96"
1578
2173
  },
1579
- {
1580
- "internalType": "contract IERC20Metadata",
1581
- "name": "token",
1582
- "type": "address"
1583
- },
1584
- {
1585
- "internalType": "address",
1586
- "name": "wallet",
1587
- "type": "address"
1588
- },
1589
2174
  {
1590
2175
  "components": [
1591
2176
  {
1592
- "internalType": "UFixed",
1593
- "name": "fractionalFee",
1594
- "type": "uint256"
2177
+ "internalType": "NftId",
2178
+ "name": "productNftId",
2179
+ "type": "uint96"
2180
+ },
2181
+ {
2182
+ "internalType": "NftId",
2183
+ "name": "bundleNftId",
2184
+ "type": "uint96"
2185
+ },
2186
+ {
2187
+ "internalType": "ReferralId",
2188
+ "name": "referralId",
2189
+ "type": "bytes8"
2190
+ },
2191
+ {
2192
+ "internalType": "RiskId",
2193
+ "name": "riskId",
2194
+ "type": "bytes8"
1595
2195
  },
1596
2196
  {
1597
2197
  "internalType": "uint256",
1598
- "name": "fixedFee",
2198
+ "name": "sumInsuredAmount",
1599
2199
  "type": "uint256"
1600
- }
1601
- ],
1602
- "internalType": "struct Fee",
1603
- "name": "policyFee",
1604
- "type": "tuple"
1605
- },
1606
- {
1607
- "components": [
2200
+ },
1608
2201
  {
1609
- "internalType": "UFixed",
1610
- "name": "fractionalFee",
2202
+ "internalType": "uint256",
2203
+ "name": "premiumAmount",
1611
2204
  "type": "uint256"
1612
2205
  },
1613
2206
  {
1614
2207
  "internalType": "uint256",
1615
- "name": "fixedFee",
2208
+ "name": "premiumPaidAmount",
1616
2209
  "type": "uint256"
2210
+ },
2211
+ {
2212
+ "internalType": "Seconds",
2213
+ "name": "lifetime",
2214
+ "type": "uint40"
2215
+ },
2216
+ {
2217
+ "internalType": "bytes",
2218
+ "name": "applicationData",
2219
+ "type": "bytes"
2220
+ },
2221
+ {
2222
+ "internalType": "bytes",
2223
+ "name": "policyData",
2224
+ "type": "bytes"
2225
+ },
2226
+ {
2227
+ "internalType": "uint16",
2228
+ "name": "claimsCount",
2229
+ "type": "uint16"
2230
+ },
2231
+ {
2232
+ "internalType": "uint16",
2233
+ "name": "openClaimsCount",
2234
+ "type": "uint16"
2235
+ },
2236
+ {
2237
+ "internalType": "Amount",
2238
+ "name": "payoutAmount",
2239
+ "type": "uint96"
2240
+ },
2241
+ {
2242
+ "internalType": "Timestamp",
2243
+ "name": "activatedAt",
2244
+ "type": "uint40"
2245
+ },
2246
+ {
2247
+ "internalType": "Timestamp",
2248
+ "name": "expiredAt",
2249
+ "type": "uint40"
2250
+ },
2251
+ {
2252
+ "internalType": "Timestamp",
2253
+ "name": "closedAt",
2254
+ "type": "uint40"
1617
2255
  }
1618
2256
  ],
1619
- "internalType": "struct Fee",
1620
- "name": "processingFee",
2257
+ "internalType": "struct IPolicy.PolicyInfo",
2258
+ "name": "policy",
1621
2259
  "type": "tuple"
2260
+ },
2261
+ {
2262
+ "internalType": "StateId",
2263
+ "name": "newState",
2264
+ "type": "uint8"
1622
2265
  }
1623
2266
  ],
1624
- "name": "registerProduct",
2267
+ "name": "updatePolicy",
1625
2268
  "outputs": [],
1626
2269
  "stateMutability": "nonpayable",
1627
2270
  "type": "function"
1628
2271
  },
1629
2272
  {
1630
2273
  "inputs": [
1631
- {
1632
- "internalType": "NftId",
1633
- "name": "bundleNftId",
1634
- "type": "uint96"
1635
- },
1636
2274
  {
1637
2275
  "internalType": "NftId",
1638
2276
  "name": "policyNftId",
1639
2277
  "type": "uint96"
1640
- }
1641
- ],
1642
- "name": "releasePolicy",
1643
- "outputs": [
2278
+ },
1644
2279
  {
1645
- "internalType": "uint256",
1646
- "name": "collateralAmount",
1647
- "type": "uint256"
2280
+ "internalType": "StateId",
2281
+ "name": "newState",
2282
+ "type": "uint8"
1648
2283
  }
1649
2284
  ],
2285
+ "name": "updatePolicyState",
2286
+ "outputs": [],
1650
2287
  "stateMutability": "nonpayable",
1651
2288
  "type": "function"
1652
2289
  },
1653
2290
  {
1654
2291
  "inputs": [
1655
2292
  {
1656
- "internalType": "RoleId",
1657
- "name": "role",
1658
- "type": "bytes8"
2293
+ "internalType": "NftId",
2294
+ "name": "poolNftId",
2295
+ "type": "uint96"
1659
2296
  },
1660
2297
  {
1661
- "internalType": "address",
1662
- "name": "member",
1663
- "type": "address"
2298
+ "components": [
2299
+ {
2300
+ "internalType": "string",
2301
+ "name": "name",
2302
+ "type": "string"
2303
+ },
2304
+ {
2305
+ "internalType": "contract IERC20Metadata",
2306
+ "name": "token",
2307
+ "type": "address"
2308
+ },
2309
+ {
2310
+ "internalType": "contract TokenHandler",
2311
+ "name": "tokenHandler",
2312
+ "type": "address"
2313
+ },
2314
+ {
2315
+ "internalType": "address",
2316
+ "name": "wallet",
2317
+ "type": "address"
2318
+ },
2319
+ {
2320
+ "internalType": "Amount",
2321
+ "name": "balanceAmount",
2322
+ "type": "uint96"
2323
+ },
2324
+ {
2325
+ "internalType": "Amount",
2326
+ "name": "feeAmount",
2327
+ "type": "uint96"
2328
+ },
2329
+ {
2330
+ "internalType": "bytes",
2331
+ "name": "data",
2332
+ "type": "bytes"
2333
+ }
2334
+ ],
2335
+ "internalType": "struct IComponents.ComponentInfo",
2336
+ "name": "info",
2337
+ "type": "tuple"
2338
+ },
2339
+ {
2340
+ "internalType": "StateId",
2341
+ "name": "newState",
2342
+ "type": "uint8"
1664
2343
  }
1665
2344
  ],
1666
- "name": "revokeRole",
2345
+ "name": "updatePoolSetup",
1667
2346
  "outputs": [],
1668
2347
  "stateMutability": "nonpayable",
1669
2348
  "type": "function"
@@ -1671,29 +2350,43 @@
1671
2350
  {
1672
2351
  "inputs": [
1673
2352
  {
1674
- "internalType": "RoleId",
1675
- "name": "role",
1676
- "type": "bytes8"
1677
- }
1678
- ],
1679
- "name": "roleExists",
1680
- "outputs": [
2353
+ "internalType": "NftId",
2354
+ "name": "poolNftId",
2355
+ "type": "uint96"
2356
+ },
1681
2357
  {
1682
- "internalType": "bool",
1683
- "name": "",
1684
- "type": "bool"
2358
+ "internalType": "StateId",
2359
+ "name": "newState",
2360
+ "type": "uint8"
1685
2361
  }
1686
2362
  ],
1687
- "stateMutability": "view",
2363
+ "name": "updatePoolSetupState",
2364
+ "outputs": [],
2365
+ "stateMutability": "nonpayable",
1688
2366
  "type": "function"
1689
2367
  },
1690
2368
  {
1691
2369
  "inputs": [
2370
+ {
2371
+ "internalType": "NftId",
2372
+ "name": "productNftId",
2373
+ "type": "uint96"
2374
+ },
1692
2375
  {
1693
2376
  "components": [
2377
+ {
2378
+ "internalType": "contract IERC20Metadata",
2379
+ "name": "token",
2380
+ "type": "address"
2381
+ },
2382
+ {
2383
+ "internalType": "contract TokenHandler",
2384
+ "name": "tokenHandler",
2385
+ "type": "address"
2386
+ },
1694
2387
  {
1695
2388
  "internalType": "NftId",
1696
- "name": "nftId",
2389
+ "name": "distributionNftId",
1697
2390
  "type": "uint96"
1698
2391
  },
1699
2392
  {
@@ -1702,183 +2395,139 @@
1702
2395
  "type": "uint96"
1703
2396
  },
1704
2397
  {
1705
- "internalType": "StateId",
1706
- "name": "state",
1707
- "type": "uint8"
1708
- },
1709
- {
1710
- "internalType": "bytes",
1711
- "name": "filter",
1712
- "type": "bytes"
1713
- },
1714
- {
1715
- "internalType": "uint256",
1716
- "name": "capitalAmount",
1717
- "type": "uint256"
1718
- },
1719
- {
1720
- "internalType": "uint256",
1721
- "name": "lockedAmount",
1722
- "type": "uint256"
1723
- },
1724
- {
1725
- "internalType": "uint256",
1726
- "name": "balanceAmount",
1727
- "type": "uint256"
1728
- },
1729
- {
1730
- "internalType": "Timestamp",
1731
- "name": "createdAt",
1732
- "type": "uint40"
2398
+ "components": [
2399
+ {
2400
+ "internalType": "UFixed",
2401
+ "name": "fractionalFee",
2402
+ "type": "uint256"
2403
+ },
2404
+ {
2405
+ "internalType": "uint256",
2406
+ "name": "fixedFee",
2407
+ "type": "uint256"
2408
+ }
2409
+ ],
2410
+ "internalType": "struct Fee",
2411
+ "name": "productFee",
2412
+ "type": "tuple"
1733
2413
  },
1734
2414
  {
1735
- "internalType": "Timestamp",
1736
- "name": "expiredAt",
1737
- "type": "uint40"
2415
+ "components": [
2416
+ {
2417
+ "internalType": "UFixed",
2418
+ "name": "fractionalFee",
2419
+ "type": "uint256"
2420
+ },
2421
+ {
2422
+ "internalType": "uint256",
2423
+ "name": "fixedFee",
2424
+ "type": "uint256"
2425
+ }
2426
+ ],
2427
+ "internalType": "struct Fee",
2428
+ "name": "processingFee",
2429
+ "type": "tuple"
1738
2430
  },
1739
2431
  {
1740
- "internalType": "Timestamp",
1741
- "name": "closedAt",
1742
- "type": "uint40"
2432
+ "internalType": "bool",
2433
+ "name": "isIntercepting",
2434
+ "type": "bool"
1743
2435
  },
1744
2436
  {
1745
- "internalType": "Blocknumber",
1746
- "name": "updatedIn",
1747
- "type": "uint32"
2437
+ "internalType": "address",
2438
+ "name": "wallet",
2439
+ "type": "address"
1748
2440
  }
1749
2441
  ],
1750
- "internalType": "struct IBundle.BundleInfo",
1751
- "name": "bundleInfo",
2442
+ "internalType": "struct ISetup.ProductSetupInfo",
2443
+ "name": "setup",
1752
2444
  "type": "tuple"
2445
+ },
2446
+ {
2447
+ "internalType": "StateId",
2448
+ "name": "newState",
2449
+ "type": "uint8"
1753
2450
  }
1754
2451
  ],
1755
- "name": "setBundleInfo",
2452
+ "name": "updateProductSetup",
1756
2453
  "outputs": [],
1757
2454
  "stateMutability": "nonpayable",
1758
2455
  "type": "function"
1759
2456
  },
1760
2457
  {
1761
2458
  "inputs": [
1762
- {
1763
- "components": [
1764
- {
1765
- "internalType": "NftId",
1766
- "name": "nftId",
1767
- "type": "uint96"
1768
- },
1769
- {
1770
- "internalType": "StateId",
1771
- "name": "state",
1772
- "type": "uint8"
1773
- },
1774
- {
1775
- "internalType": "contract IERC20Metadata",
1776
- "name": "token",
1777
- "type": "address"
1778
- }
1779
- ],
1780
- "internalType": "struct IComponent.ComponentInfo",
1781
- "name": "info",
1782
- "type": "tuple"
1783
- }
1784
- ],
1785
- "name": "setComponentInfo",
1786
- "outputs": [
1787
2459
  {
1788
2460
  "internalType": "NftId",
1789
- "name": "componentNftId",
2461
+ "name": "productNftId",
1790
2462
  "type": "uint96"
2463
+ },
2464
+ {
2465
+ "internalType": "StateId",
2466
+ "name": "newState",
2467
+ "type": "uint8"
1791
2468
  }
1792
2469
  ],
2470
+ "name": "updateProductSetupState",
2471
+ "outputs": [],
1793
2472
  "stateMutability": "nonpayable",
1794
2473
  "type": "function"
1795
2474
  },
1796
2475
  {
1797
2476
  "inputs": [
2477
+ {
2478
+ "internalType": "ReferralId",
2479
+ "name": "referralId",
2480
+ "type": "bytes8"
2481
+ },
1798
2482
  {
1799
2483
  "components": [
1800
2484
  {
1801
2485
  "internalType": "NftId",
1802
- "name": "nftId",
1803
- "type": "uint96"
1804
- },
1805
- {
1806
- "internalType": "NftId",
1807
- "name": "productNftId",
1808
- "type": "uint96"
1809
- },
1810
- {
1811
- "internalType": "NftId",
1812
- "name": "bundleNftId",
2486
+ "name": "distributorNftId",
1813
2487
  "type": "uint96"
1814
2488
  },
1815
2489
  {
1816
- "internalType": "address",
1817
- "name": "beneficiary",
1818
- "type": "address"
1819
- },
1820
- {
1821
- "internalType": "StateId",
1822
- "name": "state",
1823
- "type": "uint8"
2490
+ "internalType": "string",
2491
+ "name": "referralCode",
2492
+ "type": "string"
1824
2493
  },
1825
2494
  {
1826
- "internalType": "uint256",
1827
- "name": "sumInsuredAmount",
2495
+ "internalType": "UFixed",
2496
+ "name": "discountPercentage",
1828
2497
  "type": "uint256"
1829
2498
  },
1830
2499
  {
1831
- "internalType": "uint256",
1832
- "name": "premiumAmount",
1833
- "type": "uint256"
2500
+ "internalType": "uint32",
2501
+ "name": "maxReferrals",
2502
+ "type": "uint32"
1834
2503
  },
1835
2504
  {
1836
- "internalType": "uint256",
1837
- "name": "premiumPaidAmount",
1838
- "type": "uint256"
2505
+ "internalType": "uint32",
2506
+ "name": "usedReferrals",
2507
+ "type": "uint32"
1839
2508
  },
1840
2509
  {
1841
- "internalType": "uint256",
1842
- "name": "lifetime",
1843
- "type": "uint256"
2510
+ "internalType": "Timestamp",
2511
+ "name": "expiryAt",
2512
+ "type": "uint40"
1844
2513
  },
1845
2514
  {
1846
2515
  "internalType": "bytes",
1847
2516
  "name": "data",
1848
2517
  "type": "bytes"
1849
- },
1850
- {
1851
- "internalType": "Timestamp",
1852
- "name": "createdAt",
1853
- "type": "uint40"
1854
- },
1855
- {
1856
- "internalType": "Timestamp",
1857
- "name": "activatedAt",
1858
- "type": "uint40"
1859
- },
1860
- {
1861
- "internalType": "Timestamp",
1862
- "name": "expiredAt",
1863
- "type": "uint40"
1864
- },
1865
- {
1866
- "internalType": "Timestamp",
1867
- "name": "closedAt",
1868
- "type": "uint40"
1869
- },
1870
- {
1871
- "internalType": "Blocknumber",
1872
- "name": "updatedIn",
1873
- "type": "uint32"
1874
2518
  }
1875
2519
  ],
1876
- "internalType": "struct IPolicy.PolicyInfo",
1877
- "name": "policyInfo",
2520
+ "internalType": "struct IDistribution.ReferralInfo",
2521
+ "name": "referralInfo",
1878
2522
  "type": "tuple"
2523
+ },
2524
+ {
2525
+ "internalType": "StateId",
2526
+ "name": "newState",
2527
+ "type": "uint8"
1879
2528
  }
1880
2529
  ],
1881
- "name": "setPolicyInfo",
2530
+ "name": "updateReferral",
1882
2531
  "outputs": [],
1883
2532
  "stateMutability": "nonpayable",
1884
2533
  "type": "function"
@@ -1886,46 +2535,17 @@
1886
2535
  {
1887
2536
  "inputs": [
1888
2537
  {
1889
- "internalType": "NftId",
1890
- "name": "poolNftId",
1891
- "type": "uint96"
1892
- },
1893
- {
1894
- "components": [
1895
- {
1896
- "internalType": "UFixed",
1897
- "name": "fractionalFee",
1898
- "type": "uint256"
1899
- },
1900
- {
1901
- "internalType": "uint256",
1902
- "name": "fixedFee",
1903
- "type": "uint256"
1904
- }
1905
- ],
1906
- "internalType": "struct Fee",
1907
- "name": "stakingFee",
1908
- "type": "tuple"
2538
+ "internalType": "ReferralId",
2539
+ "name": "referralId",
2540
+ "type": "bytes8"
1909
2541
  },
1910
2542
  {
1911
- "components": [
1912
- {
1913
- "internalType": "UFixed",
1914
- "name": "fractionalFee",
1915
- "type": "uint256"
1916
- },
1917
- {
1918
- "internalType": "uint256",
1919
- "name": "fixedFee",
1920
- "type": "uint256"
1921
- }
1922
- ],
1923
- "internalType": "struct Fee",
1924
- "name": "performanceFee",
1925
- "type": "tuple"
2543
+ "internalType": "StateId",
2544
+ "name": "newState",
2545
+ "type": "uint8"
1926
2546
  }
1927
2547
  ],
1928
- "name": "setPoolFees",
2548
+ "name": "updateReferralState",
1929
2549
  "outputs": [],
1930
2550
  "stateMutability": "nonpayable",
1931
2551
  "type": "function"
@@ -1933,46 +2553,34 @@
1933
2553
  {
1934
2554
  "inputs": [
1935
2555
  {
1936
- "internalType": "NftId",
1937
- "name": "productNftId",
1938
- "type": "uint96"
2556
+ "internalType": "RiskId",
2557
+ "name": "riskId",
2558
+ "type": "bytes8"
1939
2559
  },
1940
2560
  {
1941
2561
  "components": [
1942
2562
  {
1943
- "internalType": "UFixed",
1944
- "name": "fractionalFee",
1945
- "type": "uint256"
2563
+ "internalType": "NftId",
2564
+ "name": "productNftId",
2565
+ "type": "uint96"
1946
2566
  },
1947
2567
  {
1948
- "internalType": "uint256",
1949
- "name": "fixedFee",
1950
- "type": "uint256"
2568
+ "internalType": "bytes",
2569
+ "name": "data",
2570
+ "type": "bytes"
1951
2571
  }
1952
2572
  ],
1953
- "internalType": "struct Fee",
1954
- "name": "policyFee",
2573
+ "internalType": "struct IRisk.RiskInfo",
2574
+ "name": "risk",
1955
2575
  "type": "tuple"
1956
2576
  },
1957
2577
  {
1958
- "components": [
1959
- {
1960
- "internalType": "UFixed",
1961
- "name": "fractionalFee",
1962
- "type": "uint256"
1963
- },
1964
- {
1965
- "internalType": "uint256",
1966
- "name": "fixedFee",
1967
- "type": "uint256"
1968
- }
1969
- ],
1970
- "internalType": "struct Fee",
1971
- "name": "processingFee",
1972
- "type": "tuple"
2578
+ "internalType": "StateId",
2579
+ "name": "newState",
2580
+ "type": "uint8"
1973
2581
  }
1974
2582
  ],
1975
- "name": "setProductFees",
2583
+ "name": "updateRisk",
1976
2584
  "outputs": [],
1977
2585
  "stateMutability": "nonpayable",
1978
2586
  "type": "function"
@@ -1980,39 +2588,20 @@
1980
2588
  {
1981
2589
  "inputs": [
1982
2590
  {
1983
- "internalType": "RoleId",
1984
- "name": "role",
2591
+ "internalType": "RiskId",
2592
+ "name": "riskId",
1985
2593
  "type": "bytes8"
1986
2594
  },
1987
2595
  {
1988
- "internalType": "bool",
1989
- "name": "active",
1990
- "type": "bool"
2596
+ "internalType": "StateId",
2597
+ "name": "newState",
2598
+ "type": "uint8"
1991
2599
  }
1992
2600
  ],
1993
- "name": "setRoleState",
2601
+ "name": "updateRiskState",
1994
2602
  "outputs": [],
1995
2603
  "stateMutability": "nonpayable",
1996
2604
  "type": "function"
1997
- },
1998
- {
1999
- "inputs": [
2000
- {
2001
- "internalType": "bytes4",
2002
- "name": "interfaceId",
2003
- "type": "bytes4"
2004
- }
2005
- ],
2006
- "name": "supportsInterface",
2007
- "outputs": [
2008
- {
2009
- "internalType": "bool",
2010
- "name": "",
2011
- "type": "bool"
2012
- }
2013
- ],
2014
- "stateMutability": "view",
2015
- "type": "function"
2016
2605
  }
2017
2606
  ],
2018
2607
  "bytecode": "0x",