@etherisc/gif-next 0.0.2-b16cd64-952 → 0.0.2-b20ce14-335

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 (199) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  2. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.json +16 -0
  4. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
  5. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  9. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  10. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +1 -1
  11. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +2 -2
  13. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +346 -102
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  17. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  18. package/artifacts/contracts/instance/Instance.sol/Instance.json +276 -289
  19. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  20. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
  21. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  22. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +154 -40
  23. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  24. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +62 -101
  25. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  26. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +32 -32
  27. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  28. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
  29. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
  30. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  31. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  32. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  33. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +8 -8
  34. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +6 -6
  36. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  37. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  38. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  39. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  40. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  41. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  42. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  43. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  44. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  45. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +71 -50
  46. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  47. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +18 -10
  48. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  49. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +108 -50
  50. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  51. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +30 -26
  52. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
  53. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +284 -61
  54. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +52 -8
  56. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  57. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +42 -66
  58. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  59. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +22 -34
  60. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  61. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +37 -32
  62. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  63. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +50 -0
  64. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
  65. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +173 -46
  66. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  67. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  68. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +385 -22
  69. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +120 -4
  71. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +513 -62
  74. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +65 -21
  76. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +238 -26
  78. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +60 -12
  80. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +2 -2
  82. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +2 -2
  84. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  85. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  86. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  87. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  88. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  89. package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
  90. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  91. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
  92. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  93. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +2 -2
  94. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  95. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +2 -2
  96. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  97. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +2 -2
  98. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  99. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
  100. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  101. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  102. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  103. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  104. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  105. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  106. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  107. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  108. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  109. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  110. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  111. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
  112. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  113. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  114. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  115. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +2 -2
  116. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  117. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
  118. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  119. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  120. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  121. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  122. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  123. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  124. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
  125. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  126. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  127. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  128. package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
  129. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  130. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  131. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  132. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  133. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  134. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +1 -1
  135. package/artifacts/contracts/types/Amount.sol/AmountLib.json +52 -4
  136. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  137. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  138. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  139. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +83 -4
  140. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  141. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  142. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  144. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  145. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  146. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  147. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  148. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  149. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  150. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  152. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  153. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +116 -7
  154. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  155. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  156. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  158. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  160. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +1 -1
  161. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  163. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +17 -4
  165. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  169. package/contracts/components/Distribution.sol +6 -2
  170. package/contracts/components/IPoolComponent.sol +1 -1
  171. package/contracts/components/Pool.sol +3 -4
  172. package/contracts/components/Product.sol +137 -59
  173. package/contracts/instance/BundleManager.sol +3 -4
  174. package/contracts/instance/IInstance.sol +25 -21
  175. package/contracts/instance/IInstanceService.sol +0 -4
  176. package/contracts/instance/Instance.sol +85 -102
  177. package/contracts/instance/InstanceReader.sol +30 -4
  178. package/contracts/instance/InstanceService.sol +11 -28
  179. package/contracts/instance/base/Lifecycle.sol +12 -4
  180. package/contracts/instance/module/IPolicy.sol +11 -6
  181. package/contracts/instance/service/ApplicationService.sol +10 -5
  182. package/contracts/instance/service/BundleService.sol +21 -9
  183. package/contracts/instance/service/ClaimService.sol +111 -23
  184. package/contracts/instance/service/DistributionService.sol +14 -18
  185. package/contracts/instance/service/IApplicationService.sol +3 -7
  186. package/contracts/instance/service/IBundleService.sol +9 -0
  187. package/contracts/instance/service/IClaimService.sol +46 -15
  188. package/contracts/instance/service/IPolicyService.sol +72 -5
  189. package/contracts/instance/service/IPoolService.sol +3 -0
  190. package/contracts/instance/service/PolicyService.sol +282 -73
  191. package/contracts/instance/service/PoolService.sol +34 -1
  192. package/contracts/instance/service/ProductService.sol +1 -1
  193. package/contracts/types/Amount.sol +10 -0
  194. package/contracts/types/ClaimId.sol +25 -2
  195. package/contracts/types/ObjectType.sol +5 -5
  196. package/contracts/types/PayoutId.sol +33 -5
  197. package/contracts/types/StateId.sol +6 -2
  198. package/contracts/types/Timestamp.sol +5 -0
  199. package/package.json +1 -1
@@ -157,7 +157,7 @@
157
157
  },
