@etherisc/gif-next 0.0.2-78bf628-134 → 0.0.2-790d44b-698

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 (231) hide show
  1. package/README.md +38 -7
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
  5. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +340 -0
  8. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +131 -0
  10. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +109 -18
  12. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  13. package/artifacts/contracts/components/Pool.sol/Pool.json +194 -3
  14. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  15. package/artifacts/contracts/components/Product.sol/Product.json +160 -21
  16. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  28. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  34. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  35. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +609 -416
  36. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  37. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  38. package/artifacts/contracts/instance/Instance.sol/Instance.json +751 -467
  39. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +82 -18
  41. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +32 -0
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/IService.sol/IService.json +59 -18
  47. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +115 -19
  49. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  50. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +14 -14
  51. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  52. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  53. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
  54. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  55. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +82 -18
  56. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
  57. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
  58. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
  59. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  60. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +55 -54
  61. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +56 -55
  64. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +12 -7
  66. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +12 -7
  69. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  70. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  71. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  72. package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensation.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
  73. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  74. package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
  75. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +53 -40
  78. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +53 -40
  80. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -5
  83. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  84. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
  85. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  86. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  87. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +104 -1
  88. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  89. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
  90. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  91. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  92. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +209 -231
  93. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  94. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  95. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  96. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +209 -231
  97. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +119 -47
  99. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +484 -0
  101. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  102. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +59 -18
  103. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  104. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +366 -0
  105. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  106. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +124 -19
  107. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  108. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +212 -18
  109. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  110. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +170 -34
  111. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  112. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +296 -47
  113. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  114. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  117. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/Registry.sol/Registry.json +266 -14
  119. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  120. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  122. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  124. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.dbg.json +4 -0
  125. package/artifacts/contracts/shared/Proxy.sol/ProxyDeployer.json +248 -0
  126. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +4 -0
  127. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.json +129 -0
  128. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  131. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  132. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
  133. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  134. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  135. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  136. package/artifacts/contracts/test/TestPool.sol/TestPool.json +194 -3
  137. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  138. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +209 -27
  139. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  140. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  141. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  143. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestService.sol/TestService.json +95 -31
  145. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  148. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +89 -25
  150. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  151. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  152. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  153. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  154. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  155. package/artifacts/contracts/types/Fee.sol/FeeLib.json +50 -11
  156. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  157. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  158. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  160. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  161. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  162. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  164. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  165. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  166. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  167. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  168. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  170. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  175. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  177. package/contracts/components/BaseComponent.sol +7 -1
  178. package/contracts/components/Distribution.sol +132 -0
  179. package/contracts/components/IDistributionComponent.sol +47 -0
  180. package/contracts/components/IPoolComponent.sol +14 -0
  181. package/contracts/components/IProductComponent.sol +24 -5
  182. package/contracts/components/Pool.sol +64 -3
  183. package/contracts/components/Product.sol +123 -13
  184. package/contracts/instance/IInstance.sol +7 -4
  185. package/contracts/instance/Instance.sol +11 -4
  186. package/contracts/instance/base/IInstanceBase.sol +3 -0
  187. package/contracts/instance/base/InstanceBase.sol +7 -0
  188. package/contracts/instance/base/Lifecycle.sol +10 -2
  189. package/contracts/instance/base/ModuleBase.sol +22 -17
  190. package/contracts/instance/module/access/Access.sol +3 -3
  191. package/contracts/instance/module/bundle/BundleModule.sol +10 -12
  192. package/contracts/instance/module/bundle/IBundle.sol +6 -11
  193. package/contracts/instance/module/component/ComponentModule.sol +15 -20
  194. package/contracts/instance/module/component/IComponent.sol +3 -2
  195. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  196. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  197. package/contracts/instance/module/policy/IPolicy.sol +10 -8
  198. package/contracts/instance/module/policy/PolicyModule.sol +33 -19
  199. package/contracts/instance/module/pool/IPoolModule.sol +0 -1
  200. package/contracts/instance/module/pool/PoolModule.sol +12 -9
  201. package/contracts/instance/module/risk/IRisk.sol +18 -2
  202. package/contracts/instance/module/risk/RiskModule.sol +56 -2
  203. package/contracts/instance/module/treasury/ITreasury.sol +29 -50
  204. package/contracts/instance/module/treasury/TreasuryModule.sol +71 -85
  205. package/contracts/instance/service/ComponentOwnerService.sol +19 -24
  206. package/contracts/instance/service/DistributionService.sol +59 -0
  207. package/contracts/instance/service/IDistributionService.sol +12 -0
  208. package/contracts/instance/service/IPoolService.sol +7 -0
  209. package/contracts/instance/service/IProductService.sol +56 -7
  210. package/contracts/instance/service/PoolService.sol +30 -4
  211. package/contracts/instance/service/ProductService.sol +229 -74
  212. package/contracts/registry/Registry.sol +190 -113
  213. package/contracts/shared/IVersionable.sol +51 -9
  214. package/contracts/shared/Proxy.sol +94 -0
  215. package/contracts/shared/Versionable.sol +90 -38
  216. package/contracts/test/TestDistribution.sol +21 -0
  217. package/contracts/test/TestPool.sol +5 -2
  218. package/contracts/test/TestProduct.sol +35 -7
  219. package/contracts/types/Fee.sol +8 -3
  220. package/contracts/types/ObjectType.sol +17 -5
  221. package/contracts/types/ReferralId.sol +48 -0
  222. package/contracts/types/RiskId.sol +43 -0
  223. package/contracts/types/RoleId.sol +2 -2
  224. package/contracts/types/Version.sol +8 -0
  225. package/package.json +1 -1
  226. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  227. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  228. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  229. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  230. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  231. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
@@ -88,27 +88,9 @@
88
88
  "type": "address"
