@etherisc/gif-next 0.0.2-b9e43cf-870 → 0.0.2-bb1081a-994

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  2. package/artifacts/contracts/components/{IBaseComponent.sol/IBaseComponent.json → Component.sol/Component.json} +230 -14
  3. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.json +141 -10
  5. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  6. package/artifacts/contracts/components/{BaseComponent.sol/BaseComponent.json → IComponent.sol/IComponent.json} +107 -87
  7. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +543 -0
  9. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +623 -45
  11. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +643 -5
  13. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  14. package/artifacts/contracts/components/Pool.sol/Pool.json +227 -73
  15. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  16. package/artifacts/contracts/components/Product.sol/Product.json +146 -15
  17. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  37. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  38. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +38 -62
  39. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
  40. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  41. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +181 -15
  42. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  43. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +0 -5
  44. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  45. package/artifacts/contracts/instance/Instance.sol/Instance.json +113 -76
  46. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  47. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +47 -60
  48. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  49. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +42 -83
  50. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  51. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +59 -58
  52. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  53. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +37 -24
  54. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
  55. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +8 -32
  56. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +102 -31
  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/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  62. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  65. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  67. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  69. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
  70. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +229 -93
  71. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  72. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +31 -18
  73. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +126 -47
  75. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +31 -14
  77. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +98 -38
  79. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  80. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +0 -5
  81. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +0 -5
  83. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +0 -5
  85. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  86. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +0 -5
  87. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +153 -82
  89. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +44 -31
  91. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +126 -47
  93. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +31 -14
  95. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +126 -47
  97. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
  98. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +31 -14
  99. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +83 -3
  102. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +33 -28
  104. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  105. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  106. package/artifacts/contracts/registry/Registry.sol/Registry.json +96 -24
  107. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  108. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +18 -18
  109. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +61 -56
  111. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +28 -15
  113. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  114. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +70 -53
  115. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +23 -26
  117. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  118. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  119. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  120. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  121. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -5
  122. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  123. package/artifacts/contracts/shared/IService.sol/IService.json +0 -5
  124. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  125. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  126. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +19 -6
  127. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  128. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +19 -6
  129. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  130. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +19 -11
  131. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  132. package/artifacts/contracts/shared/Service.sol/Service.json +13 -5
  133. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  134. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  135. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  136. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  137. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  138. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +19 -11
  139. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  140. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  141. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  142. package/artifacts/contracts/test/TestService.sol/TestService.json +29 -21
  143. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  144. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  145. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  146. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  147. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  148. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  149. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  150. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  151. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  152. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  153. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  154. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  155. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  156. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  157. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  158. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  159. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  160. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  161. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  162. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  163. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  167. package/contracts/components/Component.sol +247 -0
  168. package/contracts/components/Distribution.sol +27 -48
  169. package/contracts/components/IComponent.sol +50 -0
  170. package/contracts/components/IDistributionComponent.sol +5 -2
  171. package/contracts/components/IPoolComponent.sol +40 -29
  172. package/contracts/components/IProductComponent.sol +7 -3
  173. package/contracts/components/Pool.sol +123 -138
  174. package/contracts/components/Product.sol +48 -86
  175. package/contracts/instance/BundleManager.sol +7 -11
  176. package/contracts/instance/IInstance.sol +20 -10
  177. package/contracts/instance/IInstanceService.sol +1 -1
  178. package/contracts/instance/Instance.sol +28 -31
  179. package/contracts/instance/InstanceAccessManager.sol +6 -11
  180. package/contracts/instance/InstanceReader.sol +3 -25
  181. package/contracts/instance/InstanceService.sol +31 -14
  182. package/contracts/instance/ObjectManager.sol +7 -24
  183. package/contracts/instance/base/ComponentService.sol +134 -0
  184. package/contracts/instance/module/ISetup.sol +2 -2
  185. package/contracts/instance/service/BundleService.sol +11 -6
  186. package/contracts/instance/service/DistributionService.sol +22 -36
  187. package/contracts/instance/service/IBundleService.sol +11 -1
  188. package/contracts/instance/service/PolicyService.sol +56 -76
  189. package/contracts/instance/service/PoolService.sol +19 -55
  190. package/contracts/instance/service/ProductService.sol +49 -30
  191. package/contracts/registry/IRegistry.sol +13 -6
  192. package/contracts/registry/IRegistryService.sol +16 -9
  193. package/contracts/registry/Registry.sol +100 -44
  194. package/contracts/registry/RegistryAccessManager.sol +31 -25
  195. package/contracts/registry/RegistryService.sol +27 -85
  196. package/contracts/registry/ReleaseManager.sol +72 -82
  197. package/contracts/registry/TokenRegistry.sol +5 -3
  198. package/contracts/shared/IRegisterable.sol +1 -3
  199. package/contracts/shared/NftOwnable.sol +5 -0
  200. package/contracts/shared/Registerable.sol +10 -14
  201. package/contracts/shared/Service.sol +4 -2
  202. package/contracts/types/RoleId.sol +2 -2
  203. package/package.json +1 -1
  204. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  205. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  206. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  207. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  208. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  209. package/artifacts/contracts/instance/IInstanceBase.sol/IInstanceBase.json +0 -448
  210. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  211. package/artifacts/contracts/instance/InstanceBase.sol/InstanceBase.json +0 -763
  212. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  213. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  214. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  215. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  216. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -814
  217. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  218. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -466
  219. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  220. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
  221. package/contracts/components/BaseComponent.sol +0 -159
  222. package/contracts/components/IBaseComponent.sol +0 -34
  223. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -23
  224. package/contracts/instance/IInstanceBase.sol +0 -26
  225. package/contracts/instance/InstanceBase.sol +0 -41
  226. package/contracts/instance/base/ComponentServiceBase.sol +0 -76
  227. package/contracts/instance/base/IInstanceBase.sol +0 -23
  228. package/contracts/instance/service/ComponentOwnerService.sol +0 -315
  229. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  230. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -41,6 +41,49 @@
