@etherisc/gif-next 0.0.2-c96f882-016 → 0.0.2-ca9d515-311

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/README.md +63 -1
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +139 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +149 -15
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +101 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +28 -2
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  13. package/artifacts/contracts/components/Pool.sol/Pool.json +181 -16
  14. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  15. package/artifacts/contracts/components/Product.sol/Product.json +157 -56
  16. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  35. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  37. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  39. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  40. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  41. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  43. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  44. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +74 -3
  45. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1395 -22
  48. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +6 -1
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +208 -155
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +57 -47
  56. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +177 -38
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +341 -57
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +135 -15
  64. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  66. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +40 -0
  68. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  72. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  74. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  79. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  81. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +923 -0
  84. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +440 -0
  86. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  87. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +18 -18
  88. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +684 -0
  90. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +428 -0
  92. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  94. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  98. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +9 -71
  100. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -232
  102. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +984 -0
  104. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  106. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +718 -0
  108. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +428 -0
  110. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +768 -0
  112. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  114. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +23 -105
  117. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  118. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -19
  119. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  120. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  121. package/artifacts/contracts/registry/Registry.sol/Registry.json +70 -145
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  123. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -29
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  125. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +44 -35
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  128. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  131. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  133. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  134. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  135. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  137. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  138. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  139. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  140. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +4 -4
  141. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  143. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  145. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  149. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  151. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  152. package/artifacts/contracts/test/TestService.sol/TestService.json +11 -11
  153. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  154. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  156. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  157. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  158. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  161. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  163. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  165. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  166. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  172. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  174. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  179. package/contracts/components/BaseComponent.sol +57 -11
  180. package/contracts/components/Distribution.sol +15 -18
  181. package/contracts/components/IBaseComponent.sol +7 -0
  182. package/contracts/components/IDistributionComponent.sol +1 -0
  183. package/contracts/components/IPoolComponent.sol +5 -1
  184. package/contracts/components/Pool.sol +43 -31
  185. package/contracts/components/Product.sol +42 -47
  186. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  187. package/contracts/instance/BundleManager.sol +129 -0
  188. package/contracts/instance/Cloneable.sol +46 -0
  189. package/contracts/instance/IInstance.sol +39 -7
  190. package/contracts/instance/IInstanceBase.sol +26 -0
  191. package/contracts/instance/IInstanceService.sol +5 -3
  192. package/contracts/instance/Instance.sol +55 -32
  193. package/contracts/instance/InstanceAccessManager.sol +6 -6
  194. package/contracts/instance/InstanceBase.sol +41 -0
  195. package/contracts/instance/InstanceReader.sol +26 -1
  196. package/contracts/instance/InstanceService.sol +156 -33
  197. package/contracts/instance/InstanceServiceManager.sol +6 -5
  198. package/contracts/instance/ObjectManager.sol +101 -0
  199. package/contracts/instance/base/ComponentServiceBase.sol +42 -19
  200. package/contracts/instance/module/IBundle.sol +1 -0
  201. package/contracts/instance/module/ISetup.sol +3 -0
  202. package/contracts/instance/service/BundleService.sol +260 -0
  203. package/contracts/instance/service/BundleServiceManager.sol +54 -0
  204. package/contracts/instance/service/DistributionService.sol +118 -0
  205. package/contracts/instance/service/DistributionServiceManager.sol +54 -0
  206. package/contracts/instance/service/IBundleService.sol +45 -0
  207. package/contracts/instance/service/IPolicyService.sol +87 -0
  208. package/contracts/instance/service/IPoolService.sol +6 -23
  209. package/contracts/instance/service/IProductService.sol +6 -73
  210. package/contracts/instance/service/PolicyService.sol +508 -0
  211. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  212. package/contracts/instance/service/PoolService.sol +124 -0
  213. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  214. package/contracts/instance/service/ProductService.sol +173 -0
  215. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  216. package/contracts/registry/IRegistry.sol +8 -17
  217. package/contracts/registry/IRegistryService.sol +27 -12
  218. package/contracts/registry/Registry.sol +18 -42
  219. package/contracts/registry/RegistryService.sol +30 -116
  220. package/contracts/registry/RegistryServiceManager.sol +21 -5
  221. package/contracts/registry/TokenRegistry.sol +111 -0
  222. package/contracts/shared/ERC165.sol +6 -2
  223. package/contracts/shared/NftOwnable.sol +2 -4
  224. package/contracts/shared/Registerable.sol +1 -0
  225. package/contracts/shared/Service.sol +1 -0
  226. package/contracts/types/NftIdSet.sol +26 -24
  227. package/contracts/types/RoleId.sol +10 -0
  228. package/contracts/types/StateId.sol +4 -0
  229. package/package.json +1 -1
  230. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  231. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  232. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  233. package/contracts/instance/AccessManagedSimple.sol +0 -122
  234. package/contracts/instance/AccessManagerSimple.sol +0 -692
