@etherisc/gif-next 0.0.2-f29e479-370 → 0.0.2-f30e0eb-805

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  2. package/artifacts/contracts/components/Component.sol/Component.json +68 -89
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +113 -140
  5. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.json +65 -73
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +91 -122
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +256 -189
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +69 -145
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +279 -245
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +73 -162
  17. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +64 -50
  21. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +5 -0
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +171 -308
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +98 -40
  27. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  28. package/artifacts/contracts/instance/Instance.sol/Instance.json +260 -379
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +448 -121
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +120 -227
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +148 -161
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +31 -23
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -13
  39. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +1 -1
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
  45. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  47. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +54 -71
  49. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  51. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
  52. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  53. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  54. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  55. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  56. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  57. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  58. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +161 -62
  59. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  60. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +33 -25
  61. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  62. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +137 -140
  63. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  64. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +12 -12
  65. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
  66. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +3 -3
  67. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  68. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +2 -2
  69. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +505 -91
  71. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +78 -42
  73. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +110 -27
  75. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  76. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +93 -96
  77. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +350 -8
  80. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  81. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +21 -64
  82. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -0
  84. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  86. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +58 -157
  87. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +19 -47
  89. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +114 -17
  91. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +17 -9
  93. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +7 -7
  95. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +4 -4
  97. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  98. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  99. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +19 -0
  101. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  102. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  103. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  104. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  105. package/artifacts/contracts/registry/Registry.sol/Registry.json +31 -12
  106. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  107. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
  108. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +5 -5
  110. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +3 -3
  112. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  113. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +7 -7
  114. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  115. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
  116. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  117. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  118. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  119. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  120. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  122. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  124. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
  126. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  127. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
  128. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  129. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
  130. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +3 -3
  132. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  133. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
  134. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  135. package/artifacts/contracts/shared/Service.sol/Service.json +1 -1
  136. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  137. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
  138. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  139. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  140. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  141. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  143. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +3 -3
  145. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +6 -6
  147. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  148. package/artifacts/contracts/test/TestService.sol/TestService.json +3 -3
  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/TestVersion.sol/TestVersion.json +2 -2
  152. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +2 -2
  154. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  155. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  156. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  158. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  161. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  162. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
  164. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  166. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  168. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  169. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  170. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  173. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
  176. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  178. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  180. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  181. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  182. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  184. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +25 -7
  186. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  188. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  190. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  192. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  194. package/contracts/components/Component.sol +95 -85
  195. package/contracts/components/Distribution.sol +12 -19
  196. package/contracts/components/IComponent.sol +37 -17
  197. package/contracts/components/IDistributionComponent.sol +1 -22
  198. package/contracts/components/IPoolComponent.sol +73 -47
  199. package/contracts/components/IProductComponent.sol +3 -2
  200. package/contracts/components/Pool.sol +171 -126
  201. package/contracts/components/Product.sol +26 -18
  202. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  203. package/contracts/instance/BundleManager.sol +7 -5
  204. package/contracts/instance/Cloneable.sol +7 -2
  205. package/contracts/instance/IInstance.sol +16 -10
  206. package/contracts/instance/IInstanceService.sol +18 -5
  207. package/contracts/instance/Instance.sol +45 -9
  208. package/contracts/instance/InstanceAccessManager.sol +382 -157
  209. package/contracts/instance/InstanceReader.sol +7 -10
  210. package/contracts/instance/InstanceService.sol +174 -155
  211. package/contracts/instance/ObjectManager.sol +6 -8
  212. package/contracts/instance/base/ComponentService.sol +5 -5
  213. package/contracts/instance/base/KeyValueStore.sol +5 -2
  214. package/contracts/instance/base/Lifecycle.sol +11 -2
  215. package/contracts/instance/module/IAccess.sol +20 -13
  216. package/contracts/instance/module/IBundle.sol +2 -1
  217. package/contracts/instance/module/IComponents.sol +35 -0
  218. package/contracts/instance/module/IDistribution.sol +2 -1
  219. package/contracts/instance/module/IPolicy.sol +26 -1
  220. package/contracts/instance/module/ISetup.sol +7 -22
  221. package/contracts/instance/service/ApplicationService.sol +123 -41
  222. package/contracts/instance/service/BundleService.sol +76 -38
  223. package/contracts/instance/service/DistributionService.sol +139 -47
  224. package/contracts/instance/service/IApplicationService.sol +7 -7
  225. package/contracts/instance/service/IBundleService.sol +19 -11
  226. package/contracts/instance/service/IDistributionService.sol +19 -4
  227. package/contracts/instance/service/IPolicyService.sol +3 -20
  228. package/contracts/instance/service/IPoolService.sol +17 -2
  229. package/contracts/instance/service/PolicyService.sol +59 -132
  230. package/contracts/instance/service/PoolService.sol +128 -17
  231. package/contracts/instance/service/ProductService.sol +10 -2
  232. package/contracts/registry/ChainNft.sol +8 -0
  233. package/contracts/registry/IRegistry.sol +2 -0
  234. package/contracts/registry/ITransferInterceptor.sol +1 -0
  235. package/contracts/registry/Registry.sol +23 -20
  236. package/contracts/registry/RegistryService.sol +5 -5
  237. package/contracts/shared/Registerable.sol +2 -2
  238. package/contracts/shared/TokenHandler.sol +11 -5
  239. package/contracts/types/Blocknumber.sol +1 -0
  240. package/contracts/types/Fee.sol +1 -0
  241. package/contracts/types/NftId.sol +8 -0
  242. package/contracts/types/ObjectType.sol +1 -0
  243. package/contracts/types/Referral.sol +4 -0
  244. package/contracts/types/RoleId.sol +13 -6
  245. package/contracts/types/Seconds.sol +54 -0
  246. package/contracts/types/StateId.sol +1 -0
  247. package/contracts/types/Timestamp.sol +13 -13
  248. package/contracts/types/UFixed.sol +1 -0
  249. package/contracts/types/Version.sol +1 -0
  250. package/package.json +1 -1