41
41
  "name": "ErrorAlreadyLinked",
42
42
  "type": "error"
43
43
  },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "caller",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorComponentNotChainNft",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "instanceNftId",
60
+ "type": "uint96"
61
+ },
62
+ {
63
+ "internalType": "address",
64
+ "name": "instance",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "ErrorComponentNotInstance",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "address",
75
+ "name": "caller",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "ErrorComponentNotProductService",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "ErrorComponentProductNftAlreadySet",
85
+ "type": "error"
86
+ },
44
87
  {
45
88
  "inputs": [
46
89
  {
@@ -54,7 +97,7 @@
54
97
  "type": "uint64"
55
98
  }
56
99
  ],
57
- "name": "ErrorBaseComponentUnauthorized",
100
+ "name": "ErrorComponentUnauthorized",
58
101
  "type": "error"
59
102
  },
60
103
  {
@@ -65,7 +108,12 @@
65
108
  "type": "address"
66
109
  }
67
110
  ],
68
- "name": "ErrorBaseComponentWalletAddressIsSameAsCurrent",
111
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "ErrorComponentWalletAddressZero",
69
117
  "type": "error"
70
118
  },
71
119
  {
@@ -91,7 +139,7 @@
91
139
  "type": "uint256"
92
140
  }
93
141
  ],
94
- "name": "ErrorBaseComponentWalletAllowanceTooSmall",
142
+ "name": "ErrorComponentWalletAllowanceTooSmall",
95
143
  "type": "error"
96
144
  },
97
145
  {
@@ -127,6 +175,17 @@
127
175
  "name": "ErrorNotRegistry",
128
176
  "type": "error"
129
177
  },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "address",
182
+ "name": "service",
183
+ "type": "address"
184
+ }
185
+ ],
186
+ "name": "ErrorPoolNotPoolService",
187
+ "type": "error"
188
+ },
130
189
  {
131
190
  "inputs": [
132
191
  {
@@ -208,7 +267,7 @@
208
267
  "type": "address"
209
268
  }
210
269
  ],
211
- "name": "LogBaseComponentWalletAddressChanged",
270
+ "name": "LogComponentWalletAddressChanged",
212
271
  "type": "event"
213
272
  },
