@etherisc/gif-next 0.0.2-f7be756-963 → 0.0.2-f7eda15-119

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. package/README.md +331 -8
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
  3. package/artifacts/contracts/components/Component.sol/Component.json +491 -40
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +849 -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} +244 -241
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +648 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +769 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +748 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +760 -118
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +738 -135
  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/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  45. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  46. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  47. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  48. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  49. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1310 -809
  50. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  51. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +586 -0
  52. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  53. package/artifacts/contracts/instance/Instance.sol/Instance.json +2242 -908
  54. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  55. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1034 -0
  56. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
  58. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1024 -0
  60. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
  62. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  64. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +603 -0
  66. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  68. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  69. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  70. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  72. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  74. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  78. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  79. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IDistribution.sol/IDistribution.json} +2 -2
  80. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  81. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  82. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  83. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  84. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  86. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{treasury → module}/ITreasury.sol/ITreasury.json +1 -1
  88. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
  90. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
  92. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
  94. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
  96. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +715 -0
  98. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +441 -0
  100. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
  102. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +494 -0
  104. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +531 -0
  106. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  107. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
  108. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  109. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
  110. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +806 -0
  112. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
  114. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +856 -0
  116. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -0
  118. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  119. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +239 -2
  120. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  121. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +567 -31
  122. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  123. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
  124. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  125. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  126. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  127. package/artifacts/contracts/registry/Registry.sol/Registry.json +644 -74
  128. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  129. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  130. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  131. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1200 -0
  132. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  133. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
  134. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  135. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  136. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  137. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -0
  138. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  139. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  140. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  141. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  142. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  143. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  144. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  145. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +196 -0
  146. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  147. package/artifacts/contracts/shared/IService.sol/IService.json +416 -0
  148. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  149. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  150. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  151. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +171 -0
  152. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  153. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +362 -0
  154. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  155. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +282 -0
  156. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  157. package/artifacts/contracts/shared/Service.sol/Service.json +476 -0
  158. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  159. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  160. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  161. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  162. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  163. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  164. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  165. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  166. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  167. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +313 -0
  168. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  169. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  170. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  171. package/artifacts/contracts/test/TestService.sol/TestService.json +608 -0
  172. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  173. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  174. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  175. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  176. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  177. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +286 -0
  178. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  179. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  180. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  181. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  182. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  186. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  187. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  188. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  189. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  190. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  192. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  193. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  194. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  196. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  197. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  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 +1 -1
  205. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  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 +186 -47
  217. package/contracts/components/Distribution.sol +150 -0
  218. package/contracts/components/IComponent.sol +43 -0
  219. package/contracts/components/IDistributionComponent.sol +47 -0
  220. package/contracts/components/IPoolComponent.sol +60 -0
  221. package/contracts/components/IProductComponent.sol +39 -0
  222. package/contracts/components/Pool.sol +200 -25
  223. package/contracts/components/Product.sol +222 -46
  224. package/contracts/experiment/cloning/Cloner.sol +47 -0
  225. package/contracts/instance/BundleManager.sol +125 -0
  226. package/contracts/instance/Cloneable.sol +46 -0
  227. package/contracts/instance/IInstance.sol +71 -24
  228. package/contracts/instance/IInstanceService.sol +41 -0
  229. package/contracts/instance/Instance.sol +248 -51
  230. package/contracts/instance/InstanceAccessManager.sol +298 -0
  231. package/contracts/instance/InstanceReader.sol +293 -0
  232. package/contracts/instance/InstanceService.sol +435 -0
  233. package/contracts/instance/InstanceServiceManager.sol +54 -0
  234. package/contracts/instance/ObjectManager.sol +84 -0
  235. package/contracts/instance/base/ComponentService.sol +134 -0
  236. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  237. package/contracts/instance/base/ILifecycle.sol +30 -0
  238. package/contracts/instance/base/KeyValueStore.sol +172 -0
  239. package/contracts/instance/base/Lifecycle.sol +100 -0
  240. package/contracts/instance/module/IAccess.sol +48 -0
  241. package/contracts/instance/module/IBundle.sol +20 -0
  242. package/contracts/instance/module/IDistribution.sol +39 -0
  243. package/contracts/instance/module/IPolicy.sol +45 -0
  244. package/contracts/instance/module/IRisk.sol +11 -0
  245. package/contracts/instance/module/ISetup.sol +46 -0
  246. package/contracts/instance/module/ITreasury.sol +23 -0
  247. package/contracts/instance/service/BundleService.sol +293 -0
  248. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  249. package/contracts/instance/service/DistributionService.sol +106 -0
  250. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  251. package/contracts/instance/service/IBundleService.sol +44 -0
  252. package/contracts/instance/service/IDistributionService.sol +12 -0
  253. package/contracts/instance/service/IPolicyService.sol +94 -0
  254. package/contracts/instance/service/IPoolService.sol +20 -0
  255. package/contracts/instance/service/IProductService.sol +40 -0
  256. package/contracts/instance/service/PolicyService.sol +538 -0
  257. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  258. package/contracts/instance/service/PoolService.sol +110 -0
  259. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  260. package/contracts/instance/service/ProductService.sol +234 -0
  261. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  262. package/contracts/registry/ChainNft.sol +129 -62
  263. package/contracts/registry/IRegistry.sol +72 -41
  264. package/contracts/registry/IRegistryService.sol +65 -0
  265. package/contracts/registry/ITransferInterceptor.sol +6 -0
  266. package/contracts/registry/Registry.sol +401 -131
  267. package/contracts/registry/RegistryAccessManager.sol +216 -0
  268. package/contracts/registry/RegistryService.sol +262 -0
  269. package/contracts/registry/RegistryServiceManager.sol +62 -0
  270. package/contracts/registry/ReleaseManager.sol +332 -0
  271. package/contracts/registry/TokenRegistry.sol +112 -0
  272. package/contracts/shared/ContractDeployerLib.sol +72 -0
  273. package/contracts/shared/ERC165.sol +25 -0
  274. package/contracts/shared/INftOwnable.sol +22 -0
  275. package/contracts/shared/IRegisterable.sol +15 -0
  276. package/contracts/shared/IService.sol +16 -0
  277. package/contracts/shared/IVersionable.sol +96 -0
  278. package/contracts/shared/NftOwnable.sol +139 -0
  279. package/contracts/shared/ProxyManager.sol +94 -0
  280. package/contracts/shared/Registerable.sol +86 -0
  281. package/contracts/shared/Service.sol +60 -0
  282. package/contracts/shared/TokenHandler.sol +27 -0
  283. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  284. package/contracts/shared/Versionable.sol +147 -0
  285. package/contracts/test/TestFee.sol +25 -0
  286. package/contracts/test/TestRegisterable.sol +18 -0
  287. package/contracts/test/TestRoleId.sol +14 -0
  288. package/contracts/test/TestService.sol +25 -0
  289. package/contracts/{mock/Dip.sol → test/TestToken.sol} +5 -5
  290. package/contracts/test/TestVersion.sol +44 -0
  291. package/contracts/test/TestVersionable.sol +17 -0
  292. package/contracts/{mock → test}/Usdc.sol +1 -1
  293. package/contracts/types/AddressSet.sol +58 -0
  294. package/contracts/types/DistributorType.sol +55 -0
  295. package/contracts/types/Fee.sol +44 -20
  296. package/contracts/types/Key32.sol +50 -0
  297. package/contracts/types/NftId.sol +22 -1
  298. package/contracts/types/NftIdSet.sol +62 -0
  299. package/contracts/types/NumberId.sol +52 -0
  300. package/contracts/types/ObjectType.sol +60 -15
  301. package/contracts/types/Referral.sol +85 -0
  302. package/contracts/types/RiskId.sol +43 -0
  303. package/contracts/types/RoleId.sol +90 -0
  304. package/contracts/types/StateId.sol +18 -4
  305. package/contracts/types/Timestamp.sol +29 -4
  306. package/contracts/types/UFixed.sol +138 -23
  307. package/contracts/types/Version.sol +107 -0
  308. package/package.json +11 -5
  309. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  310. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  311. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  312. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -255
  313. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  314. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  315. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  317. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  318. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  319. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  320. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  321. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  322. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  323. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  324. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  325. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -299
  326. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  327. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  328. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  329. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  330. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -205
  331. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  332. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
  333. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  334. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  335. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  336. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  337. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  338. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  339. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  341. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  342. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  343. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  344. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -254
  345. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -254
  347. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  348. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  349. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -129
  350. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  351. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -155
  352. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  354. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  355. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
  356. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  357. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  358. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  359. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  360. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  361. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.json +0 -490
  363. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  364. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  365. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  366. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.json +0 -490
  367. package/artifacts/contracts/mock/Dip.sol/DIP.dbg.json +0 -4
  368. package/artifacts/contracts/mock/Dip.sol/DIP.json +0 -338
  369. package/artifacts/contracts/mock/TestPool.sol/TestPool.dbg.json +0 -4
  370. package/artifacts/contracts/mock/TestPool.sol/TestPool.json +0 -294
  371. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.dbg.json +0 -4
  372. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.json +0 -384
  373. package/artifacts/contracts/mock/Usdc.sol/USDC.dbg.json +0 -4
  374. package/artifacts/contracts/mock/Usdc.sol/USDC.json +0 -338
  375. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  376. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  377. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  378. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  379. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  380. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  381. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  382. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  383. package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
  384. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  385. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  386. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  387. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -479
  388. package/contracts/components/IPool.sol +0 -15
  389. package/contracts/components/IProduct.sol +0 -16
  390. package/contracts/experiment/statemachine/README.md +0 -112
  391. package/contracts/instance/access/Access.sol +0 -165
  392. package/contracts/instance/access/IAccess.sol +0 -63
  393. package/contracts/instance/component/ComponentModule.sol +0 -274
  394. package/contracts/instance/component/IComponent.sol +0 -74
  395. package/contracts/instance/lifecycle/ILifecycle.sol +0 -47
  396. package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
  397. package/contracts/instance/policy/IPolicy.sol +0 -50
  398. package/contracts/instance/policy/PolicyModule.sol +0 -114
  399. package/contracts/instance/pool/IPoolModule.sol +0 -23
  400. package/contracts/instance/pool/PoolModule.sol +0 -81
  401. package/contracts/instance/product/IProductService.sol +0 -36
  402. package/contracts/instance/product/ProductService.sol +0 -136
  403. package/contracts/instance/treasury/ITreasury.sol +0 -91
  404. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  405. package/contracts/instance/treasury/TreasuryModule.sol +0 -168
  406. package/contracts/mock/TestPool.sol +0 -16
  407. package/contracts/mock/TestProduct.sol +0 -39
  408. package/contracts/registry/IChainNft.sol +0 -21