@@ -80,11 +80,6 @@
80
80
  "internalType": "NftId",
81
81
  "name": "instanceNftId",
82
82
  "type": "uint96"
83
- },
84
- {
85
- "internalType": "address",
86
- "name": "instance",
87
- "type": "address"
88
83
  }
89
84
  ],
90
85
  "name": "ErrorComponentNotInstance",
@@ -107,29 +102,7 @@
107
102
  "type": "error"
108
103
  },
109
104
  {
110
- "inputs": [
111
- {
112
- "internalType": "address",
113
- "name": "caller",
114
- "type": "address"
115
- },
116
- {
117
- "internalType": "uint64",
118
- "name": "requiredRoleIdNum",
119
- "type": "uint64"
120
- }
121
- ],
122
- "name": "ErrorComponentUnauthorized",
123
- "type": "error"
124
- },
125
- {
126
- "inputs": [
127
- {
128
- "internalType": "address",
129
- "name": "newWallet",
130
- "type": "address"
131
- }
132
- ],
105
+ "inputs": [],
133
106
  "name": "ErrorComponentWalletAddressIsSameAsCurrent",
134
107
  "type": "error"
135
108
  },
@@ -213,11 +186,38 @@
213
186
  "name": "ErrorNotRegistry",
214
187
  "type": "error"
215
188
  },
