@etherisc/gif-next 0.0.2-db1e1e4-828 → 0.0.2-db81915-875

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) 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 +79 -44
  50. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  51. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +27 -23
  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 +27 -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 +353 -22
  69. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +4 -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 +481 -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 +12 -12
  78. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +5 -5
  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 +28 -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 -103
  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 +8 -3
  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 +3 -0
  187. package/contracts/instance/service/IClaimService.sol +46 -15
  188. package/contracts/instance/service/IPolicyService.sol +70 -5
  189. package/contracts/instance/service/PolicyService.sol +219 -40
  190. package/contracts/instance/service/ProductService.sol +1 -1
  191. package/contracts/types/Amount.sol +5 -0
  192. package/contracts/types/ClaimId.sol +25 -2
  193. package/contracts/types/ObjectType.sol +5 -5
  194. package/contracts/types/PayoutId.sol +33 -5
  195. package/contracts/types/StateId.sol +6 -2
  196. package/contracts/types/Timestamp.sol +5 -0
  197. 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,59 @@
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": "policyNftId",
279
+ "type": "uint96"
280
+ },
281
+ {
282
+ "internalType": "NftId",
283
+ "name": "expectedProduct",
284
+ "type": "uint96"
285
+ },
286
+ {
287
+ "internalType": "NftId",
288
+ "name": "actualProduct",
289
+ "type": "uint96"
290
+ }
291
+ ],
292
+ "name": "ErrorPolicyServicePolicyProductMismatch",
293
+ "type": "error"
294
+ },
242
295
  {
243
296
  "anonymous": false,
244
297
  "inputs": [
@@ -252,6 +305,144 @@
252
305
  "name": "AuthorityUpdated",
253
306
  "type": "event"
254
307
  },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": false,
313
+ "internalType": "NftId",
314
+ "name": "policyNftId",
315
+ "type": "uint96"
316
+ },
317
+ {
318
+ "indexed": false,
319
+ "internalType": "ClaimId",
320
+ "name": "claimId",
321
+ "type": "uint16"
322
+ }
323
+ ],
324
+ "name": "LogPolicyServiceClaimClosed",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "anonymous": false,
329
+ "inputs": [
330
+ {
331
+ "indexed": false,
332
+ "internalType": "NftId",
333
+ "name": "policyNftId",
334
+ "type": "uint96"
335
+ },
336
+ {
337
+ "indexed": false,
338
+ "internalType": "ClaimId",
339
+ "name": "claimId",
340
+ "type": "uint16"
341
+ },
342
+ {
343
+ "indexed": false,
344
+ "internalType": "Amount",
345
+ "name": "confirmedAmount",
346
+ "type": "uint96"
347
+ }
348
+ ],
349
+ "name": "LogPolicyServiceClaimConfirmed",
350
+ "type": "event"
351
+ },
352
+ {
353
+ "anonymous": false,
354
+ "inputs": [
355
+ {
356
+ "indexed": false,
357
+ "internalType": "NftId",
358
+ "name": "policyNftId",
359
+ "type": "uint96"
360
+ },
361
+ {
362
+ "indexed": false,
363
+ "internalType": "ClaimId",
364
+ "name": "claimId",
365
+ "type": "uint16"
366
+ }
367
+ ],
368
+ "name": "LogPolicyServiceClaimDeclined",
369
+ "type": "event"
370
+ },
371
+ {
372
+ "anonymous": false,
373
+ "inputs": [
374
+ {
375
+ "indexed": false,
376
+ "internalType": "NftId",
377
+ "name": "policyNftId",
378
+ "type": "uint96"
379
+ },
380
+ {
381
+ "indexed": false,
382
+ "internalType": "ClaimId",
383
+ "name": "claimId",
384
+ "type": "uint16"
385
+ },
386
+ {
387
+ "indexed": false,
388
+ "internalType": "Amount",
389
+ "name": "claimAmount",
390
+ "type": "uint96"
391
+ }
392
+ ],
393
+ "name": "LogPolicyServiceClaimSubmitted",
394
+ "type": "event"
395
+ },
396
+ {
397
+ "anonymous": false,
398
+ "inputs": [
399
+ {
400
+ "indexed": false,
401
+ "internalType": "NftId",
402
+ "name": "policyNftId",
403
+ "type": "uint96"
404
+ },
405
+ {
406
+ "indexed": false,
407
+ "internalType": "PayoutId",
408
+ "name": "payoutId",
409
+ "type": "uint24"
410
+ },
411
+ {
412
+ "indexed": false,
413
+ "internalType": "Amount",
414
+ "name": "amount",
415
+ "type": "uint96"
416
+ }
417
+ ],
418
+ "name": "LogPolicyServicePayoutCreated",
419
+ "type": "event"
420
+ },
421
+ {
422
+ "anonymous": false,
423
+ "inputs": [
424
+ {
425
+ "indexed": false,
426
+ "internalType": "NftId",
427
+ "name": "policyNftId",
428
+ "type": "uint96"
429
+ },
430
+ {
431
+ "indexed": false,
432
+ "internalType": "PayoutId",
433
+ "name": "payoutId",
434
+ "type": "uint24"
435
+ },
436
+ {
437
+ "indexed": false,
438
+ "internalType": "Amount",
439
+ "name": "amount",
440
+ "type": "uint96"
441
+ }
442
+ ],
443
+ "name": "LogPolicyServicePayoutProcessed",
444
+ "type": "event"
445
+ },
255
446
  {
256
447
  "inputs": [
257
448
  {
@@ -320,6 +511,47 @@
320
511
  "stateMutability": "nonpayable",
321
512
  "type": "function"
322
513
  },
514
+ {
515
+ "inputs": [
516
+ {
517
+ "internalType": "NftId",
518
+ "name": "policyNftId",
519
+ "type": "uint96"
520
+ },
521
+ {
522
+ "internalType": "ClaimId",
523
+ "name": "claimId",
524
+ "type": "uint16"
525
+ }
526
+ ],
527
+ "name": "closeClaim",
528
+ "outputs": [],
529
+ "stateMutability": "nonpayable",
530
+ "type": "function"
531
+ },
532
+ {
533
+ "inputs": [
534
+ {
535
+ "internalType": "NftId",
536
+ "name": "policyNftId",
537
+ "type": "uint96"
538
+ },
539
+ {
540
+ "internalType": "bool",
541
+ "name": "requirePremiumPayment",
542
+ "type": "bool"
543
+ },
544
+ {
545
+ "internalType": "Timestamp",
546
+ "name": "activateAt",
547
+ "type": "uint40"
548
+ }
549
+ ],
550
+ "name": "collateralize",
551
+ "outputs": [],
552
+ "stateMutability": "nonpayable",
553
+ "type": "function"
554
+ },
323
555
  {
324
556
  "inputs": [
325
557
  {
@@ -338,6 +570,63 @@
338
570
  "stateMutability": "nonpayable",
339
571
  "type": "function"
340
572
  },
573
+ {
574
+ "inputs": [
575
+ {
576
+ "internalType": "NftId",
577
+ "name": "policyNftId",
578
+ "type": "uint96"
579
+ },
580
+ {
581
+ "internalType": "ClaimId",
582
+ "name": "claimId",
583
+ "type": "uint16"
584
+ },
585
+ {
586
+ "internalType": "Amount",
587
+ "name": "confirmedAmount",
588
+ "type": "uint96"
589
+ }
590
+ ],
591
+ "name": "confirmClaim",
592
+ "outputs": [],
593
+ "stateMutability": "nonpayable",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [
598
+ {
599
+ "internalType": "NftId",
600
+ "name": "policyNftId",
601
+ "type": "uint96"
602
+ },
603
+ {
604
+ "internalType": "ClaimId",
605
+ "name": "claimId",
606
+ "type": "uint16"
607
+ },
608
+ {
609
+ "internalType": "Amount",
610
+ "name": "amount",
611
+ "type": "uint96"
612
+ },
613
+ {
614
+ "internalType": "bytes",
615
+ "name": "data",
616
+ "type": "bytes"
617
+ }
618
+ ],
619
+ "name": "createPayout",
620
+ "outputs": [
621
+ {
622
+ "internalType": "PayoutId",
623
+ "name": "payoutId",
624
+ "type": "uint24"
625
+ }
626
+ ],
627
+ "stateMutability": "nonpayable",
628
+ "type": "function"
629
+ },
341
630
  {
342
631
  "inputs": [
343
632
  {
@@ -351,6 +640,24 @@
351
640
  "stateMutability": "nonpayable",
352
641
  "type": "function"
353
642
  },
643
+ {
644
+ "inputs": [
645
+ {
646
+ "internalType": "NftId",
647
+ "name": "policyNftId",
648
+ "type": "uint96"
649
+ },
650
+ {
651
+ "internalType": "ClaimId",
652
+ "name": "claimId",
653
+ "type": "uint16"
654
+ }
655
+ ],
656
+ "name": "declineClaim",
657
+ "outputs": [],
658
+ "stateMutability": "nonpayable",
659
+ "type": "function"
660
+ },
354
661
  {
355
662
  "inputs": [
356
663
  {
@@ -530,6 +837,24 @@
530
837
  "stateMutability": "nonpayable",
531
838
  "type": "function"
532
839
  },
840
+ {
841
+ "inputs": [
842
+ {
843
+ "internalType": "NftId",
844
+ "name": "policyNftId",
845
+ "type": "uint96"
846
+ },
847
+ {
848
+ "internalType": "PayoutId",
849
+ "name": "payoutId",
850
+ "type": "uint24"
851
+ }
852
+ ],
853
+ "name": "processPayout",
854
+ "outputs": [],
855
+ "stateMutability": "nonpayable",
856
+ "type": "function"
857
+ },
533
858
  {
534
859
  "inputs": [
535
860
  {
@@ -546,43 +871,49 @@
546
871
  {
547
872
  "inputs": [
548
873
  {
549
- "internalType": "bytes4",
550
- "name": "interfaceId",
551
- "type": "bytes4"
874
+ "internalType": "NftId",
875
+ "name": "policyNftId",
876
+ "type": "uint96"
877
+ },
878
+ {
879
+ "internalType": "Amount",
880
+ "name": "claimAmount",
881
+ "type": "uint96"
882
+ },
883
+ {
884
+ "internalType": "bytes",
885
+ "name": "claimData",
886
+ "type": "bytes"
552
887
  }
553
888
  ],
554
- "name": "supportsInterface",
889
+ "name": "submitClaim",
555
890
  "outputs": [
556
891
  {
557
- "internalType": "bool",
558
- "name": "",
559
- "type": "bool"
892
+ "internalType": "ClaimId",
893
+ "name": "claimId",
894
+ "type": "uint16"
560
895
  }
561
896
  ],
562
- "stateMutability": "view",
897
+ "stateMutability": "nonpayable",
563
898
  "type": "function"
564
899
  },
565
900
  {
566
901
  "inputs": [
567
902
  {
568
- "internalType": "NftId",
569
- "name": "policyNftId",
570
- "type": "uint96"
571
- },
903
+ "internalType": "bytes4",
904
+ "name": "interfaceId",
905
+ "type": "bytes4"
906
+ }
907
+ ],
908
+ "name": "supportsInterface",
909
+ "outputs": [
572
910
  {
573
911
  "internalType": "bool",
574
- "name": "requirePremiumPayment",
912
+ "name": "",
575
913
  "type": "bool"
576
- },
577
- {
578
- "internalType": "Timestamp",
579
- "name": "activateAt",
580
- "type": "uint40"
581
914
  }
582
915
  ],
583
- "name": "underwrite",
584
- "outputs": [],
585
- "stateMutability": "nonpayable",
916
+ "stateMutability": "view",
586
917
  "type": "function"
587
918
  },
588
919
  {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/19724ea417151985924344f750f0deb4.json"
3
+ "buildInfo": "../../../../build-info/0097d743c9f1859f51a737077ba376b2.json"
4
4
  }
@@ -547,9 +547,9 @@
547
547
  "type": "uint16"
548
548
  },
549
549
  {
550
- "internalType": "uint256",
550
+ "internalType": "Amount",
551
551
  "name": "payoutAmount",
552
- "type": "uint256"
552
+ "type": "uint96"
553
553
  },
554
554
  {
555
555
  "internalType": "Timestamp",
@@ -676,9 +676,9 @@
676
676
  "type": "uint16"
677
677
  },
678
678
  {
679
- "internalType": "uint256",
679
+ "internalType": "Amount",
680
680
  "name": "payoutAmount",
681
- "type": "uint256"
681
+ "type": "uint96"
682
682
  },
683
683
  {
684
684
  "internalType": "Timestamp",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/19724ea417151985924344f750f0deb4.json"
3
+ "buildInfo": "../../../../build-info/0097d743c9f1859f51a737077ba376b2.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/19724ea417151985924344f750f0deb4.json"
3
+ "buildInfo": "../../../../build-info/0097d743c9f1859f51a737077ba376b2.json"
4
4
  }