@etherisc/gif-next 0.0.2-fb8d07b-779 → 0.0.2-fd275d2-234

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. package/README.md +43 -0
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +10 -10
  5. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +2 -2
  9. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  11. package/artifacts/contracts/components/Pool.sol/Pool.json +16 -11
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  13. package/artifacts/contracts/components/Product.sol/Product.json +18 -64
  14. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  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/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +1 -1
  35. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +1 -1
  36. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +809 -0
  38. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  39. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  40. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
  41. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  42. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +963 -18
  43. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  44. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +5 -0
  45. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  46. package/artifacts/contracts/instance/Instance.sol/Instance.json +150 -81
  47. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  48. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
  49. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  50. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +74 -40
  51. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  52. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +128 -49
  53. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  54. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +52 -32
  55. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  56. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +272 -0
  57. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  58. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  59. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  60. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  61. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  62. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  71. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +16 -16
  72. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +12 -12
  74. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +17 -21
  76. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  77. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +108 -0
  80. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +40 -31
  82. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +146 -30
  84. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +23 -23
  86. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1147 -0
  88. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +488 -0
  90. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  91. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  92. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +2 -110
  93. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  94. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -0
  95. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  96. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  97. package/artifacts/contracts/registry/Registry.sol/Registry.json +35 -146
  98. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  99. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +76 -20
  100. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  101. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +26 -34
  102. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  103. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +12 -12
  104. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  105. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  106. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  107. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  108. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  109. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  110. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  111. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.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/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
  117. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  118. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  119. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  120. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  121. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  122. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  123. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  124. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  125. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  126. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  127. package/artifacts/contracts/test/TestService.sol/TestService.json +9 -9
  128. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  129. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  130. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  131. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  132. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  133. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  134. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  135. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  136. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  137. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  138. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  139. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  140. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  141. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  142. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  143. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  144. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  145. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  146. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  147. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  148. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  149. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  150. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  152. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  153. package/contracts/components/Distribution.sol +6 -3
  154. package/contracts/components/IPoolComponent.sol +1 -1
  155. package/contracts/components/Pool.sol +13 -9
  156. package/contracts/components/Product.sol +33 -41
  157. package/contracts/instance/BundleManager.sol +152 -0
  158. package/contracts/instance/Cloneable.sol +46 -0
  159. package/contracts/instance/IInstance.sol +21 -4
  160. package/contracts/instance/IInstanceService.sol +3 -1
  161. package/contracts/instance/Instance.sol +15 -4
  162. package/contracts/instance/InstanceReader.sol +9 -0
  163. package/contracts/instance/InstanceService.sol +62 -12
  164. package/contracts/instance/InstanceServiceManager.sol +6 -5
  165. package/contracts/instance/ObjectManager.sol +95 -0
  166. package/contracts/instance/base/ComponentServiceBase.sol +14 -5
  167. package/contracts/instance/module/ISetup.sol +3 -1
  168. package/contracts/instance/service/DistributionService.sol +3 -2
  169. package/contracts/instance/service/DistributionServiceManager.sol +6 -5
  170. package/contracts/instance/service/IPoolService.sol +6 -0
  171. package/contracts/instance/service/IProductService.sol +6 -3
  172. package/contracts/instance/service/PoolService.sol +31 -18
  173. package/contracts/instance/service/PoolServiceManager.sol +6 -5
  174. package/contracts/instance/service/ProductService.sol +561 -0
  175. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  176. package/contracts/registry/IRegistry.sol +5 -18
  177. package/contracts/registry/IRegistryService.sol +28 -11
  178. package/contracts/registry/Registry.sol +4 -45
  179. package/contracts/registry/RegistryService.sol +30 -71
  180. package/contracts/shared/NftOwnable.sol +2 -4
  181. package/contracts/types/NftIdSet.sol +26 -24
  182. package/contracts/types/RoleId.sol +1 -0
  183. package/package.json +1 -1
@@ -3,6 +3,172 @@
3
3
  "contractName": "IInstance",
4
4
  "sourceName": "contracts/instance/IInstance.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "ObjectType",
