@etherisc/gif-next 0.0.2-cff6256-424 → 0.0.2-d02cb80-460

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) 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 +142 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +164 -62
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +104 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -52
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +28 -2
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +193 -16
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +166 -58
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  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/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  37. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  38. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  39. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  40. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +788 -0
  41. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  42. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  43. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +1 -1
  44. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  45. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1373 -93
  46. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  47. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +448 -0
  48. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  49. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +108 -1
  50. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/Instance.sol/Instance.json +160 -641
  52. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  53. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +291 -143
  54. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +763 -0
  56. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  57. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +177 -38
  58. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  59. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +333 -67
  60. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  61. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +91 -23
  62. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +285 -0
  64. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  65. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +40 -0
  66. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  68. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  69. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +54 -22
  73. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  75. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  76. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +923 -0
  81. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +440 -0
  83. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +16 -16
  85. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  86. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +69 -26
  87. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +18 -18
  89. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +669 -0
  91. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  93. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +664 -0
  95. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +9 -71
  97. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +17 -232
  99. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +984 -0
  101. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +464 -0
  103. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  104. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +718 -0
  105. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +428 -0
  107. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +768 -0
  109. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  110. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +420 -0
  111. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  113. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +2 -110
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  115. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +94 -0
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  117. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/Registry.sol/Registry.json +35 -146
  119. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +76 -20
  121. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +26 -34
  123. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  124. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +12 -12
  125. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  126. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  127. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  128. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  129. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  133. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +2 -2
  137. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +1 -1
  138. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  139. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  140. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  141. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  143. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +4 -4
  145. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  147. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestService.sol/TestService.json +9 -9
  149. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  150. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  152. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  153. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  154. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  155. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  156. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  158. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  159. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  161. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  162. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  168. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  169. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  173. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  174. package/contracts/components/BaseComponent.sol +62 -8
  175. package/contracts/components/Distribution.sol +12 -15
  176. package/contracts/components/IBaseComponent.sol +7 -0
  177. package/contracts/components/IDistributionComponent.sol +0 -2
  178. package/contracts/components/IPoolComponent.sol +5 -1
  179. package/contracts/components/Pool.sol +42 -29
  180. package/contracts/components/Product.sol +41 -46
  181. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +23 -0
  182. package/contracts/instance/BundleManager.sol +129 -0
  183. package/contracts/instance/Cloneable.sol +46 -0
  184. package/contracts/instance/IInstance.sol +34 -7
  185. package/contracts/instance/IInstanceBase.sol +26 -0
  186. package/contracts/instance/IInstanceService.sol +15 -3
  187. package/contracts/instance/Instance.sol +57 -224
  188. package/contracts/instance/InstanceAccessManager.sol +95 -78
  189. package/contracts/instance/InstanceBase.sol +41 -0
  190. package/contracts/instance/InstanceReader.sol +26 -1
  191. package/contracts/instance/InstanceService.sol +222 -69
  192. package/contracts/instance/InstanceServiceManager.sol +6 -5
  193. package/contracts/instance/ObjectManager.sol +101 -0
  194. package/contracts/instance/base/ComponentServiceBase.sol +45 -12
  195. package/contracts/instance/module/IAccess.sol +27 -17
  196. package/contracts/instance/module/IBundle.sol +1 -0
  197. package/contracts/instance/module/ISetup.sol +3 -0
  198. package/contracts/instance/service/BundleService.sol +260 -0
  199. package/contracts/instance/service/BundleServiceManager.sol +54 -0
  200. package/contracts/instance/service/DistributionService.sol +43 -21
  201. package/contracts/instance/service/DistributionServiceManager.sol +6 -5
  202. package/contracts/instance/service/IBundleService.sol +45 -0
  203. package/contracts/instance/service/IPolicyService.sol +87 -0
  204. package/contracts/instance/service/IPoolService.sol +6 -23
  205. package/contracts/instance/service/IProductService.sol +6 -73
  206. package/contracts/instance/service/PolicyService.sol +508 -0
  207. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  208. package/contracts/instance/service/PoolService.sol +124 -0
  209. package/contracts/instance/service/PoolServiceManager.sol +54 -0
  210. package/contracts/instance/service/ProductService.sol +173 -0
  211. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  212. package/contracts/registry/IRegistry.sol +5 -18
  213. package/contracts/registry/IRegistryService.sol +28 -11
  214. package/contracts/registry/Registry.sol +4 -45
  215. package/contracts/registry/RegistryService.sol +30 -71
  216. package/contracts/shared/NftOwnable.sol +2 -4
  217. package/contracts/shared/Service.sol +1 -0
  218. package/contracts/types/NftIdSet.sol +26 -24
  219. package/contracts/types/RoleId.sol +7 -2
  220. package/package.json +1 -1
  221. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  222. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  223. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  224. package/contracts/instance/AccessManagedSimple.sol +0 -115
  225. package/contracts/instance/AccessManagerSimple.sol +0 -692