214
273
  {
@@ -233,7 +292,7 @@
233
292
  "type": "uint256"
234
293
  }
235
294
  ],
236
- "name": "LogBaseComponentWalletTokensTransferred",
295
+ "name": "LogComponentWalletTokensTransferred",
237
296
  "type": "event"
238
297
  },
239
298
  {
@@ -263,7 +322,7 @@
263
322
  },
264
323
  {
265
324
  "inputs": [],
266
- "name": "REGISTERABLE_LOCATION_V1",
325
+ "name": "CONTRACT_LOCATION_V1",
267
326
  "outputs": [
268
327
  {
269
328
  "internalType": "bytes32",
@@ -275,49 +334,29 @@
275
334
  "type": "function"
276
335
  },
277
336
  {
278
- "inputs": [
279
- {
280
- "components": [
281
- {
282
- "internalType": "UFixed",
283
- "name": "fractionalFee",
284
- "type": "uint256"
285
- },
286
- {
287
- "internalType": "uint256",
288
- "name": "fixedFee",
289
- "type": "uint256"
290
- }
291
- ],
292
- "internalType": "struct Fee",
293
- "name": "fee",
294
- "type": "tuple"
295
- },
296
- {
297
- "internalType": "uint256",
298
- "name": "initialAmount",
299
- "type": "uint256"
300
- },
301
- {
302
- "internalType": "uint256",
303
- "name": "lifetime",
304
- "type": "uint256"
305
- },
337
+ "inputs": [],
338
+ "name": "POOL_STORAGE_LOCATION_V1",
339
+ "outputs": [
306
340
  {
307
- "internalType": "bytes",
308
- "name": "filter",
309
- "type": "bytes"
341
+ "internalType": "bytes32",
342
+ "name": "",
343
+ "type": "bytes32"
310
344
  }
311
345
  ],
312
- "name": "createBundle",
346
+ "stateMutability": "view",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [],
351
+ "name": "REGISTERABLE_LOCATION_V1",
313
352
  "outputs": [
314
353
  {
315
- "internalType": "NftId",
316
- "name": "bundleNftId",
317
- "type": "uint96"
354
+ "internalType": "bytes32",
355
+ "name": "",
356
+ "type": "bytes32"
318
357
  }
319
358
  ],
320
- "stateMutability": "nonpayable",
359
+ "stateMutability": "view",
321
360
  "type": "function"
322
361
  },
323
362
  {
@@ -333,6 +372,25 @@
333
372
  "stateMutability": "view",
334
373
  "type": "function"
335
374
  },
375
+ {
376
+ "inputs": [
377
+ {
378
+ "internalType": "bytes",
379
+ "name": "name",
380
+ "type": "bytes"
381
+ }
382
+ ],
383
+ "name": "getContractLocation",
384
+ "outputs": [
385
+ {
386
+ "internalType": "bytes32",
387
+ "name": "hash",
388
+ "type": "bytes32"
389
+ }
390
+ ],
391
+ "stateMutability": "pure",
392
+ "type": "function"
393
+ },
336
394
  {
337
395
  "inputs": [],
338
396
  "name": "getInitialInfo",
@@ -376,13 +434,21 @@
376
434
  }
377
435
  ],
378
436
  "internalType": "struct IRegistry.ObjectInfo",
379
- "name": "",
437
+ "name": "info",
380
438
  "type": "tuple"
381
- },
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [],
446
+ "name": "getInitialOwner",
447
+ "outputs": [
382
448
  {
383
- "internalType": "bytes",
449
+ "internalType": "address",
384
450
  "name": "",
385
- "type": "bytes"
451
+ "type": "address"
386
452
  }
387
453
  ],
388
454
  "stateMutability": "view",
@@ -401,6 +467,19 @@
401
467
  "stateMutability": "view",
402
468
  "type": "function"
403
469
  },