10
+ "name": "objectType",
11
+ "type": "uint8"
12
+ },
13
+ {
14
+ "internalType": "StateId",
15
+ "name": "fromStateId",
16
+ "type": "uint8"
17
+ },
18
+ {
19
+ "internalType": "StateId",
20
+ "name": "toStateId",
21
+ "type": "uint8"
22
+ }
23
+ ],
24
+ "name": "ErrorInvalidStateTransition",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "NftId",
31
+ "name": "nftId",
32
+ "type": "uint96"
33
+ },
34
+ {
35
+ "internalType": "ObjectType",
36
+ "name": "objectType",
37
+ "type": "uint8"
38
+ }
39
+ ],
40
+ "name": "ErrorNoLifecycle",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": false,
48
+ "internalType": "ObjectType",
49
+ "name": "objectType",
50
+ "type": "uint8"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "internalType": "KeyId",
55
+ "name": "keyId",
56
+ "type": "bytes31"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "StateId",
61
+ "name": "state",
62
+ "type": "uint8"
63
+ },
64
+ {
65
+ "indexed": false,
66
+ "internalType": "address",
67
+ "name": "createdBy",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "address",
73
+ "name": "txOrigin",
74
+ "type": "address"
75
+ }
76
+ ],
77
+ "name": "LogInfoCreated",
78
+ "type": "event"
79
+ },
80
+ {
81
+ "anonymous": false,
82
+ "inputs": [
83
+ {
84
+ "indexed": false,
85
+ "internalType": "ObjectType",
86
+ "name": "objectType",
87
+ "type": "uint8"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "KeyId",
92
+ "name": "keyId",
93
+ "type": "bytes31"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "StateId",
98
+ "name": "state",
99
+ "type": "uint8"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "address",
104
+ "name": "updatedBy",
105
+ "type": "address"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "address",
110
+ "name": "txOrigin",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "Blocknumber",
116
+ "name": "lastUpdatedIn",
117
+ "type": "uint32"
118
+ }
119
+ ],
120
+ "name": "LogInfoUpdated",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": false,
128
+ "internalType": "ObjectType",
129
+ "name": "objectType",
130
+ "type": "uint8"
131
+ },
132
+ {
133
+ "indexed": false,
134
+ "internalType": "KeyId",
135
+ "name": "keyId",
136
+ "type": "bytes31"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "internalType": "StateId",
141
+ "name": "stateOld",
142
+ "type": "uint8"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "internalType": "StateId",
147
+ "name": "stateNew",
148
+ "type": "uint8"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "address",
153
+ "name": "updatedBy",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "address",
159
+ "name": "txOrigin",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "Blocknumber",
165
+ "name": "lastUpdatedIn",
166
+ "type": "uint32"
167
+ }
168
+ ],
169
+ "name": "LogStateUpdated",
170
+ "type": "event"
171
+ },
6
172
  {
7
173
  "inputs": [
8
174
  {
@@ -137,6 +303,106 @@
137
303
  "stateMutability": "nonpayable",
138
304
  "type": "function"
139
305
  },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "NftId",
310
+ "name": "policyNftId",
311
+ "type": "uint96"
312
+ },
313
+ {
314
+ "components": [
315
+ {
316
+ "internalType": "NftId",
317
+ "name": "productNftId",
318
+ "type": "uint96"
319
+ },
320
+ {
321
+ "internalType": "NftId",
322
+ "name": "bundleNftId",
323
+ "type": "uint96"
324
+ },
325
+ {
326
+ "internalType": "ReferralId",
327
+ "name": "referralId",
328
+ "type": "bytes8"
329
+ },
330
+ {
331
+ "internalType": "RiskId",
332
+ "name": "riskId",
333
+ "type": "bytes8"
334
+ },
335
+ {
336
+ "internalType": "uint256",
337
+ "name": "sumInsuredAmount",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "premiumAmount",
343
+ "type": "uint256"
344
+ },
345
+ {
346
+ "internalType": "uint256",
347
+ "name": "premiumPaidAmount",
348
+ "type": "uint256"
349
+ },
350
+ {
351
+ "internalType": "uint256",
352
+ "name": "lifetime",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "internalType": "bytes",
357
+ "name": "applicationData",
358
+ "type": "bytes"
359
+ },
360
+ {
361
+ "internalType": "bytes",
362
+ "name": "policyData",
363
+ "type": "bytes"
364
+ },
365
+ {
366
+ "internalType": "uint16",
367
+ "name": "claimsCount",
368
+ "type": "uint16"
369
+ },
370
+ {
371
+ "internalType": "uint16",
372
+ "name": "openClaimsCount",
373
+ "type": "uint16"
374
+ },
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "payoutAmount",
378
+ "type": "uint256"
379
+ },
380
+ {
381
+ "internalType": "Timestamp",
382
+ "name": "activatedAt",
383
+ "type": "uint40"
384
+ },
385
+ {
386
+ "internalType": "Timestamp",
387
+ "name": "expiredAt",
388
+ "type": "uint40"
389
+ },
390
+ {
391
+ "internalType": "Timestamp",
392
+ "name": "closedAt",
393
+ "type": "uint40"
394
+ }
395
+ ],
396
+ "internalType": "struct IPolicy.PolicyInfo",
397
+ "name": "policy",
398
+ "type": "tuple"
399
+ }
400
+ ],
401
+ "name": "createPolicy",
402
+ "outputs": [],
403
+ "stateMutability": "nonpayable",
404
+ "type": "function"
405
+ },
140
406
  {
141
407
  "inputs": [
142
408
  {
@@ -217,6 +483,11 @@
217
483
  "name": "isIntercepting",
218
484
  "type": "bool"
219
485
  },
486
+ {
487
+ "internalType": "bool",
488
+ "name": "isConfirmingApplication",
489
+ "type": "bool"
490
+ },
220
491
  {
221
492
  "internalType": "address",
222
493
  "name": "wallet",
@@ -363,6 +634,16 @@
363
634
  "internalType": "struct Fee",
364
635
  "name": "performanceFee",
365
636
  "type": "tuple"
637
+ },
638
+ {
639
+ "internalType": "bool",
640
+ "name": "isIntercepting",
641
+ "type": "bool"
642
+ },
643
+ {
644
+ "internalType": "address",
645
+ "name": "wallet",
646
+ "type": "address"
366
647
  }
367
648
  ],
368
649
  "internalType": "struct ISetup.ProductSetupInfo",
@@ -376,26 +657,107 @@
376
657
  "type": "function"
377
658
  },
