@etherisc/gif-next 0.0.2-cc253b3 → 0.0.2-cd89a0b-062

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. package/README.md +193 -6
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/{IProduct.sol/IProductComponent.json → BaseComponent.sol/BaseComponent.json} +88 -67
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +445 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IBaseComponent.sol/IBaseComponent.json} +69 -71
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +343 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +474 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +373 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +445 -56
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +324 -53
  18. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  20. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  22. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  24. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  26. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +4 -0
  33. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +59 -0
  34. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +4 -0
  35. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +124 -0
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +4 -0
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +74 -0
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +4 -0
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +124 -0
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +4 -0
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +207 -0
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  44. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  45. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  46. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  47. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1575 -295
  48. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
  49. package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
  50. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/Instance.sol/Instance.json +1894 -374
  52. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +393 -0
  54. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +113 -0
  56. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
  58. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  59. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  60. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/IService.sol/IService.json} +171 -154
  62. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  63. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +456 -0
  64. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  65. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -0
  66. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  67. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  68. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  69. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  70. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +380 -0
  72. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
  74. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
  76. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  77. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
  78. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +297 -0
  80. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
  81. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
  82. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +297 -0
  84. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  85. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +117 -0
  86. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
  88. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{product/IProductService.sol/IProductService.json → module/component/IComponent.sol/IComponentModule.json} +56 -53
  90. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  91. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  92. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  93. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.json +10 -0
  94. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  95. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +10 -0
  96. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  97. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
  98. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  99. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +159 -106
  100. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  101. package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +159 -106
  102. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
  104. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  105. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +74 -59
  106. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  107. package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +64 -62
  108. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
  109. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
  110. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
  111. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +113 -0
  112. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
  113. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +131 -0
  114. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
  115. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +10 -0
  116. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
  117. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +638 -0
  118. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  119. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
  120. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
  121. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +638 -0
  122. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  123. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +690 -0
  124. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  125. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +526 -0
  126. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  127. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +389 -0
  128. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  129. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +369 -0
  130. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  131. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +484 -0
  132. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  133. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +674 -0
  134. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  135. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +649 -0
  136. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  137. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +964 -0
  138. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  139. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +194 -2
  140. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  141. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
  142. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  143. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +351 -72
  144. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  145. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +668 -0
  146. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  147. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  148. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  149. package/artifacts/contracts/registry/Registry.sol/Registry.json +567 -79
  150. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  151. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +885 -0
  152. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  153. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +460 -0
  154. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  155. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  156. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  157. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  158. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
  159. package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
  160. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  161. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +124 -0
  162. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  163. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +205 -0
  164. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  165. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +132 -0
  166. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  167. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +344 -0
  168. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  169. package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +71 -77
  170. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  171. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  172. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  173. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +228 -0
  174. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  175. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +445 -0
  176. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  177. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  178. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
  179. package/artifacts/contracts/test/TestPool.sol/TestPool.json +602 -0
  180. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  181. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +632 -0
  182. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  183. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +191 -0
  184. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  185. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  186. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  187. package/artifacts/contracts/test/TestService.sol/TestService.json +472 -0
  188. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  189. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
  190. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  191. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  192. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  193. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +270 -0
  194. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  195. package/artifacts/contracts/test/Usdc.sol/USDC.json +338 -0
  196. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  197. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  198. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  200. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  202. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  204. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  205. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  206. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +91 -6
  208. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  209. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  210. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  212. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  214. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  216. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  218. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  219. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  220. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  221. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +236 -0
  222. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +4 -0
  223. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +479 -0
  224. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  225. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  226. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  227. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  228. package/contracts/components/BaseComponent.sol +79 -0
  229. package/contracts/components/Distribution.sol +155 -0
  230. package/contracts/components/IBaseComponent.sol +19 -0
  231. package/contracts/components/IDistributionComponent.sol +47 -0
  232. package/contracts/components/IPoolComponent.sol +65 -0
  233. package/contracts/components/IProductComponent.sol +39 -0
  234. package/contracts/components/Pool.sol +235 -18
  235. package/contracts/components/Product.sol +268 -35
  236. package/contracts/experiment/errors/Require.sol +10 -5
  237. package/contracts/experiment/errors/Revert.sol +13 -8
  238. package/contracts/experiment/inheritance/A.sol +8 -11
  239. package/contracts/experiment/inheritance/B.sol +10 -5
  240. package/contracts/experiment/inheritance/C.sol +11 -5
  241. package/contracts/experiment/inheritance/IA.sol +2 -7
  242. package/contracts/experiment/inheritance/IB.sol +3 -2
  243. package/contracts/experiment/inheritance/IC.sol +4 -3
  244. package/contracts/experiment/statemachine/Dummy.sol +27 -0
  245. package/contracts/experiment/statemachine/ISM.sol +25 -0
  246. package/contracts/experiment/statemachine/SM.sol +57 -0
  247. package/contracts/experiment/statemachine/SimpleStateMachine.sol +31 -0
  248. package/contracts/experiment/types/TypeA.sol +14 -9
  249. package/contracts/experiment/types/TypeB.sol +14 -9
  250. package/contracts/instance/IInstance.sol +42 -8
  251. package/contracts/instance/IInstanceLinked.sol +8 -0
  252. package/contracts/instance/Instance.sol +62 -41
  253. package/contracts/instance/base/ComponentServiceBase.sol +49 -0
  254. package/contracts/instance/base/IInstanceBase.sol +23 -0
  255. package/contracts/instance/base/IKeyValueStore.sol +50 -0
  256. package/contracts/instance/base/ILifecycle.sol +30 -0
  257. package/contracts/instance/base/IService.sol +15 -0
  258. package/contracts/instance/base/InstanceBase.sol +89 -0
  259. package/contracts/instance/base/KeyValueStore.sol +161 -0
  260. package/contracts/instance/base/Lifecycle.sol +100 -0
  261. package/contracts/instance/base/ModuleBase.sol +57 -0
  262. package/contracts/instance/base/ServiceBase.sol +43 -0
  263. package/contracts/instance/module/access/Access.sol +149 -0
  264. package/contracts/instance/module/access/IAccess.sol +53 -0
  265. package/contracts/instance/module/bundle/BundleModule.sol +134 -0
  266. package/contracts/instance/module/bundle/IBundle.sol +53 -0
  267. package/contracts/instance/module/component/ComponentModule.sol +71 -0
  268. package/contracts/instance/module/component/IComponent.sol +28 -0
  269. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  270. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  271. package/contracts/instance/module/policy/IPolicy.sol +63 -0
  272. package/contracts/instance/module/policy/PolicyModule.sol +91 -0
  273. package/contracts/instance/module/pool/IPoolModule.sol +41 -0
  274. package/contracts/instance/module/pool/PoolModule.sol +95 -0
  275. package/contracts/instance/module/risk/IRisk.sol +26 -0
  276. package/contracts/instance/module/risk/RiskModule.sol +62 -0
  277. package/contracts/instance/module/treasury/ITreasury.sol +84 -0
  278. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  279. package/contracts/instance/module/treasury/TreasuryModule.sol +131 -0
  280. package/contracts/instance/service/ComponentOwnerService.sol +272 -0
  281. package/contracts/instance/service/DistributionService.sol +54 -0
  282. package/contracts/instance/service/IComponentOwnerService.sol +20 -0
  283. package/contracts/instance/service/IDistributionService.sol +12 -0
  284. package/contracts/instance/service/IPoolService.sol +37 -0
  285. package/contracts/instance/service/IProductService.sol +107 -0
  286. package/contracts/instance/service/PoolService.sol +149 -0
  287. package/contracts/instance/service/ProductService.sol +509 -0
  288. package/contracts/registry/ChainNft.sol +111 -97
  289. package/contracts/registry/IChainNft.sol +13 -9
  290. package/contracts/registry/IRegistry.sol +59 -56
  291. package/contracts/registry/IRegistryService.sol +29 -0
  292. package/contracts/registry/ITransferInterceptor.sol +6 -0
  293. package/contracts/registry/Registry.sol +429 -121
  294. package/contracts/registry/RegistryService.sol +375 -0
  295. package/contracts/registry/RegistryServiceManager.sol +52 -0
  296. package/contracts/shared/ContractDeployerLib.sol +72 -0
  297. package/contracts/shared/ERC165.sol +21 -0
  298. package/contracts/shared/IOwnable.sol +6 -0
  299. package/contracts/shared/IRegisterable.sol +22 -0
  300. package/contracts/shared/IVersionable.sol +96 -0
  301. package/contracts/shared/NftOwnable.sol +87 -0
  302. package/contracts/shared/ProxyManager.sol +103 -0
  303. package/contracts/shared/Registerable.sol +117 -0
  304. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  305. package/contracts/shared/Versionable.sol +147 -0
  306. package/contracts/test/TestDistribution.sol +22 -0
  307. package/contracts/test/TestFee.sol +25 -0
  308. package/contracts/test/TestPool.sol +27 -0
  309. package/contracts/test/TestProduct.sol +74 -0
  310. package/contracts/test/TestRegisterable.sol +18 -0
  311. package/contracts/test/TestRoleId.sol +14 -0
  312. package/contracts/test/TestService.sol +26 -0
  313. package/contracts/test/TestToken.sol +26 -0
  314. package/contracts/test/TestVersion.sol +44 -0
  315. package/contracts/test/TestVersionable.sol +17 -0
  316. package/contracts/test/Usdc.sol +26 -0
  317. package/contracts/types/AddressSet.sol +58 -0
  318. package/contracts/types/Blocknumber.sol +118 -0
  319. package/contracts/types/ChainId.sol +24 -10
  320. package/contracts/types/Fee.sol +56 -0
  321. package/contracts/types/Key32.sol +45 -0
  322. package/contracts/types/NftId.sol +55 -9
  323. package/contracts/types/NftIdSet.sol +60 -0
  324. package/contracts/types/ObjectType.sol +131 -0
  325. package/contracts/types/ReferralId.sol +48 -0
  326. package/contracts/types/RiskId.sol +43 -0
  327. package/contracts/types/RoleId.sol +38 -0
  328. package/contracts/types/StateId.sol +101 -0
  329. package/contracts/types/Timestamp.sol +123 -0
  330. package/contracts/types/UFixed.sol +209 -0
  331. package/contracts/types/Version.sol +104 -0
  332. package/package.json +19 -5
  333. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  334. package/artifacts/contracts/components/Component.sol/Component.json +0 -179
  335. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  336. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  337. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  338. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  339. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  340. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  341. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  342. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  343. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  344. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  345. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  346. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  347. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  348. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -147
  349. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  350. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  351. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
  352. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  353. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  354. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  355. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  356. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  357. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  358. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  359. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  360. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  361. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  362. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  363. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  364. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  365. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  366. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  367. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  368. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  369. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -167
  370. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  371. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  372. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  373. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  374. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  375. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  376. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  377. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  378. package/contracts/components/Component.sol +0 -62
  379. package/contracts/components/IPool.sol +0 -9
  380. package/contracts/components/IProduct.sol +0 -12
  381. package/contracts/instance/access/Access.sol +0 -218
  382. package/contracts/instance/access/IAccess.sol +0 -83
  383. package/contracts/instance/component/ComponentModule.sol +0 -248
  384. package/contracts/instance/component/IComponent.sol +0 -95
  385. package/contracts/instance/policy/IPolicy.sol +0 -66
  386. package/contracts/instance/policy/PolicyModule.sol +0 -107
  387. package/contracts/instance/pool/IPoolModule.sol +0 -41
  388. package/contracts/instance/pool/PoolModule.sol +0 -86
  389. package/contracts/instance/product/IProductService.sol +0 -46
  390. package/contracts/instance/product/ProductService.sol +0 -108