@@ -3,6 +3,66 @@
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
+ },
6
66
  {
7
67
  "inputs": [
8
68
  {
@@ -10,87 +70,408 @@
10
70
  "name": "registry",
11
71
  "type": "address"
12
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": "NftId",
86
+ "name": "instanceNftId",
87
+ "type": "uint96"
88
+ },
13
89
  {
14
90
  "internalType": "address",
15
91
  "name": "instance",
16
92
  "type": "address"
93
+ }
94
+ ],
95
+ "name": "ErrorComponentNotInstance",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "caller",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorComponentNotProductService",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "ErrorComponentProductNftAlreadySet",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "caller",
119
+ "type": "address"
17
120
  },
121
+ {
122
+ "internalType": "uint64",
123
+ "name": "requiredRoleIdNum",
124
+ "type": "uint64"
125
+ }
126
+ ],
127
+ "name": "ErrorComponentUnauthorized",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
18
132
  {
19
133
  "internalType": "address",
20
- "name": "token",
134
+ "name": "newWallet",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "ErrorComponentWalletAddressIsSameAsCurrent",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "ErrorComponentWalletAddressZero",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address",
150
+ "name": "oldWallet",
21
151
  "type": "address"
22
152
  },
23
153
  {
24
- "components": [
25
- {
26
- "internalType": "UFixed",
27
- "name": "fractionalFee",
28
- "type": "uint256"
29
- },
30
- {
31
- "internalType": "uint256",
32
- "name": "fixedFee",
33
- "type": "uint256"
34
- }
35
- ],
36
- "internalType": "struct Fee",
37
- "name": "stakingFee",
38
- "type": "tuple"
154
+ "internalType": "address",
155
+ "name": "newWallet",
156
+ "type": "address"
39
157
  },
