@etherisc/gif-next 0.0.2-eb7397c → 0.0.2-eb98db7-932

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