@etherisc/gif-next 0.0.2-eb1b869-461 → 0.0.2-eb98db7-932

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