40
158
  {
41
- "components": [
42
- {
43
- "internalType": "UFixed",
44
- "name": "fractionalFee",
45
- "type": "uint256"
46
- },
47
- {
48
- "internalType": "uint256",
49
- "name": "fixedFee",
50
- "type": "uint256"
51
- }
52
- ],
53
- "internalType": "struct Fee",
54
- "name": "performanceFee",
55
- "type": "tuple"
159
+ "internalType": "uint256",
160
+ "name": "allowance",
161
+ "type": "uint256"
162
+ },
163
+ {
164
+ "internalType": "uint256",
165
+ "name": "balance",
166
+ "type": "uint256"
56
167
  }
57
168
  ],
58
- "stateMutability": "nonpayable",
59
- "type": "constructor"
169
+ "name": "ErrorComponentWalletAllowanceTooSmall",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "address",
176
+ "name": "contractAddress",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "name": "ErrorContractNotRegistered",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "account",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorNotOwner",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "registryAddress",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "ErrorNotRegistry",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "registryAddress",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorRegisterableNotRegistry",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "ErrorRegistryAddressZero",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "registry",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "ErrorRegistryAlreadyInitialized",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "ErrorRegistryNotInitialized",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "FailedInnerCall",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "InvalidInitialization",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "NotInitializing",
250
+ "type": "error"
251
+ },
252
+ {
253
+ "inputs": [
254
+ {
255
+ "internalType": "address",
256
+ "name": "token",
257
+ "type": "address"
258
+ }
259
+ ],
260
+ "name": "SafeERC20FailedOperation",
261
+ "type": "error"
60
262
  },