189
+ {
190
+ "inputs": [
191
+ {
192
+ "internalType": "NftId",
193
+ "name": "applicationNftId",
194
+ "type": "uint96"
195
+ }
196
+ ],
197
+ "name": "ErrorPoolApplicationBundleMismatch",
198
+ "type": "error"
199
+ },
200
+ {
201
+ "inputs": [
202
+ {
203
+ "internalType": "NftId",
204
+ "name": "bundleNftId",
205
+ "type": "uint96"
206
+ },
207
+ {
208
+ "internalType": "address",
209
+ "name": "caller",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorPoolNotBundleOwner",
214
+ "type": "error"
215
+ },
216
216
  {
217
217
  "inputs": [
218
218
  {
219
219
  "internalType": "address",
220
- "name": "service",
220
+ "name": "caller",
221
221
  "type": "address"
222
222
  }
223
223
  ],
@@ -279,6 +279,12 @@
279
279
  {
280
280
  "anonymous": false,
281
281
  "inputs": [
282
+ {
283
+ "indexed": false,
284
+ "internalType": "address",
285
+ "name": "oldWallet",
286
+ "type": "address"
287
+ },
282
288
  {
283
289
  "indexed": false,
284
290
  "internalType": "address",
@@ -317,10 +323,16 @@
317
323
  {
318
324
  "anonymous": false,
319
325
  "inputs": [
326
+ {
327
+ "indexed": false,
328
+ "internalType": "address",
329
+ "name": "pool",
330
+ "type": "address"
331
+ },
320
332
  {
321
333
  "indexed": false,
322
334
  "internalType": "NftId",
323
- "name": "policyNftId",
335
+ "name": "applicationNftId",
324
336
  "type": "uint96"
325
337
  },
326
338
  {
@@ -328,20 +340,14 @@
328
340
  "internalType": "uint256",
329
341
  "name": "collateralizationAmount",
330
342
  "type": "uint256"
331
- },
332
- {
333
- "indexed": false,
334
- "internalType": "address",
335
- "name": "pool",
336
- "type": "address"
337
343
  }
338
344
  ],
339
- "name": "LogUnderwrittenByPool",
345
+ "name": "LogPoolVerifiedByPool",
340
346
  "type": "event"
341
347
  },
342
348
  {
343
349
  "inputs": [],
344
- "name": "CONTRACT_LOCATION_V1",
350
+ "name": "COMPONENT_LOCATION_V1",
345
351
  "outputs": [
346
352
  {
347
353
  "internalType": "bytes32",
@@ -391,6 +397,45 @@
391
397
  "stateMutability": "view",
392
398
  "type": "function"
393
399
  },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "internalType": "NftId",
404
+ "name": "applicationNftId",
405
+ "type": "uint96"
406
+ },
407
+ {
408
+ "internalType": "bytes",
409
+ "name": "applicationData",
410
+ "type": "bytes"
411
+ },
412
+ {
413
+ "internalType": "NftId",
414
+ "name": "bundleNftId",
415
+ "type": "uint96"
416
+ },
417
+ {
418
+ "internalType": "bytes",
419
+ "name": "bundleFilter",
420
+ "type": "bytes"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "collateralizationAmount",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "name": "applicationMatchesBundle",
429
+ "outputs": [
430
+ {
431
+ "internalType": "bool",
432
+ "name": "isMatching",
433
+ "type": "bool"
434
+ }
435
+ ],
436
+ "stateMutability": "view",
437
+ "type": "function"
438
+ },
394
439
  {
395
440
  "inputs": [],
396
441
  "name": "authority",
@@ -404,14 +449,72 @@
404
449
  "stateMutability": "view",
405
450
  "type": "function"
406
451
  },
452
+ {
453
+ "inputs": [
454
+ {
455
+ "internalType": "NftId",
456
+ "name": "bundleNftId",
457
+ "type": "uint96"
458
+ }
459
+ ],
460
+ "name": "close",
461
+ "outputs": [],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "NftId",
469
+ "name": "bundleNftId",
470
+ "type": "uint96"
471
+ },
472
+ {
473
+ "internalType": "Seconds",
474
+ "name": "lifetimeExtension",
475
+ "type": "uint40"
476
+ }
477
+ ],
478
+ "name": "extend",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
407
483
  {
408
484
  "inputs": [],
409
- "name": "getCollateralizationLevel",
485
+ "name": "getComponentInfo",
410
486
  "outputs": [
411
487
  {
412
- "internalType": "UFixed",
413
- "name": "collateralizationLevel",
414
- "type": "uint256"
488
+ "components": [
489
+ {
490
+ "internalType": "string",
491
+ "name": "name",
492
+ "type": "string"
493
+ },
494
+ {
495
+ "internalType": "contract IERC20Metadata",
496
+ "name": "token",
497
+ "type": "address"
498
+ },
499
+ {
500
+ "internalType": "contract TokenHandler",
501
+ "name": "tokenHandler",
502
+ "type": "address"
503
+ },
504
+ {
505
+ "internalType": "address",
506
+ "name": "wallet",
507
+ "type": "address"
508
+ },
509
+ {
510
+ "internalType": "bytes",
511
+ "name": "data",
512
+ "type": "bytes"
513
+ }
514
+ ],
515
+ "internalType": "struct IComponents.ComponentInfo",
516
+ "name": "info",
517
+ "type": "tuple"
415
518
  }
416
519
  ],
417
520
  "stateMutability": "view",
@@ -499,32 +602,6 @@
499
602
  "stateMutability": "view",
500
603
  "type": "function"
501
604
  },
502
- {
503
- "inputs": [],
504
- "name": "getInstanceReader",
505
- "outputs": [
506
- {
507
- "internalType": "contract InstanceReader",
508
- "name": "reader",
509
- "type": "address"
510
- }
511
- ],
512
- "stateMutability": "view",
513
- "type": "function"
514
- },
515
- {
516
- "inputs": [],
517
- "name": "getInstanceService",
518
- "outputs": [
519
- {
520
- "internalType": "contract IInstanceService",
521
- "name": "",
522
- "type": "address"
523
- }
524
- ],
525
- "stateMutability": "view",
526
- "type": "function"
527
- },
528
605
  {
529
606
  "inputs": [],
530
607
  "name": "getName",
@@ -566,91 +643,7 @@
566
643
  },
567
644
  {
568
645
  "inputs": [],
569
- "name": "getProductNftId",
570
- "outputs": [
571
- {
572
- "internalType": "NftId",
573
- "name": "productNftId",
574
- "type": "uint96"
575
- }
576
- ],
577
- "stateMutability": "view",
578
- "type": "function"
579
- },
580
- {
581
- "inputs": [],
582
- "name": "getProductService",
583
- "outputs": [
584
- {
585
- "internalType": "contract IProductService",
586
- "name": "",
587
- "type": "address"
588
- }
589
- ],
590
- "stateMutability": "view",
591
- "type": "function"
592
- },
593
- {
594
- "inputs": [],
595
- "name": "getRegistry",
596
- "outputs": [
597
- {
598
- "internalType": "contract IRegistry",
599
- "name": "",
600
- "type": "address"
601
- }
602
- ],
603
- "stateMutability": "view",
604
- "type": "function"
605
- },
606
- {
607
- "inputs": [],
608
- "name": "getRegistryAddress",
609
- "outputs": [
610
- {
611
- "internalType": "address",
612
- "name": "",
613
- "type": "address"
614
- }
615
- ],
616
- "stateMutability": "view",
617
- "type": "function"
618
- },
619
- {
620
- "inputs": [],
621
- "name": "getRetentionLevel",
622
- "outputs": [
623
- {
624
- "internalType": "UFixed",
625
- "name": "retentionLevel",
626
- "type": "uint256"
627
- }
628
- ],
629
- "stateMutability": "view",
630
- "type": "function"
631
- },
632
- {
633
- "inputs": [
634
- {
635
- "internalType": "ObjectType",
636
- "name": "domain",
637
- "type": "uint8"
638
- }
639
- ],
640
- "name": "getServiceAddress",
641
- "outputs": [
642
- {
643
- "internalType": "address",
644
- "name": "service",
645
- "type": "address"
646
- }
647
- ],
648
- "stateMutability": "view",
649
- "type": "function"
650
- },
651
- {
652
- "inputs": [],
653
- "name": "getSetupInfo",
646
+ "name": "getPoolInfo",
654
647
  "outputs": [
655
648
  {
656
649
  "components": [
@@ -660,9 +653,14 @@
660
653
  "type": "uint96"
661
654
  },
662
655
  {
663
- "internalType": "contract TokenHandler",
664
- "name": "tokenHandler",
665
- "type": "address"
656
+ "internalType": "RoleId",
657
+ "name": "bundleOwnerRole",
658
+ "type": "uint64"
659
+ },
660
+ {
661
+ "internalType": "uint256",
662
+ "name": "maxCapitalAmount",
663
+ "type": "uint256"
666
664
  },
667
665
  {
668
666
  "internalType": "bool",
@@ -739,21 +737,55 @@
739
737
  "internalType": "struct Fee",
740
738
  "name": "performanceFee",
741
739
  "type": "tuple"
742
- },
743
- {
744
- "internalType": "address",
745
- "name": "wallet",
746
- "type": "address"
747
740
  }
748
741
  ],
749
- "internalType": "struct ISetup.PoolSetupInfo",
750
- "name": "setupInfo",
742
+ "internalType": "struct IComponents.PoolInfo",
743
+ "name": "poolInfo",
751
744
  "type": "tuple"
752
745
  }
753
746
  ],
754
747
  "stateMutability": "view",
755
748
  "type": "function"
756
749
  },
750
+ {
751
+ "inputs": [],
752
+ "name": "getProductNftId",
753
+ "outputs": [
754
+ {
755
+ "internalType": "NftId",
756
+ "name": "productNftId",
757
+ "type": "uint96"
758
+ }
759
+ ],
760
+ "stateMutability": "view",
761
+ "type": "function"
762
+ },
763
+ {
764
+ "inputs": [],
765
+ "name": "getRegistry",
766
+ "outputs": [
767
+ {
768
+ "internalType": "contract IRegistry",
769
+ "name": "",
770
+ "type": "address"
771
+ }
772
+ ],
773
+ "stateMutability": "view",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [],
778
+ "name": "getRegistryAddress",
779
+ "outputs": [
780
+ {
781
+ "internalType": "address",
782
+ "name": "",
783
+ "type": "address"
784
+ }
785
+ ],
786
+ "stateMutability": "view",
787
+ "type": "function"
788
+ },
757
789
  {
758
790
  "inputs": [],
759
791
  "name": "getToken",
@@ -819,7 +851,7 @@
819
851
  },
820
852
  {
821
853
  "internalType": "bytes",
822
- "name": "data",
854
+ "name": "registryData",
823
855
  "type": "bytes"
824
856
  }
825
857
  ],
@@ -880,26 +912,6 @@
880
912
  "name": "isInterceptingNftTransfers",
881
913
  "type": "bool"
882
914
  },
883
- {
884
- "internalType": "bool",
885
- "name": "isExternallyManaging",
886
- "type": "bool"
887
- },
888
- {
889
- "internalType": "bool",
890
- "name": "isVerifying",
891
- "type": "bool"
892
- },
893
- {
894
- "internalType": "UFixed",
895
- "name": "collateralizationLevel",
896
- "type": "uint256"
897
- },
898
- {
899
- "internalType": "UFixed",
900
- "name": "retentionLevel",
901
- "type": "uint256"
902
- },
903
915
  {
904
916
  "internalType": "address",
905
917
  "name": "initialOwner",
@@ -907,7 +919,7 @@
907
919
  },
908
920
  {
909
921
  "internalType": "bytes",
910
- "name": "data",
922
+ "name": "registryData",
911
923
  "type": "bytes"
912
924
  }
913
925
  ],
@@ -945,7 +957,7 @@
945
957
  },
946
958
  {
947
959
  "internalType": "bytes",
948
- "name": "data",
960
+ "name": "registryData",
949
961
  "type": "bytes"
950
962
  }
951
963
  ],