@@ -3,6 +3,1164 @@
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
+ },
249
+ {
250
+ "inputs": [
251
+ {
252
+ "internalType": "NftId",
253
+ "name": "distributionNftId",
254
+ "type": "uint96"
255
+ },
256
+ {
257
+ "components": [
258
+ {
259
+ "internalType": "NftId",
260
+ "name": "productNftId",
261
+ "type": "uint96"
262
+ },
263
+ {
264
+ "internalType": "contract TokenHandler",
265
+ "name": "tokenHandler",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "components": [
270
+ {
271
+ "internalType": "UFixed",
272
+ "name": "fractionalFee",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "fixedFee",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "internalType": "struct Fee",
282
+ "name": "distributionFee",
283
+ "type": "tuple"
284
+ },
285
+ {
286
+ "internalType": "bool",
287
+ "name": "isIntercepting",
288
+ "type": "bool"
289
+ },
290
+ {
291
+ "internalType": "address",
292
+ "name": "wallet",
293
+ "type": "address"
294
+ }
295
+ ],
296
+ "internalType": "struct ISetup.DistributionSetupInfo",
297
+ "name": "setup",
298
+ "type": "tuple"
299
+ }
300
+ ],
301
+ "name": "createDistributionSetup",
302
+ "outputs": [],
303
+ "stateMutability": "nonpayable",
304
+ "type": "function"
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
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "NftId",
410
+ "name": "poolNftId",
411
+ "type": "uint96"
412
+ },
413
+ {
414
+ "components": [
415
+ {
416
+ "internalType": "NftId",
417
+ "name": "productNftId",
418
+ "type": "uint96"
419
+ },
420
+ {
421
+ "internalType": "contract TokenHandler",
422
+ "name": "tokenHandler",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "internalType": "UFixed",
427
+ "name": "collateralizationLevel",
428
+ "type": "uint256"
429
+ },
430
+ {
431
+ "components": [
432
+ {
433
+ "internalType": "UFixed",
434
+ "name": "fractionalFee",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "fixedFee",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "internalType": "struct Fee",
444
+ "name": "poolFee",
445
+ "type": "tuple"
446
+ },
447
+ {
448
+ "components": [
449
+ {
450
+ "internalType": "UFixed",
451
+ "name": "fractionalFee",
452
+ "type": "uint256"
453
+ },
454
+ {
455
+ "internalType": "uint256",
456
+ "name": "fixedFee",
457
+ "type": "uint256"
458
+ }
459
+ ],
460
+ "internalType": "struct Fee",
461
+ "name": "stakingFee",
462
+ "type": "tuple"
463
+ },
464
+ {
465
+ "components": [
466
+ {
467
+ "internalType": "UFixed",
468
+ "name": "fractionalFee",
469
+ "type": "uint256"
470
+ },
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "fixedFee",
474
+ "type": "uint256"
475
+ }
476
+ ],
477
+ "internalType": "struct Fee",
478
+ "name": "performanceFee",
479
+ "type": "tuple"
480
+ },
481
+ {
482
+ "internalType": "bool",
483
+ "name": "isIntercepting",
484
+ "type": "bool"
485
+ },
486
+ {
487
+ "internalType": "bool",
488
+ "name": "isConfirmingApplication",
489
+ "type": "bool"
490
+ },
491
+ {
492
+ "internalType": "address",
493
+ "name": "wallet",
494
+ "type": "address"
495
+ }
496
+ ],
497
+ "internalType": "struct ISetup.PoolSetupInfo",
498
+ "name": "setup",
499
+ "type": "tuple"
500
+ }
501
+ ],
502
+ "name": "createPoolSetup",
503
+ "outputs": [],
504
+ "stateMutability": "nonpayable",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [
509
+ {
510
+ "internalType": "NftId",
511
+ "name": "productNftId",
512
+ "type": "uint96"
513
+ },
514
+ {
515
+ "components": [
516
+ {
517
+ "internalType": "contract IERC20Metadata",
518
+ "name": "token",
519
+ "type": "address"
520
+ },
521
+ {
522
+ "internalType": "contract TokenHandler",
523
+ "name": "tokenHandler",
524
+ "type": "address"
525
+ },
526
+ {
527
+ "internalType": "NftId",
528
+ "name": "distributionNftId",
529
+ "type": "uint96"
530
+ },
531
+ {
532
+ "internalType": "NftId",
533
+ "name": "poolNftId",
534
+ "type": "uint96"
535
+ },
536
+ {
537
+ "components": [
538
+ {
539
+ "internalType": "UFixed",
540
+ "name": "fractionalFee",
541
+ "type": "uint256"
542
+ },
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "fixedFee",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "internalType": "struct Fee",
550
+ "name": "distributionFee",
551
+ "type": "tuple"
552
+ },
553
+ {
554
+ "components": [
555
+ {
556
+ "internalType": "UFixed",
557
+ "name": "fractionalFee",
558
+ "type": "uint256"
559
+ },
560
+ {
561
+ "internalType": "uint256",
562
+ "name": "fixedFee",
563
+ "type": "uint256"
564
+ }
565
+ ],
566
+ "internalType": "struct Fee",
567
+ "name": "productFee",
568
+ "type": "tuple"
569
+ },
570
+ {
571
+ "components": [
572
+ {
573
+ "internalType": "UFixed",
574
+ "name": "fractionalFee",
575
+ "type": "uint256"
576
+ },
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "fixedFee",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "internalType": "struct Fee",
584
+ "name": "processingFee",
585
+ "type": "tuple"
586
+ },
587
+ {
588
+ "components": [
589
+ {
590
+ "internalType": "UFixed",
591
+ "name": "fractionalFee",
592
+ "type": "uint256"
593
+ },
594
+ {
595
+ "internalType": "uint256",
596
+ "name": "fixedFee",
597
+ "type": "uint256"
598
+ }
599
+ ],
600
+ "internalType": "struct Fee",
601
+ "name": "poolFee",
602
+ "type": "tuple"
603
+ },
604
+ {
605
+ "components": [
606
+ {
607
+ "internalType": "UFixed",
608
+ "name": "fractionalFee",
609
+ "type": "uint256"
610
+ },
611
+ {
612
+ "internalType": "uint256",
613
+ "name": "fixedFee",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "internalType": "struct Fee",
618
+ "name": "stakingFee",
619
+ "type": "tuple"
620
+ },
621
+ {
622
+ "components": [
623
+ {
624
+ "internalType": "UFixed",
625
+ "name": "fractionalFee",
626
+ "type": "uint256"
627
+ },
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "fixedFee",
631
+ "type": "uint256"
632
+ }
633
+ ],
634
+ "internalType": "struct Fee",
635
+ "name": "performanceFee",
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"
647
+ }
648
+ ],
649
+ "internalType": "struct ISetup.ProductSetupInfo",
650
+ "name": "setup",
651
+ "type": "tuple"
652
+ }
653
+ ],
654
+ "name": "createProductSetup",
655
+ "outputs": [],
656
+ "stateMutability": "nonpayable",
657
+ "type": "function"
658
+ },
659
+ {
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",
698
+ "outputs": [
699
+ {
700
+ "internalType": "bool",
701
+ "name": "",
702
+ "type": "bool"
703
+ }
704
+ ],
705
+ "stateMutability": "view",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "internalType": "Key32",
712
+ "name": "key",
713
+ "type": "bytes32"
714
+ }
715
+ ],
716
+ "name": "get",
717
+ "outputs": [
718
+ {
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
+ },
6
1164
  {
7
1165
  "inputs": [
8
1166
  {
@@ -53,9 +1211,14 @@
53
1211
  "internalType": "struct ISetup.DistributionSetupInfo",
54
1212
  "name": "setup",
55
1213
  "type": "tuple"
1214
+ },
1215
+ {
1216
+ "internalType": "StateId",
1217
+ "name": "newState",
1218
+ "type": "uint8"
56
1219
  }
57
1220
  ],
58
- "name": "createDistributionSetup",
1221
+ "name": "updateDistributionSetup",
59
1222
  "outputs": [],
60
1223
  "stateMutability": "nonpayable",
61
1224
  "type": "function"
@@ -67,6 +1230,147 @@
67
1230
  "name": "distributionNftId",
68
1231
  "type": "uint96"
69
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
+ },
70
1374
  {
71
1375
  "components": [
72
1376
  {
@@ -140,6 +1444,11 @@
140
1444
  "name": "isIntercepting",
141
1445
  "type": "bool"
142
1446
  },
1447
+ {
1448
+ "internalType": "bool",
1449
+ "name": "isConfirmingApplication",
1450
+ "type": "bool"
1451
+ },
143
1452
  {
144
1453
  "internalType": "address",
145
1454
  "name": "wallet",
@@ -149,9 +1458,32 @@
149
1458
  "internalType": "struct ISetup.PoolSetupInfo",
150
1459
  "name": "setup",
151
1460
  "type": "tuple"
1461
+ },
1462
+ {
1463
+ "internalType": "StateId",
1464
+ "name": "newState",
1465
+ "type": "uint8"
152
1466
  }
153
1467
  ],
154
- "name": "createPoolSetup",
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",
155
1487
  "outputs": [],
156
1488
  "stateMutability": "nonpayable",
157
1489
  "type": "function"
@@ -286,82 +1618,57 @@
286
1618
  "internalType": "struct Fee",
287
1619
  "name": "performanceFee",
288
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"
289
1631
  }
290
1632
  ],
291
1633
  "internalType": "struct ISetup.ProductSetupInfo",
292
1634
  "name": "setup",
293
1635
  "type": "tuple"
1636
+ },
1637
+ {
1638
+ "internalType": "StateId",
1639
+ "name": "newState",
1640
+ "type": "uint8"
294
1641
  }
295
1642
  ],
296
- "name": "createProductSetup",
1643
+ "name": "updateProductSetup",
297
1644
  "outputs": [],
298
1645
  "stateMutability": "nonpayable",
299
1646
  "type": "function"
300
1647
  },