61
263
  {
62
264
  "anonymous": false,
63
265
  "inputs": [
64
266
  {
65
267
  "indexed": false,
66
- "internalType": "uint256",
67
- "name": "idx",
68
- "type": "uint256"
268
+ "internalType": "address",
269
+ "name": "authority",
270
+ "type": "address"
271
+ }
272
+ ],
273
+ "name": "AuthorityUpdated",
274
+ "type": "event"
275
+ },
276
+ {
277
+ "anonymous": false,
278
+ "inputs": [
279
+ {
280
+ "indexed": false,
281
+ "internalType": "uint64",
282
+ "name": "version",
283
+ "type": "uint64"
284
+ }
285
+ ],
286
+ "name": "Initialized",
287
+ "type": "event"
288
+ },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": false,
294
+ "internalType": "address",
295
+ "name": "newWallet",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "LogComponentWalletAddressChanged",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "anonymous": false,
304
+ "inputs": [
305
+ {
306
+ "indexed": false,
307
+ "internalType": "address",
308
+ "name": "from",
309
+ "type": "address"
69
310
  },
70
311
  {
71
312
  "indexed": false,
72
313
  "internalType": "address",
73
- "name": "module",
314
+ "name": "to",
74
315
  "type": "address"
75
316
  },
76
317
  {
77
318
  "indexed": false,
78
- "internalType": "string",
79
- "name": "comment",
80
- "type": "string"
319
+ "internalType": "uint256",
320
+ "name": "amount",
321
+ "type": "uint256"
81
322
  }
82
323
  ],