@@ -980,32 +992,6 @@
980
992
  "stateMutability": "view",
981
993
  "type": "function"
982
994
  },
983
- {
984
- "inputs": [],
985
- "name": "isExternallyManaged",
986
- "outputs": [
987
- {
988
- "internalType": "bool",
989
- "name": "",
990
- "type": "bool"
991
- }
992
- ],
993
- "stateMutability": "view",
994
- "type": "function"
995
- },
996
- {
997
- "inputs": [],
998
- "name": "isInterceptingBundleTransfers",
999
- "outputs": [
1000
- {
1001
- "internalType": "bool",
1002
- "name": "",
1003
- "type": "bool"
1004
- }
1005
- ],
1006
- "stateMutability": "view",
1007
- "type": "function"
1008
- },
1009
995
  {
1010
996
  "inputs": [],
1011
997
  "name": "isNftInterceptor",
@@ -1019,19 +1005,6 @@
1019
1005
  "stateMutability": "view",
1020
1006
  "type": "function"
1021
1007
  },
1022
- {
1023
- "inputs": [],
1024
- "name": "isVerifyingApplications",
1025
- "outputs": [
1026
- {
1027
- "internalType": "bool",
1028
- "name": "isConfirmingApplication",
1029
- "type": "bool"
1030
- }
1031
- ],
1032
- "stateMutability": "view",
1033
- "type": "function"
1034
- },
1035
1008
  {
1036
1009
  "inputs": [],
1037
1010
  "name": "linkToRegisteredNftId",
@@ -1061,11 +1034,6 @@
1061
1034
  },