378
659
  {
379
- "inputs": [],
380
- "name": "getComponentOwnerService",
660
+ "inputs": [
661
+ {
662
+ "internalType": "RiskId",
663
+ "name": "riskId",
664
+ "type": "bytes8"
665
+ },
666
+ {
667
+ "components": [
668
+ {
669
+ "internalType": "NftId",
670
+ "name": "productNftId",
671
+ "type": "uint96"
672
+ },
673
+ {
674
+ "internalType": "bytes",
675
+ "name": "data",
676
+ "type": "bytes"
677
+ }
678
+ ],
679
+ "internalType": "struct IRisk.RiskInfo",
680
+ "name": "risk",
681
+ "type": "tuple"
682
+ }
683
+ ],
684
+ "name": "createRisk",
685
+ "outputs": [],
686
+ "stateMutability": "nonpayable",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [
691
+ {
692
+ "internalType": "Key32",
693
+ "name": "key",
694
+ "type": "bytes32"
695
+ }
696
+ ],
697
+ "name": "exists",
381
698
  "outputs": [
382
699
  {
383
- "internalType": "contract IComponentOwnerService",
700
+ "internalType": "bool",
384
701
  "name": "",
385
- "type": "address"
702
+ "type": "bool"
386
703
  }
387
704
  ],
388
705
  "stateMutability": "view",
389
706
  "type": "function"
390
707
  },
