@etherisc/gif-next 0.0.2-f824182-503 → 0.0.2-f831797-539

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