1062
1035
  {
1063
1036
  "inputs": [
1064
- {
1065
- "internalType": "address",
1066
- "name": "from",
1067
- "type": "address"
1068
- },
1069
1037
  {
1070
1038
  "internalType": "address",
1071
1039
  "name": "to",
@@ -1077,7 +1045,7 @@
1077
1045
  "type": "uint256"
1078
1046
  }
1079
1047
  ],
1080
- "name": "nftTransferFrom",
1048
+ "name": "nftMint",
1081
1049
  "outputs": [],
1082
1050
  "stateMutability": "nonpayable",
1083
1051
  "type": "function"
@@ -1085,25 +1053,24 @@
1085
1053
  {
1086
1054
  "inputs": [
1087
1055
  {
1088
- "internalType": "bytes",
1089
- "name": "",
1090
- "type": "bytes"
1056
+ "internalType": "address",
1057
+ "name": "from",
1058
+ "type": "address"
1091
1059
  },
1092
1060
  {
1093
- "internalType": "bytes",
1094
- "name": "",
1095
- "type": "bytes"
1096
- }
1097
- ],
1098
- "name": "policyMatchesBundle",
1099
- "outputs": [
1061
+ "internalType": "address",
1062
+ "name": "to",
1063
+ "type": "address"
1064
+ },
1100
1065
  {
1101
- "internalType": "bool",
1102
- "name": "isMatching",
1103
- "type": "bool"
1066
+ "internalType": "uint256",
1067
+ "name": "tokenId",
1068
+ "type": "uint256"
1104
1069
  }
1105
1070
  ],
1106
- "stateMutability": "pure",
1071
+ "name": "nftTransferFrom",
1072
+ "outputs": [],
1073
+ "stateMutability": "nonpayable",
1107
1074
  "type": "function"
1108
1075
  },
