@etherisc/gif-next 0.0.2-743affe-003 → 0.0.2-770fd3b-604

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