@etherisc/gif-next 0.0.2-d63a6a1-078 → 0.0.2-d64ea51-772

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