470
+ {
471
+ "inputs": [],
472
+ "name": "getInstanceService",
473
+ "outputs": [
474
+ {
475
+ "internalType": "contract IInstanceService",
476
+ "name": "",
477
+ "type": "address"
478
+ }
479
+ ],
480
+ "stateMutability": "view",
481
+ "type": "function"
482
+ },
404
483
  {
405
484
  "inputs": [],
406
485
  "name": "getName",
@@ -411,7 +490,7 @@
411
490
  "type": "string"
412
491
  }
413
492
  ],
414
- "stateMutability": "pure",
493
+ "stateMutability": "view",
415
494
  "type": "function"
416
495
  },
417
496
  {
@@ -453,6 +532,19 @@
453
532
  "stateMutability": "view",
454
533
  "type": "function"
455
534
  },
535
+ {
536
+ "inputs": [],
537
+ "name": "getProductService",
538
+ "outputs": [
539
+ {
540
+ "internalType": "contract IProductService",
541
+ "name": "",
542
+ "type": "address"
543
+ }
544
+ ],
545
+ "stateMutability": "view",
546
+ "type": "function"
547
+ },
456
548
  {
457
549
  "inputs": [],
458
550
  "name": "getRegistry",
@@ -545,7 +637,7 @@
545
637
  },
546
638
  {
547
639
  "internalType": "bool",
548
- "name": "isConfirmingApplication",
640
+ "name": "isVerifyingApplications",
549
641
  "type": "bool"
550
642
  },
551
643
  {
@@ -590,7 +682,46 @@
590
682
  },
591
683
  {
592
684
  "inputs": [],
593
- "name": "isConfirmingApplication",
685
+ "name": "isExternallyManaged",
686
+ "outputs": [
687
+ {
688
+ "internalType": "bool",
689
+ "name": "",
690
+ "type": "bool"
691
+ }
692
+ ],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [],
698
+ "name": "isInterceptingBundleTransfers",
699
+ "outputs": [
700
+ {
701
+ "internalType": "bool",
702
+ "name": "",
703
+ "type": "bool"
704
+ }
705
+ ],
706
+ "stateMutability": "view",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [],
711
+ "name": "isNftInterceptor",
712
+ "outputs": [
713
+ {
714
+ "internalType": "bool",
715
+ "name": "isInterceptor",
716
+ "type": "bool"
717
+ }
718
+ ],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [],
724
+ "name": "isVerifyingApplications",
594
725
  "outputs": [
595
726
  {
596
727
  "internalType": "bool",
@@ -628,6 +759,29 @@
628
759
  "stateMutability": "nonpayable",
629
760
  "type": "function"
630
761
  },
762
+ {
763
+ "inputs": [
764
+ {
765
+ "internalType": "address",
766
+ "name": "from",
767
+ "type": "address"
768
+ },
769
+ {
770
+ "internalType": "address",
771
+ "name": "to",
772
+ "type": "address"
773
+ },
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "tokenId",
777
+ "type": "uint256"
778
+ }
779
+ ],
780
+ "name": "nftTransferFrom",
781
+ "outputs": [],
782
+ "stateMutability": "nonpayable",
783
+ "type": "function"
784
+ },
631
785
  {
632
786
  "inputs": [
633
787
  {
@@ -649,7 +803,7 @@
649
803
  "type": "bool"
650
804
  }
651
805
  ],
652
- "stateMutability": "view",
806
+ "stateMutability": "pure",
653
807
  "type": "function"
654
808
  },
655
809
  {
@@ -786,16 +940,36 @@
786
940
  "stateMutability": "view",
787
941
  "type": "function"
788
942
  },
943
+ {
944
+ "inputs": [],
945
+ "name": "unlock",
946
+ "outputs": [],
947
+ "stateMutability": "nonpayable",
948
+ "type": "function"
949
+ },
789
950
  {
790
951
  "inputs": [
791
952
  {
792
953
  "internalType": "NftId",
793
- "name": "policyNftId",
954
+ "name": "bundleNftId",
955
+ "type": "uint96"
956
+ }
957
+ ],
958
+ "name": "unlockBundle",
959
+ "outputs": [],
960
+ "stateMutability": "nonpayable",
961
+ "type": "function"
962
+ },
963
+ {
964
+ "inputs": [
965
+ {
966
+ "internalType": "NftId",
967
+ "name": "applicationNftId",
794
968
  "type": "uint96"
795
969
  },
796
970
  {
797
971
  "internalType": "bytes",
798
- "name": "policyData",
972
+ "name": "applicationData",
799
973
  "type": "bytes"
800
974
  },
801
975
  {
@@ -809,27 +983,7 @@
809
983
  "type": "uint256"
810
984
  }
811
985
  ],
812
- "name": "underwrite",
813
- "outputs": [],
814
- "stateMutability": "nonpayable",
815
- "type": "function"
816
- },
817
- {
818
- "inputs": [],
819
- "name": "unlock",
820
- "outputs": [],
821
- "stateMutability": "nonpayable",
822
- "type": "function"
823
- },
824
- {
825
- "inputs": [
826
- {
827
- "internalType": "NftId",
828
- "name": "bundleNftId",
829
- "type": "uint96"
830
- }
831
- ],
832
- "name": "unlockBundle",
986
+ "name": "verifyApplication",
833
987
  "outputs": [],
834
988
  "stateMutability": "nonpayable",
835
989
  "type": "function"
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e5530b5c57be84d76caaa584abf46dd1.json"
3
+ "buildInfo": "../../../build-info/cfe4ce2d6bcc59b0c3849316a75060c6.json"
4
4
  }
@@ -41,6 +41,49 @@
41
41
  "name": "ErrorAlreadyLinked",
42
42
  "type": "error"
43
43
  },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "caller",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorComponentNotChainNft",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "instanceNftId",