158
158
  {
159
159
  "internalType": "uint256",
160
- "name": "premiumAmount",
160
+ "name": "expectedPremiumAmount",
161
161
  "type": "uint256"
162
162
  },
163
163
  {
@@ -239,6 +239,91 @@
239
239
  "name": "ErrorNotRegistry",
240
240
  "type": "error"
241
241
  },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "NftId",
246
+ "name": "policyNftId",
247
+ "type": "uint96"
248
+ },
249
+ {
250
+ "internalType": "Amount",
251
+ "name": "sumInsured",
252
+ "type": "uint96"
253
+ },
254
+ {
255
+ "internalType": "Amount",
256
+ "name": "payoutsIncludingClaimAmount",
257
+ "type": "uint96"
258
+ }
259
+ ],
260
+ "name": "ErrorPolicyServiceClaimExceedsSumInsured",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "internalType": "NftId",
267
+ "name": "policyNftId",
268
+ "type": "uint96"
269
+ }
270
+ ],
271
+ "name": "ErrorPolicyServicePolicyNotOpen",
272
+ "type": "error"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "NftId",
278
+ "name": "applicationNftId",
279
+ "type": "uint96"
280
+ }
281
+ ],
282
+ "name": "ErrorPolicyServicePolicyStateNotApplied",
283
+ "type": "error"
284
+ },
285
+ {
286
+ "inputs": [
287
+ {
288
+ "internalType": "NftId",
289
+ "name": "policyNftId",
290
+ "type": "uint96"
291
+ },
292
+ {
293
+ "internalType": "NftId",
294
+ "name": "expectedProduct",
295
+ "type": "uint96"
296
+ },
297
+ {
298
+ "internalType": "NftId",
299
+ "name": "actualProduct",
300
+ "type": "uint96"
301
+ }
302
+ ],
303
+ "name": "ErrorPolicyServiceProductMismatch",
304
+ "type": "error"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "NftId",
310
+ "name": "policyNftId",
311
+ "type": "uint96"
312
+ },
313
+ {
314
+ "internalType": "uint256",
315
+ "name": "expectedPremiumAmount",
316
+ "type": "uint256"
317
+ },
318
+ {
319
+ "internalType": "uint256",
320
+ "name": "transferredPremiumAmount",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "name": "ErrorPolicyServiceTransferredPremiumMismatch",
325
+ "type": "error"
326
+ },
242
327
  {
243
328
  "anonymous": false,
244
329
  "inputs": [
@@ -252,6 +337,144 @@
252
337
  "name": "AuthorityUpdated",
253
338
  "type": "event"
254
339
  },
340
+ {
341
+ "anonymous": false,
342
+ "inputs": [
343
+ {
344
+ "indexed": false,
345
+ "internalType": "NftId",
346
+ "name": "policyNftId",
347
+ "type": "uint96"
348
+ },
349
+ {
350
+ "indexed": false,
351
+ "internalType": "ClaimId",
352
+ "name": "claimId",
353
+ "type": "uint16"
354
+ }
355
+ ],
356
+ "name": "LogPolicyServiceClaimClosed",
357
+ "type": "event"
358
+ },
359
+ {
360
+ "anonymous": false,
361
+ "inputs": [
362
+ {
363
+ "indexed": false,
364
+ "internalType": "NftId",
365
+ "name": "policyNftId",
366
+ "type": "uint96"
367
+ },
368
+ {
369
+ "indexed": false,
370
+ "internalType": "ClaimId",
371
+ "name": "claimId",
372
+ "type": "uint16"
373
+ },
374
+ {
375
+ "indexed": false,
376
+ "internalType": "Amount",
377
+ "name": "confirmedAmount",
378
+ "type": "uint96"
379
+ }
380
+ ],
381
+ "name": "LogPolicyServiceClaimConfirmed",
382
+ "type": "event"
383
+ },
384
+ {
385
+ "anonymous": false,
386
+ "inputs": [
387
+ {
388
+ "indexed": false,
389
+ "internalType": "NftId",
390
+ "name": "policyNftId",
391
+ "type": "uint96"
392
+ },
393
+ {
394
+ "indexed": false,
395
+ "internalType": "ClaimId",
396
+ "name": "claimId",
397
+ "type": "uint16"
398
+ }
399
+ ],
400
+ "name": "LogPolicyServiceClaimDeclined",
401
+ "type": "event"
402
+ },
403
+ {
404
+ "anonymous": false,
405
+ "inputs": [
406
+ {
407
+ "indexed": false,
408
+ "internalType": "NftId",
409
+ "name": "policyNftId",
410
+ "type": "uint96"
411
+ },
412
+ {
413
+ "indexed": false,
414
+ "internalType": "ClaimId",
415
+ "name": "claimId",
416
+ "type": "uint16"
417
+ },
418
+ {
419
+ "indexed": false,
420
+ "internalType": "Amount",
421
+ "name": "claimAmount",
422
+ "type": "uint96"
423
+ }
424
+ ],
425
+ "name": "LogPolicyServiceClaimSubmitted",
426
+ "type": "event"
427
+ },
428
+ {
429
+ "anonymous": false,
430
+ "inputs": [
431
+ {
432
+ "indexed": false,
433
+ "internalType": "NftId",
434
+ "name": "policyNftId",
435
+ "type": "uint96"
436
+ },
437
+ {
438
+ "indexed": false,
439
+ "internalType": "PayoutId",
440
+ "name": "payoutId",
441
+ "type": "uint24"
442
+ },
443
+ {
444
+ "indexed": false,
445
+ "internalType": "Amount",
446
+ "name": "amount",
447
+ "type": "uint96"
448
+ }
449
+ ],
450
+ "name": "LogPolicyServicePayoutCreated",
451
+ "type": "event"
452
+ },
453
+ {
454
+ "anonymous": false,
455
+ "inputs": [
456
+ {
457
+ "indexed": false,
458
+ "internalType": "NftId",
459
+ "name": "policyNftId",
460
+ "type": "uint96"
461
+ },
462
+ {
463
+ "indexed": false,
464
+ "internalType": "PayoutId",
465
+ "name": "payoutId",
466
+ "type": "uint24"
467
+ },
468
+ {
469
+ "indexed": false,
470
+ "internalType": "Amount",
471
+ "name": "amount",
472
+ "type": "uint96"
473
+ }
474
+ ],
475
+ "name": "LogPolicyServicePayoutProcessed",
476
+ "type": "event"
477
+ },
255
478
  {
256
479
  "inputs": [
257
480
  {
@@ -320,6 +543,47 @@
320
543
  "stateMutability": "nonpayable",
321
544
  "type": "function"
322
545
  },
546
+ {
547
+ "inputs": [
548
+ {
549
+ "internalType": "NftId",
550
+ "name": "policyNftId",
551
+ "type": "uint96"
552
+ },
553
+ {
554
+ "internalType": "ClaimId",
555
+ "name": "claimId",
556
+ "type": "uint16"
557
+ }
558
+ ],
559
+ "name": "closeClaim",
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "internalType": "NftId",
568
+ "name": "policyNftId",
569
+ "type": "uint96"
570
+ },
571
+ {
572
+ "internalType": "bool",
573
+ "name": "requirePremiumPayment",
574
+ "type": "bool"
575
+ },
576
+ {
577
+ "internalType": "Timestamp",
578
+ "name": "activateAt",
579
+ "type": "uint40"
580
+ }
581
+ ],
582
+ "name": "collateralize",
583
+ "outputs": [],
584
+ "stateMutability": "nonpayable",
585
+ "type": "function"
586
+ },
323
587
  {
324
588
  "inputs": [
325
589
  {
@@ -338,6 +602,63 @@
338
602
  "stateMutability": "nonpayable",
339
603
  "type": "function"
340
604
  },
605
+ {
606
+ "inputs": [
607
+ {
608
+ "internalType": "NftId",
609
+ "name": "policyNftId",
610
+ "type": "uint96"
611
+ },
612
+ {
613
+ "internalType": "ClaimId",
614
+ "name": "claimId",
615
+ "type": "uint16"
616
+ },
617
+ {
618
+ "internalType": "Amount",
619
+ "name": "confirmedAmount",
620
+ "type": "uint96"
621
+ }
622
+ ],
623
+ "name": "confirmClaim",
624
+ "outputs": [],
625
+ "stateMutability": "nonpayable",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [
630
+ {
631
+ "internalType": "NftId",
632
+ "name": "policyNftId",
633
+ "type": "uint96"
634
+ },
635
+ {
636
+ "internalType": "ClaimId",
637
+ "name": "claimId",
638
+ "type": "uint16"
639
+ },
640
+ {
641
+ "internalType": "Amount",
642
+ "name": "amount",
643
+ "type": "uint96"
644
+ },
645
+ {
646
+ "internalType": "bytes",
647
+ "name": "data",
648
+ "type": "bytes"
649
+ }
650
+ ],
651
+ "name": "createPayout",
652
+ "outputs": [
653
+ {
654
+ "internalType": "PayoutId",
655
+ "name": "payoutId",
656
+ "type": "uint24"
657
+ }
658
+ ],
659
+ "stateMutability": "nonpayable",
660
+ "type": "function"
661
+ },
341
662
  {
342
663
  "inputs": [
343
664
  {
@@ -351,6 +672,24 @@
351
672
  "stateMutability": "nonpayable",
352
673
  "type": "function"
353
674
  },
675
+ {
676
+ "inputs": [
677
+ {
678
+ "internalType": "NftId",
679
+ "name": "policyNftId",
680
+ "type": "uint96"
681
+ },
682
+ {
683
+ "internalType": "ClaimId",
684
+ "name": "claimId",
685
+ "type": "uint16"
686
+ }
687
+ ],
688
+ "name": "declineClaim",
689
+ "outputs": [],
690
+ "stateMutability": "nonpayable",
691
+ "type": "function"
692
+ },
354
693
  {
355
694
  "inputs": [
356
695
  {
@@ -530,6 +869,24 @@
530
869
  "stateMutability": "nonpayable",
531
870
  "type": "function"
532
871
  },
872
+ {
873
+ "inputs": [
874
+ {
875
+ "internalType": "NftId",
876
+ "name": "policyNftId",
877
+ "type": "uint96"
878
+ },
879
+ {
880
+ "internalType": "PayoutId",
881
+ "name": "payoutId",
882
+ "type": "uint24"
883
+ }
884
+ ],
885
+ "name": "processPayout",
886
+ "outputs": [],
887
+ "stateMutability": "nonpayable",
888
+ "type": "function"
889
+ },
533
890
  {
534
891
  "inputs": [
535
892
  {
@@ -546,43 +903,49 @@
546
903
  {
547
904
  "inputs": [
548
905
  {
549
- "internalType": "bytes4",
550
- "name": "interfaceId",
551
- "type": "bytes4"
906
+ "internalType": "NftId",
907
+ "name": "policyNftId",
908
+ "type": "uint96"
909
+ },
910
+ {
911
+ "internalType": "Amount",
912
+ "name": "claimAmount",
913
+ "type": "uint96"
914
+ },
915
+ {
916
+ "internalType": "bytes",
917
+ "name": "claimData",
918
+ "type": "bytes"
552
919
  }
553
920
  ],
554
- "name": "supportsInterface",
921
+ "name": "submitClaim",
555
922
  "outputs": [
556
923
  {
557
- "internalType": "bool",
558
- "name": "",
559
- "type": "bool"
924
+ "internalType": "ClaimId",
925
+ "name": "claimId",
926
+ "type": "uint16"
560
927
  }
561
928
  ],
562
- "stateMutability": "view",
929
+ "stateMutability": "nonpayable",
563
930
  "type": "function"
564
931
  },
565
932
  {
566
933
  "inputs": [
567
934
  {
568
- "internalType": "NftId",
569
- "name": "policyNftId",
570
- "type": "uint96"
571
- },
935
+ "internalType": "bytes4",
936
+ "name": "interfaceId",
937
+ "type": "bytes4"
938
+ }
939
+ ],
940
+ "name": "supportsInterface",
941
+ "outputs": [
572
942
  {
573
943
  "internalType": "bool",
574
- "name": "requirePremiumPayment",
944
+ "name": "",
575
945
  "type": "bool"
576
- },
577
- {
578
- "internalType": "Timestamp",
579
- "name": "activateAt",
580
- "type": "uint40"
581
946
  }
582
947
  ],
583
- "name": "underwrite",
584
- "outputs": [],
585
- "stateMutability": "nonpayable",
948
+ "stateMutability": "view",
586
949
  "type": "function"
587
950
  },
588
951
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a217c5bb40d255ef67cb8b4d687de7f1.json"
3
+ "buildInfo": "../../../../build-info/2ea2e3eeb4bd2b2d7ce18fce7ac55a0f.json"
4
4
  }
@@ -117,6 +117,22 @@
117
117
  "name": "ErrorPoolServiceBundlePoolMismatch",
118
118
  "type": "error"
119
119
  },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "internalType": "Amount",
124
+ "name": "expectedAmount",
125
+ "type": "uint96"
126
+ },
127
+ {
128
+ "internalType": "Amount",
129
+ "name": "actualAmount",
130
+ "type": "uint96"
131
+ }
132
+ ],
133
+ "name": "ErrorPoolServiceInvalidTransferAmount",
134
+ "type": "error"
135
+ },
120
136
  {
121
137
  "anonymous": false,
122
138
  "inputs": [
@@ -547,9 +563,9 @@
547
563
  "type": "uint16"
548
564
  },
549
565
  {
550
- "internalType": "uint256",
566
+ "internalType": "Amount",
551
567
  "name": "payoutAmount",
552
- "type": "uint256"
568
+ "type": "uint96"
553
569
  },
554
570
  {
555
571
  "internalType": "Timestamp",
@@ -582,6 +598,106 @@
582
598
  "stateMutability": "nonpayable",
583
599
  "type": "function"
584
600
  },
601
+ {
602
+ "inputs": [
603
+ {
604
+ "internalType": "NftId",
605
+ "name": "bundleNftId",
606
+ "type": "uint96"
607
+ },
608
+ {
609
+ "components": [
610
+ {
611
+ "internalType": "uint256",
612
+ "name": "netPremiumAmount",
613
+ "type": "uint256"
614
+ },
615
+ {
616
+ "internalType": "uint256",
617
+ "name": "fullPremiumAmount",
618
+ "type": "uint256"
619
+ },
620
+ {
621
+ "internalType": "uint256",
622
+ "name": "premiumAmount",
623
+ "type": "uint256"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "productFeeFixAmount",
628
+ "type": "uint256"
629
+ },
630
+ {
631
+ "internalType": "uint256",
632
+ "name": "poolFeeFixAmount",
633
+ "type": "uint256"
634
+ },
635
+ {
636
+ "internalType": "uint256",
637
+ "name": "bundleFeeFixAmount",
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "distributionFeeFixAmount",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "productFeeVarAmount",
648
+ "type": "uint256"
649
+ },
650
+ {
651
+ "internalType": "uint256",
652
+ "name": "poolFeeVarAmount",
653
+ "type": "uint256"
654
+ },
655
+ {
656
+ "internalType": "uint256",
657
+ "name": "bundleFeeVarAmount",
658
+ "type": "uint256"
659
+ },
660
+ {
661
+ "internalType": "uint256",
662
+ "name": "distributionFeeVarAmount",
663
+ "type": "uint256"
664
+ },
665
+ {
666
+ "internalType": "uint256",
667
+ "name": "distributionOwnerFeeFixAmount",
668
+ "type": "uint256"
669
+ },
670
+ {
671
+ "internalType": "uint256",
672
+ "name": "distributionOwnerFeeVarAmount",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "internalType": "uint256",
677
+ "name": "commissionAmount",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "discountAmount",
683
+ "type": "uint256"
684
+ }
685
+ ],
686
+ "internalType": "struct IPolicy.Premium",
687
+ "name": "premium",
688
+ "type": "tuple"
689
+ },
690
+ {
691
+ "internalType": "uint256",
692
+ "name": "actualAmountTransferred",
693
+ "type": "uint256"
694
+ }
695
+ ],
696
+ "name": "processSale",
697
+ "outputs": [],
698
+ "stateMutability": "nonpayable",
699
+ "type": "function"
700
+ },
585
701
  {
586
702
  "inputs": [
587
703
  {
@@ -676,9 +792,9 @@
676
792
  "type": "uint16"
677
793
  },
678
794
  {
679
- "internalType": "uint256",
795
+ "internalType": "Amount",
680
796
  "name": "payoutAmount",
681
- "type": "uint256"
797
+ "type": "uint96"
682
798
  },
683
799
  {
684
800
  "internalType": "Timestamp",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a217c5bb40d255ef67cb8b4d687de7f1.json"
3
+ "buildInfo": "../../../../build-info/2ea2e3eeb4bd2b2d7ce18fce7ac55a0f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a217c5bb40d255ef67cb8b4d687de7f1.json"
3
+ "buildInfo": "../../../../build-info/2ea2e3eeb4bd2b2d7ce18fce7ac55a0f.json"
4
4
  }