301
- {
302
- "inputs": [],
303
- "name": "getComponentOwnerService",
304
- "outputs": [
305
- {
306
- "internalType": "contract IComponentOwnerService",
307
- "name": "",
308
- "type": "address"
309
- }
310
- ],
311
- "stateMutability": "view",
312
- "type": "function"
313
- },
314
- {
315
- "inputs": [],
316
- "name": "getDistributionService",
317
- "outputs": [
318
- {
319
- "internalType": "contract IDistributionService",
320
- "name": "",
321
- "type": "address"
322
- }
323
- ],
324
- "stateMutability": "view",
325
- "type": "function"
326
- },
327
- {
328
- "inputs": [],
329
- "name": "getInstanceReader",
330
- "outputs": [
331
- {
332
- "internalType": "contract InstanceReader",
333
- "name": "",
334
- "type": "address"
335
- }
336
- ],
337
- "stateMutability": "view",
338
- "type": "function"
339
- },
340
1648
  {
341
1649
  "inputs": [
342
1650
  {
343
- "internalType": "bytes4",
344
- "name": "interfaceId",
345
- "type": "bytes4"
346
- }
347
- ],
348
- "name": "supportsInterface",
349
- "outputs": [
1651
+ "internalType": "NftId",
1652
+ "name": "productNftId",
1653
+ "type": "uint96"
1654
+ },
350
1655
  {
351
- "internalType": "bool",
352
- "name": "",
353
- "type": "bool"
1656
+ "internalType": "StateId",
1657
+ "name": "newState",
1658
+ "type": "uint8"
354
1659
  }
355
1660
  ],