60
+ "type": "uint96"
61
+ },
62
+ {
63
+ "internalType": "address",
64
+ "name": "instance",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "ErrorComponentNotInstance",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "address",
75
+ "name": "caller",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "ErrorComponentNotProductService",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "ErrorComponentProductNftAlreadySet",
85
+ "type": "error"
86
+ },
44
87
  {
45
88
  "inputs": [
46
89
  {
@@ -54,7 +97,7 @@
54
97
  "type": "uint64"
55
98
  }
56
99
  ],
57
- "name": "ErrorBaseComponentUnauthorized",
100
+ "name": "ErrorComponentUnauthorized",
58
101
  "type": "error"
59
102
  },
60
103
  {
@@ -65,7 +108,12 @@
65
108
  "type": "address"
66
109
  }
67
110
  ],
68
- "name": "ErrorBaseComponentWalletAddressIsSameAsCurrent",
111
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "ErrorComponentWalletAddressZero",
69
117
  "type": "error"
70
118
  },
71
119
  {
@@ -91,7 +139,7 @@
91
139
  "type": "uint256"
92
140
  }
93
141
  ],
94
- "name": "ErrorBaseComponentWalletAllowanceTooSmall",
142
+ "name": "ErrorComponentWalletAllowanceTooSmall",
95
143
  "type": "error"
96
144
  },
97
145
  {
@@ -208,7 +256,7 @@
208
256
  "type": "address"
209
257
  }
210
258
  ],
211
- "name": "LogBaseComponentWalletAddressChanged",
259
+ "name": "LogComponentWalletAddressChanged",
212
260
  "type": "event"
213
261
  },
214
262
  {
@@ -233,9 +281,22 @@
233
281
  "type": "uint256"
234
282
  }
235
283
  ],
236
- "name": "LogBaseComponentWalletTokensTransferred",
284
+ "name": "LogComponentWalletTokensTransferred",
237
285
  "type": "event"
238
286
  },
