@etherisc/gif-next 0.0.2-851536d → 0.0.2-86e23a6-752

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/README.md +436 -8
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +759 -41
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1433 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +292 -224
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +950 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +894 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +813 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1229 -76
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +1161 -102
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  40. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  42. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  43. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  44. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  45. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  46. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  47. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  48. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  49. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  50. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  51. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  52. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  53. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  54. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  55. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  56. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  57. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1967 -472
  58. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +674 -0
  60. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  61. package/artifacts/contracts/instance/Instance.sol/Instance.json +2702 -446
  62. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
  64. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1386 -0
  66. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1260 -0
  68. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +610 -0
  70. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  71. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  72. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +754 -0
  74. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  75. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  76. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  78. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  79. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  80. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  82. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  84. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  86. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  88. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  90. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  92. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  93. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/ISetup.sol/ISetup.json} +2 -2
  94. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
  96. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1117 -0
  98. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1318 -0
  100. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +586 -0
  102. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1200 -0
  104. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +614 -0
  106. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +638 -0
  108. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +798 -0
  110. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +656 -0
  112. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +784 -0
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +512 -0
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +549 -0
  118. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1378 -0
  120. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +642 -0
  122. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +957 -0
  124. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +574 -0
  126. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +1007 -0
  128. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +574 -0
  130. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  131. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  132. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  133. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +519 -61
  134. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  135. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +1055 -0
  136. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  137. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  138. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  139. package/artifacts/contracts/registry/Registry.sol/Registry.json +567 -75
  140. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  141. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  142. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  143. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1407 -0
  144. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  145. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +601 -0
  146. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  147. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  148. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  149. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +531 -0
  150. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  151. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  152. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  153. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
  154. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  155. package/artifacts/contracts/{registry/Registry.sol/Registerable.json → shared/INftOwnable.sol/INftOwnable.json} +68 -70
  156. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  157. package/artifacts/contracts/{instance/product/IProductService.sol/IProductService.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +68 -53
  158. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  159. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +214 -0
  160. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  161. package/artifacts/contracts/{instance/product/ProductService.sol/ProductModule.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +23 -29
  162. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  163. package/artifacts/contracts/shared/IService.sol/IService.json +434 -0
  164. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  165. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  166. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  167. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +303 -0
  168. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  169. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +269 -0
  170. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  171. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +499 -0
  172. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  173. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +415 -0
  174. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  175. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +105 -0
  176. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  177. package/artifacts/contracts/shared/Service.sol/Service.json +627 -0
  178. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  179. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  180. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  181. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  182. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  183. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  184. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  185. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  186. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  187. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +446 -0
  188. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  189. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  190. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  191. package/artifacts/contracts/test/TestService.sol/TestService.json +759 -0
  192. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  193. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  194. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  195. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  196. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  197. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  198. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  199. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  200. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  201. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  202. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  204. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  205. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  206. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  208. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  210. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  211. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  212. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  214. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  215. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  216. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  218. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  219. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  220. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  222. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  224. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  225. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  226. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  227. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  228. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  229. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +77 -2
  230. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  231. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  232. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  233. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  234. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  235. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  236. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  237. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  238. package/contracts/components/Component.sol +211 -37
  239. package/contracts/components/Distribution.sol +308 -0
  240. package/contracts/components/IComponent.sol +50 -0
  241. package/contracts/components/IDistributionComponent.sol +100 -0
  242. package/contracts/components/IPoolComponent.sol +87 -0
  243. package/contracts/components/IProductComponent.sol +39 -0
  244. package/contracts/components/Pool.sol +242 -17
  245. package/contracts/components/Product.sol +244 -32
  246. package/contracts/experiment/cloning/Cloner.sol +47 -0
  247. package/contracts/experiment/errors/Require.sol +10 -5
  248. package/contracts/experiment/errors/Revert.sol +13 -8
  249. package/contracts/experiment/inheritance/A.sol +8 -11
  250. package/contracts/experiment/inheritance/B.sol +10 -5
  251. package/contracts/experiment/inheritance/C.sol +11 -5
  252. package/contracts/experiment/inheritance/IA.sol +2 -7
  253. package/contracts/experiment/inheritance/IB.sol +3 -2
  254. package/contracts/experiment/inheritance/IC.sol +4 -3
  255. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  256. package/contracts/experiment/statemachine/ISM.sol +25 -0
  257. package/contracts/experiment/statemachine/SM.sol +57 -0
  258. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  259. package/contracts/experiment/types/TypeA.sol +14 -9
  260. package/contracts/experiment/types/TypeB.sol +14 -9
  261. package/contracts/instance/BundleManager.sol +125 -0
  262. package/contracts/instance/Cloneable.sol +46 -0
  263. package/contracts/instance/IInstance.sol +81 -15
  264. package/contracts/instance/IInstanceService.sol +59 -0
  265. package/contracts/instance/Instance.sol +260 -43
  266. package/contracts/instance/InstanceAccessManager.sol +297 -0
  267. package/contracts/instance/InstanceReader.sol +293 -0
  268. package/contracts/instance/InstanceService.sol +442 -0
  269. package/contracts/instance/InstanceServiceManager.sol +54 -0
  270. package/contracts/instance/ObjectManager.sol +84 -0
  271. package/contracts/instance/base/ComponentService.sol +134 -0
  272. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  273. package/contracts/instance/base/ILifecycle.sol +30 -0
  274. package/contracts/instance/base/KeyValueStore.sol +172 -0
  275. package/contracts/instance/base/Lifecycle.sol +100 -0
  276. package/contracts/instance/module/IAccess.sol +47 -0
  277. package/contracts/instance/module/IBundle.sol +20 -0
  278. package/contracts/instance/module/IDistribution.sol +39 -0
  279. package/contracts/instance/module/IPolicy.sol +45 -0
  280. package/contracts/instance/module/IRisk.sol +11 -0
  281. package/contracts/instance/module/ISetup.sol +47 -0
  282. package/contracts/instance/module/ITreasury.sol +23 -0
  283. package/contracts/instance/service/ApplicationService.sol +268 -0
  284. package/contracts/instance/service/BundleService.sol +298 -0
  285. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  286. package/contracts/instance/service/DistributionService.sol +291 -0
  287. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  288. package/contracts/instance/service/IApplicationService.sol +82 -0
  289. package/contracts/instance/service/IBundleService.sol +54 -0
  290. package/contracts/instance/service/IDistributionService.sol +65 -0
  291. package/contracts/instance/service/IPolicyService.sol +88 -0
  292. package/contracts/instance/service/IPoolService.sol +20 -0
  293. package/contracts/instance/service/IProductService.sol +40 -0
  294. package/contracts/instance/service/PolicyService.sol +524 -0
  295. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  296. package/contracts/instance/service/PoolService.sol +109 -0
  297. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  298. package/contracts/instance/service/ProductService.sol +233 -0
  299. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  300. package/contracts/registry/ChainNft.sol +138 -109
  301. package/contracts/registry/IRegistry.sol +78 -49
  302. package/contracts/registry/IRegistryService.sol +67 -0
  303. package/contracts/registry/ITransferInterceptor.sol +6 -0
  304. package/contracts/registry/Registry.sol +398 -116
  305. package/contracts/registry/RegistryAccessManager.sol +216 -0
  306. package/contracts/registry/RegistryService.sol +277 -0
  307. package/contracts/registry/RegistryServiceManager.sol +62 -0
  308. package/contracts/registry/ReleaseManager.sol +331 -0
  309. package/contracts/registry/TokenRegistry.sol +113 -0
  310. package/contracts/shared/ContractDeployerLib.sol +72 -0
  311. package/contracts/shared/ERC165.sol +26 -0
  312. package/contracts/shared/INftOwnable.sol +28 -0
  313. package/contracts/shared/IPolicyHolder.sol +26 -0
  314. package/contracts/shared/IRegisterable.sol +15 -0
  315. package/contracts/shared/IRegistryLinked.sol +15 -0
  316. package/contracts/shared/IService.sol +16 -0
  317. package/contracts/shared/IVersionable.sol +96 -0
  318. package/contracts/shared/NftOwnable.sol +190 -0
  319. package/contracts/shared/PolicyHolder.sol +81 -0
  320. package/contracts/shared/ProxyManager.sol +95 -0
  321. package/contracts/shared/Registerable.sol +81 -0
  322. package/contracts/shared/RegistryLinked.sol +64 -0
  323. package/contracts/shared/Service.sol +60 -0
  324. package/contracts/shared/TokenHandler.sol +27 -0
  325. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  326. package/contracts/shared/Versionable.sol +148 -0
  327. package/contracts/test/TestFee.sol +25 -0
  328. package/contracts/test/TestRegisterable.sol +18 -0
  329. package/contracts/test/TestRoleId.sol +14 -0
  330. package/contracts/test/TestService.sol +25 -0
  331. package/contracts/test/TestToken.sol +26 -0
  332. package/contracts/test/TestVersion.sol +44 -0
  333. package/contracts/test/TestVersionable.sol +17 -0
  334. package/contracts/test/Usdc.sol +26 -0
  335. package/contracts/types/AddressSet.sol +58 -0
  336. package/contracts/types/Blocknumber.sol +76 -18
  337. package/contracts/types/ChainId.sol +18 -10
  338. package/contracts/types/DistributorType.sol +55 -0
  339. package/contracts/types/Fee.sol +56 -0
  340. package/contracts/types/Key32.sol +50 -0
  341. package/contracts/types/NftId.sol +48 -11
  342. package/contracts/types/NftIdSet.sol +62 -0
  343. package/contracts/types/NumberId.sol +52 -0
  344. package/contracts/types/ObjectType.sol +156 -0
  345. package/contracts/types/Referral.sol +85 -0
  346. package/contracts/types/RiskId.sol +43 -0
  347. package/contracts/types/RoleId.sol +90 -0
  348. package/contracts/types/StateId.sol +105 -0
  349. package/contracts/types/Timestamp.sol +89 -17
  350. package/contracts/types/UFixed.sol +193 -75
  351. package/contracts/types/Version.sol +107 -0
  352. package/package.json +21 -6
  353. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  354. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  355. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  356. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
  357. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  358. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
  359. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  360. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  361. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  362. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  363. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  364. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  365. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  366. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  368. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  369. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -327
  370. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  371. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
  372. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  373. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  374. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
  375. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  376. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  377. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  378. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  379. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  380. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  381. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  382. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  383. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
  384. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  385. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
  386. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  387. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
  389. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  390. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
  391. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  392. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  393. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  394. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  395. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  396. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
  397. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  398. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  399. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  400. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  401. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  402. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  403. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  404. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  405. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  406. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  407. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  408. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -440
  409. package/contracts/components/IPool.sol +0 -9
  410. package/contracts/components/IProduct.sol +0 -12
  411. package/contracts/instance/access/Access.sol +0 -218
  412. package/contracts/instance/access/IAccess.sol +0 -83
  413. package/contracts/instance/component/ComponentModule.sol +0 -248
  414. package/contracts/instance/component/IComponent.sol +0 -95
  415. package/contracts/instance/policy/IPolicy.sol +0 -66
  416. package/contracts/instance/policy/PolicyModule.sol +0 -107
  417. package/contracts/instance/pool/IPoolModule.sol +0 -41
  418. package/contracts/instance/pool/PoolModule.sol +0 -86
  419. package/contracts/instance/product/IProductService.sol +0 -46
  420. package/contracts/instance/product/ProductService.sol +0 -108
  421. package/contracts/registry/IChainNft.sol +0 -18
@@ -3,81 +3,1022 @@
3
3
  "contractName": "Pool",
4
4
  "sourceName": "contracts/components/Pool.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "target",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "AddressEmptyCode",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "account",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "AddressInsufficientBalance",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "registry",
71
+ "type": "address"
72
+ },
73
+ {
74
+ "internalType": "NftId",
75
+ "name": "nftId",
76
+ "type": "uint96"
77
+ }
78
+ ],
79
+ "name": "ErrorAlreadyLinked",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "caller",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "ErrorComponentNotChainNft",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "NftId",
97
+ "name": "instanceNftId",
98
+ "type": "uint96"
99
+ },
100
+ {
101
+ "internalType": "address",
102
+ "name": "instance",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotInstance",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "address",
113
+ "name": "caller",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "ErrorComponentNotProductService",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "ErrorComponentProductNftAlreadySet",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [
127
+ {
128
+ "internalType": "address",
129
+ "name": "caller",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "internalType": "uint64",
134
+ "name": "requiredRoleIdNum",
135
+ "type": "uint64"
136
+ }
137
+ ],
138
+ "name": "ErrorComponentUnauthorized",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "address",
145
+ "name": "newWallet",
146
+ "type": "address"
147
+ }
148
+ ],
149
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [],
154
+ "name": "ErrorComponentWalletAddressZero",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [
159
+ {
160
+ "internalType": "address",
161
+ "name": "oldWallet",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "internalType": "address",
166
+ "name": "newWallet",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "allowance",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "balance",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "name": "ErrorComponentWalletAllowanceTooSmall",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "contractAddress",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorContractNotRegistered",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "ErrorInitialOwnerZero",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [
201
+ {
202
+ "internalType": "address",
203
+ "name": "account",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "ErrorNotOwner",
208
+ "type": "error"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "registryAddress",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "name": "ErrorNotRegistry",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "service",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "ErrorPoolNotPoolService",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [
234
+ {
235
+ "internalType": "address",
236
+ "name": "registryAddress",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "name": "ErrorRegisterableNotRegistry",
241
+ "type": "error"
242
+ },
243
+ {
244
+ "inputs": [],
245
+ "name": "ErrorRegistryAddressZero",
246
+ "type": "error"
247
+ },
248
+ {
249
+ "inputs": [
250
+ {
251
+ "internalType": "address",
252
+ "name": "registry",
253
+ "type": "address"
254
+ }
255
+ ],
256
+ "name": "ErrorRegistryAlreadyInitialized",
257
+ "type": "error"
258
+ },
259
+ {
260
+ "inputs": [],
261
+ "name": "ErrorRegistryNotInitialized",
262
+ "type": "error"
263
+ },
264
+ {
265
+ "inputs": [],
266
+ "name": "FailedInnerCall",
267
+ "type": "error"
268
+ },
269
+ {
270
+ "inputs": [],
271
+ "name": "InvalidInitialization",
272
+ "type": "error"
273
+ },
274
+ {
275
+ "inputs": [],
276
+ "name": "NotInitializing",
277
+ "type": "error"
278
+ },
279
+ {
280
+ "inputs": [
281
+ {
282
+ "internalType": "address",
283
+ "name": "token",
284
+ "type": "address"
285
+ }
286
+ ],
287
+ "name": "SafeERC20FailedOperation",
288
+ "type": "error"
289
+ },
290
+ {
291
+ "anonymous": false,
292
+ "inputs": [
293
+ {
294
+ "indexed": false,
295
+ "internalType": "address",
296
+ "name": "authority",
297
+ "type": "address"
298
+ }
299
+ ],
300
+ "name": "AuthorityUpdated",
301
+ "type": "event"
302
+ },
303
+ {
304
+ "anonymous": false,
305
+ "inputs": [
306
+ {
307
+ "indexed": false,
308
+ "internalType": "uint64",
309
+ "name": "version",
310
+ "type": "uint64"
311
+ }
312
+ ],
313
+ "name": "Initialized",
314
+ "type": "event"
315
+ },
316
+ {
317
+ "anonymous": false,
318
+ "inputs": [
319
+ {
320
+ "indexed": false,
321
+ "internalType": "address",
322
+ "name": "newWallet",
323
+ "type": "address"
324
+ }
325
+ ],
326
+ "name": "LogComponentWalletAddressChanged",
327
+ "type": "event"
328
+ },
329
+ {
330
+ "anonymous": false,
331
+ "inputs": [
332
+ {
333
+ "indexed": false,
334
+ "internalType": "address",
335
+ "name": "from",
336
+ "type": "address"
337
+ },
338
+ {
339
+ "indexed": false,
340
+ "internalType": "address",
341
+ "name": "to",
342
+ "type": "address"
343
+ },
344
+ {
345
+ "indexed": false,
346
+ "internalType": "uint256",
347
+ "name": "amount",
348
+ "type": "uint256"
349
+ }
350
+ ],
351
+ "name": "LogComponentWalletTokensTransferred",
352
+ "type": "event"
353
+ },
354
+ {
355
+ "anonymous": false,
356
+ "inputs": [
357
+ {
358
+ "indexed": false,
359
+ "internalType": "NftId",
360
+ "name": "policyNftId",
361
+ "type": "uint96"
362
+ },
363
+ {
364
+ "indexed": false,
365
+ "internalType": "uint256",
366
+ "name": "collateralizationAmount",
367
+ "type": "uint256"
368
+ },
369
+ {
370
+ "indexed": false,
371
+ "internalType": "address",
372
+ "name": "pool",
373
+ "type": "address"
374
+ }
375
+ ],
376
+ "name": "LogUnderwrittenByPool",
377
+ "type": "event"
378
+ },
379
+ {
380
+ "inputs": [],
381
+ "name": "CONTRACT_LOCATION_V1",
382
+ "outputs": [
383
+ {
384
+ "internalType": "bytes32",
385
+ "name": "",
386
+ "type": "bytes32"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [],
394
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
395
+ "outputs": [
396
+ {
397
+ "internalType": "bytes32",
398
+ "name": "",
399
+ "type": "bytes32"
400
+ }
401
+ ],
402
+ "stateMutability": "view",
403
+ "type": "function"
404
+ },
405
+ {
406
+ "inputs": [],
407
+ "name": "POOL_STORAGE_LOCATION_V1",
408
+ "outputs": [
409
+ {
410
+ "internalType": "bytes32",
411
+ "name": "",
412
+ "type": "bytes32"
413
+ }
414
+ ],
415
+ "stateMutability": "view",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [],
420
+ "name": "REGISTERABLE_LOCATION_V1",
421
+ "outputs": [
422
+ {
423
+ "internalType": "bytes32",
424
+ "name": "",
425
+ "type": "bytes32"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [],
433
+ "name": "authority",
434
+ "outputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "",
438
+ "type": "address"
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [],
446
+ "name": "getCollateralizationLevel",
447
+ "outputs": [
448
+ {
449
+ "internalType": "UFixed",
450
+ "name": "collateralizationLevel",
451
+ "type": "uint256"
452
+ }
453
+ ],
454
+ "stateMutability": "view",
455
+ "type": "function"
456
+ },
457
+ {
458
+ "inputs": [
459
+ {
460
+ "internalType": "bytes",
461
+ "name": "name",
462
+ "type": "bytes"
463
+ }
464
+ ],
465
+ "name": "getContractLocation",
466
+ "outputs": [
467
+ {
468
+ "internalType": "bytes32",
469
+ "name": "hash",
470
+ "type": "bytes32"
471
+ }
472
+ ],
473
+ "stateMutability": "pure",
474
+ "type": "function"
475
+ },
476
+ {
477
+ "inputs": [],
478
+ "name": "getInitialInfo",
479
+ "outputs": [
480
+ {
481
+ "components": [
482
+ {
483
+ "internalType": "NftId",
484
+ "name": "nftId",
485
+ "type": "uint96"
486
+ },
487
+ {
488
+ "internalType": "NftId",
489
+ "name": "parentNftId",
490
+ "type": "uint96"
491
+ },
492
+ {
493
+ "internalType": "ObjectType",
494
+ "name": "objectType",
495
+ "type": "uint8"
496
+ },
497
+ {
498
+ "internalType": "bool",
499
+ "name": "isInterceptor",
500
+ "type": "bool"
501
+ },
502
+ {
503
+ "internalType": "address",
504
+ "name": "objectAddress",
505
+ "type": "address"
506
+ },
507
+ {
508
+ "internalType": "address",
509
+ "name": "initialOwner",
510
+ "type": "address"
511
+ },
512
+ {
513
+ "internalType": "bytes",
514
+ "name": "data",
515
+ "type": "bytes"
516
+ }
517
+ ],
518
+ "internalType": "struct IRegistry.ObjectInfo",
519
+ "name": "info",
520
+ "type": "tuple"
521
+ }
522
+ ],
523
+ "stateMutability": "view",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [],
528
+ "name": "getInitialOwner",
529
+ "outputs": [
530
+ {
531
+ "internalType": "address",
532
+ "name": "",
533
+ "type": "address"
534
+ }
535
+ ],
536
+ "stateMutability": "view",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [],
541
+ "name": "getInstance",
542
+ "outputs": [
543
+ {
544
+ "internalType": "contract IInstance",
545
+ "name": "instance",
546
+ "type": "address"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [],
554
+ "name": "getInstanceReader",
555
+ "outputs": [
556
+ {
557
+ "internalType": "contract InstanceReader",
558
+ "name": "reader",
559
+ "type": "address"
560
+ }
561
+ ],
562
+ "stateMutability": "view",
563
+ "type": "function"
564
+ },
565
+ {
566
+ "inputs": [],
567
+ "name": "getInstanceService",
568
+ "outputs": [
569
+ {
570
+ "internalType": "contract IInstanceService",
571
+ "name": "",
572
+ "type": "address"
573
+ }
574
+ ],
575
+ "stateMutability": "view",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [],
580
+ "name": "getName",
581
+ "outputs": [
582
+ {
583
+ "internalType": "string",
584
+ "name": "name",
585
+ "type": "string"
586
+ }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [],
593
+ "name": "getNftId",
594
+ "outputs": [
595
+ {
596
+ "internalType": "NftId",
597
+ "name": "",
598
+ "type": "uint96"
599
+ }
600
+ ],
601
+ "stateMutability": "view",
602
+ "type": "function"
603
+ },
604
+ {
605
+ "inputs": [],
606
+ "name": "getOwner",
607
+ "outputs": [
608
+ {
609
+ "internalType": "address",
610
+ "name": "",
611
+ "type": "address"
612
+ }
613
+ ],
614
+ "stateMutability": "view",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [],
619
+ "name": "getProductNftId",
620
+ "outputs": [
621
+ {
622
+ "internalType": "NftId",
623
+ "name": "productNftId",
624
+ "type": "uint96"
625
+ }
626
+ ],
627
+ "stateMutability": "view",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [],
632
+ "name": "getProductService",
633
+ "outputs": [
634
+ {
635
+ "internalType": "contract IProductService",
636
+ "name": "",
637
+ "type": "address"
638
+ }
639
+ ],
640
+ "stateMutability": "view",
641
+ "type": "function"
642
+ },
643
+ {
644
+ "inputs": [],
645
+ "name": "getRegistry",
646
+ "outputs": [
647
+ {
648
+ "internalType": "contract IRegistry",
649
+ "name": "",
650
+ "type": "address"
651
+ }
652
+ ],
653
+ "stateMutability": "view",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [],
658
+ "name": "getRegistryAddress",
659
+ "outputs": [
660
+ {
661
+ "internalType": "address",
662
+ "name": "",
663
+ "type": "address"
664
+ }
665
+ ],
666
+ "stateMutability": "view",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "inputs": [],
671
+ "name": "getRetentionLevel",
672
+ "outputs": [
673
+ {
674
+ "internalType": "UFixed",
675
+ "name": "retentionLevel",
676
+ "type": "uint256"
677
+ }
678
+ ],
679
+ "stateMutability": "view",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [],
684
+ "name": "getSetupInfo",
685
+ "outputs": [
686
+ {
687
+ "components": [
688
+ {
689
+ "internalType": "NftId",
690
+ "name": "productNftId",
691
+ "type": "uint96"
692
+ },
693
+ {
694
+ "internalType": "contract TokenHandler",
695
+ "name": "tokenHandler",
696
+ "type": "address"
697
+ },
698
+ {
699
+ "internalType": "bool",
700
+ "name": "isInterceptingBundleTransfers",
701
+ "type": "bool"
702
+ },
703
+ {
704
+ "internalType": "bool",
705
+ "name": "isExternallyManaged",
706
+ "type": "bool"
707
+ },
708
+ {
709
+ "internalType": "bool",
710
+ "name": "isVerifyingApplications",
711
+ "type": "bool"
712
+ },
713
+ {
714
+ "internalType": "UFixed",
715
+ "name": "collateralizationLevel",
716
+ "type": "uint256"
717
+ },
718
+ {
719
+ "internalType": "UFixed",
720
+ "name": "retentionLevel",
721
+ "type": "uint256"
722
+ },
723
+ {
724
+ "components": [
725
+ {
726
+ "internalType": "UFixed",
727
+ "name": "fractionalFee",
728
+ "type": "uint256"
729
+ },
730
+ {
731
+ "internalType": "uint256",
732
+ "name": "fixedFee",
733
+ "type": "uint256"
734
+ }
735
+ ],
736
+ "internalType": "struct Fee",
737
+ "name": "poolFee",
738
+ "type": "tuple"
739
+ },
740
+ {
741
+ "components": [
742
+ {
743
+ "internalType": "UFixed",
744
+ "name": "fractionalFee",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "fixedFee",
750
+ "type": "uint256"
751
+ }
752
+ ],
753
+ "internalType": "struct Fee",
754
+ "name": "stakingFee",
755
+ "type": "tuple"
756
+ },
757
+ {
758
+ "components": [
759
+ {
760
+ "internalType": "UFixed",
761
+ "name": "fractionalFee",
762
+ "type": "uint256"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "fixedFee",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "internalType": "struct Fee",
771
+ "name": "performanceFee",
772
+ "type": "tuple"
773
+ },
774
+ {
775
+ "internalType": "address",
776
+ "name": "wallet",
777
+ "type": "address"
778
+ }
779
+ ],
780
+ "internalType": "struct ISetup.PoolSetupInfo",
781
+ "name": "setupInfo",
782
+ "type": "tuple"
783
+ }
784
+ ],
785
+ "stateMutability": "view",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [],
790
+ "name": "getToken",
791
+ "outputs": [
792
+ {
793
+ "internalType": "contract IERC20Metadata",
794
+ "name": "token",
795
+ "type": "address"
796
+ }
797
+ ],
798
+ "stateMutability": "view",
799
+ "type": "function"
800
+ },
801
+ {
802
+ "inputs": [],
803
+ "name": "getWallet",
804
+ "outputs": [
805
+ {
806
+ "internalType": "address",
807
+ "name": "walletAddress",
808
+ "type": "address"
809
+ }
810
+ ],
811
+ "stateMutability": "view",
812
+ "type": "function"
813
+ },
6
814
  {
7
815
  "inputs": [
8
816
  {
9
817
  "internalType": "address",
10
818
  "name": "registry",
11
819
  "type": "address"
12
- },
820
+ },
821
+ {
822
+ "internalType": "NftId",
823
+ "name": "instanceNftId",
824
+ "type": "uint96"
825
+ },
826
+ {
827
+ "internalType": "string",
828
+ "name": "name",
829
+ "type": "string"
830
+ },
831
+ {
832
+ "internalType": "address",
833
+ "name": "token",
834
+ "type": "address"
835
+ },
836
+ {
837
+ "internalType": "ObjectType",
838
+ "name": "componentType",
839
+ "type": "uint8"
840
+ },
841
+ {
842
+ "internalType": "bool",
843
+ "name": "isInterceptor",
844
+ "type": "bool"
845
+ },
846
+ {
847
+ "internalType": "address",
848
+ "name": "initialOwner",
849
+ "type": "address"
850
+ },
851
+ {
852
+ "internalType": "bytes",
853
+ "name": "data",
854
+ "type": "bytes"
855
+ }
856
+ ],
857
+ "name": "initializeComponent",
858
+ "outputs": [],
859
+ "stateMutability": "nonpayable",
860
+ "type": "function"
861
+ },
862
+ {
863
+ "inputs": [],
864
+ "name": "initializeERC165",
865
+ "outputs": [],
866
+ "stateMutability": "nonpayable",
867
+ "type": "function"
868
+ },
869
+ {
870
+ "inputs": [
871
+ {
872
+ "internalType": "address",
873
+ "name": "initialOwner",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "address",
878
+ "name": "registryAddress",
879
+ "type": "address"
880
+ }
881
+ ],
882
+ "name": "initializeNftOwnable",
883
+ "outputs": [],
884
+ "stateMutability": "nonpayable",
885
+ "type": "function"
886
+ },
887
+ {
888
+ "inputs": [
13
889
  {
14
890
  "internalType": "address",
15
- "name": "instance",
891
+ "name": "initialOwner",
16
892
  "type": "address"
17
893
  }
18
894
  ],
895
+ "name": "initializeOwner",
896
+ "outputs": [],
19
897
  "stateMutability": "nonpayable",
20
- "type": "constructor"
898
+ "type": "function"
21
899
  },
22
900
  {
23
- "anonymous": false,
24
901
  "inputs": [
25
902
  {
26
- "indexed": false,
27
- "internalType": "uint256",
28
- "name": "idx",
903
+ "internalType": "address",
904
+ "name": "registry",
905
+ "type": "address"
906
+ },
907
+ {
908
+ "internalType": "NftId",
909
+ "name": "instanceNftId",
910
+ "type": "uint96"
911
+ },
912
+ {
913
+ "internalType": "string",
914
+ "name": "name",
915
+ "type": "string"
916
+ },
917
+ {
918
+ "internalType": "address",
919
+ "name": "token",
920
+ "type": "address"
921
+ },
922
+ {
923
+ "internalType": "bool",
924
+ "name": "isInterceptingNftTransfers",
925
+ "type": "bool"
926
+ },
927
+ {
928
+ "internalType": "bool",
929
+ "name": "isExternallyManaging",
930
+ "type": "bool"
931
+ },
932
+ {
933
+ "internalType": "bool",
934
+ "name": "isVerifying",
935
+ "type": "bool"
936
+ },
937
+ {
938
+ "internalType": "UFixed",
939
+ "name": "collateralizationLevel",
940
+ "type": "uint256"
941
+ },
942
+ {
943
+ "internalType": "UFixed",
944
+ "name": "retentionLevel",
29
945
  "type": "uint256"
30
946
  },
31
947
  {
32
- "indexed": false,
33
948
  "internalType": "address",
34
- "name": "module",
949
+ "name": "initialOwner",
35
950
  "type": "address"
36
951
  },
37
952
  {
38
- "indexed": false,
39
- "internalType": "string",
40
- "name": "comment",
41
- "type": "string"
953
+ "internalType": "bytes",
954
+ "name": "data",
955
+ "type": "bytes"
42
956
  }
43
957
  ],
44
- "name": "LogDebug",
45
- "type": "event"
958
+ "name": "initializePool",
959
+ "outputs": [],
960
+ "stateMutability": "nonpayable",
961
+ "type": "function"
46
962
  },
47
963
  {
48
- "inputs": [],
49
- "name": "getData",
50
- "outputs": [
964
+ "inputs": [
965
+ {
966
+ "internalType": "address",
967
+ "name": "registryAddress",
968
+ "type": "address"
969
+ },
970
+ {
971
+ "internalType": "NftId",
972
+ "name": "parentNftId",
973
+ "type": "uint96"
974
+ },
975
+ {
976
+ "internalType": "ObjectType",
977
+ "name": "objectType",
978
+ "type": "uint8"
979
+ },
980
+ {
981
+ "internalType": "bool",
982
+ "name": "isInterceptor",
983
+ "type": "bool"
984
+ },
985
+ {
986
+ "internalType": "address",
987
+ "name": "initialOwner",
988
+ "type": "address"
989
+ },
51
990
  {
52
991
  "internalType": "bytes",
53
992
  "name": "data",
54
993
  "type": "bytes"
55
994
  }
56
995
  ],
57
- "stateMutability": "view",
996
+ "name": "initializeRegisterable",
997
+ "outputs": [],
998
+ "stateMutability": "nonpayable",
58
999
  "type": "function"
59
1000
  },
60
1001
  {
61
- "inputs": [],
62
- "name": "getInitialOwner",
63
- "outputs": [
1002
+ "inputs": [
64
1003
  {
65
1004
  "internalType": "address",
66
- "name": "deployer",
1005
+ "name": "registryAddress",
67
1006
  "type": "address"
68
1007
  }
69
1008
  ],
70
- "stateMutability": "view",
1009
+ "name": "initializeRegistryLinked",
1010
+ "outputs": [],
1011
+ "stateMutability": "nonpayable",
71
1012
  "type": "function"
72
1013
  },
73
1014
  {
74
1015
  "inputs": [],
75
- "name": "getInstance",
1016
+ "name": "isConsumingScheduledOp",
76
1017
  "outputs": [
77
1018
  {
78
- "internalType": "contract IInstance",
79
- "name": "instance",
80
- "type": "address"
1019
+ "internalType": "bytes4",
1020
+ "name": "",
1021
+ "type": "bytes4"
81
1022
  }
82
1023
  ],
83
1024
  "stateMutability": "view",
@@ -85,12 +1026,12 @@
85
1026
  },
86
1027
  {
87
1028
  "inputs": [],
88
- "name": "getNftId",
1029
+ "name": "isExternallyManaged",
89
1030
  "outputs": [
90
1031
  {
91
- "internalType": "NftId",
92
- "name": "nftId",
93
- "type": "uint96"
1032
+ "internalType": "bool",
1033
+ "name": "",
1034
+ "type": "bool"
94
1035
  }
95
1036
  ],
96
1037
  "stateMutability": "view",
@@ -98,12 +1039,12 @@
98
1039
  },
99
1040
  {
100
1041
  "inputs": [],
101
- "name": "getOwner",
1042
+ "name": "isInterceptingBundleTransfers",
102
1043
  "outputs": [
103
1044
  {
104
- "internalType": "address",
105
- "name": "owner",
106
- "type": "address"
1045
+ "internalType": "bool",
1046
+ "name": "",
1047
+ "type": "bool"
107
1048
  }
108
1049
  ],
109
1050
  "stateMutability": "view",
@@ -111,12 +1052,12 @@
111
1052
  },
112
1053
  {
113
1054
  "inputs": [],
114
- "name": "getParentNftId",
1055
+ "name": "isNftInterceptor",
115
1056
  "outputs": [
116
1057
  {
117
- "internalType": "NftId",
118
- "name": "",
119
- "type": "uint96"
1058
+ "internalType": "bool",
1059
+ "name": "isInterceptor",
1060
+ "type": "bool"
120
1061
  }
121
1062
  ],
122
1063
  "stateMutability": "view",
@@ -124,12 +1065,12 @@
124
1065
  },
125
1066
  {
126
1067
  "inputs": [],
127
- "name": "getRegistry",
1068
+ "name": "isVerifyingApplications",
128
1069
  "outputs": [
129
1070
  {
130
- "internalType": "contract IRegistry",
131
- "name": "registry",
132
- "type": "address"
1071
+ "internalType": "bool",
1072
+ "name": "isConfirmingApplication",
1073
+ "type": "bool"
133
1074
  }
134
1075
  ],
135
1076
  "stateMutability": "view",
@@ -137,24 +1078,72 @@
137
1078
  },
138
1079
  {
139
1080
  "inputs": [],
140
- "name": "getType",
141
- "outputs": [
1081
+ "name": "linkToRegisteredNftId",
1082
+ "outputs": [],
1083
+ "stateMutability": "nonpayable",
1084
+ "type": "function"
1085
+ },
1086
+ {
1087
+ "inputs": [],
1088
+ "name": "lock",
1089
+ "outputs": [],
1090
+ "stateMutability": "nonpayable",
1091
+ "type": "function"
1092
+ },
1093
+ {
1094
+ "inputs": [
1095
+ {
1096
+ "internalType": "NftId",
1097
+ "name": "bundleNftId",
1098
+ "type": "uint96"
1099
+ }
1100
+ ],
1101
+ "name": "lockBundle",
1102
+ "outputs": [],
1103
+ "stateMutability": "nonpayable",
1104
+ "type": "function"
1105
+ },
1106
+ {
1107
+ "inputs": [
1108
+ {
1109
+ "internalType": "address",
1110
+ "name": "from",
1111
+ "type": "address"
1112
+ },
1113
+ {
1114
+ "internalType": "address",
1115
+ "name": "to",
1116
+ "type": "address"
1117
+ },
142
1118
  {
143
1119
  "internalType": "uint256",
144
- "name": "",
1120
+ "name": "tokenId",
145
1121
  "type": "uint256"
146
1122
  }
147
1123
  ],
148
- "stateMutability": "view",
1124
+ "name": "nftTransferFrom",
1125
+ "outputs": [],
1126
+ "stateMutability": "nonpayable",
149
1127
  "type": "function"
150
1128
  },
151
1129
  {
152
- "inputs": [],
153
- "name": "isRegisterable",
1130
+ "inputs": [
1131
+ {
1132
+ "internalType": "bytes",
1133
+ "name": "",
1134
+ "type": "bytes"
1135
+ },
1136
+ {
1137
+ "internalType": "bytes",
1138
+ "name": "",
1139
+ "type": "bytes"
1140
+ }
1141
+ ],
1142
+ "name": "policyMatchesBundle",
154
1143
  "outputs": [
155
1144
  {
156
1145
  "internalType": "bool",
157
- "name": "",
1146
+ "name": "isMatching",
158
1147
  "type": "bool"
159
1148
  }
160
1149
  ],
@@ -162,8 +1151,155 @@
162
1151
  "type": "function"
163
1152
  },
164
1153
  {
165
- "inputs": [],
166
- "name": "isRegistered",
1154
+ "inputs": [
1155
+ {
1156
+ "internalType": "bytes4",
1157
+ "name": "interfaceId",
1158
+ "type": "bytes4"
1159
+ }
1160
+ ],
1161
+ "name": "registerInterface",
1162
+ "outputs": [],
1163
+ "stateMutability": "nonpayable",
1164
+ "type": "function"
1165
+ },
1166
+ {
1167
+ "inputs": [
1168
+ {
1169
+ "internalType": "address",
1170
+ "name": "newAuthority",
1171
+ "type": "address"
1172
+ }
1173
+ ],
1174
+ "name": "setAuthority",
1175
+ "outputs": [],
1176
+ "stateMutability": "nonpayable",
1177
+ "type": "function"
1178
+ },
1179
+ {
1180
+ "inputs": [
1181
+ {
1182
+ "internalType": "NftId",
1183
+ "name": "bundleNftId",
1184
+ "type": "uint96"
1185
+ },
1186
+ {
1187
+ "components": [
1188
+ {
1189
+ "internalType": "UFixed",
1190
+ "name": "fractionalFee",
1191
+ "type": "uint256"
1192
+ },
1193
+ {
1194
+ "internalType": "uint256",
1195
+ "name": "fixedFee",
1196
+ "type": "uint256"
1197
+ }
1198
+ ],
1199
+ "internalType": "struct Fee",
1200
+ "name": "fee",
1201
+ "type": "tuple"
1202
+ }
1203
+ ],
1204
+ "name": "setBundleFee",
1205
+ "outputs": [],
1206
+ "stateMutability": "nonpayable",
1207
+ "type": "function"
1208
+ },
1209
+ {
1210
+ "inputs": [
1211
+ {
1212
+ "components": [
1213
+ {
1214
+ "internalType": "UFixed",
1215
+ "name": "fractionalFee",
1216
+ "type": "uint256"
1217
+ },
1218
+ {
1219
+ "internalType": "uint256",
1220
+ "name": "fixedFee",
1221
+ "type": "uint256"
1222
+ }
1223
+ ],
1224
+ "internalType": "struct Fee",
1225
+ "name": "poolFee",
1226
+ "type": "tuple"
1227
+ },
1228
+ {
1229
+ "components": [
1230
+ {
1231
+ "internalType": "UFixed",
1232
+ "name": "fractionalFee",
1233
+ "type": "uint256"
1234
+ },
1235
+ {
1236
+ "internalType": "uint256",
1237
+ "name": "fixedFee",
1238
+ "type": "uint256"
1239
+ }
1240
+ ],
1241
+ "internalType": "struct Fee",
1242
+ "name": "stakingFee",
1243
+ "type": "tuple"
1244
+ },
1245
+ {
1246
+ "components": [
1247
+ {
1248
+ "internalType": "UFixed",
1249
+ "name": "fractionalFee",
1250
+ "type": "uint256"
1251
+ },
1252
+ {
1253
+ "internalType": "uint256",
1254
+ "name": "fixedFee",
1255
+ "type": "uint256"
1256
+ }
1257
+ ],
1258
+ "internalType": "struct Fee",
1259
+ "name": "performanceFee",
1260
+ "type": "tuple"
1261
+ }
1262
+ ],
1263
+ "name": "setFees",
1264
+ "outputs": [],
1265
+ "stateMutability": "nonpayable",
1266
+ "type": "function"
1267
+ },
1268
+ {
1269
+ "inputs": [
1270
+ {
1271
+ "internalType": "NftId",
1272
+ "name": "productNftId",
1273
+ "type": "uint96"
1274
+ }
1275
+ ],
1276
+ "name": "setProductNftId",
1277
+ "outputs": [],
1278
+ "stateMutability": "nonpayable",
1279
+ "type": "function"
1280
+ },
1281
+ {
1282
+ "inputs": [
1283
+ {
1284
+ "internalType": "address",
1285
+ "name": "newWallet",
1286
+ "type": "address"
1287
+ }
1288
+ ],
1289
+ "name": "setWallet",
1290
+ "outputs": [],
1291
+ "stateMutability": "nonpayable",
1292
+ "type": "function"
1293
+ },
1294
+ {
1295
+ "inputs": [
1296
+ {
1297
+ "internalType": "bytes4",
1298
+ "name": "interfaceId",
1299
+ "type": "bytes4"
1300
+ }
1301
+ ],
1302
+ "name": "supportsInterface",
167
1303
  "outputs": [
168
1304
  {
169
1305
  "internalType": "bool",
@@ -176,38 +1312,55 @@
176
1312
  },
177
1313
  {
178
1314
  "inputs": [],
179
- "name": "register",
180
- "outputs": [
1315
+ "name": "unlock",
1316
+ "outputs": [],
1317
+ "stateMutability": "nonpayable",
1318
+ "type": "function"
1319
+ },
1320
+ {
1321
+ "inputs": [
181
1322
  {
182
1323
  "internalType": "NftId",
183
- "name": "componentId",
1324
+ "name": "bundleNftId",
184
1325
  "type": "uint96"
185
1326
  }
186
1327
  ],
1328
+ "name": "unlockBundle",
1329
+ "outputs": [],
187
1330
  "stateMutability": "nonpayable",
188
1331
  "type": "function"
189
- }
190
- ],
191
- "bytecode": "0x60806040523480156200001157600080fd5b50604051620012d7380380620012d7833981810160405281019062000037919062000175565b8181808280806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620001bc565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200013d8262000110565b9050919050565b6200014f8162000130565b81146200015b57600080fd5b50565b6000815190506200016f8162000144565b92915050565b600080604083850312156200018f576200018e6200010b565b5b60006200019f858286016200015e565b9250506020620001b2858286016200015e565b9150509250929050565b61110b80620001cc6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80635ab1bd53116100715780635ab1bd5314610144578063644c45e01461016257806379e829d014610180578063893d20e81461019e578063de7b5d14146101bc578063fb2cb101146101da576100a9565b806315dae03e146100ae5780631aa3a008146100cc57806322366844146100ea57806331b62a3b146101085780633bc5de3014610126575b600080fd5b6100b66101f8565b6040516100c39190610acd565b60405180910390f35b6100d461028f565b6040516100e19190610b3b565b60405180910390f35b6100f26105a7565b6040516100ff9190610b71565b60405180910390f35b6101106106d4565b60405161011d9190610b3b565b60405180910390f35b61012e610751565b60405161013b9190610c1c565b60405180910390f35b61014c6107ed565b6040516101599190610cb3565b60405180910390f35b61016a610816565b6040516101779190610b3b565b60405180910390f35b6101886108b8565b6040516101959190610b71565b60405180910390f35b6101a66108c1565b6040516101b39190610cef565b60405180910390f35b6101c4610a60565b6040516101d19190610d2b565b60405180910390f35b6101e2610a8a565b6040516101ef9190610cef565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637535d2466040518163ffffffff1660e01b8152600401602060405180830381865afa158015610266573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028a9190610d77565b905090565b6000610299610a8a565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102fd90610ddb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038c90610e47565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c3c5a547600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016104109190610cef565b602060405180830381865afa15801561042d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104519190610e93565b610490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048790610f32565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105239190610f90565b90508073ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040161055e9190610fde565b6020604051808303816000875af115801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a19190611025565b91505090565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016106039190610cef565b602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190611025565b9050806bffffffffffffffffffffffff1673__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__6330b8415f90916040518263ffffffff1660e01b815260040161068d9190611061565b602060405180830381865af41580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce9190610e93565b91505090565b60006106de610a60565b73ffffffffffffffffffffffffffffffffffffffff1663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c9190611025565b905090565b606061075b610a60565b73ffffffffffffffffffffffffffffffffffffffff1663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c99190611025565b6040516020016107d99190610b3b565b604051602081830303815290604052905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016108729190610cef565b602060405180830381865afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b39190611025565b905090565b60006001905090565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b815260040161091d9190610cef565b602060405180830381865afa15801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190611025565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df33330b826040518263ffffffff1660e01b81526004016109b99190610b3b565b602060405180830381865afa1580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906110a8565b9150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610a5857600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610a5a565b815b91505090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000819050919050565b610ac781610ab4565b82525050565b6000602082019050610ae26000830184610abe565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610b25610b20610b1b84610ae8565b610b00565b610ae8565b9050919050565b610b3581610b0a565b82525050565b6000602082019050610b506000830184610b2c565b92915050565b60008115159050919050565b610b6b81610b56565b82525050565b6000602082019050610b866000830184610b62565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610bc6578082015181840152602081019050610bab565b60008484015250505050565b6000601f19601f8301169050919050565b6000610bee82610b8c565b610bf88185610b97565b9350610c08818560208601610ba8565b610c1181610bd2565b840191505092915050565b60006020820190508181036000830152610c368184610be3565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610c79610c74610c6f84610c3e565b610b00565b610c3e565b9050919050565b6000610c8b82610c5e565b9050919050565b6000610c9d82610c80565b9050919050565b610cad81610c92565b82525050565b6000602082019050610cc86000830184610ca4565b92915050565b6000610cd982610c3e565b9050919050565b610ce981610cce565b82525050565b6000602082019050610d046000830184610ce0565b92915050565b6000610d1582610c80565b9050919050565b610d2581610d0a565b82525050565b6000602082019050610d406000830184610d1c565b92915050565b600080fd5b610d5481610ab4565b8114610d5f57600080fd5b50565b600081519050610d7181610d4b565b92915050565b600060208284031215610d8d57610d8c610d46565b5b6000610d9b84828501610d62565b91505092915050565b600082825260208201905092915050565b50565b6000610dc5600083610da4565b9150610dd082610db5565b600082019050919050565b60006020820190508181036000830152610df481610db8565b9050919050565b7f4552524f523a5052442d3030313a52454749535452595f5a45524f0000000000600082015250565b6000610e31601b83610da4565b9150610e3c82610dfb565b602082019050919050565b60006020820190508181036000830152610e6081610e24565b9050919050565b610e7081610b56565b8114610e7b57600080fd5b50565b600081519050610e8d81610e67565b92915050565b600060208284031215610ea957610ea8610d46565b5b6000610eb784828501610e7e565b91505092915050565b7f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f524547495360008201527f5445524544000000000000000000000000000000000000000000000000000000602082015250565b6000610f1c602583610da4565b9150610f2782610ec0565b604082019050919050565b60006020820190508181036000830152610f4b81610f0f565b9050919050565b6000610f5d82610cce565b9050919050565b610f6d81610f52565b8114610f7857600080fd5b50565b600081519050610f8a81610f64565b92915050565b600060208284031215610fa657610fa5610d46565b5b6000610fb484828501610f7b565b91505092915050565b6000610fc882610c80565b9050919050565b610fd881610fbd565b82525050565b6000602082019050610ff36000830184610fcf565b92915050565b61100281610ae8565b811461100d57600080fd5b50565b60008151905061101f81610ff9565b92915050565b60006020828403121561103b5761103a610d46565b5b600061104984828501611010565b91505092915050565b61105b81610b0a565b82525050565b60006020820190506110766000830184611052565b92915050565b61108581610cce565b811461109057600080fd5b50565b6000815190506110a28161107c565b92915050565b6000602082840312156110be576110bd610d46565b5b60006110cc84828501611093565b9150509291505056fea264697066735822122005bac56705b457d638448a7de7b7f966cd247ed665bf88965d86c896c9bb923e64736f6c63430008140033",
192
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80635ab1bd53116100715780635ab1bd5314610144578063644c45e01461016257806379e829d014610180578063893d20e81461019e578063de7b5d14146101bc578063fb2cb101146101da576100a9565b806315dae03e146100ae5780631aa3a008146100cc57806322366844146100ea57806331b62a3b146101085780633bc5de3014610126575b600080fd5b6100b66101f8565b6040516100c39190610acd565b60405180910390f35b6100d461028f565b6040516100e19190610b3b565b60405180910390f35b6100f26105a7565b6040516100ff9190610b71565b60405180910390f35b6101106106d4565b60405161011d9190610b3b565b60405180910390f35b61012e610751565b60405161013b9190610c1c565b60405180910390f35b61014c6107ed565b6040516101599190610cb3565b60405180910390f35b61016a610816565b6040516101779190610b3b565b60405180910390f35b6101886108b8565b6040516101959190610b71565b60405180910390f35b6101a66108c1565b6040516101b39190610cef565b60405180910390f35b6101c4610a60565b6040516101d19190610d2b565b60405180910390f35b6101e2610a8a565b6040516101ef9190610cef565b60405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637535d2466040518163ffffffff1660e01b8152600401602060405180830381865afa158015610266573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028a9190610d77565b905090565b6000610299610a8a565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102fd90610ddb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038c90610e47565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c3c5a547600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016104109190610cef565b602060405180830381865afa15801561042d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104519190610e93565b610490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048790610f32565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105239190610f90565b90508073ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040161055e9190610fde565b6020604051808303816000875af115801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a19190611025565b91505090565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016106039190610cef565b602060405180830381865afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190611025565b9050806bffffffffffffffffffffffff1673__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__6330b8415f90916040518263ffffffff1660e01b815260040161068d9190611061565b602060405180830381865af41580156106aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ce9190610e93565b91505090565b60006106de610a60565b73ffffffffffffffffffffffffffffffffffffffff1663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c9190611025565b905090565b606061075b610a60565b73ffffffffffffffffffffffffffffffffffffffff1663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c99190611025565b6040516020016107d99190610b3b565b604051602081830303815290604052905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b81526004016108729190610cef565b602060405180830381865afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b39190611025565b905090565b60006001905090565b60008060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d272ac1e306040518263ffffffff1660e01b815260040161091d9190610cef565b602060405180830381865afa15801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190611025565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df33330b826040518263ffffffff1660e01b81526004016109b99190610b3b565b602060405180830381865afa1580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906110a8565b9150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610a5857600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610a5a565b815b91505090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000819050919050565b610ac781610ab4565b82525050565b6000602082019050610ae26000830184610abe565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610b25610b20610b1b84610ae8565b610b00565b610ae8565b9050919050565b610b3581610b0a565b82525050565b6000602082019050610b506000830184610b2c565b92915050565b60008115159050919050565b610b6b81610b56565b82525050565b6000602082019050610b866000830184610b62565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610bc6578082015181840152602081019050610bab565b60008484015250505050565b6000601f19601f8301169050919050565b6000610bee82610b8c565b610bf88185610b97565b9350610c08818560208601610ba8565b610c1181610bd2565b840191505092915050565b60006020820190508181036000830152610c368184610be3565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610c79610c74610c6f84610c3e565b610b00565b610c3e565b9050919050565b6000610c8b82610c5e565b9050919050565b6000610c9d82610c80565b9050919050565b610cad81610c92565b82525050565b6000602082019050610cc86000830184610ca4565b92915050565b6000610cd982610c3e565b9050919050565b610ce981610cce565b82525050565b6000602082019050610d046000830184610ce0565b92915050565b6000610d1582610c80565b9050919050565b610d2581610d0a565b82525050565b6000602082019050610d406000830184610d1c565b92915050565b600080fd5b610d5481610ab4565b8114610d5f57600080fd5b50565b600081519050610d7181610d4b565b92915050565b600060208284031215610d8d57610d8c610d46565b5b6000610d9b84828501610d62565b91505092915050565b600082825260208201905092915050565b50565b6000610dc5600083610da4565b9150610dd082610db5565b600082019050919050565b60006020820190508181036000830152610df481610db8565b9050919050565b7f4552524f523a5052442d3030313a52454749535452595f5a45524f0000000000600082015250565b6000610e31601b83610da4565b9150610e3c82610dfb565b602082019050919050565b60006020820190508181036000830152610e6081610e24565b9050919050565b610e7081610b56565b8114610e7b57600080fd5b50565b600081519050610e8d81610e67565b92915050565b600060208284031215610ea957610ea8610d46565b5b6000610eb784828501610e7e565b91505092915050565b7f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f524547495360008201527f5445524544000000000000000000000000000000000000000000000000000000602082015250565b6000610f1c602583610da4565b9150610f2782610ec0565b604082019050919050565b60006020820190508181036000830152610f4b81610f0f565b9050919050565b6000610f5d82610cce565b9050919050565b610f6d81610f52565b8114610f7857600080fd5b50565b600081519050610f8a81610f64565b92915050565b600060208284031215610fa657610fa5610d46565b5b6000610fb484828501610f7b565b91505092915050565b6000610fc882610c80565b9050919050565b610fd881610fbd565b82525050565b6000602082019050610ff36000830184610fcf565b92915050565b61100281610ae8565b811461100d57600080fd5b50565b60008151905061101f81610ff9565b92915050565b60006020828403121561103b5761103a610d46565b5b600061104984828501611010565b91505092915050565b61105b81610b0a565b82525050565b60006020820190506110766000830184611052565b92915050565b61108581610cce565b811461109057600080fd5b50565b6000815190506110a28161107c565b92915050565b6000602082840312156110be576110bd610d46565b5b60006110cc84828501611093565b9150509291505056fea264697066735822122005bac56705b457d638448a7de7b7f966cd247ed665bf88965d86c896c9bb923e64736f6c63430008140033",
193
- "linkReferences": {
194
- "contracts/types/NftId.sol": {
195
- "NftIdLib": [
1332
+ },
1333
+ {
1334
+ "inputs": [
196
1335
  {
197
- "length": 20,
198
- "start": 2083
199
- }
200
- ]
201
- }
202
- },
203
- "deployedLinkReferences": {
204
- "contracts/types/NftId.sol": {
205
- "NftIdLib": [
1336
+ "internalType": "NftId",
1337
+ "name": "applicationNftId",
1338
+ "type": "uint96"
1339
+ },
1340
+ {
1341
+ "internalType": "bytes",
1342
+ "name": "applicationData",
1343
+ "type": "bytes"
1344
+ },
1345
+ {
1346
+ "internalType": "bytes",
1347
+ "name": "bundleFilter",
1348
+ "type": "bytes"
1349
+ },
206
1350
  {
207
- "length": 20,
208
- "start": 1623
1351
+ "internalType": "uint256",
1352
+ "name": "collateralizationAmount",
1353
+ "type": "uint256"
209
1354
  }
210
- ]
1355
+ ],
1356
+ "name": "verifyApplication",
1357
+ "outputs": [],
1358
+ "stateMutability": "nonpayable",
1359
+ "type": "function"
211
1360
  }
212
- }
1361
+ ],
1362
+ "bytecode": "0x",
1363
+ "deployedBytecode": "0x",
1364
+ "linkReferences": {},
1365
+ "deployedLinkReferences": {}
213
1366
  }