89
89
  }
90
90
  ],
91
- "name": "LogVersionableActivated",
91
+ "name": "LogVersionableInitialized",
92
92
  "type": "event"
93
93
  },
94
- {
95
- "inputs": [
96
- {
97
- "internalType": "address",
98
- "name": "implementation",
99
- "type": "address"
100
- },
101
- {
102
- "internalType": "address",
103
- "name": "activatedBy",
104
- "type": "address"
105
- }
106
- ],
107
- "name": "activate",
108
- "outputs": [],
109
- "stateMutability": "nonpayable",
110
- "type": "function"
111
- },
112
94
  {
113
95
  "inputs": [
114
96
  {
@@ -200,22 +182,34 @@
200
182
  "inputs": [
201
183
  {
202
184
  "internalType": "NftId",
203
- "name": "productNftId",
185
+ "name": "bundleNftId",
204
186
  "type": "uint96"
205
187
  },
206
188
  {
207
189
  "internalType": "NftId",
208
- "name": "policyNftId",
190
+ "name": "poolNftId",
209
191
  "type": "uint96"
210
192
  },
211
193
  {
212
- "internalType": "uint256",
213
- "name": "sumInsuredAmount",
214
- "type": "uint256"
194
+ "components": [
195
+ {
196
+ "internalType": "UFixed",
197
+ "name": "fractionalFee",
198
+ "type": "uint256"
199
+ },
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "fixedFee",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "internalType": "struct Fee",
207
+ "name": "fee",
208
+ "type": "tuple"
215
209
  },
216
210
  {
217
211
  "internalType": "uint256",
218
- "name": "premiumAmount",
212
+ "name": "amount",
219
213
  "type": "uint256"
220
214
  },
221
215
  {
@@ -224,12 +218,12 @@
224
218
  "type": "uint256"
225
219
  },
226
220
  {
227
- "internalType": "NftId",
228
- "name": "bundleNftId",
229
- "type": "uint96"
221
+ "internalType": "bytes",
222
+ "name": "filter",
223
+ "type": "bytes"
230
224
  }
231
225
  ],
232
- "name": "createApplication",
226
+ "name": "createBundleInfo",
233
227
  "outputs": [],
234
228
  "stateMutability": "nonpayable",
235
229
  "type": "function"
@@ -238,17 +232,32 @@
238
232
  "inputs": [
239
233
  {
240
234
  "internalType": "NftId",
241
- "name": "bundleNftId",
235
+ "name": "policyNftId",
242
236
  "type": "uint96"
243
237
  },
244
238
  {
245
239
  "internalType": "NftId",
246
- "name": "poolNftId",
240
+ "name": "productNftId",
247
241
  "type": "uint96"
248
242
  },
243
+ {
244
+ "internalType": "ReferralId",
245
+ "name": "referralId",
246
+ "type": "bytes8"
247
+ },
248
+ {
249
+ "internalType": "RiskId",
250
+ "name": "riskId",
251
+ "type": "bytes8"
252
+ },
249
253
  {
250
254
  "internalType": "uint256",
251
- "name": "amount",
255
+ "name": "sumInsuredAmount",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "premiumAmount",
252
261
  "type": "uint256"
253
262
  },
254
263
  {
@@ -256,13 +265,36 @@
256
265
  "name": "lifetime",
257
266
  "type": "uint256"
258
267
  },
268
+ {
269
+ "internalType": "NftId",
270
+ "name": "bundleNftId",
271
+ "type": "uint96"
272
+ }
273
+ ],
274
+ "name": "createPolicyInfo",
275
+ "outputs": [],
276
+ "stateMutability": "nonpayable",
277
+ "type": "function"
278
+ },
279
+ {
280
+ "inputs": [
281
+ {
282
+ "internalType": "RiskId",
283
+ "name": "riskId",
284
+ "type": "bytes8"
285
+ },
286
+ {
287
+ "internalType": "NftId",
288
+ "name": "productNftId",
289
+ "type": "uint96"
290
+ },
259
291
  {
260
292
  "internalType": "bytes",
261
- "name": "filter",
293
+ "name": "data",
262
294
  "type": "bytes"
263
295
  }
264
296
  ],
265
- "name": "createBundleInfo",
297
+ "name": "createRisk",
266
298
  "outputs": [],
267
299
  "stateMutability": "nonpayable",
268
300
  "type": "function"
@@ -309,7 +341,7 @@
309
341
  "inputs": [
310
342
  {
311
343
  "internalType": "NftId",
312
- "name": "bundleNftId",
344
+ "name": "nftId",
313
345
  "type": "uint96"
314
346
  }
315
347
  ],
@@ -319,13 +351,25 @@
319
351
  "components": [
320
352
  {
321
353
  "internalType": "NftId",
322
- "name": "nftId",
354
+ "name": "poolNftId",
323
355
  "type": "uint96"
324
356
  },
325
357
  {
326
- "internalType": "NftId",
327
- "name": "poolNftId",
328
- "type": "uint96"
358
+ "components": [
359
+ {
360
+ "internalType": "UFixed",
361
+ "name": "fractionalFee",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "fixedFee",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "internalType": "struct Fee",
371
+ "name": "fee",
372
+ "type": "tuple"
329
373
  },
330
374
  {
331
375
  "internalType": "bytes",
@@ -443,12 +487,12 @@
443
487
  "type": "uint96"
444
488
  }
445
489
  ],
446
- "name": "getComponentState",
490
+ "name": "getComponentToken",
447
491
  "outputs": [
448
492
  {
449
- "internalType": "StateId",
450
- "name": "state",
451
- "type": "uint8"
493
+ "internalType": "contract IERC20Metadata",
494
+ "name": "token",
495
+ "type": "address"
452
496
  }
453
497
  ],
454
498
  "stateMutability": "view",
@@ -462,11 +506,11 @@
462
506
  "type": "uint96"
463
507
  }
464
508
  ],
465
- "name": "getComponentToken",
509
+ "name": "getComponentWallet",
466
510
  "outputs": [
467
511
  {
468
- "internalType": "contract IERC20Metadata",
469
- "name": "token",
512
+ "internalType": "address",
513
+ "name": "wallet",
470
514
  "type": "address"
471
515
  }
472
516
  ],
@@ -486,6 +530,19 @@
486
530
  "stateMutability": "view",
487
531
  "type": "function"
488
532
  },
533
+ {
534
+ "inputs": [],
535
+ "name": "getDistributionService",
536
+ "outputs": [
537
+ {
538
+ "internalType": "contract IDistributionService",
539
+ "name": "",
540
+ "type": "address"
541
+ }
542
+ ],
543
+ "stateMutability": "view",
544
+ "type": "function"
545
+ },
489
546
  {
490
547
  "inputs": [
491
548
  {
@@ -522,6 +579,19 @@
522
579
  "stateMutability": "pure",
523
580
  "type": "function"
524
581
  },
582
+ {
583
+ "inputs": [],
584
+ "name": "getInitializedVersion",
585
+ "outputs": [
586
+ {
587
+ "internalType": "uint64",
588
+ "name": "",
589
+ "type": "uint64"
590
+ }
591
+ ],
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
525
595
  {
526
596
  "inputs": [],
527
597
  "name": "getKeyValueStore",
@@ -586,11 +656,6 @@
586
656
  "outputs": [
587
657
  {
588
658
  "components": [
589
- {
590
- "internalType": "NftId",
591
- "name": "nftId",
592
- "type": "uint96"
593
- },
594
659
  {
595
660
  "internalType": "NftId",
596
661
  "name": "productNftId",
@@ -601,15 +666,20 @@
601
666
  "name": "bundleNftId",
602
667
  "type": "uint96"
603
668
  },
669
+ {
670
+ "internalType": "ReferralId",
671
+ "name": "referralId",
672
+ "type": "bytes8"
673
+ },
604
674
  {
605
675
  "internalType": "address",
606
676
  "name": "beneficiary",
607
677
  "type": "address"
608
678
  },
609
679
  {
610
- "internalType": "StateId",
611
- "name": "state",
612
- "type": "uint8"
680
+ "internalType": "RiskId",
681
+ "name": "riskId",
682
+ "type": "bytes8"
613
683
  },
614
684
  {
615
685
  "internalType": "uint256",
@@ -641,11 +711,6 @@
641
711
  "name": "policyData",
642
712
  "type": "bytes"
643
713
  },
644
- {
645
- "internalType": "Timestamp",
646
- "name": "createdAt",
647
- "type": "uint40"
648
- },
649
714
  {
650
715
  "internalType": "Timestamp",
651
716
  "name": "activatedAt",
@@ -660,11 +725,6 @@
660
725
  "internalType": "Timestamp",
661
726
  "name": "closedAt",
662
727
  "type": "uint40"
663
- },
664
- {
665
- "internalType": "Blocknumber",
666
- "name": "updatedIn",
667
- "type": "uint32"
668
728
  }
669
729
  ],
670
730
  "internalType": "struct IPolicy.PolicyInfo",
@@ -687,11 +747,6 @@
687
747
  "outputs": [
688
748
  {
689
749
  "components": [
690
- {
691
- "internalType": "NftId",
692
- "name": "nftId",
693
- "type": "uint96"
694
- },
695
750
  {
696
751
  "internalType": "bool",
697
752
  "name": "isVerifying",
@@ -728,62 +783,16 @@
728
783
  "inputs": [
729
784
  {
730
785
  "internalType": "NftId",
731
- "name": "poolNftId",
786
+ "name": "componentNftId",
732
787
  "type": "uint96"
733
788
  }
734
789
  ],
735
- "name": "getPoolSetup",
790
+ "name": "getProductNftId",
736
791
  "outputs": [
737
792
  {
738
- "components": [
739
- {
740
- "internalType": "NftId",
741
- "name": "poolNftId",
742
- "type": "uint96"
743
- },
744
- {
745
- "internalType": "address",
746
- "name": "wallet",
747
- "type": "address"
748
- },
749
- {
750
- "components": [
751
- {
752
- "internalType": "UFixed",
753
- "name": "fractionalFee",
754
- "type": "uint256"
755
- },
756
- {
757
- "internalType": "uint256",
758
- "name": "fixedFee",
759
- "type": "uint256"
760
- }
761
- ],
762
- "internalType": "struct Fee",
763
- "name": "stakingFee",
764
- "type": "tuple"
765
- },
766
- {
767
- "components": [
768
- {
769
- "internalType": "UFixed",
770
- "name": "fractionalFee",
771
- "type": "uint256"
772
- },
773
- {
774
- "internalType": "uint256",
775
- "name": "fixedFee",
776
- "type": "uint256"
777
- }
778
- ],
779
- "internalType": "struct Fee",
780
- "name": "performanceFee",
781
- "type": "tuple"
782
- }
783
- ],
784
- "internalType": "struct ITreasury.PoolSetup",
785
- "name": "setup",
786
- "type": "tuple"
793
+ "internalType": "NftId",
794
+ "name": "productNftId",
795
+ "type": "uint96"
787
796
  }
788
797
  ],
789
798
  "stateMutability": "view",
@@ -802,15 +811,28 @@
802
811
  "stateMutability": "view",
803
812
  "type": "function"
804
813
  },
814
+ {
815
+ "inputs": [],
816
+ "name": "getRegistry",
817
+ "outputs": [
818
+ {
819
+ "internalType": "contract IRegistry",
820
+ "name": "registry",
821
+ "type": "address"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
805
827
  {
806
828
  "inputs": [
807
829
  {
808
- "internalType": "NftId",
809
- "name": "productNftId",
810
- "type": "uint96"
830
+ "internalType": "RiskId",
831
+ "name": "riskId",
832
+ "type": "bytes8"
811
833
  }
812
834
  ],
813
- "name": "getProductSetup",
835
+ "name": "getRiskInfo",
814
836
  "outputs": [
815
837
  {
816
838
  "components": [
@@ -820,81 +842,19 @@
820
842
  "type": "uint96"
821
843
  },
822
844
  {
823
- "internalType": "NftId",
824
- "name": "distributorNftId",
825
- "type": "uint96"
826
- },
827
- {
828
- "internalType": "NftId",
829
- "name": "poolNftId",
830
- "type": "uint96"
831
- },
832
- {
833
- "internalType": "contract IERC20Metadata",
834
- "name": "token",
835
- "type": "address"
836
- },
837
- {
838
- "internalType": "address",
839
- "name": "wallet",
840
- "type": "address"
841
- },
842
- {
843
- "components": [
844
- {
845
- "internalType": "UFixed",
846
- "name": "fractionalFee",
847
- "type": "uint256"
848
- },
849
- {
850
- "internalType": "uint256",
851
- "name": "fixedFee",
852
- "type": "uint256"
853
- }
854
- ],
855
- "internalType": "struct Fee",
856
- "name": "policyFee",
857
- "type": "tuple"
858
- },
859
- {
860
- "components": [
861
- {
862
- "internalType": "UFixed",
863
- "name": "fractionalFee",
864
- "type": "uint256"
865
- },
866
- {
867
- "internalType": "uint256",
868
- "name": "fixedFee",
869
- "type": "uint256"
870
- }
871
- ],
872
- "internalType": "struct Fee",
873
- "name": "processingFee",
874
- "type": "tuple"
845
+ "internalType": "bytes",
846
+ "name": "data",
847
+ "type": "bytes"
875
848
  }
876
849
  ],
877
- "internalType": "struct ITreasury.ProductSetup",
878
- "name": "setup",
850
+ "internalType": "struct IRisk.RiskInfo",
851
+ "name": "info",
879
852
  "type": "tuple"
880
853
  }
881
854
  ],
882
855
  "stateMutability": "view",
883
856
  "type": "function"
884
857
  },
885
- {
886
- "inputs": [],
887
- "name": "getRegistry",
888
- "outputs": [
889
- {
890
- "internalType": "contract IRegistry",
891
- "name": "registry",
892
- "type": "address"
893
- }
894
- ],
895
- "stateMutability": "view",
896
- "type": "function"
897
- },
898
858
  {
899
859
  "inputs": [
900
860
  {
@@ -1025,6 +985,25 @@
1025
985
  "stateMutability": "view",
1026
986
  "type": "function"
1027
987
  },
988
+ {
989
+ "inputs": [
990
+ {
991
+ "internalType": "Key32",
992
+ "name": "key",
993
+ "type": "bytes32"
994
+ }
995
+ ],
996
+ "name": "getState",
997
+ "outputs": [
998
+ {
999
+ "internalType": "StateId",
1000
+ "name": "state",
1001
+ "type": "uint8"
1002
+ }
1003
+ ],
1004
+ "stateMutability": "view",
1005
+ "type": "function"
1006
+ },
1028
1007
  {
1029
1008
  "inputs": [
1030
1009
  {
@@ -1044,6 +1023,144 @@
1044
1023
  "stateMutability": "view",
1045
1024
  "type": "function"
1046
1025
  },
1026
+ {
1027
+ "inputs": [
1028
+ {
1029
+ "internalType": "NftId",
1030
+ "name": "productNftId",
1031
+ "type": "uint96"
1032
+ }
1033
+ ],
1034
+ "name": "getTreasuryInfo",
1035
+ "outputs": [
1036
+ {
1037
+ "components": [
1038
+ {
1039
+ "internalType": "NftId",
1040
+ "name": "poolNftId",
1041
+ "type": "uint96"
1042
+ },
1043
+ {
1044
+ "internalType": "NftId",
1045
+ "name": "distributionNftId",
1046
+ "type": "uint96"
1047
+ },
1048
+ {
1049
+ "internalType": "contract IERC20Metadata",
1050
+ "name": "token",
1051
+ "type": "address"
1052
+ },
1053
+ {
1054
+ "components": [
1055
+ {
1056
+ "internalType": "UFixed",
1057
+ "name": "fractionalFee",
1058
+ "type": "uint256"
1059
+ },
1060
+ {
1061
+ "internalType": "uint256",
1062
+ "name": "fixedFee",
1063
+ "type": "uint256"
1064
+ }
1065
+ ],
1066
+ "internalType": "struct Fee",
1067
+ "name": "productFee",
1068
+ "type": "tuple"
1069
+ },
1070
+ {
1071
+ "components": [
1072
+ {
1073
+ "internalType": "UFixed",
1074
+ "name": "fractionalFee",
1075
+ "type": "uint256"
1076
+ },
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "fixedFee",
1080
+ "type": "uint256"
1081
+ }
1082
+ ],
1083
+ "internalType": "struct Fee",
1084
+ "name": "processingFee",
1085
+ "type": "tuple"
1086
+ },
1087
+ {
1088
+ "components": [
1089
+ {
1090
+ "internalType": "UFixed",
1091
+ "name": "fractionalFee",
1092
+ "type": "uint256"
1093
+ },
1094
+ {
1095
+ "internalType": "uint256",
1096
+ "name": "fixedFee",
1097
+ "type": "uint256"
1098
+ }
1099
+ ],
1100
+ "internalType": "struct Fee",
1101
+ "name": "poolFee",
1102
+ "type": "tuple"
1103
+ },
1104
+ {
1105
+ "components": [
1106
+ {
1107
+ "internalType": "UFixed",
1108
+ "name": "fractionalFee",
1109
+ "type": "uint256"
1110
+ },
1111
+ {
1112
+ "internalType": "uint256",
1113
+ "name": "fixedFee",
1114
+ "type": "uint256"
1115
+ }
1116
+ ],
1117
+ "internalType": "struct Fee",
1118
+ "name": "stakingFee",
1119
+ "type": "tuple"
1120
+ },
1121
+ {
1122
+ "components": [
1123
+ {
1124
+ "internalType": "UFixed",
1125
+ "name": "fractionalFee",
1126
+ "type": "uint256"
1127
+ },
1128
+ {
1129
+ "internalType": "uint256",
1130
+ "name": "fixedFee",
1131
+ "type": "uint256"
1132
+ }
1133
+ ],
1134
+ "internalType": "struct Fee",
1135
+ "name": "performanceFee",
1136
+ "type": "tuple"
1137
+ },
1138
+ {
1139
+ "components": [
1140
+ {
1141
+ "internalType": "UFixed",
1142
+ "name": "fractionalFee",
1143
+ "type": "uint256"
1144
+ },
1145
+ {
1146
+ "internalType": "uint256",
1147
+ "name": "fixedFee",
1148
+ "type": "uint256"
1149
+ }
1150
+ ],
1151
+ "internalType": "struct Fee",
1152
+ "name": "distributionFee",
1153
+ "type": "tuple"
1154
+ }
1155
+ ],
1156
+ "internalType": "struct ITreasury.TreasuryInfo",
1157
+ "name": "info",
1158
+ "type": "tuple"
1159
+ }
1160
+ ],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ },
1047
1164
  {
1048
1165
  "inputs": [],
1049
1166
  "name": "getType",
@@ -1213,7 +1330,7 @@
1213
1330
  "type": "tuple"
1214
1331
  }
1215
1332
  ],
1216
- "stateMutability": "pure",
1333
+ "stateMutability": "view",
1217
1334
  "type": "function"
1218
1335
  },
1219
1336
  {
@@ -1258,6 +1375,48 @@
1258
1375
  "stateMutability": "view",
1259
1376
  "type": "function"
1260
1377
  },
1378
+ {
1379
+ "inputs": [
1380
+ {
1381
+ "internalType": "NftId",
1382
+ "name": "productNftId",
1383
+ "type": "uint96"
1384
+ }
1385
+ ],
1386
+ "name": "hasTreasuryInfo",
1387
+ "outputs": [
1388
+ {
1389
+ "internalType": "bool",
1390
+ "name": "hasInfo",
1391
+ "type": "bool"
1392
+ }
1393
+ ],
1394
+ "stateMutability": "view",
1395
+ "type": "function"
1396
+ },
1397
+ {
1398
+ "inputs": [
1399
+ {
1400
+ "internalType": "address",
1401
+ "name": "implementation",
1402
+ "type": "address"
1403
+ },
1404
+ {
1405
+ "internalType": "address",
1406
+ "name": "activatedBy",
1407
+ "type": "address"
1408
+ },
1409
+ {
1410
+ "internalType": "bytes",
1411
+ "name": "activationData",
1412
+ "type": "bytes"
1413
+ }
1414
+ ],
1415
+ "name": "initialize",
1416
+ "outputs": [],
1417
+ "stateMutability": "nonpayable",
1418
+ "type": "function"
1419
+ },
1261
1420
  {
1262
1421
  "inputs": [
1263
1422
  {
@@ -1266,7 +1425,7 @@
1266
1425
  "type": "uint24"
1267
1426
  }
1268
1427
  ],
1269
- "name": "isActivated",
1428
+ "name": "isInitialized",
1270
1429
  "outputs": [
1271
1430
  {
1272
1431
  "internalType": "bool",
@@ -1301,6 +1460,11 @@
1301
1460
  "internalType": "contract IERC20Metadata",
1302
1461
  "name": "token",
1303
1462
  "type": "address"
1463
+ },
1464
+ {
1465
+ "internalType": "address",
1466
+ "name": "wallet",
1467
+ "type": "address"
1304
1468
  }
1305
1469
  ],
1306
1470
  "name": "registerComponent",
@@ -1316,136 +1480,40 @@
1316
1480
  "type": "uint96"
1317
1481
  },
1318
1482
  {
1319
- "internalType": "address",
1320
- "name": "wallet",
1483
+ "internalType": "bool",
1484
+ "name": "isVerifying",
1485
+ "type": "bool"
1486
+ },
1487
+ {
1488
+ "internalType": "UFixed",
1489
+ "name": "collateralizationLevel",
1490
+ "type": "uint256"
1491
+ }
1492
+ ],
1493
+ "name": "registerPool",
1494
+ "outputs": [],
1495
+ "stateMutability": "nonpayable",
1496
+ "type": "function"
1497
+ },
1498
+ {
1499
+ "inputs": [
1500
+ {
1501
+ "internalType": "contract IProductComponent",
1502
+ "name": "product",
1321
1503
  "type": "address"
1322
1504
  },
1323
1505
  {
1324
- "components": [
1325
- {
1326
- "internalType": "UFixed",
1327
- "name": "fractionalFee",
1328
- "type": "uint256"
1329
- },
1330
- {
1331
- "internalType": "uint256",
1332
- "name": "fixedFee",
1333
- "type": "uint256"
1334
- }
1335
- ],
1336
- "internalType": "struct Fee",
1337
- "name": "stakingFee",
1338
- "type": "tuple"
1339
- },
1340
- {
1341
- "components": [
1342
- {
1343
- "internalType": "UFixed",
1344
- "name": "fractionalFee",
1345
- "type": "uint256"
1346
- },
1347
- {
1348
- "internalType": "uint256",
1349
- "name": "fixedFee",
1350
- "type": "uint256"
1351
- }
1352
- ],
1353
- "internalType": "struct Fee",
1354
- "name": "performanceFee",
1355
- "type": "tuple"
1356
- }
1357
- ],
1358
- "name": "registerPool",
1359
- "outputs": [],
1360
- "stateMutability": "nonpayable",
1361
- "type": "function"
1362
- },
1363
- {
1364
- "inputs": [
1365
- {
1366
- "internalType": "NftId",
1367
- "name": "poolNftId",
1368
- "type": "uint96"
1369
- },
1370
- {
1371
- "internalType": "bool",
1372
- "name": "isVerifying",
1373
- "type": "bool"
1374
- },
1375
- {
1376
- "internalType": "UFixed",
1377
- "name": "collateralizationLevel",
1378
- "type": "uint256"
1379
- }
1380
- ],
1381
- "name": "registerPool",
1382
- "outputs": [],
1383
- "stateMutability": "nonpayable",
1384
- "type": "function"
1385
- },
1386
- {
1387
- "inputs": [
1388
- {
1389
- "internalType": "NftId",
1390
- "name": "productNftId",
1391
- "type": "uint96"
1392
- },
1393
- {
1394
- "internalType": "NftId",
1395
- "name": "distributorNftId",
1396
- "type": "uint96"
1397
- },
1398
- {
1399
- "internalType": "NftId",
1400
- "name": "poolNftId",
1401
- "type": "uint96"
1402
- },
1403
- {
1404
- "internalType": "contract IERC20Metadata",
1405
- "name": "token",
1506
+ "internalType": "contract IPoolComponent",
1507
+ "name": "pool",
1406
1508
  "type": "address"
1407
1509
  },
1408
1510
  {
1409
- "internalType": "address",
1410
- "name": "wallet",
1511
+ "internalType": "contract IDistributionComponent",
1512
+ "name": "distribution",
1411
1513
  "type": "address"
1412
- },
1413
- {
1414
- "components": [
1415
- {
1416
- "internalType": "UFixed",
1417
- "name": "fractionalFee",
1418
- "type": "uint256"
1419
- },
1420
- {
1421
- "internalType": "uint256",
1422
- "name": "fixedFee",
1423
- "type": "uint256"
1424
- }
1425
- ],
1426
- "internalType": "struct Fee",
1427
- "name": "policyFee",
1428
- "type": "tuple"
1429
- },
1430
- {
1431
- "components": [
1432
- {
1433
- "internalType": "UFixed",
1434
- "name": "fractionalFee",
1435
- "type": "uint256"
1436
- },
1437
- {
1438
- "internalType": "uint256",
1439
- "name": "fixedFee",
1440
- "type": "uint256"
1441
- }
1442
- ],
1443
- "internalType": "struct Fee",
1444
- "name": "processingFee",
1445
- "type": "tuple"
1446
1514
  }
1447
1515
  ],
1448
- "name": "registerProduct",
1516
+ "name": "registerProductSetup",
1449
1517
  "outputs": [],
1450
1518
  "stateMutability": "nonpayable",
1451
1519
  "type": "function"
@@ -1513,17 +1581,34 @@
1513
1581
  },
1514
1582
  {
1515
1583
  "inputs": [
1584
+ {
1585
+ "internalType": "NftId",
1586
+ "name": "nftId",
1587
+ "type": "uint96"
1588
+ },
1516
1589
  {
1517
1590
  "components": [
1518
1591
  {
1519
1592
  "internalType": "NftId",
1520
- "name": "nftId",
1593
+ "name": "poolNftId",
1521
1594
  "type": "uint96"
1522
1595
  },
1523
1596
  {
1524
- "internalType": "NftId",
1525
- "name": "poolNftId",
1526
- "type": "uint96"
1597
+ "components": [
1598
+ {
1599
+ "internalType": "UFixed",
1600
+ "name": "fractionalFee",
1601
+ "type": "uint256"
1602
+ },
1603
+ {
1604
+ "internalType": "uint256",
1605
+ "name": "fixedFee",
1606
+ "type": "uint256"
1607
+ }
1608
+ ],
1609
+ "internalType": "struct Fee",
1610
+ "name": "fee",
1611
+ "type": "tuple"
1527
1612
  },
1528
1613
  {
1529
1614
  "internalType": "bytes",
@@ -1568,13 +1653,13 @@
1568
1653
  },
1569
1654
  {
1570
1655
  "inputs": [
1656
+ {
1657
+ "internalType": "NftId",
1658
+ "name": "policyNftId",
1659
+ "type": "uint96"
1660
+ },
1571
1661
  {
1572
1662
  "components": [
1573
- {
1574
- "internalType": "NftId",
1575
- "name": "nftId",
1576
- "type": "uint96"
1577
- },
1578
1663
  {
1579
1664
  "internalType": "NftId",
1580
1665
  "name": "productNftId",
@@ -1585,15 +1670,20 @@
1585
1670
  "name": "bundleNftId",
1586
1671
  "type": "uint96"
1587
1672
  },
1673
+ {
1674
+ "internalType": "ReferralId",
1675
+ "name": "referralId",
1676
+ "type": "bytes8"
1677
+ },
1588
1678
  {
1589
1679
  "internalType": "address",
1590
1680
  "name": "beneficiary",
1591
1681
  "type": "address"
1592
1682
  },
1593
1683
  {
1594
- "internalType": "StateId",
1595
- "name": "state",
1596
- "type": "uint8"
1684
+ "internalType": "RiskId",
1685
+ "name": "riskId",
1686
+ "type": "bytes8"
1597
1687
  },
1598
1688
  {
1599
1689
  "internalType": "uint256",
@@ -1625,11 +1715,6 @@
1625
1715
  "name": "policyData",
1626
1716
  "type": "bytes"
1627
1717
  },
1628
- {
1629
- "internalType": "Timestamp",
1630
- "name": "createdAt",
1631
- "type": "uint40"
1632
- },
1633
1718
  {
1634
1719
  "internalType": "Timestamp",
1635
1720
  "name": "activatedAt",
@@ -1644,15 +1729,10 @@
1644
1729
  "internalType": "Timestamp",
1645
1730
  "name": "closedAt",
1646
1731
  "type": "uint40"
1647
- },
1648
- {
1649
- "internalType": "Blocknumber",
1650
- "name": "updatedIn",
1651
- "type": "uint32"
1652
1732
  }
1653
1733
  ],
1654
1734
  "internalType": "struct IPolicy.PolicyInfo",
1655
- "name": "policyInfo",
1735
+ "name": "info",
1656
1736
  "type": "tuple"
1657
1737
  }
1658
1738
  ],
@@ -1664,46 +1744,47 @@
1664
1744
  {
1665
1745
  "inputs": [
1666
1746
  {
1667
- "internalType": "NftId",
1668
- "name": "poolNftId",
1669
- "type": "uint96"
1747
+ "internalType": "RiskId",
1748
+ "name": "riskId",
1749
+ "type": "bytes8"
1670
1750
  },
1671
1751
  {
1672
1752
  "components": [
1673
1753
  {
1674
- "internalType": "UFixed",
1675
- "name": "fractionalFee",
1676
- "type": "uint256"
1754
+ "internalType": "NftId",
1755
+ "name": "productNftId",
1756
+ "type": "uint96"
1677
1757
  },
1678
1758
  {
1679
- "internalType": "uint256",
1680
- "name": "fixedFee",
1681
- "type": "uint256"
1759
+ "internalType": "bytes",
1760
+ "name": "data",
1761
+ "type": "bytes"
1682
1762
  }
1683
1763
  ],
1684
- "internalType": "struct Fee",
1685
- "name": "stakingFee",
1764
+ "internalType": "struct IRisk.RiskInfo",
1765
+ "name": "info",
1686
1766
  "type": "tuple"
1767
+ }
1768
+ ],
1769
+ "name": "setRiskInfo",
1770
+ "outputs": [],
1771
+ "stateMutability": "nonpayable",
1772
+ "type": "function"
1773
+ },
1774
+ {
1775
+ "inputs": [
1776
+ {
1777
+ "internalType": "RoleId",
1778
+ "name": "role",
1779
+ "type": "bytes8"
1687
1780
  },
1688
1781
  {
1689
- "components": [
1690
- {
1691
- "internalType": "UFixed",
1692
- "name": "fractionalFee",
1693
- "type": "uint256"
1694
- },
1695
- {
1696
- "internalType": "uint256",
1697
- "name": "fixedFee",
1698
- "type": "uint256"
1699
- }
1700
- ],
1701
- "internalType": "struct Fee",
1702
- "name": "performanceFee",
1703
- "type": "tuple"
1782
+ "internalType": "bool",
1783
+ "name": "active",
1784
+ "type": "bool"
1704
1785
  }
1705
1786
  ],
1706
- "name": "setPoolFees",
1787
+ "name": "setRoleState",
1707
1788
  "outputs": [],
1708
1789
  "stateMutability": "nonpayable",
1709
1790
  "type": "function"
@@ -1718,57 +1799,129 @@
1718
1799
  {
1719
1800
  "components": [
1720
1801
  {
1721
- "internalType": "UFixed",
1722
- "name": "fractionalFee",
1723
- "type": "uint256"
1802
+ "internalType": "NftId",
1803
+ "name": "poolNftId",
1804
+ "type": "uint96"
1724
1805
  },
1725
1806
  {
1726
- "internalType": "uint256",
1727
- "name": "fixedFee",
1728
- "type": "uint256"
1729
- }
1730
- ],
1731
- "internalType": "struct Fee",
1732
- "name": "policyFee",
1733
- "type": "tuple"
1734
- },
1735
- {
1736
- "components": [
1807
+ "internalType": "NftId",
1808
+ "name": "distributionNftId",
1809
+ "type": "uint96"
1810
+ },
1737
1811
  {
1738
- "internalType": "UFixed",
1739
- "name": "fractionalFee",
1740
- "type": "uint256"
1812
+ "internalType": "contract IERC20Metadata",
1813
+ "name": "token",
1814
+ "type": "address"
1741
1815
  },
1742
1816
  {
1743
- "internalType": "uint256",
1744
- "name": "fixedFee",
1745
- "type": "uint256"
1817
+ "components": [
1818
+ {
1819
+ "internalType": "UFixed",
1820
+ "name": "fractionalFee",
1821
+ "type": "uint256"
1822
+ },
1823
+ {
1824
+ "internalType": "uint256",
1825
+ "name": "fixedFee",
1826
+ "type": "uint256"
1827
+ }
1828
+ ],
1829
+ "internalType": "struct Fee",
1830
+ "name": "productFee",
1831
+ "type": "tuple"
1832
+ },
1833
+ {
1834
+ "components": [
1835
+ {
1836
+ "internalType": "UFixed",
1837
+ "name": "fractionalFee",
1838
+ "type": "uint256"
1839
+ },
1840
+ {
1841
+ "internalType": "uint256",
1842
+ "name": "fixedFee",
1843
+ "type": "uint256"
1844
+ }
1845
+ ],
1846
+ "internalType": "struct Fee",
1847
+ "name": "processingFee",
1848
+ "type": "tuple"
1849
+ },
1850
+ {
1851
+ "components": [
1852
+ {
1853
+ "internalType": "UFixed",
1854
+ "name": "fractionalFee",
1855
+ "type": "uint256"
1856
+ },
1857
+ {
1858
+ "internalType": "uint256",
1859
+ "name": "fixedFee",
1860
+ "type": "uint256"
1861
+ }
1862
+ ],
1863
+ "internalType": "struct Fee",
1864
+ "name": "poolFee",
1865
+ "type": "tuple"
1866
+ },
1867
+ {
1868
+ "components": [
1869
+ {
1870
+ "internalType": "UFixed",
1871
+ "name": "fractionalFee",
1872
+ "type": "uint256"
1873
+ },
1874
+ {
1875
+ "internalType": "uint256",
1876
+ "name": "fixedFee",
1877
+ "type": "uint256"
1878
+ }
1879
+ ],
1880
+ "internalType": "struct Fee",
1881
+ "name": "stakingFee",
1882
+ "type": "tuple"
1883
+ },
1884
+ {
1885
+ "components": [
1886
+ {
1887
+ "internalType": "UFixed",
1888
+ "name": "fractionalFee",
1889
+ "type": "uint256"
1890
+ },
1891
+ {
1892
+ "internalType": "uint256",
1893
+ "name": "fixedFee",
1894
+ "type": "uint256"
1895
+ }
1896
+ ],
1897
+ "internalType": "struct Fee",
1898
+ "name": "performanceFee",
1899
+ "type": "tuple"
1900
+ },
1901
+ {
1902
+ "components": [
1903
+ {
1904
+ "internalType": "UFixed",
1905
+ "name": "fractionalFee",
1906
+ "type": "uint256"
1907
+ },
1908
+ {
1909
+ "internalType": "uint256",
1910
+ "name": "fixedFee",
1911
+ "type": "uint256"
1912
+ }
1913
+ ],
1914
+ "internalType": "struct Fee",
1915
+ "name": "distributionFee",
1916
+ "type": "tuple"
1746
1917
  }
1747
1918
  ],
1748
- "internalType": "struct Fee",
1749
- "name": "processingFee",
1919
+ "internalType": "struct ITreasury.TreasuryInfo",
1920
+ "name": "info",
1750
1921
  "type": "tuple"
1751
1922
  }
1752
1923
  ],
1753
- "name": "setProductFees",
1754
- "outputs": [],
1755
- "stateMutability": "nonpayable",
1756
- "type": "function"
1757
- },
1758
- {
1759
- "inputs": [
1760
- {
1761
- "internalType": "RoleId",
1762
- "name": "role",
1763
- "type": "bytes8"
1764
- },
1765
- {
1766
- "internalType": "bool",
1767
- "name": "active",
1768
- "type": "bool"
1769
- }
1770
- ],
1771
- "name": "setRoleState",
1924
+ "name": "setTreasuryInfo",
1772
1925
  "outputs": [],
1773
1926
  "stateMutability": "nonpayable",
1774
1927
  "type": "function"
@@ -1796,26 +1949,25 @@
1796
1949
  "inputs": [
1797
1950
  {
1798
1951
  "internalType": "NftId",
1799
- "name": "bundleNftId",
1952
+ "name": "nftId",
1800
1953
  "type": "uint96"
1801
- }
1802
- ],
1803
- "name": "toBundleKey32",
1804
- "outputs": [
1954
+ },
1805
1955
  {
1806
- "internalType": "Key32",
1807
- "name": "key32",
1808
- "type": "bytes32"
1956
+ "internalType": "StateId",
1957
+ "name": "state",
1958
+ "type": "uint8"
1809
1959
  }
1810
1960
  ],
1811
- "stateMutability": "view",
1961
+ "name": "updateBundleState",
1962
+ "outputs": [],
1963
+ "stateMutability": "nonpayable",
1812
1964
  "type": "function"
1813
1965
  },
1814
1966
  {
1815
1967
  "inputs": [
1816
1968
  {
1817
1969
  "internalType": "NftId",
1818
- "name": "bundleNftId",
1970
+ "name": "nftId",
1819
1971
  "type": "uint96"
1820
1972
  },
1821
1973
  {
@@ -1824,7 +1976,25 @@
1824
1976
  "type": "uint8"
1825
1977
  }
1826
1978
  ],
1827
- "name": "updateBundleState",
1979
+ "name": "updatePolicyState",
1980
+ "outputs": [],
1981
+ "stateMutability": "nonpayable",
1982
+ "type": "function"
1983
+ },
1984
+ {
1985
+ "inputs": [
1986
+ {
1987
+ "internalType": "RiskId",
1988
+ "name": "riskId",
1989
+ "type": "bytes8"
1990
+ },
1991
+ {
1992
+ "internalType": "StateId",
1993
+ "name": "state",
1994
+ "type": "uint8"
1995
+ }
1996
+ ],
1997
+ "name": "updateRiskState",
1828
1998
  "outputs": [],
1829
1999
  "stateMutability": "nonpayable",
1830
2000
  "type": "function"
@@ -1846,6 +2016,29 @@
1846
2016
  "outputs": [],
1847
2017
  "stateMutability": "nonpayable",
1848
2018
  "type": "function"
2019
+ },
2020
+ {
2021
+ "inputs": [
2022
+ {
2023
+ "internalType": "address",
2024
+ "name": "implementation",
2025
+ "type": "address"
2026
+ },
2027
+ {
2028
+ "internalType": "address",
2029
+ "name": "activatedBy",
2030
+ "type": "address"
2031
+ },
2032
+ {
2033
+ "internalType": "bytes",
2034
+ "name": "upgradeData",
2035
+ "type": "bytes"
2036
+ }
2037
+ ],
2038
+ "name": "upgrade",
2039
+ "outputs": [],
2040
+ "stateMutability": "nonpayable",
2041
+ "type": "function"
1849
2042
  }
1850
2043
  ],
1851
2044
  "bytecode": "0x",