287
+ {
288
+ "inputs": [],
289
+ "name": "CONTRACT_LOCATION_V1",
290
+ "outputs": [
291
+ {
292
+ "internalType": "bytes32",
293
+ "name": "",
294
+ "type": "bytes32"
295
+ }
296
+ ],
297
+ "stateMutability": "view",
298
+ "type": "function"
299
+ },
239
300
  {
240
301
  "inputs": [],
241
302
  "name": "REGISTERABLE_LOCATION_V1",
@@ -305,15 +366,15 @@
305
366
  "name": "applicationData",
306
367
  "type": "bytes"
307
368
  },
308
- {
309
- "internalType": "ReferralId",
310
- "name": "referralId",
311
- "type": "bytes8"
312
- },
313
369
  {
314
370
  "internalType": "NftId",
315
371
  "name": "bundleNftId",
316
372
  "type": "uint96"
373
+ },
374
+ {
375
+ "internalType": "ReferralId",
376
+ "name": "referralId",
377
+ "type": "bytes8"
317
378
  }
318
379
  ],
319
380
  "name": "calculatePremium",
@@ -383,13 +444,21 @@
383
444
  }
384
445
  ],
385
446
  "internalType": "struct IRegistry.ObjectInfo",
386
- "name": "",
447
+ "name": "info",
387
448
  "type": "tuple"
388
- },
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [],
456
+ "name": "getInitialOwner",
457
+ "outputs": [
389
458
  {
390
- "internalType": "bytes",
459
+ "internalType": "address",
391
460
  "name": "",
392
- "type": "bytes"
461
+ "type": "address"
393
462
  }
394
463
  ],
395
464
  "stateMutability": "view",
@@ -408,6 +477,19 @@
408
477
  "stateMutability": "view",
409
478
  "type": "function"
410
479
  },
480
+ {
481
+ "inputs": [],
482
+ "name": "getInstanceService",
483
+ "outputs": [
484
+ {
485
+ "internalType": "contract IInstanceService",
486
+ "name": "",
487
+ "type": "address"
488
+ }
489
+ ],
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
411
493
  {
412
494
  "inputs": [],
413
495
  "name": "getName",
@@ -418,7 +500,7 @@
418
500
  "type": "string"
419
501
  }
420
502
  ],
421
- "stateMutability": "pure",
503
+ "stateMutability": "view",
422
504
  "type": "function"
423
505
  },
424
506
  {
@@ -473,6 +555,19 @@
473
555
  "stateMutability": "view",
474
556
  "type": "function"
475
557
  },
558
+ {
559
+ "inputs": [],
560
+ "name": "getProductService",
561
+ "outputs": [
562
+ {
563
+ "internalType": "contract IProductService",
564
+ "name": "",
565
+ "type": "address"
566
+ }
567
+ ],
568
+ "stateMutability": "view",
569
+ "type": "function"
570
+ },
476
571
  {
477
572
  "inputs": [],
478
573
  "name": "getRegistry",
@@ -659,6 +754,19 @@
659
754
  "stateMutability": "view",
660
755
  "type": "function"
661
756
  },
757
+ {
758
+ "inputs": [],
759
+ "name": "isNftInterceptor",
760
+ "outputs": [
761
+ {
762
+ "internalType": "bool",
763
+ "name": "isInterceptor",
764
+ "type": "bool"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
662
770
  {
663
771
  "inputs": [],
664
772
  "name": "linkToRegisteredNftId",
@@ -673,6 +781,29 @@
673
781
  "stateMutability": "nonpayable",
674
782
  "type": "function"
675
783
  },
784
+ {
785
+ "inputs": [
786
+ {
787
+ "internalType": "address",
788
+ "name": "from",
789
+ "type": "address"
790
+ },
791
+ {
792
+ "internalType": "address",
793
+ "name": "to",
794
+ "type": "address"
795
+ },
796
+ {
797
+ "internalType": "uint256",
798
+ "name": "tokenId",
799
+ "type": "uint256"
800
+ }
801
+ ],
802
+ "name": "nftTransferFrom",
803
+ "outputs": [],
804
+ "stateMutability": "nonpayable",
805
+ "type": "function"
806
+ },
676
807
  {
677
808
  "inputs": [
678
809
  {