@etherisc/gif-next 0.0.2-7631288 → 0.0.2-7878646-744

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