1109
1076
  {
@@ -1162,6 +1129,19 @@
1162
1129
  "stateMutability": "nonpayable",
1163
1130
  "type": "function"
1164
1131
  },
1132
+ {
1133
+ "inputs": [
1134
+ {
1135
+ "internalType": "RoleId",
1136
+ "name": "bundleOwnerRole",
1137
+ "type": "uint64"
1138
+ }
1139
+ ],
1140
+ "name": "setBundleOwnerRole",
1141
+ "outputs": [],
1142
+ "stateMutability": "nonpayable",
1143
+ "type": "function"
1144
+ },
1165
1145
  {
1166
1146
  "inputs": [
1167
1147
  {
@@ -1221,6 +1201,19 @@
1221
1201
  "stateMutability": "nonpayable",
1222
1202
  "type": "function"
1223
1203
  },
1204
+ {
1205
+ "inputs": [
1206
+ {
1207
+ "internalType": "uint256",
1208
+ "name": "maxCapitalAmount",
1209
+ "type": "uint256"
1210
+ }
1211
+ ],
1212
+ "name": "setMaxCapitalAmount",
1213
+ "outputs": [],
1214
+ "stateMutability": "nonpayable",
1215
+ "type": "function"
1216
+ },
1224
1217
  {
1225
1218
  "inputs": [
1226
1219
  {
@@ -1247,6 +1240,24 @@
1247
1240
  "stateMutability": "nonpayable",
1248
1241
  "type": "function"
1249
1242
  },
1243
+ {
1244
+ "inputs": [
1245
+ {
1246
+ "internalType": "NftId",
1247
+ "name": "bundleNftId",
1248
+ "type": "uint96"
1249
+ },
1250
+ {
1251
+ "internalType": "uint256",
1252
+ "name": "amount",
1253
+ "type": "uint256"
1254
+ }
1255
+ ],
1256
+ "name": "stake",
1257
+ "outputs": [],
1258
+ "stateMutability": "nonpayable",
1259
+ "type": "function"
1260
+ },
1250
1261
  {
1251
1262
  "inputs": [
1252
1263
  {
@@ -1286,6 +1297,24 @@
1286
1297
  "stateMutability": "nonpayable",
1287
1298
  "type": "function"
1288
1299
  },
1300
+ {
1301
+ "inputs": [
1302
+ {
1303
+ "internalType": "NftId",
1304
+ "name": "bundleNftId",
1305
+ "type": "uint96"
1306
+ },
1307
+ {
1308
+ "internalType": "uint256",
1309
+ "name": "amount",
1310
+ "type": "uint256"
1311
+ }
1312
+ ],
1313
+ "name": "unstake",
1314
+ "outputs": [],
1315
+ "stateMutability": "nonpayable",
1316
+ "type": "function"
1317
+ },
1289
1318
  {
1290
1319
  "inputs": [
1291
1320
  {
@@ -1298,6 +1327,11 @@
1298
1327
  "name": "applicationData",
1299
1328
  "type": "bytes"
1300
1329
  },
1330
+ {
1331
+ "internalType": "NftId",
1332
+ "name": "bundleNftId",
1333
+ "type": "uint96"
1334
+ },
1301
1335
  {
1302
1336
  "internalType": "bytes",
1303
1337
  "name": "bundleFilter",