83
- "name": "LogDebug",
324
+ "name": "LogComponentWalletTokensTransferred",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "anonymous": false,
329
+ "inputs": [
330
+ {
331
+ "indexed": false,
332
+ "internalType": "NftId",
333
+ "name": "policyNftId",
334
+ "type": "uint96"
335
+ },
336
+ {
337
+ "indexed": false,
338
+ "internalType": "uint256",
339
+ "name": "collateralizationAmount",
340
+ "type": "uint256"
341
+ },
342
+ {
343
+ "indexed": false,
344
+ "internalType": "address",
345
+ "name": "pool",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "name": "LogUnderwrittenByPool",
84
350
  "type": "event"
85
351
  },
86
352
  {
87
353
  "inputs": [],
88
- "name": "getData",
354
+ "name": "CONTRACT_LOCATION_V1",
89
355
  "outputs": [
90
356
  {
91
- "internalType": "bytes",
92
- "name": "data",
93
- "type": "bytes"
357
+ "internalType": "bytes32",
358
+ "name": "",
359
+ "type": "bytes32"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [],
367
+ "name": "REGISTERABLE_LOCATION_V1",
368
+ "outputs": [
369
+ {
370
+ "internalType": "bytes32",
371
+ "name": "",
372
+ "type": "bytes32"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [],
380
+ "name": "authority",
381
+ "outputs": [
382
+ {
383
+ "internalType": "address",
384
+ "name": "",
385
+ "type": "address"
386
+ }
387
+ ],
388
+ "stateMutability": "view",
389
+ "type": "function"
390
+ },
391
+ {
392
+ "inputs": [],
393
+ "name": "getCollateralizationLevel",
394
+ "outputs": [
395
+ {
396
+ "internalType": "UFixed",
397
+ "name": "collateralizationLevel",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "stateMutability": "view",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [],
406
+ "name": "getInitialInfo",
407
+ "outputs": [
408
+ {
409
+ "components": [
410
+ {
411
+ "internalType": "NftId",
412
+ "name": "nftId",
413
+ "type": "uint96"
414
+ },
415
+ {
416
+ "internalType": "NftId",
417
+ "name": "parentNftId",
418
+ "type": "uint96"
419
+ },
420
+ {
421
+ "internalType": "ObjectType",
422
+ "name": "objectType",
423
+ "type": "uint8"
424
+ },
425
+ {
426
+ "internalType": "bool",
427
+ "name": "isInterceptor",
428
+ "type": "bool"
429
+ },
430
+ {
431
+ "internalType": "address",
432
+ "name": "objectAddress",
433
+ "type": "address"
434
+ },
435
+ {
436
+ "internalType": "address",
437
+ "name": "initialOwner",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "bytes",
442
+ "name": "data",
443
+ "type": "bytes"
444
+ }
445
+ ],
446
+ "internalType": "struct IRegistry.ObjectInfo",
447
+ "name": "info",
448
+ "type": "tuple"
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [],
456
+ "name": "getInitialOwner",
457
+ "outputs": [
458
+ {
459
+ "internalType": "address",
460
+ "name": "",
461
+ "type": "address"
462
+ }
463
+ ],
464
+ "stateMutability": "view",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [],
469
+ "name": "getInstance",
470
+ "outputs": [
471
+ {
472
+ "internalType": "contract IInstance",
473
+ "name": "instance",
474
+ "type": "address"
94
475
  }
95
476
  ],
96
477
  "stateMutability": "view",
@@ -98,11 +479,11 @@
98
479
  },
99
480
  {
100
481
  "inputs": [],
101
- "name": "getInitialOwner",
482
+ "name": "getInstanceService",
102
483
  "outputs": [
103
484
  {
104
- "internalType": "address",
105
- "name": "deployer",
485
+ "internalType": "contract IInstanceService",
486
+ "name": "",
106
487
  "type": "address"
107
488
  }
108
489
  ],
@@ -111,12 +492,12 @@
111
492
  },
112
493
  {
113
494
  "inputs": [],
114
- "name": "getInstance",
495
+ "name": "getName",
115
496
  "outputs": [
116
497
  {
117
- "internalType": "contract IInstance",
118
- "name": "instance",
119
- "type": "address"
498
+ "internalType": "string",
499
+ "name": "name",
500
+ "type": "string"
120
501
  }
121
502
  ],
122
503
  "stateMutability": "view",
@@ -128,7 +509,7 @@
128
509
  "outputs": [
129
510
  {
130
511
  "internalType": "NftId",
131
- "name": "nftId",
512
+ "name": "",
132
513
  "type": "uint96"
133
514
  }
134
515
  ],
@@ -141,7 +522,7 @@
141
522
  "outputs": [
142
523
  {
143
524
  "internalType": "address",
144
- "name": "owner",
525
+ "name": "",
145
526
  "type": "address"
146
527
  }
147
528
  ],
@@ -150,11 +531,11 @@
150
531
  },
151
532
  {
152
533
  "inputs": [],
153
- "name": "getParentNftId",
534
+ "name": "getProductNftId",
154
535
  "outputs": [
155
536
  {
156
537
  "internalType": "NftId",
157
- "name": "",
538
+ "name": "productNftId",
158
539
  "type": "uint96"
159
540
  }
160
541
  ],
@@ -163,24 +544,12 @@
163
544
  },
164
545
  {
165
546
  "inputs": [],
166
- "name": "getPerformanceFee",
547
+ "name": "getProductService",
167
548
  "outputs": [
168
549
  {
169
- "components": [
170
- {
171
- "internalType": "UFixed",
172
- "name": "fractionalFee",
173
- "type": "uint256"
174
- },
175
- {
176
- "internalType": "uint256",
177
- "name": "fixedFee",
178
- "type": "uint256"
179
- }
180
- ],
181
- "internalType": "struct Fee",
182
- "name": "performanceFee",
183
- "type": "tuple"
550
+ "internalType": "contract IProductService",
551
+ "name": "",
552
+ "type": "address"
184
553
  }
185
554
  ],
186
555
  "stateMutability": "view",
@@ -192,7 +561,7 @@
192
561
  "outputs": [
193
562
  {
194
563
  "internalType": "contract IRegistry",
195
- "name": "registry",
564
+ "name": "",
196
565
  "type": "address"
197
566
  }
198
567
  ],
@@ -201,23 +570,94 @@
201
570
  },
202
571
  {
203
572
  "inputs": [],
204
- "name": "getStakingFee",
573
+ "name": "getSetupInfo",
205
574
  "outputs": [
206
575
  {
207
576
  "components": [
577
+ {
578
+ "internalType": "NftId",
579
+ "name": "productNftId",
580
+ "type": "uint96"
581
+ },
582
+ {
583
+ "internalType": "contract TokenHandler",
584
+ "name": "tokenHandler",
585
+ "type": "address"
586
+ },
208
587
  {
209
588
  "internalType": "UFixed",
210
- "name": "fractionalFee",
589
+ "name": "collateralizationLevel",
211
590
  "type": "uint256"
212
591
  },
213
592
  {
214
- "internalType": "uint256",
215
- "name": "fixedFee",
216
- "type": "uint256"
593
+ "components": [
594
+ {
595
+ "internalType": "UFixed",
596
+ "name": "fractionalFee",
597
+ "type": "uint256"
598
+ },
599
+ {
600
+ "internalType": "uint256",
601
+ "name": "fixedFee",
602
+ "type": "uint256"
603
+ }
604
+ ],
605
+ "internalType": "struct Fee",
606
+ "name": "poolFee",
607
+ "type": "tuple"
608
+ },
609
+ {
610
+ "components": [
611
+ {
612
+ "internalType": "UFixed",
613
+ "name": "fractionalFee",
614
+ "type": "uint256"
615
+ },
616
+ {
617
+ "internalType": "uint256",
618
+ "name": "fixedFee",
619
+ "type": "uint256"
620
+ }
621
+ ],
622
+ "internalType": "struct Fee",
623
+ "name": "stakingFee",
624
+ "type": "tuple"
625
+ },
626
+ {
627
+ "components": [
628
+ {
629
+ "internalType": "UFixed",
630
+ "name": "fractionalFee",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "internalType": "uint256",
635
+ "name": "fixedFee",
636
+ "type": "uint256"
637
+ }
638
+ ],
639
+ "internalType": "struct Fee",
640
+ "name": "performanceFee",
641
+ "type": "tuple"
642
+ },
643
+ {
644
+ "internalType": "bool",
645
+ "name": "isIntercepting",
646
+ "type": "bool"
647
+ },
648
+ {
649
+ "internalType": "bool",
650
+ "name": "isConfirmingApplication",
651
+ "type": "bool"
652
+ },
653
+ {
654
+ "internalType": "address",
655
+ "name": "wallet",
656
+ "type": "address"
217
657
  }
218
658
  ],
219
- "internalType": "struct Fee",
220
- "name": "stakingFee",
659
+ "internalType": "struct ISetup.PoolSetupInfo",
660
+ "name": "setupInfo",
221
661
  "type": "tuple"
222
662
  }
223
663
  ],
@@ -239,25 +679,25 @@
239
679
  },
240
680
  {
241
681
  "inputs": [],
242
- "name": "getType",
682
+ "name": "getWallet",
243
683
  "outputs": [
244
684
  {
245
- "internalType": "ObjectType",
246
- "name": "",
247
- "type": "uint8"
685
+ "internalType": "address",
686
+ "name": "walletAddress",
687
+ "type": "address"
248
688
  }
249
689
  ],
250
- "stateMutability": "pure",
690
+ "stateMutability": "view",
251
691
  "type": "function"
252
692
  },
253
693
  {
254
694
  "inputs": [],
255
- "name": "getWallet",
695
+ "name": "isConfirmingApplication",
256
696
  "outputs": [
257
697
  {
258
- "internalType": "address",
259
- "name": "walletAddress",
260
- "type": "address"
698
+ "internalType": "bool",
699
+ "name": "isConfirmingApplication",
700
+ "type": "bool"
261
701
  }
262
702
  ],
263
703
  "stateMutability": "view",
@@ -265,24 +705,62 @@
265
705
  },
266
706
  {
267
707
  "inputs": [],
268
- "name": "isRegisterable",
708
+ "name": "isConsumingScheduledOp",
269
709
  "outputs": [
270
710
  {
271
- "internalType": "bool",
711
+ "internalType": "bytes4",
272
712
  "name": "",
273
- "type": "bool"
713
+ "type": "bytes4"
274
714
  }
275
715
  ],
276
- "stateMutability": "pure",
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [],
721
+ "name": "linkToRegisteredNftId",
722
+ "outputs": [],
723
+ "stateMutability": "nonpayable",
277
724
  "type": "function"
278
725
  },
279
726
  {
280
727
  "inputs": [],
281
- "name": "isRegistered",
728
+ "name": "lock",
729
+ "outputs": [],
730
+ "stateMutability": "nonpayable",
731
+ "type": "function"
732
+ },
733
+ {
734
+ "inputs": [
735
+ {
736
+ "internalType": "NftId",
737
+ "name": "bundleNftId",
738
+ "type": "uint96"
739
+ }
740
+ ],
741
+ "name": "lockBundle",
742
+ "outputs": [],
743
+ "stateMutability": "nonpayable",
744
+ "type": "function"
745
+ },
746
+ {
747
+ "inputs": [
748
+ {
749
+ "internalType": "bytes",
750
+ "name": "",
751
+ "type": "bytes"
752
+ },
753
+ {
754
+ "internalType": "bytes",
755
+ "name": "",
756
+ "type": "bytes"
757
+ }
758
+ ],
759
+ "name": "policyMatchesBundle",
282
760
  "outputs": [
283
761
  {
284
762
  "internalType": "bool",
285
- "name": "",
763
+ "name": "isMatching",
286
764
  "type": "bool"
287
765
  }
288
766
  ],
@@ -290,39 +768,203 @@
290
768
  "type": "function"
291
769
  },
292
770
  {
293
- "inputs": [],
294
- "name": "register",
295
- "outputs": [
771
+ "inputs": [
772
+ {
773
+ "internalType": "address",
774
+ "name": "newAuthority",
775
+ "type": "address"
776
+ }
777
+ ],
778
+ "name": "setAuthority",
779
+ "outputs": [],
780
+ "stateMutability": "nonpayable",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [
785
+ {
786
+ "internalType": "NftId",
787
+ "name": "bundleNftId",
788
+ "type": "uint96"
789
+ },
790
+ {
791
+ "components": [
792
+ {
793
+ "internalType": "UFixed",
794
+ "name": "fractionalFee",
795
+ "type": "uint256"
796
+ },
797
+ {
798
+ "internalType": "uint256",
799
+ "name": "fixedFee",
800
+ "type": "uint256"
801
+ }
802
+ ],
803
+ "internalType": "struct Fee",
804
+ "name": "fee",
805
+ "type": "tuple"
806
+ }
807
+ ],
808
+ "name": "setBundleFee",
809
+ "outputs": [],
810
+ "stateMutability": "nonpayable",
811
+ "type": "function"
812
+ },
813
+ {
814
+ "inputs": [
815
+ {
816
+ "components": [
817
+ {
818
+ "internalType": "UFixed",
819
+ "name": "fractionalFee",
820
+ "type": "uint256"
821
+ },
822
+ {
823
+ "internalType": "uint256",
824
+ "name": "fixedFee",
825
+ "type": "uint256"
826
+ }
827
+ ],
828
+ "internalType": "struct Fee",
829
+ "name": "poolFee",
830
+ "type": "tuple"
831
+ },
832
+ {
833
+ "components": [
834
+ {
835
+ "internalType": "UFixed",
836
+ "name": "fractionalFee",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "fixedFee",
842
+ "type": "uint256"
843
+ }
844
+ ],
845
+ "internalType": "struct Fee",
846
+ "name": "stakingFee",
847
+ "type": "tuple"
848
+ },
849
+ {
850
+ "components": [
851
+ {
852
+ "internalType": "UFixed",
853
+ "name": "fractionalFee",
854
+ "type": "uint256"
855
+ },
856
+ {
857
+ "internalType": "uint256",
858
+ "name": "fixedFee",
859
+ "type": "uint256"
860
+ }
861
+ ],
862
+ "internalType": "struct Fee",
863
+ "name": "performanceFee",
864
+ "type": "tuple"
865
+ }
866
+ ],
867
+ "name": "setFees",
868
+ "outputs": [],
869
+ "stateMutability": "nonpayable",
870
+ "type": "function"
871
+ },
872
+ {
873
+ "inputs": [
296
874
  {
297
875
  "internalType": "NftId",
298
- "name": "componentId",
876
+ "name": "productNftId",
299
877
  "type": "uint96"
300
878
  }
301
879
  ],
880
+ "name": "setProductNftId",
881
+ "outputs": [],
302
882
  "stateMutability": "nonpayable",
303
883
  "type": "function"
304
- }
305
- ],
306
- "bytecode": "0x608060405234801561001057600080fd5b50604051610a9a380380610a9a83398101604081905261002f9161011a565b600080546001600160a01b039687166001600160a01b03199182161790915560018054821633179055600280549587169582169590951790945560048054851630179055600580549590931694909316939093179055815160065560209182015160075580516008550151600955610181565b80516001600160a01b03811681146100b957600080fd5b919050565b6000604082840312156100d057600080fd5b604080519081016001600160401b038111828210171561010057634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b600080600080600060e0868803121561013257600080fd5b61013b866100a2565b9450610149602087016100a2565b9350610157604087016100a2565b925061016687606088016100be565b91506101758760a088016100be565b90509295509295909350565b61090a806101906000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
307
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
308
- "linkReferences": {
309
- "contracts/types/NftId.sol": {
310
- "NftIdLib": [
884
+ },
885
+ {
886
+ "inputs": [
311
887
  {
312
- "length": 20,
313
- "start": 1741
888
+ "internalType": "address",
889
+ "name": "newWallet",
890
+ "type": "address"
314
891
  }
315
- ]
316
- }
317
- },
318
- "deployedLinkReferences": {
319
- "contracts/types/NftId.sol": {
320
- "NftIdLib": [
892
+ ],
893
+ "name": "setWallet",
894
+ "outputs": [],
895
+ "stateMutability": "nonpayable",
896
+ "type": "function"
897
+ },
898
+ {
899
+ "inputs": [
900
+ {
901
+ "internalType": "bytes4",
902
+ "name": "interfaceId",
903
+ "type": "bytes4"
904
+ }
905
+ ],
906
+ "name": "supportsInterface",
907
+ "outputs": [
908
+ {
909
+ "internalType": "bool",
910
+ "name": "",
911
+ "type": "bool"
912
+ }
913
+ ],
914
+ "stateMutability": "view",
915
+ "type": "function"
916
+ },
917
+ {
918
+ "inputs": [
919
+ {
920
+ "internalType": "NftId",
921
+ "name": "policyNftId",
922
+ "type": "uint96"
923
+ },
924
+ {
925
+ "internalType": "bytes",
926
+ "name": "policyData",
927
+ "type": "bytes"
928
+ },
929
+ {
930
+ "internalType": "bytes",
931
+ "name": "bundleFilter",
932
+ "type": "bytes"
933
+ },
934
+ {
935
+ "internalType": "uint256",
936
+ "name": "collateralizationAmount",
937
+ "type": "uint256"
938
+ }
939
+ ],
940
+ "name": "underwrite",
941
+ "outputs": [],
942
+ "stateMutability": "nonpayable",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [],
947
+ "name": "unlock",
948
+ "outputs": [],
949
+ "stateMutability": "nonpayable",
950
+ "type": "function"
951
+ },
952
+ {
953
+ "inputs": [
321
954
  {
322
- "length": 20,
323
- "start": 1341
955
+ "internalType": "NftId",
956
+ "name": "bundleNftId",
957
+ "type": "uint96"
324
958
  }
325
- ]
959
+ ],
960
+ "name": "unlockBundle",
961
+ "outputs": [],
962
+ "stateMutability": "nonpayable",
963
+ "type": "function"
326
964
  }
327
- }
965
+ ],
966
+ "bytecode": "0x",
967
+ "deployedBytecode": "0x",
968
+ "linkReferences": {},
969
+ "deployedLinkReferences": {}
328
970
  }