391
708
  {
392
- "inputs": [],
393
- "name": "getDistributionService",
709
+ "inputs": [
710
+ {
711
+ "internalType": "Key32",
712
+ "name": "key",
713
+ "type": "bytes32"
714
+ }
715
+ ],
716
+ "name": "get",
394
717
  "outputs": [
395
718
  {
396
- "internalType": "contract IDistributionService",
397
- "name": "",
398
- "type": "address"
719
+ "components": [
720
+ {
721
+ "components": [
722
+ {
723
+ "internalType": "ObjectType",
724
+ "name": "objectType",
725
+ "type": "uint8"
726
+ },
727
+ {
728
+ "internalType": "StateId",
729
+ "name": "state",
730
+ "type": "uint8"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "updatedBy",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "Blocknumber",
739
+ "name": "updatedIn",
740
+ "type": "uint32"
741
+ },
742
+ {
743
+ "internalType": "Blocknumber",
744
+ "name": "createdIn",
745
+ "type": "uint32"
746
+ }
747
+ ],
748
+ "internalType": "struct IKeyValueStore.Metadata",
749
+ "name": "metadata",
750
+ "type": "tuple"
751
+ },
752
+ {
753
+ "internalType": "bytes",
754
+ "name": "data",
755
+ "type": "bytes"
756
+ }
757
+ ],
758
+ "internalType": "struct IKeyValueStore.Value",
759
+ "name": "value",
760
+ "type": "tuple"
399
761
  }
400
762
  ],
401
763
  "stateMutability": "view",
@@ -403,10 +765,10 @@
403
765
  },