@@ -0,0 +1,885 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "RegistryService",
4
+ "sourceName": "contracts/registry/RegistryService.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "registerableAddress",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "InvalidAddress",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "initialOwner",
22
+ "type": "address"
23
+ }
24
+ ],
25
+ "name": "InvalidInitialOwner",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "InvalidInitialization",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "ObjectType",
37
+ "name": "objectType",
38
+ "type": "uint8"
39
+ }
40
+ ],
41
+ "name": "InvalidType",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "MissingAllowance",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "NotComponent",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "NotInitializing",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "NotInstance",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "NotRegistryOwner",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "NotService",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "NotToken",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "SelfRegistration",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "anonymous": false,
86
+ "inputs": [
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint64",
90
+ "name": "version",
91
+ "type": "uint64"
92
+ }
93
+ ],
94
+ "name": "Initialized",
95
+ "type": "event"
96
+ },
97
+ {
98
+ "anonymous": false,
99
+ "inputs": [
100
+ {
101
+ "indexed": false,
102
+ "internalType": "Version",
103
+ "name": "version",
104
+ "type": "uint24"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "address",
109
+ "name": "implementation",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "address",
115
+ "name": "activatedBy",
116
+ "type": "address"
117
+ }
118
+ ],
119
+ "name": "LogVersionableInitialized",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "NAME",
125
+ "outputs": [
126
+ {
127
+ "internalType": "string",
128
+ "name": "",
129
+ "type": "string"
130
+ }
131
+ ],
132
+ "stateMutability": "view",
133
+ "type": "function"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "NFT_LOCK_ADDRESS",
138
+ "outputs": [
139
+ {
140
+ "internalType": "address",
141
+ "name": "",
142
+ "type": "address"
143
+ }
144
+ ],
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "REGISTERABLE_LOCATION_V1",
151
+ "outputs": [
152
+ {
153
+ "internalType": "bytes32",
154
+ "name": "",
155
+ "type": "bytes32"
156
+ }
157
+ ],
158
+ "stateMutability": "view",
159
+ "type": "function"
160
+ },
161
+ {
162
+ "inputs": [],
163
+ "name": "REGISTRY_CREATION_CODE_HASH",
164
+ "outputs": [
165
+ {
166
+ "internalType": "bytes32",
167
+ "name": "",
168
+ "type": "bytes32"
169
+ }
170
+ ],
171
+ "stateMutability": "view",
172
+ "type": "function"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "getInitialInfo",
177
+ "outputs": [
178
+ {
179
+ "components": [
180
+ {
181
+ "internalType": "NftId",
182
+ "name": "nftId",
183
+ "type": "uint96"
184
+ },
185
+ {
186
+ "internalType": "NftId",
187
+ "name": "parentNftId",
188
+ "type": "uint96"
189
+ },
190
+ {
191
+ "internalType": "ObjectType",
192
+ "name": "objectType",
193
+ "type": "uint8"
194
+ },
195
+ {
196
+ "internalType": "bool",
197
+ "name": "isInterceptor",
198
+ "type": "bool"
199
+ },
200
+ {
201
+ "internalType": "address",
202
+ "name": "objectAddress",
203
+ "type": "address"
204
+ },
205
+ {
206
+ "internalType": "address",
207
+ "name": "initialOwner",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "bytes",
212
+ "name": "data",
213
+ "type": "bytes"
214
+ }
215
+ ],
216
+ "internalType": "struct IRegistry.ObjectInfo",
217
+ "name": "",
218
+ "type": "tuple"
219
+ },
220
+ {
221
+ "internalType": "bytes",
222
+ "name": "data",
223
+ "type": "bytes"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "getInitializedVersion",
232
+ "outputs": [
233
+ {
234
+ "internalType": "uint64",
235
+ "name": "",
236
+ "type": "uint64"
237
+ }
238
+ ],
239
+ "stateMutability": "view",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "getMajorVersion",
245
+ "outputs": [
246
+ {
247
+ "internalType": "VersionPart",
248
+ "name": "majorVersion",
249
+ "type": "uint8"
250
+ }
251
+ ],
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "getName",
258
+ "outputs": [
259
+ {
260
+ "internalType": "string",
261
+ "name": "",
262
+ "type": "string"
263
+ }
264
+ ],
265
+ "stateMutability": "pure",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [],
270
+ "name": "getNftId",
271
+ "outputs": [
272
+ {
273
+ "internalType": "NftId",
274
+ "name": "nftId",
275
+ "type": "uint96"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [],
283
+ "name": "getOwner",
284
+ "outputs": [
285
+ {
286
+ "internalType": "address",
287
+ "name": "",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "stateMutability": "view",
292
+ "type": "function"
293
+ },
294
+ {
295
+ "inputs": [],
296
+ "name": "getRegistry",
297
+ "outputs": [
298
+ {
299
+ "internalType": "contract IRegistry",
300
+ "name": "registry",
301
+ "type": "address"
302
+ }
303
+ ],
304
+ "stateMutability": "view",
305
+ "type": "function"
306
+ },
307
+ {
308
+ "inputs": [],
309
+ "name": "getVersion",
310
+ "outputs": [
311
+ {
312
+ "internalType": "Version",
313
+ "name": "",
314
+ "type": "uint24"
315
+ }
316
+ ],
317
+ "stateMutability": "pure",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "idx",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "name": "getVersion",
329
+ "outputs": [
330
+ {
331
+ "internalType": "Version",
332
+ "name": "",
333
+ "type": "uint24"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "inputs": [],
341
+ "name": "getVersionCount",
342
+ "outputs": [
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "",
346
+ "type": "uint256"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "Version",
356
+ "name": "_version",
357
+ "type": "uint24"
358
+ }
359
+ ],
360
+ "name": "getVersionInfo",
361
+ "outputs": [
362
+ {
363
+ "components": [
364
+ {
365
+ "internalType": "Version",
366
+ "name": "version",
367
+ "type": "uint24"
368
+ },
369
+ {
370
+ "internalType": "address",
371
+ "name": "implementation",
372
+ "type": "address"
373
+ },
374
+ {
375
+ "internalType": "address",
376
+ "name": "activatedBy",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "Timestamp",
381
+ "name": "activatedAt",
382
+ "type": "uint40"
383
+ },
384
+ {
385
+ "internalType": "Blocknumber",
386
+ "name": "activatedIn",
387
+ "type": "uint32"
388
+ }
389
+ ],
390
+ "internalType": "struct IVersionable.VersionInfo",
391
+ "name": "",
392
+ "type": "tuple"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [
400
+ {
401
+ "internalType": "address",
402
+ "name": "implementation",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "internalType": "address",
407
+ "name": "activatedBy",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "internalType": "bytes",
412
+ "name": "data",
413
+ "type": "bytes"
414
+ }
415
+ ],
416
+ "name": "initialize",
417
+ "outputs": [],
418
+ "stateMutability": "nonpayable",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "inputs": [
423
+ {
424
+ "internalType": "Version",
425
+ "name": "_version",
426
+ "type": "uint24"
427
+ }
428
+ ],
429
+ "name": "isInitialized",
430
+ "outputs": [
431
+ {
432
+ "internalType": "bool",
433
+ "name": "",
434
+ "type": "bool"
435
+ }
436
+ ],
437
+ "stateMutability": "view",
438
+ "type": "function"
439
+ },
440
+ {
441
+ "inputs": [
442
+ {
443
+ "components": [
444
+ {
445
+ "internalType": "NftId",
446
+ "name": "nftId",
447
+ "type": "uint96"
448
+ },
449
+ {
450
+ "internalType": "NftId",
451
+ "name": "parentNftId",
452
+ "type": "uint96"
453
+ },
454
+ {
455
+ "internalType": "ObjectType",
456
+ "name": "objectType",
457
+ "type": "uint8"
458
+ },
459
+ {
460
+ "internalType": "bool",
461
+ "name": "isInterceptor",
462
+ "type": "bool"
463
+ },
464
+ {
465
+ "internalType": "address",
466
+ "name": "objectAddress",
467
+ "type": "address"
468
+ },
469
+ {
470
+ "internalType": "address",
471
+ "name": "initialOwner",
472
+ "type": "address"
473
+ },
474
+ {
475
+ "internalType": "bytes",
476
+ "name": "data",
477
+ "type": "bytes"
478
+ }
479
+ ],
480
+ "internalType": "struct IRegistry.ObjectInfo",
481
+ "name": "info",
482
+ "type": "tuple"
483
+ }
484
+ ],
485
+ "name": "registerBundle",
486
+ "outputs": [
487
+ {
488
+ "internalType": "NftId",
489
+ "name": "nftId",
490
+ "type": "uint96"
491
+ }
492
+ ],
493
+ "stateMutability": "nonpayable",
494
+ "type": "function"
495
+ },
496
+ {
497
+ "inputs": [
498
+ {
499
+ "internalType": "contract IBaseComponent",
500
+ "name": "component",
501
+ "type": "address"
502
+ },
503
+ {
504
+ "internalType": "ObjectType",
505
+ "name": "componentType",
506
+ "type": "uint8"
507
+ },
508
+ {
509
+ "internalType": "address",
510
+ "name": "owner",
511
+ "type": "address"
512
+ }
513
+ ],
514
+ "name": "registerComponent",
515
+ "outputs": [
516
+ {
517
+ "components": [
518
+ {
519
+ "internalType": "NftId",
520
+ "name": "nftId",
521
+ "type": "uint96"
522
+ },
523
+ {
524
+ "internalType": "NftId",
525
+ "name": "parentNftId",
526
+ "type": "uint96"
527
+ },
528
+ {
529
+ "internalType": "ObjectType",
530
+ "name": "objectType",
531
+ "type": "uint8"
532
+ },
533
+ {
534
+ "internalType": "bool",
535
+ "name": "isInterceptor",
536
+ "type": "bool"
537
+ },
538
+ {
539
+ "internalType": "address",
540
+ "name": "objectAddress",
541
+ "type": "address"
542
+ },
543
+ {
544
+ "internalType": "address",
545
+ "name": "initialOwner",
546
+ "type": "address"
547
+ },
548
+ {
549
+ "internalType": "bytes",
550
+ "name": "data",
551
+ "type": "bytes"
552
+ }
553
+ ],
554
+ "internalType": "struct IRegistry.ObjectInfo",
555
+ "name": "info",
556
+ "type": "tuple"
557
+ },
558
+ {
559
+ "internalType": "bytes",
560
+ "name": "data",
561
+ "type": "bytes"
562
+ }
563
+ ],
564
+ "stateMutability": "nonpayable",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [
569
+ {
570
+ "internalType": "contract IRegisterable",
571
+ "name": "instance",
572
+ "type": "address"
573
+ }
574
+ ],
575
+ "name": "registerInstance",
576
+ "outputs": [
577
+ {
578
+ "components": [
579
+ {
580
+ "internalType": "NftId",
581
+ "name": "nftId",
582
+ "type": "uint96"
583
+ },
584
+ {
585
+ "internalType": "NftId",
586
+ "name": "parentNftId",
587
+ "type": "uint96"
588
+ },
589
+ {
590
+ "internalType": "ObjectType",
591
+ "name": "objectType",
592
+ "type": "uint8"
593
+ },
594
+ {
595
+ "internalType": "bool",
596
+ "name": "isInterceptor",
597
+ "type": "bool"
598
+ },
599
+ {
600
+ "internalType": "address",
601
+ "name": "objectAddress",
602
+ "type": "address"
603
+ },
604
+ {
605
+ "internalType": "address",
606
+ "name": "initialOwner",
607
+ "type": "address"
608
+ },
609
+ {
610
+ "internalType": "bytes",
611
+ "name": "data",
612
+ "type": "bytes"
613
+ }
614
+ ],
615
+ "internalType": "struct IRegistry.ObjectInfo",
616
+ "name": "info",
617
+ "type": "tuple"
618
+ },
619
+ {
620
+ "internalType": "bytes",
621
+ "name": "data",
622
+ "type": "bytes"
623
+ }
624
+ ],
625
+ "stateMutability": "nonpayable",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [
630
+ {
631
+ "components": [
632
+ {
633
+ "internalType": "NftId",
634
+ "name": "nftId",
635
+ "type": "uint96"
636
+ },
637
+ {
638
+ "internalType": "NftId",
639
+ "name": "parentNftId",
640
+ "type": "uint96"
641
+ },
642
+ {
643
+ "internalType": "ObjectType",
644
+ "name": "objectType",
645
+ "type": "uint8"
646
+ },
647
+ {
648
+ "internalType": "bool",
649
+ "name": "isInterceptor",
650
+ "type": "bool"
651
+ },
652
+ {
653
+ "internalType": "address",
654
+ "name": "objectAddress",
655
+ "type": "address"
656
+ },
657
+ {
658
+ "internalType": "address",
659
+ "name": "initialOwner",
660
+ "type": "address"
661
+ },
662
+ {
663
+ "internalType": "bytes",
664
+ "name": "data",
665
+ "type": "bytes"
666
+ }
667
+ ],
668
+ "internalType": "struct IRegistry.ObjectInfo",
669
+ "name": "info",
670
+ "type": "tuple"
671
+ }
672
+ ],
673
+ "name": "registerPolicy",
674
+ "outputs": [
675
+ {
676
+ "internalType": "NftId",
677
+ "name": "nftId",
678
+ "type": "uint96"
679
+ }
680
+ ],
681
+ "stateMutability": "nonpayable",
682
+ "type": "function"
683
+ },
684
+ {
685
+ "inputs": [
686
+ {
687
+ "internalType": "contract IService",
688
+ "name": "service",
689
+ "type": "address"
690
+ }
691
+ ],
692
+ "name": "registerService",
693
+ "outputs": [
694
+ {
695
+ "components": [
696
+ {
697
+ "internalType": "NftId",
698
+ "name": "nftId",
699
+ "type": "uint96"
700
+ },
701
+ {
702
+ "internalType": "NftId",
703
+ "name": "parentNftId",
704
+ "type": "uint96"
705
+ },
706
+ {
707
+ "internalType": "ObjectType",
708
+ "name": "objectType",
709
+ "type": "uint8"
710
+ },
711
+ {
712
+ "internalType": "bool",
713
+ "name": "isInterceptor",
714
+ "type": "bool"
715
+ },
716
+ {
717
+ "internalType": "address",
718
+ "name": "objectAddress",
719
+ "type": "address"
720
+ },
721
+ {
722
+ "internalType": "address",
723
+ "name": "initialOwner",
724
+ "type": "address"
725
+ },
726
+ {
727
+ "internalType": "bytes",
728
+ "name": "data",
729
+ "type": "bytes"
730
+ }
731
+ ],
732
+ "internalType": "struct IRegistry.ObjectInfo",
733
+ "name": "info",
734
+ "type": "tuple"
735
+ },
736
+ {
737
+ "internalType": "bytes",
738
+ "name": "data",
739
+ "type": "bytes"
740
+ }
741
+ ],
742
+ "stateMutability": "nonpayable",
743
+ "type": "function"
744
+ },
745
+ {
746
+ "inputs": [
747
+ {
748
+ "internalType": "address",
749
+ "name": "tokenAddress",
750
+ "type": "address"
751
+ }
752
+ ],
753
+ "name": "registerToken",
754
+ "outputs": [
755
+ {
756
+ "internalType": "NftId",
757
+ "name": "nftId",
758
+ "type": "uint96"
759
+ }
760
+ ],
761
+ "stateMutability": "nonpayable",
762
+ "type": "function"
763
+ },
764
+ {
765
+ "inputs": [
766
+ {
767
+ "internalType": "bytes4",
768
+ "name": "interfaceId",
769
+ "type": "bytes4"
770
+ }
771
+ ],
772
+ "name": "supportsInterface",
773
+ "outputs": [
774
+ {
775
+ "internalType": "bool",
776
+ "name": "",
777
+ "type": "bool"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "inputs": [
785
+ {
786
+ "internalType": "address",
787
+ "name": "implementation",
788
+ "type": "address"
789
+ },
790
+ {
791
+ "internalType": "address",
792
+ "name": "activatedBy",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "bytes",
797
+ "name": "data",
798
+ "type": "bytes"
799
+ }
800
+ ],
801
+ "name": "upgrade",
802
+ "outputs": [],
803
+ "stateMutability": "nonpayable",
804
+ "type": "function"
805
+ }
806
+ ],
807
+ "bytecode": "0x60806040523480156200001157600080fd5b506301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055620000586200005e565b62000112565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000af5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146200010f5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612ace80620001226000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c8063893d20e8116100de578063c2bf08c811610097578063d943342d11610071578063d943342d146104cd578063e285c9c4146104e0578063ed841d0c146104e8578063fdd9ec7d146104f057600080fd5b8063c2bf08c81461048d578063cde749f4146104a0578063cf7a1d77146104ba57600080fd5b8063893d20e8146103e8578063946dfcfe146103f0578063a3f4df7e14610417578063a745e3df14610445578063b3c650151461045a578063b88da7591461047a57600080fd5b80634d459c90116101305780634d459c901461026e5780634f421333146103875780635ab1bd531461039a5780635c992fed146103ba578063644c45e0146103cd578063834af153146103d557600080fd5b806301ffc9a71461017857806309824a80146101ba5780630d8e6e2c146101e55780630fec111c1461020157806317d7de7c146102175780631eff4b221461024b575b600080fd5b6101a561018636600461216d565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101cd6101c83660046121c6565b610503565b6040516001600160601b0390911681526020016101b1565b6101ed610795565b60405162ffffff90911681526020016101b1565b61020961081f565b6040516101b19291906122a4565b60408051808201909152600f81526e52656769737472795365727669636560881b60208201525b6040516101b191906122d2565b610260600080516020612a3983398151915281565b6040519081526020016101b1565b61032a61027c3660046122f6565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020612a7983398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a0016101b1565b6101a56103953660046122f6565b610953565b6103a2610a06565b6040516001600160a01b0390911681526020016101b1565b6101cd6103c8366004612451565b610a22565b6101cd610bc3565b6102096103e33660046121c6565b610c3e565b6103a2610d80565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610260565b61023e6040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b610458610453366004612523565b610dfb565b005b610462610f55565b6040516001600160401b0390911681526020016101b1565b6101ed610488366004612584565b610f76565b6101cd61049b366004612451565b610fc7565b6104a86110f1565b60405160ff90911681526020016101b1565b6104586104c8366004612523565b611174565b6102096104db36600461259d565b61127d565b6103a2600181565b610260600081565b6102096104fe3660046121c6565b6114ca565b6040516301ffc9a760e01b8152600090829082906001600160a01b038316906301ffc9a79061053d90633111e9af60e01b906004016125e8565b602060405180830381865afa925050508015610576575060408051601f3d908101601f1916820190925261057391810190612608565b60015b61058257506000610585565b90505b80156105a45760405163087cada760e21b815260040160405180910390fd5b60006105ae610a06565b604051630a57ebcf60e11b81526001600160a01b038216600482018190529192506314afd79e90602401602060405180830381865afa1580156105f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106199190612630565b6001600160a01b0316336001600160a01b03161461064a5760405163778d468d60e11b815260040160405180910390fd5b60006040518060e0016040528061065f600090565b6001600160601b03168152604051636939560f60e11b81526001600160a01b038516600482018190526020909201919063d272ac1e90602401602060405180830381865afa1580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d99190612658565b6001600160601b03168152602001601e60ff168152600060208083018290526001600160a01b03808b166040808601919091526001606086015280519283018152928252608090930152516352efcf2760e11b815291925083169063a5df9e4e90610748908490600401612675565b6020604051808303816000875af1158015610767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078b9190612658565b9695505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156107f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612688565b905090565b61082761212f565b60606000600080516020612a3983398151915290506040518060e0016040528061084f600090565b6001600160601b0390811682528354600160a01b908190049091166020830152600184015490810460ff9081166040840152600160a81b820416151560608301523060808301526001600160a01b031660a082015260028301805460c0909201916108b9906126a5565b80601f01602080910402602001604051908101604052809291908181526020018280546108e5906126a5565b80156109325780601f1061090757610100808354040283529160200191610932565b820191906000526020600020905b81548152906001019060200180831161091557829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b600080600080516020612a7983398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af41580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff91906126df565b1192915050565b600080516020612a39833981519152546001600160a01b031690565b600080610a2d610a06565b604051636939560f60e11b81523360048201529091506000906001600160a01b0383169063d272ac1e90602401602060405180830381865afa158015610a77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9b9190612658565b90506001600160a01b038216635f1561518260d26040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa158015610afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1f9190612608565b1515600003610b4157604051632bb46a5f60e01b815260040160405180910390fd5b610b4c8460d2611654565b6040516352efcf2760e11b81526001600160a01b0383169063a5df9e4e90610b78908790600401612675565b6020604051808303816000875af1158015610b97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbb9190612658565b949350505050565b6000600080516020612a3983398151915254604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa158015610c1a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612658565b610c4661212f565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a790610c7c90630de7806f60e41b906004016125e8565b602060405180830381865afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbd9190612608565b1515600003610cdf57604051636795c76360e01b815260040160405180910390fd5b610cec8360325b3361178b565b90925090506000610cfb610a06565b6040516352efcf2760e11b81529091506001600160a01b0382169063a5df9e4e90610d2a908690600401612675565b6020604051808303816000875af1158015610d49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6d9190612658565b6001600160601b03168352509092909150565b6000600080516020612a3983398151915254604051630a57ebcf60e11b81523060048201526001600160a01b03909116906314afd79e90602401602060405180830381865afa158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612630565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610e1d610795565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610e5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8191906126f8565b600080516020612a598339815191528054600160401b900460ff1680610eb4575080546001600160401b03808416911610155b15610ed25760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610efd8585611963565b610f0683611b9e565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b600061081a600080516020612a59833981519152546001600160401b031690565b6000600080516020612a798339815191526001018281548110610f9b57610f9b612721565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600080610fd2610a06565b604051636939560f60e11b81523360048201529091506000906001600160a01b0383169063d272ac1e90602401602060405180830381865afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190612658565b90506001600160a01b038216635f1561518260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa1580156110a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c49190612608565b15156000036110e657604051632bb46a5f60e01b815260040160405180910390fd5b610b4c8460dc611654565b60006110fb610795565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611150573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612742565b600080516020612a598339815191528054600160401b810460ff1615906001600160401b03166000811580156111a75750825b90506000826001600160401b031660011480156111c35750303b155b9050811580156111d1575080155b156111ef5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561121957845460ff60401b1916600160401b1785555b6112238888611963565b61122d8787611ba6565b831561127357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b61128561212f565b6040516301ffc9a760e01b81526060906001600160a01b038616906301ffc9a7906112bb90631b1599eb60e21b906004016125e8565b602060405180830381865afa1580156112d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fc9190612608565b151560000361131e57604051634138dc2760e11b815260040160405180910390fd5b61132985858561178b565b90925090506000611338610a06565b604051636939560f60e11b81523360048201529091506000906001600160a01b0383169063d272ac1e90602401602060405180830381865afa158015611382573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a69190612658565b604051635f15615160e01b81526001600160601b038216600482015260ff881660248201529091506001600160a01b03831690635f15615190604401602060405180830381865afa1580156113ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114239190612608565b151560000361144557604051632bb46a5f60e01b815260040160405180910390fd5b6040516352efcf2760e11b81526001600160a01b0383169063a5df9e4e90611471908790600401612675565b6020604051808303816000875af1158015611490573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b49190612658565b6001600160601b0316845250505b935093915050565b6114d261212f565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a79061150890631b4612f160e31b906004016125e8565b602060405180830381865afa158015611525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115499190612608565b151560000361156b57604051635458064d60e11b815260040160405180910390fd5b611576836028610ce6565b90925090506000611585610a06565b604051630a57ebcf60e11b81526001600160a01b038216600482018190529192506314afd79e90602401602060405180830381865afa1580156115cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f09190612630565b6001600160a01b0316336001600160a01b0316146116215760405163778d468d60e11b815260040160405180910390fd5b600160a08401526040516352efcf2760e11b81526001600160a01b0382169063a5df9e4e90610d2a908690600401612675565b60808201516001600160a01b031615611696576080820151604051634726455360e11b81526001600160a01b0390911660048201526024015b60405180910390fd5b61169e610a06565b60a083015160405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa1580156116e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170d9190612608565b80611723575060a08201516001600160a01b0316155b156117525760a082015160405163711c133360e01b81526001600160a01b03909116600482015260240161168d565b604082015160ff82811691161461178757604080830151905163f503452760e01b815260ff909116600482015260240161168d565b5050565b61179361212f565b6060846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156117d3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117fb91908101906127a4565b608082015191935091506001600160a01b03868116911614611841576080820151604051634726455360e11b81526001600160a01b03909116600482015260240161168d565b611849610a06565b60405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa158015611891573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b59190612608565b806118d65750826001600160a01b03168260a001516001600160a01b031614155b156119055760a082015160405163711c133360e01b81526001600160a01b03909116600482015260240161168d565b6001600160a01b038516330361192e576040516317faf4db60e11b815260040160405180910390fd5b604082015160ff8581169116146114c257604080830151905163f503452760e01b815260ff909116600482015260240161168d565b61196b611e68565b600080516020612a79833981519152600061199b600080516020612a59833981519152546001600160401b031690565b905060006119a7610795565b9050816001600160401b03166001036119d45760028301805462ffffff191662ffffff8316179055611a22565b600283015462ffffff90811690821611611a225760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b604482015260640161168d565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101611a964290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf6890610f469083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b610173611e68565b600080516020612a598339815191528054600160401b810460ff1615906001600160401b0316600081158015611bd95750825b90506000826001600160401b03166001148015611bf55750303b155b905081158015611c03575080155b15611c215760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611c4b57845460ff60401b1916600160401b1785555b600087611c566110f1565b604080516001600160a01b03909316602084015260ff9091169082015260600160408051601f1981840301815290829052631585e94960e21b8252915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90635617a52490611cc2908b90869060040161289c565b600060405180830381865af4158015611cdf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d0791908101906128af565b60405163257b1f8160e11b815290915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90634af63f0290611d4690859085906004016128e3565b602060405180830381865af4158015611d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d879190612630565b604051636939560f60e11b81526001600160a01b03821660048201819052919250829160009163d272ac1e90602401602060405180830381865afa158015611dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df79190612658565b9050611e0483828e611ea1565b611e1463183a225360e11b611f25565b50505050508315611e5f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b600080516020612a5983398151915254600160401b900460ff16611e9f57604051631afcd79f60e31b815260040160405180910390fd5b565b6000611ecf60408051808201909152600f81526e52656769737472795365727669636560881b602082015290565b611ed76110f1565b604051602001611ee8929190612905565b6040516020818303038152906040529050611f0f8484611f06602890565b60008686611f4a565b611f1f631b4612f160e31b611f25565b50505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6001600160a01b038616611fa05760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f0000000000604482015260640161168d565b6040516301ffc9a760e01b815286906001600160a01b038216906301ffc9a790611fd590636882e63f60e11b906004016125e8565b602060405180830381865afa158015611ff2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120169190612608565b6120625760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f5245474953545259000000000000604482015260640161168d565b6001600160a01b03818116600160a01b6001600160601b038916810291909117600080516020612a398339815191529081557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30180546001600160a01b031961ffff60a01b1990911660ff8b1690940260ff60a81b191693909317600160a81b8915150217929092169286169290921790557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30261211e8482612979565b5061127363a6d3826560e01b611f25565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561217f57600080fd5b81356001600160e01b03198116811461219757600080fd5b9392505050565b6001600160a01b03811681146121b357600080fd5b50565b80356121c18161219e565b919050565b6000602082840312156121d857600080fd5b81356121978161219e565b60005b838110156121fe5781810151838201526020016121e6565b50506000910152565b6000815180845261221f8160208601602086016121e3565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c0850152610bbb60e0850182612207565b6040815260006122b76040830185612233565b82810360208401526122c98185612207565b95945050505050565b6020815260006121976020830184612207565b62ffffff811681146121b357600080fd5b60006020828403121561230857600080fd5b8135612197816122e5565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561234b5761234b612313565b60405290565b604051601f8201601f191681016001600160401b038111828210171561237957612379612313565b604052919050565b6001600160601b03811681146121b357600080fd5b80356121c181612381565b60ff811681146121b357600080fd5b80356121c1816123a1565b80151581146121b357600080fd5b80356121c1816123bb565b60006001600160401b038211156123ed576123ed612313565b50601f01601f191660200190565b600082601f83011261240c57600080fd5b813561241f61241a826123d4565b612351565b81815284602083860101111561243457600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561246357600080fd5b81356001600160401b038082111561247a57600080fd5b9083019060e0828603121561248e57600080fd5b612496612329565b61249f83612396565b81526124ad60208401612396565b60208201526124be604084016123b0565b60408201526124cf606084016123c9565b60608201526124e0608084016121b6565b60808201526124f160a084016121b6565b60a082015260c08301358281111561250857600080fd5b612514878286016123fb565b60c08301525095945050505050565b60008060006060848603121561253857600080fd5b83356125438161219e565b925060208401356125538161219e565b915060408401356001600160401b0381111561256e57600080fd5b61257a868287016123fb565b9150509250925092565b60006020828403121561259657600080fd5b5035919050565b6000806000606084860312156125b257600080fd5b83356125bd8161219e565b925060208401356125cd816123a1565b915060408401356125dd8161219e565b809150509250925092565b6001600160e01b031991909116815260200190565b80516121c1816123bb565b60006020828403121561261a57600080fd5b8151612197816123bb565b80516121c18161219e565b60006020828403121561264257600080fd5b81516121978161219e565b80516121c181612381565b60006020828403121561266a57600080fd5b815161219781612381565b6020815260006121976020830184612233565b60006020828403121561269a57600080fd5b8151612197816122e5565b600181811c908216806126b957607f821691505b6020821081036126d957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156126f157600080fd5b5051919050565b60006020828403121561270a57600080fd5b81516001600160401b038116811461219757600080fd5b634e487b7160e01b600052603260045260246000fd5b80516121c1816123a1565b60006020828403121561275457600080fd5b8151612197816123a1565b600082601f83011261277057600080fd5b815161277e61241a826123d4565b81815284602083860101111561279357600080fd5b610bbb8260208301602087016121e3565b600080604083850312156127b757600080fd5b82516001600160401b03808211156127ce57600080fd5b9084019060e082870312156127e257600080fd5b6127ea612329565b6127f38361264d565b81526128016020840161264d565b602082015261281260408401612737565b6040820152612823606084016125fd565b606082015261283460808401612625565b608082015261284560a08401612625565b60a082015260c08301518281111561285c57600080fd5b6128688882860161275f565b60c083015250602086015190945091508082111561288557600080fd5b506128928582860161275f565b9150509250929050565b6040815260006122b76040830185612207565b6000602082840312156128c157600080fd5b81516001600160401b038111156128d757600080fd5b610bbb8482850161275f565b6040815260006128f66040830185612207565b90508260208301529392505050565b6040815260006129186040830185612207565b905060ff831660208301529392505050565b601f82111561297457600081815260208120601f850160051c810160208610156129515750805b601f850160051c820191505b818110156129705782815560010161295d565b5050505b505050565b81516001600160401b0381111561299257612992612313565b6129a6816129a084546126a5565b8461292a565b602080601f8311600181146129db57600084156129c35750858301515b600019600386901b1c1916600185901b178555612970565b600085815260208120601f198616915b82811015612a0a578886015182559484019460019091019084016129eb565b5085821015612a285787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fe6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212205c77b8492438b0f4dc5929df8f99846ee9841542da81d9cc8d0fa46a3ba6561d64736f6c63430008140033",
808
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101735760003560e01c8063893d20e8116100de578063c2bf08c811610097578063d943342d11610071578063d943342d146104cd578063e285c9c4146104e0578063ed841d0c146104e8578063fdd9ec7d146104f057600080fd5b8063c2bf08c81461048d578063cde749f4146104a0578063cf7a1d77146104ba57600080fd5b8063893d20e8146103e8578063946dfcfe146103f0578063a3f4df7e14610417578063a745e3df14610445578063b3c650151461045a578063b88da7591461047a57600080fd5b80634d459c90116101305780634d459c901461026e5780634f421333146103875780635ab1bd531461039a5780635c992fed146103ba578063644c45e0146103cd578063834af153146103d557600080fd5b806301ffc9a71461017857806309824a80146101ba5780630d8e6e2c146101e55780630fec111c1461020157806317d7de7c146102175780631eff4b221461024b575b600080fd5b6101a561018636600461216d565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101cd6101c83660046121c6565b610503565b6040516001600160601b0390911681526020016101b1565b6101ed610795565b60405162ffffff90911681526020016101b1565b61020961081f565b6040516101b19291906122a4565b60408051808201909152600f81526e52656769737472795365727669636560881b60208201525b6040516101b191906122d2565b610260600080516020612a3983398151915281565b6040519081526020016101b1565b61032a61027c3660046122f6565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080516020612a7983398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a0016101b1565b6101a56103953660046122f6565b610953565b6103a2610a06565b6040516001600160a01b0390911681526020016101b1565b6101cd6103c8366004612451565b610a22565b6101cd610bc3565b6102096103e33660046121c6565b610c3e565b6103a2610d80565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed90154610260565b61023e6040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b610458610453366004612523565b610dfb565b005b610462610f55565b6040516001600160401b0390911681526020016101b1565b6101ed610488366004612584565b610f76565b6101cd61049b366004612451565b610fc7565b6104a86110f1565b60405160ff90911681526020016101b1565b6104586104c8366004612523565b611174565b6102096104db36600461259d565b61127d565b6103a2600181565b610260600081565b6102096104fe3660046121c6565b6114ca565b6040516301ffc9a760e01b8152600090829082906001600160a01b038316906301ffc9a79061053d90633111e9af60e01b906004016125e8565b602060405180830381865afa925050508015610576575060408051601f3d908101601f1916820190925261057391810190612608565b60015b61058257506000610585565b90505b80156105a45760405163087cada760e21b815260040160405180910390fd5b60006105ae610a06565b604051630a57ebcf60e11b81526001600160a01b038216600482018190529192506314afd79e90602401602060405180830381865afa1580156105f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106199190612630565b6001600160a01b0316336001600160a01b03161461064a5760405163778d468d60e11b815260040160405180910390fd5b60006040518060e0016040528061065f600090565b6001600160601b03168152604051636939560f60e11b81526001600160a01b038516600482018190526020909201919063d272ac1e90602401602060405180830381865afa1580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d99190612658565b6001600160601b03168152602001601e60ff168152600060208083018290526001600160a01b03808b166040808601919091526001606086015280519283018152928252608090930152516352efcf2760e11b815291925083169063a5df9e4e90610748908490600401612675565b6020604051808303816000875af1158015610767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078b9190612658565b9695505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156107f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612688565b905090565b61082761212f565b60606000600080516020612a3983398151915290506040518060e0016040528061084f600090565b6001600160601b0390811682528354600160a01b908190049091166020830152600184015490810460ff9081166040840152600160a81b820416151560608301523060808301526001600160a01b031660a082015260028301805460c0909201916108b9906126a5565b80601f01602080910402602001604051908101604052809291908181526020018280546108e5906126a5565b80156109325780601f1061090757610100808354040283529160200191610932565b820191906000526020600020905b81548152906001019060200180831161091557829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b600080600080516020612a7983398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af41580156109db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ff91906126df565b1192915050565b600080516020612a39833981519152546001600160a01b031690565b600080610a2d610a06565b604051636939560f60e11b81523360048201529091506000906001600160a01b0383169063d272ac1e90602401602060405180830381865afa158015610a77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9b9190612658565b90506001600160a01b038216635f1561518260d26040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa158015610afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1f9190612608565b1515600003610b4157604051632bb46a5f60e01b815260040160405180910390fd5b610b4c8460d2611654565b6040516352efcf2760e11b81526001600160a01b0383169063a5df9e4e90610b78908790600401612675565b6020604051808303816000875af1158015610b97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbb9190612658565b949350505050565b6000600080516020612a3983398151915254604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa158015610c1a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612658565b610c4661212f565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a790610c7c90630de7806f60e41b906004016125e8565b602060405180830381865afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbd9190612608565b1515600003610cdf57604051636795c76360e01b815260040160405180910390fd5b610cec8360325b3361178b565b90925090506000610cfb610a06565b6040516352efcf2760e11b81529091506001600160a01b0382169063a5df9e4e90610d2a908690600401612675565b6020604051808303816000875af1158015610d49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6d9190612658565b6001600160601b03168352509092909150565b6000600080516020612a3983398151915254604051630a57ebcf60e11b81523060048201526001600160a01b03909116906314afd79e90602401602060405180830381865afa158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612630565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610e1d610795565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610e5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8191906126f8565b600080516020612a598339815191528054600160401b900460ff1680610eb4575080546001600160401b03808416911610155b15610ed25760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610efd8585611963565b610f0683611b9e565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b600061081a600080516020612a59833981519152546001600160401b031690565b6000600080516020612a798339815191526001018281548110610f9b57610f9b612721565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b600080610fd2610a06565b604051636939560f60e11b81523360048201529091506000906001600160a01b0383169063d272ac1e90602401602060405180830381865afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190612658565b90506001600160a01b038216635f1561518260dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865afa1580156110a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c49190612608565b15156000036110e657604051632bb46a5f60e01b815260040160405180910390fd5b610b4c8460dc611654565b60006110fb610795565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015611150573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190612742565b600080516020612a598339815191528054600160401b810460ff1615906001600160401b03166000811580156111a75750825b90506000826001600160401b031660011480156111c35750303b155b9050811580156111d1575080155b156111ef5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561121957845460ff60401b1916600160401b1785555b6112238888611963565b61122d8787611ba6565b831561127357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b61128561212f565b6040516301ffc9a760e01b81526060906001600160a01b038616906301ffc9a7906112bb90631b1599eb60e21b906004016125e8565b602060405180830381865afa1580156112d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fc9190612608565b151560000361131e57604051634138dc2760e11b815260040160405180910390fd5b61132985858561178b565b90925090506000611338610a06565b604051636939560f60e11b81523360048201529091506000906001600160a01b0383169063d272ac1e90602401602060405180830381865afa158015611382573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a69190612658565b604051635f15615160e01b81526001600160601b038216600482015260ff881660248201529091506001600160a01b03831690635f15615190604401602060405180830381865afa1580156113ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114239190612608565b151560000361144557604051632bb46a5f60e01b815260040160405180910390fd5b6040516352efcf2760e11b81526001600160a01b0383169063a5df9e4e90611471908790600401612675565b6020604051808303816000875af1158015611490573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b49190612658565b6001600160601b0316845250505b935093915050565b6114d261212f565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a79061150890631b4612f160e31b906004016125e8565b602060405180830381865afa158015611525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115499190612608565b151560000361156b57604051635458064d60e11b815260040160405180910390fd5b611576836028610ce6565b90925090506000611585610a06565b604051630a57ebcf60e11b81526001600160a01b038216600482018190529192506314afd79e90602401602060405180830381865afa1580156115cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f09190612630565b6001600160a01b0316336001600160a01b0316146116215760405163778d468d60e11b815260040160405180910390fd5b600160a08401526040516352efcf2760e11b81526001600160a01b0382169063a5df9e4e90610d2a908690600401612675565b60808201516001600160a01b031615611696576080820151604051634726455360e11b81526001600160a01b0390911660048201526024015b60405180910390fd5b61169e610a06565b60a083015160405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa1580156116e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170d9190612608565b80611723575060a08201516001600160a01b0316155b156117525760a082015160405163711c133360e01b81526001600160a01b03909116600482015260240161168d565b604082015160ff82811691161461178757604080830151905163f503452760e01b815260ff909116600482015260240161168d565b5050565b61179361212f565b6060846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156117d3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117fb91908101906127a4565b608082015191935091506001600160a01b03868116911614611841576080820151604051634726455360e11b81526001600160a01b03909116600482015260240161168d565b611849610a06565b60405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa158015611891573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b59190612608565b806118d65750826001600160a01b03168260a001516001600160a01b031614155b156119055760a082015160405163711c133360e01b81526001600160a01b03909116600482015260240161168d565b6001600160a01b038516330361192e576040516317faf4db60e11b815260040160405180910390fd5b604082015160ff8581169116146114c257604080830151905163f503452760e01b815260ff909116600482015260240161168d565b61196b611e68565b600080516020612a79833981519152600061199b600080516020612a59833981519152546001600160401b031690565b905060006119a7610795565b9050816001600160401b03166001036119d45760028301805462ffffff191662ffffff8316179055611a22565b600283015462ffffff90811690821611611a225760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b604482015260640161168d565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101611a964290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf6890610f469083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b610173611e68565b600080516020612a598339815191528054600160401b810460ff1615906001600160401b0316600081158015611bd95750825b90506000826001600160401b03166001148015611bf55750303b155b905081158015611c03575080155b15611c215760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611c4b57845460ff60401b1916600160401b1785555b600087611c566110f1565b604080516001600160a01b03909316602084015260ff9091169082015260600160408051601f1981840301815290829052631585e94960e21b8252915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90635617a52490611cc2908b90869060040161289c565b600060405180830381865af4158015611cdf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d0791908101906128af565b60405163257b1f8160e11b815290915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90634af63f0290611d4690859085906004016128e3565b602060405180830381865af4158015611d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d879190612630565b604051636939560f60e11b81526001600160a01b03821660048201819052919250829160009163d272ac1e90602401602060405180830381865afa158015611dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df79190612658565b9050611e0483828e611ea1565b611e1463183a225360e11b611f25565b50505050508315611e5f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b600080516020612a5983398151915254600160401b900460ff16611e9f57604051631afcd79f60e31b815260040160405180910390fd5b565b6000611ecf60408051808201909152600f81526e52656769737472795365727669636560881b602082015290565b611ed76110f1565b604051602001611ee8929190612905565b6040516020818303038152906040529050611f0f8484611f06602890565b60008686611f4a565b611f1f631b4612f160e31b611f25565b50505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6001600160a01b038616611fa05760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f0000000000604482015260640161168d565b6040516301ffc9a760e01b815286906001600160a01b038216906301ffc9a790611fd590636882e63f60e11b906004016125e8565b602060405180830381865afa158015611ff2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120169190612608565b6120625760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f5245474953545259000000000000604482015260640161168d565b6001600160a01b03818116600160a01b6001600160601b038916810291909117600080516020612a398339815191529081557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30180546001600160a01b031961ffff60a01b1990911660ff8b1690940260ff60a81b191693909317600160a81b8915150217929092169286169290921790557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30261211e8482612979565b5061127363a6d3826560e01b611f25565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561217f57600080fd5b81356001600160e01b03198116811461219757600080fd5b9392505050565b6001600160a01b03811681146121b357600080fd5b50565b80356121c18161219e565b919050565b6000602082840312156121d857600080fd5b81356121978161219e565b60005b838110156121fe5781810151838201526020016121e6565b50506000910152565b6000815180845261221f8160208601602086016121e3565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c0850152610bbb60e0850182612207565b6040815260006122b76040830185612233565b82810360208401526122c98185612207565b95945050505050565b6020815260006121976020830184612207565b62ffffff811681146121b357600080fd5b60006020828403121561230857600080fd5b8135612197816122e5565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561234b5761234b612313565b60405290565b604051601f8201601f191681016001600160401b038111828210171561237957612379612313565b604052919050565b6001600160601b03811681146121b357600080fd5b80356121c181612381565b60ff811681146121b357600080fd5b80356121c1816123a1565b80151581146121b357600080fd5b80356121c1816123bb565b60006001600160401b038211156123ed576123ed612313565b50601f01601f191660200190565b600082601f83011261240c57600080fd5b813561241f61241a826123d4565b612351565b81815284602083860101111561243457600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561246357600080fd5b81356001600160401b038082111561247a57600080fd5b9083019060e0828603121561248e57600080fd5b612496612329565b61249f83612396565b81526124ad60208401612396565b60208201526124be604084016123b0565b60408201526124cf606084016123c9565b60608201526124e0608084016121b6565b60808201526124f160a084016121b6565b60a082015260c08301358281111561250857600080fd5b612514878286016123fb565b60c08301525095945050505050565b60008060006060848603121561253857600080fd5b83356125438161219e565b925060208401356125538161219e565b915060408401356001600160401b0381111561256e57600080fd5b61257a868287016123fb565b9150509250925092565b60006020828403121561259657600080fd5b5035919050565b6000806000606084860312156125b257600080fd5b83356125bd8161219e565b925060208401356125cd816123a1565b915060408401356125dd8161219e565b809150509250925092565b6001600160e01b031991909116815260200190565b80516121c1816123bb565b60006020828403121561261a57600080fd5b8151612197816123bb565b80516121c18161219e565b60006020828403121561264257600080fd5b81516121978161219e565b80516121c181612381565b60006020828403121561266a57600080fd5b815161219781612381565b6020815260006121976020830184612233565b60006020828403121561269a57600080fd5b8151612197816122e5565b600181811c908216806126b957607f821691505b6020821081036126d957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156126f157600080fd5b5051919050565b60006020828403121561270a57600080fd5b81516001600160401b038116811461219757600080fd5b634e487b7160e01b600052603260045260246000fd5b80516121c1816123a1565b60006020828403121561275457600080fd5b8151612197816123a1565b600082601f83011261277057600080fd5b815161277e61241a826123d4565b81815284602083860101111561279357600080fd5b610bbb8260208301602087016121e3565b600080604083850312156127b757600080fd5b82516001600160401b03808211156127ce57600080fd5b9084019060e082870312156127e257600080fd5b6127ea612329565b6127f38361264d565b81526128016020840161264d565b602082015261281260408401612737565b6040820152612823606084016125fd565b606082015261283460808401612625565b608082015261284560a08401612625565b60a082015260c08301518281111561285c57600080fd5b6128688882860161275f565b60c083015250602086015190945091508082111561288557600080fd5b506128928582860161275f565b9150509250929050565b6040815260006122b76040830185612207565b6000602082840312156128c157600080fd5b81516001600160401b038111156128d757600080fd5b610bbb8482850161275f565b6040815260006128f66040830185612207565b90508260208301529392505050565b6040815260006129186040830185612207565b905060ff831660208301529392505050565b601f82111561297457600081815260208120601f850160051c810160208610156129515750805b601f850160051c820191505b818110156129705782815560010161295d565b5050505b505050565b81516001600160401b0381111561299257612992612313565b6129a6816129a084546126a5565b8461292a565b602080601f8311600181146129db57600084156129c35750858301515b600019600386901b1c1916600185901b178555612970565b600085815260208120601f198616915b82811015612a0a578886015182559484019460019091019084016129eb565b5085821015612a285787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fe6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a26469706673582212205c77b8492438b0f4dc5929df8f99846ee9841542da81d9cc8d0fa46a3ba6561d64736f6c63430008140033",
809
+ "linkReferences": {
810
+ "contracts/shared/ContractDeployerLib.sol": {
811
+ "ContractDeployerLib": [
812
+ {
813
+ "length": 20,
814
+ "start": 7610
815
+ },
816
+ {
817
+ "length": 20,
818
+ "start": 7742
819
+ }
820
+ ]
821
+ },
822
+ "contracts/types/Blocknumber.sol": {
823
+ "BlocknumberLib": [
824
+ {
825
+ "length": 20,
826
+ "start": 2755
827
+ }
828
+ ]
829
+ },
830
+ "contracts/types/Version.sol": {
831
+ "VersionLib": [
832
+ {
833
+ "length": 20,
834
+ "start": 2270
835
+ },
836
+ {
837
+ "length": 20,
838
+ "start": 3871
839
+ },
840
+ {
841
+ "length": 20,
842
+ "start": 4664
843
+ }
844
+ ]
845
+ }
846
+ },
847
+ "deployedLinkReferences": {
848
+ "contracts/shared/ContractDeployerLib.sol": {
849
+ "ContractDeployerLib": [
850
+ {
851
+ "length": 20,
852
+ "start": 7320
853
+ },
854
+ {
855
+ "length": 20,
856
+ "start": 7452
857
+ }
858
+ ]
859
+ },
860
+ "contracts/types/Blocknumber.sol": {
861
+ "BlocknumberLib": [
862
+ {
863
+ "length": 20,
864
+ "start": 2465
865
+ }
866
+ ]
867
+ },
868
+ "contracts/types/Version.sol": {
869
+ "VersionLib": [
870
+ {
871
+ "length": 20,
872
+ "start": 1980
873
+ },
874
+ {
875
+ "length": 20,
876
+ "start": 3581
877
+ },
878
+ {
879
+ "length": 20,
880
+ "start": 4374
881
+ }
882
+ ]
883
+ }
884
+ }
885
+ }