@@ -3,6 +3,249 @@
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
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "NftId",
176
+ "name": "bundleNftId",
177
+ "type": "uint96"
178
+ },
179
+ {
180
+ "components": [
181
+ {
182
+ "internalType": "NftId",
183
+ "name": "poolNftId",
184
+ "type": "uint96"
185
+ },
186
+ {
187
+ "components": [
188
+ {
189
+ "internalType": "UFixed",
190
+ "name": "fractionalFee",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "fixedFee",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "internalType": "struct Fee",
200
+ "name": "fee",
201
+ "type": "tuple"
202
+ },
203
+ {
204
+ "internalType": "bytes",
205
+ "name": "filter",
206
+ "type": "bytes"
207
+ },
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "capitalAmount",
211
+ "type": "uint256"
212
+ },
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "lockedAmount",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "internalType": "uint256",
220
+ "name": "balanceAmount",
221
+ "type": "uint256"
222
+ },
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "lifetime",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "internalType": "Timestamp",
230
+ "name": "expiredAt",
231
+ "type": "uint40"
232
+ },
233
+ {
234
+ "internalType": "Timestamp",
235
+ "name": "closedAt",
236
+ "type": "uint40"
237
+ }
238
+ ],
239
+ "internalType": "struct IBundle.BundleInfo",
240
+ "name": "bundle",
241
+ "type": "tuple"
242
+ }
243
+ ],
244
+ "name": "createBundle",
245
+ "outputs": [],
246
+ "stateMutability": "nonpayable",
247
+ "type": "function"
248
+ },
6
249
  {
7
250
  "inputs": [
8
251
  {
@@ -64,7 +307,107 @@
64
307
  "inputs": [
65
308
  {
66
309
  "internalType": "NftId",
67
- "name": "distributionNftId",
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
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "NftId",
410
+ "name": "poolNftId",
68
411
  "type": "uint96"
69
412
  },
70
413
  {
@@ -140,6 +483,11 @@
140
483
  "name": "isIntercepting",
141
484
  "type": "bool"
142
485
  },
486
+ {
487
+ "internalType": "bool",
488
+ "name": "isConfirmingApplication",
489
+ "type": "bool"
490
+ },
143
491
  {
144
492
  "internalType": "address",
145
493
  "name": "wallet",
@@ -286,6 +634,16 @@
286
634
  "internalType": "struct Fee",
287
635
  "name": "performanceFee",
288
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"
289
647
  }
290
648
  ],
291
649
  "internalType": "struct ISetup.ProductSetupInfo",
@@ -299,26 +657,49 @@
299
657
  "type": "function"
300
658
  },
301
659
  {
302
- "inputs": [],
303
- "name": "getComponentOwnerService",
304
- "outputs": [
660
+ "inputs": [
305
661
  {
306
- "internalType": "contract IComponentOwnerService",
307
- "name": "",
308
- "type": "address"
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"
309
682
  }
310
683
  ],
311
- "stateMutability": "view",
684
+ "name": "createRisk",
685
+ "outputs": [],
686
+ "stateMutability": "nonpayable",
312
687
  "type": "function"
313
688
  },
314
689
  {
315
- "inputs": [],
316
- "name": "getInstanceReader",
690
+ "inputs": [
691
+ {
692
+ "internalType": "Key32",
693
+ "name": "key",
694
+ "type": "bytes32"
695
+ }
696
+ ],
697
+ "name": "exists",
317
698
  "outputs": [
318
699
  {
319
- "internalType": "contract InstanceReader",
700
+ "internalType": "bool",
320
701
  "name": "",
321
- "type": "address"
702
+ "type": "bool"
322
703
  }
323
704
  ],
324
705
  "stateMutability": "view",
@@ -327,20 +708,1012 @@
327
708
  {
328
709
  "inputs": [
329
710
  {
330
- "internalType": "bytes4",
331
- "name": "interfaceId",
332
- "type": "bytes4"
711
+ "internalType": "Key32",
712
+ "name": "key",
713
+ "type": "bytes32"
333
714
  }
334
715
  ],
335
- "name": "supportsInterface",
716
+ "name": "get",
336
717
  "outputs": [
337
718
  {
338
- "internalType": "bool",
339
- "name": "",
340
- "type": "bool"
341
- }
342
- ],
343
- "stateMutability": "view",
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"
761
+ }
762
+ ],
763
+ "stateMutability": "view",
764
+ "type": "function"
765
+ },
766
+ {
767
+ "inputs": [],
768
+ "name": "getBundleManager",
769
+ "outputs": [
770
+ {
771
+ "internalType": "contract BundleManager",
772
+ "name": "",
773
+ "type": "address"
774
+ }
775
+ ],
776
+ "stateMutability": "view",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [],
781
+ "name": "getBundleService",
782
+ "outputs": [
783
+ {
784
+ "internalType": "contract IBundleService",
785
+ "name": "",
786
+ "type": "address"
787
+ }
788
+ ],
789
+ "stateMutability": "view",
790
+ "type": "function"
791
+ },
792
+ {
793
+ "inputs": [],
794
+ "name": "getComponentOwnerService",
795
+ "outputs": [
796
+ {
797
+ "internalType": "contract IComponentOwnerService",
798
+ "name": "",
799
+ "type": "address"
800
+ }
801
+ ],
802
+ "stateMutability": "view",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [
807
+ {
808
+ "internalType": "Key32",
809
+ "name": "key",
810
+ "type": "bytes32"
811
+ }
812
+ ],
813
+ "name": "getData",
814
+ "outputs": [
815
+ {
816
+ "internalType": "bytes",
817
+ "name": "data",
818
+ "type": "bytes"
819
+ }
820
+ ],
821
+ "stateMutability": "view",
822
+ "type": "function"
823
+ },
824
+ {
825
+ "inputs": [],
826
+ "name": "getDistributionService",
827
+ "outputs": [
828
+ {
829
+ "internalType": "contract IDistributionService",
830
+ "name": "",
831
+ "type": "address"
832
+ }
833
+ ],
834
+ "stateMutability": "view",
835
+ "type": "function"
836
+ },
837
+ {
838
+ "inputs": [
839
+ {
840
+ "internalType": "ObjectType",
841
+ "name": "objectType",
842
+ "type": "uint8"
843
+ }
844
+ ],
845
+ "name": "getInitialState",
846
+ "outputs": [
847
+ {
848
+ "internalType": "StateId",
849
+ "name": "",
850
+ "type": "uint8"
851
+ }
852
+ ],
853
+ "stateMutability": "view",
854
+ "type": "function"
855
+ },
856
+ {
857
+ "inputs": [],
858
+ "name": "getInstanceReader",
859
+ "outputs": [
860
+ {
861
+ "internalType": "contract InstanceReader",
862
+ "name": "",
863
+ "type": "address"
864
+ }
865
+ ],
866
+ "stateMutability": "view",
867
+ "type": "function"
868
+ },
869
+ {
870
+ "inputs": [
871
+ {
872
+ "internalType": "Key32",
873
+ "name": "key",
874
+ "type": "bytes32"
875
+ }
876
+ ],
877
+ "name": "getMetadata",
878
+ "outputs": [
879
+ {
880
+ "components": [
881
+ {
882
+ "internalType": "ObjectType",
883
+ "name": "objectType",
884
+ "type": "uint8"
885
+ },
886
+ {
887
+ "internalType": "StateId",
888
+ "name": "state",
889
+ "type": "uint8"
890
+ },
891
+ {
892
+ "internalType": "address",
893
+ "name": "updatedBy",
894
+ "type": "address"
895
+ },
896
+ {
897
+ "internalType": "Blocknumber",
898
+ "name": "updatedIn",
899
+ "type": "uint32"
900
+ },
901
+ {
902
+ "internalType": "Blocknumber",
903
+ "name": "createdIn",
904
+ "type": "uint32"
905
+ }
906
+ ],
907
+ "internalType": "struct IKeyValueStore.Metadata",
908
+ "name": "metadata",
909
+ "type": "tuple"
910
+ }
911
+ ],
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [],
917
+ "name": "getPolicyService",
918
+ "outputs": [
919
+ {
920
+ "internalType": "contract IPolicyService",
921
+ "name": "",
922
+ "type": "address"
923
+ }
924
+ ],
925
+ "stateMutability": "view",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [],
930
+ "name": "getPoolService",
931
+ "outputs": [
932
+ {
933
+ "internalType": "contract IPoolService",
934
+ "name": "",
935
+ "type": "address"
936
+ }
937
+ ],
938
+ "stateMutability": "view",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [],
943
+ "name": "getProductService",
944
+ "outputs": [
945
+ {
946
+ "internalType": "contract IProductService",
947
+ "name": "",
948
+ "type": "address"
949
+ }
950
+ ],
951
+ "stateMutability": "view",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [
956
+ {
957
+ "internalType": "Key32",
958
+ "name": "key",
959
+ "type": "bytes32"
960
+ }
961
+ ],
962
+ "name": "getState",
963
+ "outputs": [
964
+ {
965
+ "internalType": "StateId",
966
+ "name": "state",
967
+ "type": "uint8"
968
+ }
969
+ ],
970
+ "stateMutability": "view",
971
+ "type": "function"
972
+ },
973
+ {
974
+ "inputs": [
975
+ {
976
+ "internalType": "ObjectType",
977
+ "name": "objectType",
978
+ "type": "uint8"
979
+ }
980
+ ],
981
+ "name": "hasLifecycle",
982
+ "outputs": [
983
+ {
984
+ "internalType": "bool",
985
+ "name": "",
986
+ "type": "bool"
987
+ }
988
+ ],
989
+ "stateMutability": "view",
990
+ "type": "function"
991
+ },
992
+ {
993
+ "inputs": [
994
+ {
995
+ "internalType": "ObjectType",
996
+ "name": "objectType",
997
+ "type": "uint8"
998
+ },
999
+ {
1000
+ "internalType": "StateId",
1001
+ "name": "fromId",
1002
+ "type": "uint8"
1003
+ },
1004
+ {
1005
+ "internalType": "StateId",
1006
+ "name": "toId",
1007
+ "type": "uint8"
1008
+ }
1009
+ ],
1010
+ "name": "isValidTransition",
1011
+ "outputs": [
1012
+ {
1013
+ "internalType": "bool",
1014
+ "name": "",
1015
+ "type": "bool"
1016
+ }
1017
+ ],
1018
+ "stateMutability": "view",
1019
+ "type": "function"
1020
+ },
1021
+ {
1022
+ "inputs": [
1023
+ {
1024
+ "internalType": "bytes4",
1025
+ "name": "interfaceId",
1026
+ "type": "bytes4"
1027
+ }
1028
+ ],
1029
+ "name": "supportsInterface",
1030
+ "outputs": [
1031
+ {
1032
+ "internalType": "bool",
1033
+ "name": "",
1034
+ "type": "bool"
1035
+ }
1036
+ ],
1037
+ "stateMutability": "view",
1038
+ "type": "function"
1039
+ },
1040
+ {
1041
+ "inputs": [
1042
+ {
1043
+ "internalType": "ObjectType",
1044
+ "name": "objectType",
1045
+ "type": "uint8"
1046
+ },
1047
+ {
1048
+ "internalType": "KeyId",
1049
+ "name": "id",
1050
+ "type": "bytes31"
1051
+ }
1052
+ ],
1053
+ "name": "toKey32",
1054
+ "outputs": [
1055
+ {
1056
+ "internalType": "Key32",
1057
+ "name": "",
1058
+ "type": "bytes32"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "pure",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "NftId",
1068
+ "name": "bundleNftId",
1069
+ "type": "uint96"
1070
+ },
1071
+ {
1072
+ "components": [
1073
+ {
1074
+ "internalType": "NftId",
1075
+ "name": "poolNftId",
1076
+ "type": "uint96"
1077
+ },
1078
+ {
1079
+ "components": [
1080
+ {
1081
+ "internalType": "UFixed",
1082
+ "name": "fractionalFee",
1083
+ "type": "uint256"
1084
+ },
1085
+ {
1086
+ "internalType": "uint256",
1087
+ "name": "fixedFee",
1088
+ "type": "uint256"
1089
+ }
1090
+ ],
1091
+ "internalType": "struct Fee",
1092
+ "name": "fee",
1093
+ "type": "tuple"
1094
+ },
1095
+ {
1096
+ "internalType": "bytes",
1097
+ "name": "filter",
1098
+ "type": "bytes"
1099
+ },
1100
+ {
1101
+ "internalType": "uint256",
1102
+ "name": "capitalAmount",
1103
+ "type": "uint256"
1104
+ },
1105
+ {
1106
+ "internalType": "uint256",
1107
+ "name": "lockedAmount",
1108
+ "type": "uint256"
1109
+ },
1110
+ {
1111
+ "internalType": "uint256",
1112
+ "name": "balanceAmount",
1113
+ "type": "uint256"
1114
+ },
1115
+ {
1116
+ "internalType": "uint256",
1117
+ "name": "lifetime",
1118
+ "type": "uint256"
1119
+ },
1120
+ {
1121
+ "internalType": "Timestamp",
1122
+ "name": "expiredAt",
1123
+ "type": "uint40"
1124
+ },
1125
+ {
1126
+ "internalType": "Timestamp",
1127
+ "name": "closedAt",
1128
+ "type": "uint40"
1129
+ }
1130
+ ],
1131
+ "internalType": "struct IBundle.BundleInfo",
1132
+ "name": "bundle",
1133
+ "type": "tuple"
1134
+ },
1135
+ {
1136
+ "internalType": "StateId",
1137
+ "name": "newState",
1138
+ "type": "uint8"
1139
+ }
1140
+ ],
1141
+ "name": "updateBundle",
1142
+ "outputs": [],
1143
+ "stateMutability": "nonpayable",
1144
+ "type": "function"
1145
+ },
1146
+ {
1147
+ "inputs": [
1148
+ {
1149
+ "internalType": "NftId",
1150
+ "name": "bundleNftId",
1151
+ "type": "uint96"
1152
+ },
1153
+ {
1154
+ "internalType": "StateId",
1155
+ "name": "newState",
1156
+ "type": "uint8"
1157
+ }
1158
+ ],
1159
+ "name": "updateBundleState",
1160
+ "outputs": [],
1161
+ "stateMutability": "nonpayable",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [
1166
+ {
1167
+ "internalType": "NftId",
1168
+ "name": "distributionNftId",
1169
+ "type": "uint96"
1170
+ },
1171
+ {
1172
+ "components": [
1173
+ {
1174
+ "internalType": "NftId",
1175
+ "name": "productNftId",
1176
+ "type": "uint96"
1177
+ },
1178
+ {
1179
+ "internalType": "contract TokenHandler",
1180
+ "name": "tokenHandler",
1181
+ "type": "address"
1182
+ },
1183
+ {
1184
+ "components": [
1185
+ {
1186
+ "internalType": "UFixed",
1187
+ "name": "fractionalFee",
1188
+ "type": "uint256"
1189
+ },
1190
+ {
1191
+ "internalType": "uint256",
1192
+ "name": "fixedFee",
1193
+ "type": "uint256"
1194
+ }
1195
+ ],
1196
+ "internalType": "struct Fee",
1197
+ "name": "distributionFee",
1198
+ "type": "tuple"
1199
+ },
1200
+ {
1201
+ "internalType": "bool",
1202
+ "name": "isIntercepting",
1203
+ "type": "bool"
1204
+ },
1205
+ {
1206
+ "internalType": "address",
1207
+ "name": "wallet",
1208
+ "type": "address"
1209
+ }
1210
+ ],
1211
+ "internalType": "struct ISetup.DistributionSetupInfo",
1212
+ "name": "setup",
1213
+ "type": "tuple"
1214
+ },
1215
+ {
1216
+ "internalType": "StateId",
1217
+ "name": "newState",
1218
+ "type": "uint8"
1219
+ }
1220
+ ],
1221
+ "name": "updateDistributionSetup",
1222
+ "outputs": [],
1223
+ "stateMutability": "nonpayable",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [
1228
+ {
1229
+ "internalType": "NftId",
1230
+ "name": "distributionNftId",
1231
+ "type": "uint96"
1232
+ },
1233
+ {
1234
+ "internalType": "StateId",
1235
+ "name": "newState",
1236
+ "type": "uint8"
1237
+ }
1238
+ ],
1239
+ "name": "updateDistributionSetupState",
1240
+ "outputs": [],
1241
+ "stateMutability": "nonpayable",
1242
+ "type": "function"
1243
+ },
1244
+ {
1245
+ "inputs": [
1246
+ {
1247
+ "internalType": "NftId",
1248
+ "name": "policyNftId",
1249
+ "type": "uint96"
1250
+ },
1251
+ {
1252
+ "components": [
1253
+ {
1254
+ "internalType": "NftId",
1255
+ "name": "productNftId",
1256
+ "type": "uint96"
1257
+ },
1258
+ {
1259
+ "internalType": "NftId",
1260
+ "name": "bundleNftId",
1261
+ "type": "uint96"
1262
+ },
1263
+ {
1264
+ "internalType": "ReferralId",
1265
+ "name": "referralId",
1266
+ "type": "bytes8"
1267
+ },
1268
+ {
1269
+ "internalType": "RiskId",
1270
+ "name": "riskId",
1271
+ "type": "bytes8"
1272
+ },
1273
+ {
1274
+ "internalType": "uint256",
1275
+ "name": "sumInsuredAmount",
1276
+ "type": "uint256"
1277
+ },
1278
+ {
1279
+ "internalType": "uint256",
1280
+ "name": "premiumAmount",
1281
+ "type": "uint256"
1282
+ },
1283
+ {
1284
+ "internalType": "uint256",
1285
+ "name": "premiumPaidAmount",
1286
+ "type": "uint256"
1287
+ },
1288
+ {
1289
+ "internalType": "uint256",
1290
+ "name": "lifetime",
1291
+ "type": "uint256"
1292
+ },
1293
+ {
1294
+ "internalType": "bytes",
1295
+ "name": "applicationData",
1296
+ "type": "bytes"
1297
+ },
1298
+ {
1299
+ "internalType": "bytes",
1300
+ "name": "policyData",
1301
+ "type": "bytes"
1302
+ },
1303
+ {
1304
+ "internalType": "uint16",
1305
+ "name": "claimsCount",
1306
+ "type": "uint16"
1307
+ },
1308
+ {
1309
+ "internalType": "uint16",
1310
+ "name": "openClaimsCount",
1311
+ "type": "uint16"
1312
+ },
1313
+ {
1314
+ "internalType": "uint256",
1315
+ "name": "payoutAmount",
1316
+ "type": "uint256"
1317
+ },
1318
+ {
1319
+ "internalType": "Timestamp",
1320
+ "name": "activatedAt",
1321
+ "type": "uint40"
1322
+ },
1323
+ {
1324
+ "internalType": "Timestamp",
1325
+ "name": "expiredAt",
1326
+ "type": "uint40"
1327
+ },
1328
+ {
1329
+ "internalType": "Timestamp",
1330
+ "name": "closedAt",
1331
+ "type": "uint40"
1332
+ }
1333
+ ],
1334
+ "internalType": "struct IPolicy.PolicyInfo",
1335
+ "name": "policy",
1336
+ "type": "tuple"
1337
+ },
1338
+ {
1339
+ "internalType": "StateId",
1340
+ "name": "newState",
1341
+ "type": "uint8"
1342
+ }
1343
+ ],
1344
+ "name": "updatePolicy",
1345
+ "outputs": [],
1346
+ "stateMutability": "nonpayable",
1347
+ "type": "function"
1348
+ },
1349
+ {
1350
+ "inputs": [
1351
+ {
1352
+ "internalType": "NftId",
1353
+ "name": "policyNftId",
1354
+ "type": "uint96"
1355
+ },
1356
+ {
1357
+ "internalType": "StateId",
1358
+ "name": "newState",
1359
+ "type": "uint8"
1360
+ }
1361
+ ],
1362
+ "name": "updatePolicyState",
1363
+ "outputs": [],
1364
+ "stateMutability": "nonpayable",
1365
+ "type": "function"
1366
+ },
1367
+ {
1368
+ "inputs": [
1369
+ {
1370
+ "internalType": "NftId",
1371
+ "name": "poolNftId",
1372
+ "type": "uint96"
1373
+ },
1374
+ {
1375
+ "components": [
1376
+ {
1377
+ "internalType": "NftId",
1378
+ "name": "productNftId",
1379
+ "type": "uint96"
1380
+ },
1381
+ {
1382
+ "internalType": "contract TokenHandler",
1383
+ "name": "tokenHandler",
1384
+ "type": "address"
1385
+ },
1386
+ {
1387
+ "internalType": "UFixed",
1388
+ "name": "collateralizationLevel",
1389
+ "type": "uint256"
1390
+ },
1391
+ {
1392
+ "components": [
1393
+ {
1394
+ "internalType": "UFixed",
1395
+ "name": "fractionalFee",
1396
+ "type": "uint256"
1397
+ },
1398
+ {
1399
+ "internalType": "uint256",
1400
+ "name": "fixedFee",
1401
+ "type": "uint256"
1402
+ }
1403
+ ],
1404
+ "internalType": "struct Fee",
1405
+ "name": "poolFee",
1406
+ "type": "tuple"
1407
+ },
1408
+ {
1409
+ "components": [
1410
+ {
1411
+ "internalType": "UFixed",
1412
+ "name": "fractionalFee",
1413
+ "type": "uint256"
1414
+ },
1415
+ {
1416
+ "internalType": "uint256",
1417
+ "name": "fixedFee",
1418
+ "type": "uint256"
1419
+ }
1420
+ ],
1421
+ "internalType": "struct Fee",
1422
+ "name": "stakingFee",
1423
+ "type": "tuple"
1424
+ },
1425
+ {
1426
+ "components": [
1427
+ {
1428
+ "internalType": "UFixed",
1429
+ "name": "fractionalFee",
1430
+ "type": "uint256"
1431
+ },
1432
+ {
1433
+ "internalType": "uint256",
1434
+ "name": "fixedFee",
1435
+ "type": "uint256"
1436
+ }
1437
+ ],
1438
+ "internalType": "struct Fee",
1439
+ "name": "performanceFee",
1440
+ "type": "tuple"
1441
+ },
1442
+ {
1443
+ "internalType": "bool",
1444
+ "name": "isIntercepting",
1445
+ "type": "bool"
1446
+ },
1447
+ {
1448
+ "internalType": "bool",
1449
+ "name": "isConfirmingApplication",
1450
+ "type": "bool"
1451
+ },
1452
+ {
1453
+ "internalType": "address",
1454
+ "name": "wallet",
1455
+ "type": "address"
1456
+ }
1457
+ ],
1458
+ "internalType": "struct ISetup.PoolSetupInfo",
1459
+ "name": "setup",
1460
+ "type": "tuple"
1461
+ },
1462
+ {
1463
+ "internalType": "StateId",
1464
+ "name": "newState",
1465
+ "type": "uint8"
1466
+ }
1467
+ ],
1468
+ "name": "updatePoolSetup",
1469
+ "outputs": [],
1470
+ "stateMutability": "nonpayable",
1471
+ "type": "function"
1472
+ },
1473
+ {
1474
+ "inputs": [
1475
+ {
1476
+ "internalType": "NftId",
1477
+ "name": "poolNftId",
1478
+ "type": "uint96"
1479
+ },
1480
+ {
1481
+ "internalType": "StateId",
1482
+ "name": "newState",
1483
+ "type": "uint8"
1484
+ }
1485
+ ],
1486
+ "name": "updatePoolSetupState",
1487
+ "outputs": [],
1488
+ "stateMutability": "nonpayable",
1489
+ "type": "function"
1490
+ },
1491
+ {
1492
+ "inputs": [
1493
+ {
1494
+ "internalType": "NftId",
1495
+ "name": "productNftId",
1496
+ "type": "uint96"
1497
+ },
1498
+ {
1499
+ "components": [
1500
+ {
1501
+ "internalType": "contract IERC20Metadata",
1502
+ "name": "token",
1503
+ "type": "address"
1504
+ },
1505
+ {
1506
+ "internalType": "contract TokenHandler",
1507
+ "name": "tokenHandler",
1508
+ "type": "address"
1509
+ },
1510
+ {
1511
+ "internalType": "NftId",
1512
+ "name": "distributionNftId",
1513
+ "type": "uint96"
1514
+ },
1515
+ {
1516
+ "internalType": "NftId",
1517
+ "name": "poolNftId",
1518
+ "type": "uint96"
1519
+ },
1520
+ {
1521
+ "components": [
1522
+ {
1523
+ "internalType": "UFixed",
1524
+ "name": "fractionalFee",
1525
+ "type": "uint256"
1526
+ },
1527
+ {
1528
+ "internalType": "uint256",
1529
+ "name": "fixedFee",
1530
+ "type": "uint256"
1531
+ }
1532
+ ],
1533
+ "internalType": "struct Fee",
1534
+ "name": "distributionFee",
1535
+ "type": "tuple"
1536
+ },
1537
+ {
1538
+ "components": [
1539
+ {
1540
+ "internalType": "UFixed",
1541
+ "name": "fractionalFee",
1542
+ "type": "uint256"
1543
+ },
1544
+ {
1545
+ "internalType": "uint256",
1546
+ "name": "fixedFee",
1547
+ "type": "uint256"
1548
+ }
1549
+ ],
1550
+ "internalType": "struct Fee",
1551
+ "name": "productFee",
1552
+ "type": "tuple"
1553
+ },
1554
+ {
1555
+ "components": [
1556
+ {
1557
+ "internalType": "UFixed",
1558
+ "name": "fractionalFee",
1559
+ "type": "uint256"
1560
+ },
1561
+ {
1562
+ "internalType": "uint256",
1563
+ "name": "fixedFee",
1564
+ "type": "uint256"
1565
+ }
1566
+ ],
1567
+ "internalType": "struct Fee",
1568
+ "name": "processingFee",
1569
+ "type": "tuple"
1570
+ },
1571
+ {
1572
+ "components": [
1573
+ {
1574
+ "internalType": "UFixed",
1575
+ "name": "fractionalFee",
1576
+ "type": "uint256"
1577
+ },
1578
+ {
1579
+ "internalType": "uint256",
1580
+ "name": "fixedFee",
1581
+ "type": "uint256"
1582
+ }
1583
+ ],
1584
+ "internalType": "struct Fee",
1585
+ "name": "poolFee",
1586
+ "type": "tuple"
1587
+ },
1588
+ {
1589
+ "components": [
1590
+ {
1591
+ "internalType": "UFixed",
1592
+ "name": "fractionalFee",
1593
+ "type": "uint256"
1594
+ },
1595
+ {
1596
+ "internalType": "uint256",
1597
+ "name": "fixedFee",
1598
+ "type": "uint256"
1599
+ }
1600
+ ],
1601
+ "internalType": "struct Fee",
1602
+ "name": "stakingFee",
1603
+ "type": "tuple"
1604
+ },
1605
+ {
1606
+ "components": [
1607
+ {
1608
+ "internalType": "UFixed",
1609
+ "name": "fractionalFee",
1610
+ "type": "uint256"
1611
+ },
1612
+ {
1613
+ "internalType": "uint256",
1614
+ "name": "fixedFee",
1615
+ "type": "uint256"
1616
+ }
1617
+ ],
1618
+ "internalType": "struct Fee",
1619
+ "name": "performanceFee",
1620
+ "type": "tuple"
1621
+ },
1622
+ {
1623
+ "internalType": "bool",
1624
+ "name": "isIntercepting",
1625
+ "type": "bool"
1626
+ },
1627
+ {
1628
+ "internalType": "address",
1629
+ "name": "wallet",
1630
+ "type": "address"
1631
+ }
1632
+ ],
1633
+ "internalType": "struct ISetup.ProductSetupInfo",
1634
+ "name": "setup",
1635
+ "type": "tuple"
1636
+ },
1637
+ {
1638
+ "internalType": "StateId",
1639
+ "name": "newState",
1640
+ "type": "uint8"
1641
+ }
1642
+ ],
1643
+ "name": "updateProductSetup",
1644
+ "outputs": [],
1645
+ "stateMutability": "nonpayable",
1646
+ "type": "function"
1647
+ },
1648
+ {
1649
+ "inputs": [
1650
+ {
1651
+ "internalType": "NftId",
1652
+ "name": "productNftId",
1653
+ "type": "uint96"
1654
+ },
1655
+ {
1656
+ "internalType": "StateId",
1657
+ "name": "newState",
1658
+ "type": "uint8"
1659
+ }
1660
+ ],
1661
+ "name": "updateProductSetupState",
1662
+ "outputs": [],
1663
+ "stateMutability": "nonpayable",
1664
+ "type": "function"
1665
+ },
1666
+ {
1667
+ "inputs": [
1668
+ {
1669
+ "internalType": "RiskId",
1670
+ "name": "riskId",
1671
+ "type": "bytes8"
1672
+ },
1673
+ {
1674
+ "components": [
1675
+ {
1676
+ "internalType": "NftId",
1677
+ "name": "productNftId",
1678
+ "type": "uint96"
1679
+ },
1680
+ {
1681
+ "internalType": "bytes",
1682
+ "name": "data",
1683
+ "type": "bytes"
1684
+ }
1685
+ ],
1686
+ "internalType": "struct IRisk.RiskInfo",
1687
+ "name": "risk",
1688
+ "type": "tuple"
1689
+ },
1690
+ {
1691
+ "internalType": "StateId",
1692
+ "name": "newState",
1693
+ "type": "uint8"
1694
+ }
1695
+ ],
1696
+ "name": "updateRisk",
1697
+ "outputs": [],
1698
+ "stateMutability": "nonpayable",
1699
+ "type": "function"
1700
+ },
1701
+ {
1702
+ "inputs": [
1703
+ {
1704
+ "internalType": "RiskId",
1705
+ "name": "riskId",
1706
+ "type": "bytes8"
1707
+ },
1708
+ {
1709
+ "internalType": "StateId",
1710
+ "name": "newState",
1711
+ "type": "uint8"
1712
+ }
1713
+ ],
1714
+ "name": "updateRiskState",
1715
+ "outputs": [],
1716
+ "stateMutability": "nonpayable",
344
1717
  "type": "function"
345
1718
  }
346
1719
  ],