@etherisc/gif-next 0.0.2-b81ff84-640 → 0.0.2-b97394c-442

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