356
- "stateMutability": "view",
1661
+ "name": "updateProductSetupState",
1662
+ "outputs": [],
1663
+ "stateMutability": "nonpayable",
357
1664
  "type": "function"
358
1665
  },
359
1666
  {
360
1667
  "inputs": [
361
1668
  {
362
- "internalType": "NftId",
363
- "name": "distributionNftId",
364
- "type": "uint96"
1669
+ "internalType": "RiskId",
1670
+ "name": "riskId",
1671
+ "type": "bytes8"
365
1672
  },
366
1673
  {
367
1674
  "components": [
@@ -371,40 +1678,13 @@
371
1678
  "type": "uint96"
372
1679
  },
373
1680
  {
374
- "internalType": "contract TokenHandler",
375
- "name": "tokenHandler",
376
- "type": "address"
377
- },
378
- {
379
- "components": [
380
- {
381
- "internalType": "UFixed",
382
- "name": "fractionalFee",
383
- "type": "uint256"
384
- },
385
- {
386
- "internalType": "uint256",
387
- "name": "fixedFee",
388
- "type": "uint256"
389
- }
390
- ],
391
- "internalType": "struct Fee",
392
- "name": "distributionFee",
393
- "type": "tuple"
394
- },
395
- {
396
- "internalType": "bool",
397
- "name": "isIntercepting",
398
- "type": "bool"
399
- },
400
- {
401
- "internalType": "address",
402
- "name": "wallet",
403
- "type": "address"
1681
+ "internalType": "bytes",
1682
+ "name": "data",
1683
+ "type": "bytes"
404
1684
  }
405
1685
  ],
406
- "internalType": "struct ISetup.DistributionSetupInfo",
407
- "name": "setup",
1686
+ "internalType": "struct IRisk.RiskInfo",
1687
+ "name": "risk",
408
1688
  "type": "tuple"
409
1689
  },
410
1690
  {
@@ -413,7 +1693,7 @@
413
1693
  "type": "uint8"
414
1694
  }
415
1695
  ],
416
- "name": "updateDistributionSetup",
1696
+ "name": "updateRisk",
417
1697
  "outputs": [],
418
1698
  "stateMutability": "nonpayable",
419
1699
  "type": "function"
@@ -421,9 +1701,9 @@
421
1701
  {
422
1702
  "inputs": [
423
1703
  {
424
- "internalType": "NftId",
425
- "name": "distributionNftId",
426
- "type": "uint96"
1704
+ "internalType": "RiskId",
1705
+ "name": "riskId",
1706
+ "type": "bytes8"
427
1707
  },
428
1708
  {
429
1709
  "internalType": "StateId",
@@ -431,7 +1711,7 @@
431
1711
  "type": "uint8"
432
1712
  }
433
1713
  ],
434
- "name": "updateDistributionSetupState",
1714
+ "name": "updateRiskState",
435
1715
  "outputs": [],
436
1716
  "stateMutability": "nonpayable",
437
1717
  "type": "function"