404
766
  {
405
767
  "inputs": [],
406
- "name": "getInstanceReader",
768
+ "name": "getBundleManager",
407
769
  "outputs": [
408
770
  {
409
- "internalType": "contract InstanceReader",
771
+ "internalType": "contract BundleManager",
410
772
  "name": "",
411
773
  "type": "address"
412
774
  }
@@ -416,10 +778,10 @@
416
778
  },
417
779
  {
418
780
  "inputs": [],
419
- "name": "getPoolService",
781
+ "name": "getComponentOwnerService",
420
782
  "outputs": [
421
783
  {
422
- "internalType": "contract IPoolService",
784
+ "internalType": "contract IComponentOwnerService",
423
785
  "name": "",
424
786
  "type": "address"
425
787
  }
@@ -430,15 +792,218 @@
430
792
  {
431
793
  "inputs": [
432
794
  {
433
- "internalType": "bytes4",
434
- "name": "interfaceId",
435
- "type": "bytes4"
795
+ "internalType": "Key32",
796
+ "name": "key",
797
+ "type": "bytes32"
436
798
  }
437
799
  ],
438
- "name": "supportsInterface",
800
+ "name": "getData",
439
801
  "outputs": [
440
802
  {
441
- "internalType": "bool",
803
+ "internalType": "bytes",
804
+ "name": "data",
805
+ "type": "bytes"
806
+ }
807
+ ],
808
+ "stateMutability": "view",
809
+ "type": "function"
810
+ },
811
+ {
812
+ "inputs": [],
813
+ "name": "getDistributionService",
814
+ "outputs": [
815
+ {
816
+ "internalType": "contract IDistributionService",
817
+ "name": "",
818
+ "type": "address"
819
+ }
820
+ ],
821
+ "stateMutability": "view",
822
+ "type": "function"
823
+ },
824
+ {
825
+ "inputs": [
826
+ {
827
+ "internalType": "ObjectType",
828
+ "name": "objectType",
829
+ "type": "uint8"
830
+ }
831
+ ],
832
+ "name": "getInitialState",
833
+ "outputs": [
834
+ {
835
+ "internalType": "StateId",
836
+ "name": "",
837
+ "type": "uint8"
838
+ }
839
+ ],
840
+ "stateMutability": "view",
841
+ "type": "function"
842
+ },
843
+ {
844
+ "inputs": [],
845
+ "name": "getInstanceReader",
846
+ "outputs": [
847
+ {
848
+ "internalType": "contract InstanceReader",
849
+ "name": "",
850
+ "type": "address"
851
+ }
852
+ ],
853
+ "stateMutability": "view",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [
858
+ {
859
+ "internalType": "Key32",
860
+ "name": "key",
861
+ "type": "bytes32"
862
+ }
863
+ ],
864
+ "name": "getMetadata",
865
+ "outputs": [
866
+ {
867
+ "components": [
868
+ {
869
+ "internalType": "ObjectType",
870
+ "name": "objectType",
871
+ "type": "uint8"
872
+ },
873
+ {
874
+ "internalType": "StateId",
875
+ "name": "state",
876
+ "type": "uint8"
877
+ },
878
+ {
879
+ "internalType": "address",
880
+ "name": "updatedBy",
881
+ "type": "address"
882
+ },
883
+ {
884
+ "internalType": "Blocknumber",
885
+ "name": "updatedIn",
886
+ "type": "uint32"
887
+ },
888
+ {
889
+ "internalType": "Blocknumber",
890
+ "name": "createdIn",
891
+ "type": "uint32"
892
+ }
893
+ ],
894
+ "internalType": "struct IKeyValueStore.Metadata",
895
+ "name": "metadata",
896
+ "type": "tuple"
897
+ }
898
+ ],
899
+ "stateMutability": "view",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [],
904
+ "name": "getPoolService",
905
+ "outputs": [
906
+ {
907
+ "internalType": "contract IPoolService",
908
+ "name": "",
909
+ "type": "address"
910
+ }
911
+ ],
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [],
917
+ "name": "getProductService",
918
+ "outputs": [
919
+ {
920
+ "internalType": "contract IProductService",
921
+ "name": "",
922
+ "type": "address"
923
+ }
924
+ ],
925
+ "stateMutability": "view",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [
930
+ {
931
+ "internalType": "Key32",
932
+ "name": "key",
933
+ "type": "bytes32"
934
+ }
935
+ ],
936
+ "name": "getState",
937
+ "outputs": [
938
+ {
939
+ "internalType": "StateId",
940
+ "name": "state",
941
+ "type": "uint8"
942
+ }
943
+ ],
944
+ "stateMutability": "view",
945
+ "type": "function"
946
+ },
947
+ {
948
+ "inputs": [
949
+ {
950
+ "internalType": "ObjectType",
951
+ "name": "objectType",
952
+ "type": "uint8"
953
+ }
954
+ ],
955
+ "name": "hasLifecycle",
956
+ "outputs": [
957
+ {
958
+ "internalType": "bool",
959
+ "name": "",
960
+ "type": "bool"
961
+ }
962
+ ],
963
+ "stateMutability": "view",
964
+ "type": "function"
965
+ },
966
+ {
967
+ "inputs": [
968
+ {
969
+ "internalType": "ObjectType",
970
+ "name": "objectType",
971
+ "type": "uint8"
972
+ },
973
+ {
974
+ "internalType": "StateId",
975
+ "name": "fromId",
976
+ "type": "uint8"
977
+ },
978
+ {
979
+ "internalType": "StateId",
980
+ "name": "toId",
981
+ "type": "uint8"
982
+ }
983
+ ],
984
+ "name": "isValidTransition",
985
+ "outputs": [
986
+ {
987
+ "internalType": "bool",
988
+ "name": "",
989
+ "type": "bool"
990
+ }
991
+ ],
992
+ "stateMutability": "view",
993
+ "type": "function"
994
+ },
995
+ {
996
+ "inputs": [
997
+ {
998
+ "internalType": "bytes4",
999
+ "name": "interfaceId",
1000
+ "type": "bytes4"
1001
+ }
1002
+ ],
1003
+ "name": "supportsInterface",
1004
+ "outputs": [
1005
+ {
1006
+ "internalType": "bool",
442
1007
  "name": "",
443
1008
  "type": "bool"
444
1009
  }
@@ -446,6 +1011,30 @@
446
1011
  "stateMutability": "view",
447
1012
  "type": "function"
448
1013
  },
1014
+ {
1015
+ "inputs": [
1016
+ {
1017
+ "internalType": "ObjectType",
1018
+ "name": "objectType",
1019
+ "type": "uint8"
1020
+ },
1021
+ {
1022
+ "internalType": "KeyId",
1023
+ "name": "id",
1024
+ "type": "bytes31"
1025
+ }
1026
+ ],
1027
+ "name": "toKey32",
1028
+ "outputs": [
1029
+ {
1030
+ "internalType": "Key32",
1031
+ "name": "",
1032
+ "type": "bytes32"
1033
+ }
1034
+ ],
1035
+ "stateMutability": "pure",
1036
+ "type": "function"
1037
+ },
449
1038
  {
450
1039
  "inputs": [
451
1040
  {
@@ -626,6 +1215,129 @@
626
1215
  "stateMutability": "nonpayable",
627
1216
  "type": "function"
628
1217
  },
1218
+ {
1219
+ "inputs": [
1220
+ {
1221
+ "internalType": "NftId",
1222
+ "name": "policyNftId",
1223
+ "type": "uint96"
1224
+ },
1225
+ {
1226
+ "components": [
1227
+ {
1228
+ "internalType": "NftId",
1229
+ "name": "productNftId",
1230
+ "type": "uint96"
1231
+ },
1232
+ {
1233
+ "internalType": "NftId",
1234
+ "name": "bundleNftId",
1235
+ "type": "uint96"
1236
+ },
1237
+ {
1238
+ "internalType": "ReferralId",
1239
+ "name": "referralId",
1240
+ "type": "bytes8"
1241
+ },
1242
+ {
1243
+ "internalType": "RiskId",
1244
+ "name": "riskId",
1245
+ "type": "bytes8"
1246
+ },
1247
+ {
1248
+ "internalType": "uint256",
1249
+ "name": "sumInsuredAmount",
1250
+ "type": "uint256"
1251
+ },
1252
+ {
1253
+ "internalType": "uint256",
1254
+ "name": "premiumAmount",
1255
+ "type": "uint256"
1256
+ },
1257
+ {
1258
+ "internalType": "uint256",
1259
+ "name": "premiumPaidAmount",
1260
+ "type": "uint256"
1261
+ },
1262
+ {
1263
+ "internalType": "uint256",
1264
+ "name": "lifetime",
1265
+ "type": "uint256"
1266
+ },
1267
+ {
1268
+ "internalType": "bytes",
1269
+ "name": "applicationData",
1270
+ "type": "bytes"
1271
+ },
1272
+ {
1273
+ "internalType": "bytes",
1274
+ "name": "policyData",
1275
+ "type": "bytes"
1276
+ },
1277
+ {
1278
+ "internalType": "uint16",
1279
+ "name": "claimsCount",
1280
+ "type": "uint16"
1281
+ },
1282
+ {
1283
+ "internalType": "uint16",
1284
+ "name": "openClaimsCount",
1285
+ "type": "uint16"
1286
+ },
1287
+ {
1288
+ "internalType": "uint256",
1289
+ "name": "payoutAmount",
1290
+ "type": "uint256"
1291
+ },
1292
+ {
1293
+ "internalType": "Timestamp",
1294
+ "name": "activatedAt",
1295
+ "type": "uint40"
1296
+ },
1297
+ {
1298
+ "internalType": "Timestamp",
1299
+ "name": "expiredAt",
1300
+ "type": "uint40"
1301
+ },
1302
+ {
1303
+ "internalType": "Timestamp",
1304
+ "name": "closedAt",
1305
+ "type": "uint40"
1306
+ }
1307
+ ],
1308
+ "internalType": "struct IPolicy.PolicyInfo",
1309
+ "name": "policy",
1310
+ "type": "tuple"
1311
+ },
1312
+ {
1313
+ "internalType": "StateId",
1314
+ "name": "newState",
1315
+ "type": "uint8"
1316
+ }
1317
+ ],
1318
+ "name": "updatePolicy",
1319
+ "outputs": [],
1320
+ "stateMutability": "nonpayable",
1321
+ "type": "function"
1322
+ },
1323
+ {
1324
+ "inputs": [
1325
+ {
1326
+ "internalType": "NftId",
1327
+ "name": "policyNftId",
1328
+ "type": "uint96"
1329
+ },
1330
+ {
1331
+ "internalType": "StateId",
1332
+ "name": "newState",
1333
+ "type": "uint8"
1334
+ }
1335
+ ],
1336
+ "name": "updatePolicyState",
1337
+ "outputs": [],
1338
+ "stateMutability": "nonpayable",
1339
+ "type": "function"
1340
+ },
629
1341
  {
630
1342
  "inputs": [
631
1343
  {
@@ -706,6 +1418,11 @@
706
1418
  "name": "isIntercepting",
707
1419
  "type": "bool"
708
1420
  },
1421
+ {
1422
+ "internalType": "bool",
1423
+ "name": "isConfirmingApplication",
1424
+ "type": "bool"
1425
+ },
709
1426
  {
710
1427
  "internalType": "address",
711
1428
  "name": "wallet",
@@ -744,6 +1461,234 @@
744
1461
  "outputs": [],
745
1462
  "stateMutability": "nonpayable",
746
1463
  "type": "function"
1464
+ },
1465
+ {
1466
+ "inputs": [
1467
+ {
1468
+ "internalType": "NftId",
1469
+ "name": "productNftId",
1470
+ "type": "uint96"
1471
+ },
1472
+ {
1473
+ "components": [
1474
+ {
1475
+ "internalType": "contract IERC20Metadata",
1476
+ "name": "token",
1477
+ "type": "address"
1478
+ },
1479
+ {
1480
+ "internalType": "contract TokenHandler",
1481
+ "name": "tokenHandler",
1482
+ "type": "address"
1483
+ },
1484
+ {
1485
+ "internalType": "NftId",
1486
+ "name": "distributionNftId",
1487
+ "type": "uint96"
1488
+ },
1489
+ {
1490
+ "internalType": "NftId",
1491
+ "name": "poolNftId",
1492
+ "type": "uint96"
1493
+ },
1494
+ {
1495
+ "components": [
1496
+ {
1497
+ "internalType": "UFixed",
1498
+ "name": "fractionalFee",
1499
+ "type": "uint256"
1500
+ },
1501
+ {
1502
+ "internalType": "uint256",
1503
+ "name": "fixedFee",
1504
+ "type": "uint256"
1505
+ }
1506
+ ],
1507
+ "internalType": "struct Fee",
1508
+ "name": "distributionFee",
1509
+ "type": "tuple"
1510
+ },
1511
+ {
1512
+ "components": [
1513
+ {
1514
+ "internalType": "UFixed",
1515
+ "name": "fractionalFee",
1516
+ "type": "uint256"
1517
+ },
1518
+ {
1519
+ "internalType": "uint256",
1520
+ "name": "fixedFee",
1521
+ "type": "uint256"
1522
+ }
1523
+ ],
1524
+ "internalType": "struct Fee",
1525
+ "name": "productFee",
1526
+ "type": "tuple"
1527
+ },
1528
+ {
1529
+ "components": [
1530
+ {
1531
+ "internalType": "UFixed",
1532
+ "name": "fractionalFee",
1533
+ "type": "uint256"
1534
+ },
1535
+ {
1536
+ "internalType": "uint256",
1537
+ "name": "fixedFee",
1538
+ "type": "uint256"
1539
+ }
1540
+ ],
1541
+ "internalType": "struct Fee",
1542
+ "name": "processingFee",
1543
+ "type": "tuple"
1544
+ },
1545
+ {
1546
+ "components": [
1547
+ {
1548
+ "internalType": "UFixed",
1549
+ "name": "fractionalFee",
1550
+ "type": "uint256"
1551
+ },
1552
+ {
1553
+ "internalType": "uint256",
1554
+ "name": "fixedFee",
1555
+ "type": "uint256"
1556
+ }
1557
+ ],
1558
+ "internalType": "struct Fee",
1559
+ "name": "poolFee",
1560
+ "type": "tuple"
1561
+ },
1562
+ {
1563
+ "components": [
1564
+ {
1565
+ "internalType": "UFixed",
1566
+ "name": "fractionalFee",
1567
+ "type": "uint256"
1568
+ },
1569
+ {
1570
+ "internalType": "uint256",
1571
+ "name": "fixedFee",
1572
+ "type": "uint256"
1573
+ }
1574
+ ],
1575
+ "internalType": "struct Fee",
1576
+ "name": "stakingFee",
1577
+ "type": "tuple"
1578
+ },
1579
+ {
1580
+ "components": [
1581
+ {
1582
+ "internalType": "UFixed",
1583
+ "name": "fractionalFee",
1584
+ "type": "uint256"
1585
+ },
1586
+ {
1587
+ "internalType": "uint256",
1588
+ "name": "fixedFee",
1589
+ "type": "uint256"
1590
+ }
1591
+ ],
1592
+ "internalType": "struct Fee",
1593
+ "name": "performanceFee",
1594
+ "type": "tuple"
1595
+ },
1596
+ {
1597
+ "internalType": "bool",
1598
+ "name": "isIntercepting",
1599
+ "type": "bool"
1600
+ },
1601
+ {
1602
+ "internalType": "address",
1603
+ "name": "wallet",
1604
+ "type": "address"
1605
+ }
1606
+ ],
1607
+ "internalType": "struct ISetup.ProductSetupInfo",
1608
+ "name": "setup",
1609
+ "type": "tuple"
1610
+ },
1611
+ {
1612
+ "internalType": "StateId",
1613
+ "name": "newState",
1614
+ "type": "uint8"
1615
+ }
1616
+ ],
1617
+ "name": "updateProductSetup",
1618
+ "outputs": [],
1619
+ "stateMutability": "nonpayable",
1620
+ "type": "function"
1621
+ },
1622
+ {
1623
+ "inputs": [
1624
+ {
1625
+ "internalType": "NftId",
1626
+ "name": "productNftId",
1627
+ "type": "uint96"
1628
+ },
1629
+ {
1630
+ "internalType": "StateId",
1631
+ "name": "newState",
1632
+ "type": "uint8"
1633
+ }
1634
+ ],
1635
+ "name": "updateProductSetupState",
1636
+ "outputs": [],
1637
+ "stateMutability": "nonpayable",
1638
+ "type": "function"
1639
+ },
1640
+ {
1641
+ "inputs": [
1642
+ {
1643
+ "internalType": "RiskId",
1644
+ "name": "riskId",
1645
+ "type": "bytes8"
1646
+ },
1647
+ {
1648
+ "components": [
1649
+ {
1650
+ "internalType": "NftId",
1651
+ "name": "productNftId",
1652
+ "type": "uint96"
1653
+ },
1654
+ {
1655
+ "internalType": "bytes",
1656
+ "name": "data",
1657
+ "type": "bytes"
1658
+ }
1659
+ ],
1660
+ "internalType": "struct IRisk.RiskInfo",
1661
+ "name": "risk",
1662
+ "type": "tuple"
1663
+ },
1664
+ {
1665
+ "internalType": "StateId",
1666
+ "name": "newState",
1667
+ "type": "uint8"
1668
+ }
1669
+ ],
1670
+ "name": "updateRisk",
1671
+ "outputs": [],
1672
+ "stateMutability": "nonpayable",
1673
+ "type": "function"
1674
+ },
1675
+ {
1676
+ "inputs": [
1677
+ {
1678
+ "internalType": "RiskId",
1679
+ "name": "riskId",
1680
+ "type": "bytes8"
1681
+ },
1682
+ {
1683
+ "internalType": "StateId",
1684
+ "name": "newState",
1685
+ "type": "uint8"
1686
+ }
1687
+ ],
1688
+ "name": "updateRiskState",
1689
+ "outputs": [],
1690
+ "stateMutability": "nonpayable",
1691
+ "type": "function"
747
1692
  }
748
1693
  ],
749
1694
  "bytecode": "0x",