@etherisc/gif-next 0.0.2-f752d2a-551 → 0.0.2-f79a517-071

Sign up to get free protection for your applications and to get access to all the features.
Files changed (300) hide show
  1. package/README.md +175 -1
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +166 -39
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +557 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +119 -39
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +177 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +108 -156
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +67 -139
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +417 -88
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +360 -51
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  40. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  42. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  43. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +768 -694
  44. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  45. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  46. package/artifacts/contracts/instance/Instance.sol/Instance.json +954 -816
  47. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +224 -43
  49. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  50. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +51 -1
  51. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  52. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
  53. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  54. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  55. package/artifacts/contracts/instance/base/IService.sol/IService.json +174 -53
  56. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  57. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +263 -45
  58. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  59. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
  60. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  61. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  62. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
  63. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  64. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +220 -52
  65. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +55 -54
  67. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +56 -55
  70. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
  72. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  73. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +22 -93
  75. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  76. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  77. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  78. package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensation.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
  79. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  80. package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
  81. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  83. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +61 -51
  84. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  85. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -51
  86. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  87. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  88. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +29 -14
  89. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  90. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +28 -13
  91. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  92. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  93. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +104 -1
  94. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  95. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
  96. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  97. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  98. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +326 -221
  99. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  100. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  101. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  102. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +326 -221
  103. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +374 -70
  105. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +630 -0
  107. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  108. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +176 -74
  109. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  110. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  111. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  112. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +235 -50
  113. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  114. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +325 -51
  115. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  116. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +335 -53
  117. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  118. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +468 -73
  119. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  120. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  121. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  122. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +190 -51
  123. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  124. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +872 -0
  125. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  126. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  127. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  128. package/artifacts/contracts/registry/Registry.sol/Registry.json +380 -139
  129. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  130. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1245 -0
  131. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  132. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +496 -0
  133. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  134. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  135. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  136. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  137. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  138. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  139. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  140. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  141. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  143. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  144. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  145. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  146. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  147. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  149. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  150. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  151. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  152. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  153. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  154. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +557 -0
  155. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  156. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  157. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestPool.sol/TestPool.json +417 -88
  159. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +407 -56
  161. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  163. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  165. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestService.sol/TestService.json +267 -62
  167. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  168. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  169. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  171. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +89 -25
  173. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  174. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  175. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  176. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  179. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  180. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  181. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  182. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  183. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  184. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  185. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  186. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  187. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  188. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  190. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  191. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  192. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  194. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  198. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  200. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  202. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  204. package/contracts/components/BaseComponent.sol +11 -20
  205. package/contracts/components/Distribution.sol +155 -0
  206. package/contracts/components/IBaseComponent.sol +1 -1
  207. package/contracts/components/IDistributionComponent.sol +46 -0
  208. package/contracts/components/IPoolComponent.sol +15 -8
  209. package/contracts/components/IProductComponent.sol +26 -8
  210. package/contracts/components/Pool.sol +99 -27
  211. package/contracts/components/Product.sol +204 -22
  212. package/contracts/experiment/cloning/Cloner.sol +47 -0
  213. package/contracts/instance/IInstance.sol +11 -11
  214. package/contracts/instance/Instance.sol +28 -13
  215. package/contracts/instance/base/ComponentServiceBase.sol +13 -6
  216. package/contracts/instance/base/IInstanceBase.sol +11 -2
  217. package/contracts/instance/base/IKeyValueStore.sol +4 -3
  218. package/contracts/instance/base/InstanceBase.sol +19 -10
  219. package/contracts/instance/base/KeyValueStore.sol +12 -7
  220. package/contracts/instance/base/Lifecycle.sol +15 -10
  221. package/contracts/instance/base/ModuleBase.sol +22 -17
  222. package/contracts/instance/base/ServiceBase.sol +20 -13
  223. package/contracts/instance/module/bundle/BundleModule.sol +10 -12
  224. package/contracts/instance/module/bundle/IBundle.sol +6 -11
  225. package/contracts/instance/module/component/ComponentModule.sol +33 -57
  226. package/contracts/instance/module/component/IComponent.sol +6 -31
  227. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  228. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  229. package/contracts/instance/module/policy/IPolicy.sol +13 -10
  230. package/contracts/instance/module/policy/PolicyModule.sol +35 -20
  231. package/contracts/instance/module/pool/IPoolModule.sol +4 -4
  232. package/contracts/instance/module/pool/PoolModule.sol +23 -15
  233. package/contracts/instance/module/risk/IRisk.sol +18 -2
  234. package/contracts/instance/module/risk/RiskModule.sol +56 -2
  235. package/contracts/instance/module/treasury/ITreasury.sol +31 -50
  236. package/contracts/instance/module/treasury/TokenHandler.sol +1 -1
  237. package/contracts/instance/module/treasury/TreasuryModule.sol +70 -91
  238. package/contracts/instance/service/ComponentOwnerService.sol +238 -93
  239. package/contracts/instance/service/DistributionService.sol +54 -0
  240. package/contracts/instance/service/IComponentOwnerService.sol +0 -2
  241. package/contracts/instance/service/IDistributionService.sol +12 -0
  242. package/contracts/instance/service/IPoolService.sol +7 -0
  243. package/contracts/instance/service/IProductService.sol +56 -7
  244. package/contracts/instance/service/PoolService.sol +49 -23
  245. package/contracts/instance/service/ProductService.sol +250 -94
  246. package/contracts/registry/ChainNft.sol +80 -37
  247. package/contracts/registry/IRegistry.sol +28 -28
  248. package/contracts/registry/IRegistryService.sol +35 -0
  249. package/contracts/registry/ITransferInterceptor.sol +6 -0
  250. package/contracts/registry/Registry.sol +314 -272
  251. package/contracts/registry/RegistryService.sol +441 -0
  252. package/contracts/registry/RegistryServiceManager.sol +64 -0
  253. package/contracts/shared/ContractDeployerLib.sol +72 -0
  254. package/contracts/shared/INftOwnable.sol +22 -0
  255. package/contracts/shared/IRegisterable.sol +8 -15
  256. package/contracts/shared/IVersionable.sol +55 -11
  257. package/contracts/shared/NftOwnable.sol +136 -0
  258. package/contracts/shared/ProxyManager.sol +94 -0
  259. package/contracts/shared/Registerable.sol +62 -59
  260. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  261. package/contracts/shared/Versionable.sol +112 -54
  262. package/contracts/test/TestDistribution.sol +22 -0
  263. package/contracts/test/TestFee.sol +2 -2
  264. package/contracts/test/TestPool.sol +7 -2
  265. package/contracts/test/TestProduct.sol +37 -7
  266. package/contracts/test/TestRegisterable.sol +5 -6
  267. package/contracts/test/TestService.sol +5 -11
  268. package/contracts/types/Fee.sol +10 -5
  269. package/contracts/types/ObjectType.sol +24 -8
  270. package/contracts/types/ReferralId.sol +48 -0
  271. package/contracts/types/RiskId.sol +43 -0
  272. package/contracts/types/RoleId.sol +9 -2
  273. package/contracts/types/UFixed.sol +128 -12
  274. package/contracts/types/Version.sol +9 -0
  275. package/package.json +4 -3
  276. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  277. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  278. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  279. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  280. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  281. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  282. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  283. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  284. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  285. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  286. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  287. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  288. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  289. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  290. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  291. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  292. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  293. package/contracts/experiment/statemachine/README.md +0 -112
  294. package/contracts/instance/module/access/Access.sol +0 -149
  295. package/contracts/instance/module/access/IAccess.sol +0 -53
  296. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  297. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  298. package/contracts/registry/IChainNft.sol +0 -21
  299. package/contracts/registry/IRegistryLinked.sol +0 -8
  300. package/contracts/shared/IOwnable.sol +0 -6
@@ -0,0 +1,1245 @@
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": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "registry",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "internalType": "NftId",
53
+ "name": "nftId",
54
+ "type": "uint96"
55
+ }
56
+ ],
57
+ "name": "ErrorAlreadyLinked",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "address",
64
+ "name": "contractAddress",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "name": "ErrorContractNotRegistered",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "address",
75
+ "name": "account",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "ErrorNotOwner",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "registryAddress",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "ErrorNotRegistry",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "address",
97
+ "name": "registryAddress",
98
+ "type": "address"
99
+ }
100
+ ],
101
+ "name": "ErrorRegisterableNotRegistry",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "ErrorRegistryAddressZero",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "address",
113
+ "name": "registry",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "ErrorRegistryAlreadyInitialized",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "ErrorRegistryNotInitialized",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [
127
+ {
128
+ "internalType": "address",
129
+ "name": "registerableAddress",
130
+ "type": "address"
131
+ }
132
+ ],
133
+ "name": "InvalidAddress",
134
+ "type": "error"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "initialOwner",
141
+ "type": "address"
142
+ }
143
+ ],
144
+ "name": "InvalidInitialOwner",
145
+ "type": "error"
146
+ },
147
+ {
148
+ "inputs": [],
149
+ "name": "InvalidInitialization",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [],
154
+ "name": "NotDistribution",
155
+ "type": "error"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "name": "NotInitializing",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "NotInstance",
165
+ "type": "error"
166
+ },
167
+ {
168
+ "inputs": [],
169
+ "name": "NotPool",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [],
174
+ "name": "NotProduct",
175
+ "type": "error"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "expectedOwner",
182
+ "type": "address"
183
+ }
184
+ ],
185
+ "name": "NotRegisterableOwner",
186
+ "type": "error"
187
+ },
188
+ {
189
+ "inputs": [],
190
+ "name": "NotRegistryOwner",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "NotService",
196
+ "type": "error"
197
+ },
198
+ {
199
+ "inputs": [],
200
+ "name": "NotToken",
201
+ "type": "error"
202
+ },
203
+ {
204
+ "inputs": [],
205
+ "name": "RegisterableOwnerIsRegistered",
206
+ "type": "error"
207
+ },
208
+ {
209
+ "inputs": [],
210
+ "name": "RegisterableOwnerIsZero",
211
+ "type": "error"
212
+ },
213
+ {
214
+ "inputs": [],
215
+ "name": "SelfRegistration",
216
+ "type": "error"
217
+ },
218
+ {
219
+ "inputs": [
220
+ {
221
+ "internalType": "ObjectType",
222
+ "name": "expected",
223
+ "type": "uint8"
224
+ },
225
+ {
226
+ "internalType": "ObjectType",
227
+ "name": "found",
228
+ "type": "uint8"
229
+ }
230
+ ],
231
+ "name": "UnexpectedRegisterableType",
232
+ "type": "error"
233
+ },
234
+ {
235
+ "anonymous": false,
236
+ "inputs": [
237
+ {
238
+ "indexed": false,
239
+ "internalType": "address",
240
+ "name": "authority",
241
+ "type": "address"
242
+ }
243
+ ],
244
+ "name": "AuthorityUpdated",
245
+ "type": "event"
246
+ },
247
+ {
248
+ "anonymous": false,
249
+ "inputs": [
250
+ {
251
+ "indexed": false,
252
+ "internalType": "uint64",
253
+ "name": "version",
254
+ "type": "uint64"
255
+ }
256
+ ],
257
+ "name": "Initialized",
258
+ "type": "event"
259
+ },
260
+ {
261
+ "anonymous": false,
262
+ "inputs": [
263
+ {
264
+ "indexed": false,
265
+ "internalType": "Version",
266
+ "name": "version",
267
+ "type": "uint24"
268
+ },
269
+ {
270
+ "indexed": false,
271
+ "internalType": "address",
272
+ "name": "implementation",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "indexed": false,
277
+ "internalType": "address",
278
+ "name": "activatedBy",
279
+ "type": "address"
280
+ }
281
+ ],
282
+ "name": "LogVersionableInitialized",
283
+ "type": "event"
284
+ },
285
+ {
286
+ "inputs": [],
287
+ "name": "NAME",
288
+ "outputs": [
289
+ {
290
+ "internalType": "string",
291
+ "name": "",
292
+ "type": "string"
293
+ }
294
+ ],
295
+ "stateMutability": "view",
296
+ "type": "function"
297
+ },
298
+ {
299
+ "inputs": [],
300
+ "name": "NFT_LOCK_ADDRESS",
301
+ "outputs": [
302
+ {
303
+ "internalType": "address",
304
+ "name": "",
305
+ "type": "address"
306
+ }
307
+ ],
308
+ "stateMutability": "view",
309
+ "type": "function"
310
+ },
311
+ {
312
+ "inputs": [],
313
+ "name": "REGISTERABLE_LOCATION_V1",
314
+ "outputs": [
315
+ {
316
+ "internalType": "bytes32",
317
+ "name": "",
318
+ "type": "bytes32"
319
+ }
320
+ ],
321
+ "stateMutability": "view",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [],
326
+ "name": "REGISTRY_CREATION_CODE_HASH",
327
+ "outputs": [
328
+ {
329
+ "internalType": "bytes32",
330
+ "name": "",
331
+ "type": "bytes32"
332
+ }
333
+ ],
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [],
339
+ "name": "authority",
340
+ "outputs": [
341
+ {
342
+ "internalType": "address",
343
+ "name": "",
344
+ "type": "address"
345
+ }
346
+ ],
347
+ "stateMutability": "view",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [],
352
+ "name": "getInitialInfo",
353
+ "outputs": [
354
+ {
355
+ "components": [
356
+ {
357
+ "internalType": "NftId",
358
+ "name": "nftId",
359
+ "type": "uint96"
360
+ },
361
+ {
362
+ "internalType": "NftId",
363
+ "name": "parentNftId",
364
+ "type": "uint96"
365
+ },
366
+ {
367
+ "internalType": "ObjectType",
368
+ "name": "objectType",
369
+ "type": "uint8"
370
+ },
371
+ {
372
+ "internalType": "bool",
373
+ "name": "isInterceptor",
374
+ "type": "bool"
375
+ },
376
+ {
377
+ "internalType": "address",
378
+ "name": "objectAddress",
379
+ "type": "address"
380
+ },
381
+ {
382
+ "internalType": "address",
383
+ "name": "initialOwner",
384
+ "type": "address"
385
+ },
386
+ {
387
+ "internalType": "bytes",
388
+ "name": "data",
389
+ "type": "bytes"
390
+ }
391
+ ],
392
+ "internalType": "struct IRegistry.ObjectInfo",
393
+ "name": "",
394
+ "type": "tuple"
395
+ },
396
+ {
397
+ "internalType": "bytes",
398
+ "name": "data",
399
+ "type": "bytes"
400
+ }
401
+ ],
402
+ "stateMutability": "view",
403
+ "type": "function"
404
+ },
405
+ {
406
+ "inputs": [],
407
+ "name": "getInitializedVersion",
408
+ "outputs": [
409
+ {
410
+ "internalType": "uint64",
411
+ "name": "",
412
+ "type": "uint64"
413
+ }
414
+ ],
415
+ "stateMutability": "view",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [],
420
+ "name": "getMajorVersion",
421
+ "outputs": [
422
+ {
423
+ "internalType": "VersionPart",
424
+ "name": "majorVersion",
425
+ "type": "uint8"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [],
433
+ "name": "getName",
434
+ "outputs": [
435
+ {
436
+ "internalType": "string",
437
+ "name": "",
438
+ "type": "string"
439
+ }
440
+ ],
441
+ "stateMutability": "pure",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [],
446
+ "name": "getNftId",
447
+ "outputs": [
448
+ {
449
+ "internalType": "NftId",
450
+ "name": "",
451
+ "type": "uint96"
452
+ }
453
+ ],
454
+ "stateMutability": "view",
455
+ "type": "function"
456
+ },
457
+ {
458
+ "inputs": [],
459
+ "name": "getOwner",
460
+ "outputs": [
461
+ {
462
+ "internalType": "address",
463
+ "name": "",
464
+ "type": "address"
465
+ }
466
+ ],
467
+ "stateMutability": "view",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [],
472
+ "name": "getRegistry",
473
+ "outputs": [
474
+ {
475
+ "internalType": "contract IRegistry",
476
+ "name": "",
477
+ "type": "address"
478
+ }
479
+ ],
480
+ "stateMutability": "view",
481
+ "type": "function"
482
+ },
483
+ {
484
+ "inputs": [],
485
+ "name": "getVersion",
486
+ "outputs": [
487
+ {
488
+ "internalType": "Version",
489
+ "name": "",
490
+ "type": "uint24"
491
+ }
492
+ ],
493
+ "stateMutability": "pure",
494
+ "type": "function"
495
+ },
496
+ {
497
+ "inputs": [
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "idx",
501
+ "type": "uint256"
502
+ }
503
+ ],
504
+ "name": "getVersion",
505
+ "outputs": [
506
+ {
507
+ "internalType": "Version",
508
+ "name": "",
509
+ "type": "uint24"
510
+ }
511
+ ],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [],
517
+ "name": "getVersionCount",
518
+ "outputs": [
519
+ {
520
+ "internalType": "uint256",
521
+ "name": "",
522
+ "type": "uint256"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "Version",
532
+ "name": "_version",
533
+ "type": "uint24"
534
+ }
535
+ ],
536
+ "name": "getVersionInfo",
537
+ "outputs": [
538
+ {
539
+ "components": [
540
+ {
541
+ "internalType": "Version",
542
+ "name": "version",
543
+ "type": "uint24"
544
+ },
545
+ {
546
+ "internalType": "address",
547
+ "name": "implementation",
548
+ "type": "address"
549
+ },
550
+ {
551
+ "internalType": "address",
552
+ "name": "activatedBy",
553
+ "type": "address"
554
+ },
555
+ {
556
+ "internalType": "Timestamp",
557
+ "name": "activatedAt",
558
+ "type": "uint40"
559
+ },
560
+ {
561
+ "internalType": "Blocknumber",
562
+ "name": "activatedIn",
563
+ "type": "uint32"
564
+ }
565
+ ],
566
+ "internalType": "struct IVersionable.VersionInfo",
567
+ "name": "",
568
+ "type": "tuple"
569
+ }
570
+ ],
571
+ "stateMutability": "view",
572
+ "type": "function"
573
+ },
574
+ {
575
+ "inputs": [
576
+ {
577
+ "internalType": "address",
578
+ "name": "implementation",
579
+ "type": "address"
580
+ },
581
+ {
582
+ "internalType": "address",
583
+ "name": "activatedBy",
584
+ "type": "address"
585
+ },
586
+ {
587
+ "internalType": "bytes",
588
+ "name": "data",
589
+ "type": "bytes"
590
+ }
591
+ ],
592
+ "name": "initialize",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
596
+ },
597
+ {
598
+ "inputs": [],
599
+ "name": "isConsumingScheduledOp",
600
+ "outputs": [
601
+ {
602
+ "internalType": "bytes4",
603
+ "name": "",
604
+ "type": "bytes4"
605
+ }
606
+ ],
607
+ "stateMutability": "view",
608
+ "type": "function"
609
+ },
610
+ {
611
+ "inputs": [
612
+ {
613
+ "internalType": "Version",
614
+ "name": "_version",
615
+ "type": "uint24"
616
+ }
617
+ ],
618
+ "name": "isInitialized",
619
+ "outputs": [
620
+ {
621
+ "internalType": "bool",
622
+ "name": "",
623
+ "type": "bool"
624
+ }
625
+ ],
626
+ "stateMutability": "view",
627
+ "type": "function"
628
+ },
629
+ {
630
+ "inputs": [],
631
+ "name": "linkToRegisteredNftId",
632
+ "outputs": [],
633
+ "stateMutability": "nonpayable",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [
638
+ {
639
+ "components": [
640
+ {
641
+ "internalType": "NftId",
642
+ "name": "nftId",
643
+ "type": "uint96"
644
+ },
645
+ {
646
+ "internalType": "NftId",
647
+ "name": "parentNftId",
648
+ "type": "uint96"
649
+ },
650
+ {
651
+ "internalType": "ObjectType",
652
+ "name": "objectType",
653
+ "type": "uint8"
654
+ },
655
+ {
656
+ "internalType": "bool",
657
+ "name": "isInterceptor",
658
+ "type": "bool"
659
+ },
660
+ {
661
+ "internalType": "address",
662
+ "name": "objectAddress",
663
+ "type": "address"
664
+ },
665
+ {
666
+ "internalType": "address",
667
+ "name": "initialOwner",
668
+ "type": "address"
669
+ },
670
+ {
671
+ "internalType": "bytes",
672
+ "name": "data",
673
+ "type": "bytes"
674
+ }
675
+ ],
676
+ "internalType": "struct IRegistry.ObjectInfo",
677
+ "name": "info",
678
+ "type": "tuple"
679
+ }
680
+ ],
681
+ "name": "registerBundle",
682
+ "outputs": [
683
+ {
684
+ "internalType": "NftId",
685
+ "name": "nftId",
686
+ "type": "uint96"
687
+ }
688
+ ],
689
+ "stateMutability": "nonpayable",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [
694
+ {
695
+ "internalType": "contract IBaseComponent",
696
+ "name": "distribution",
697
+ "type": "address"
698
+ },
699
+ {
700
+ "internalType": "address",
701
+ "name": "owner",
702
+ "type": "address"
703
+ }
704
+ ],
705
+ "name": "registerDistribution",
706
+ "outputs": [
707
+ {
708
+ "components": [
709
+ {
710
+ "internalType": "NftId",
711
+ "name": "nftId",
712
+ "type": "uint96"
713
+ },
714
+ {
715
+ "internalType": "NftId",
716
+ "name": "parentNftId",
717
+ "type": "uint96"
718
+ },
719
+ {
720
+ "internalType": "ObjectType",
721
+ "name": "objectType",
722
+ "type": "uint8"
723
+ },
724
+ {
725
+ "internalType": "bool",
726
+ "name": "isInterceptor",
727
+ "type": "bool"
728
+ },
729
+ {
730
+ "internalType": "address",
731
+ "name": "objectAddress",
732
+ "type": "address"
733
+ },
734
+ {
735
+ "internalType": "address",
736
+ "name": "initialOwner",
737
+ "type": "address"
738
+ },
739
+ {
740
+ "internalType": "bytes",
741
+ "name": "data",
742
+ "type": "bytes"
743
+ }
744
+ ],
745
+ "internalType": "struct IRegistry.ObjectInfo",
746
+ "name": "info",
747
+ "type": "tuple"
748
+ },
749
+ {
750
+ "internalType": "bytes",
751
+ "name": "data",
752
+ "type": "bytes"
753
+ }
754
+ ],
755
+ "stateMutability": "nonpayable",
756
+ "type": "function"
757
+ },
758
+ {
759
+ "inputs": [
760
+ {
761
+ "internalType": "contract IRegisterable",
762
+ "name": "instance",
763
+ "type": "address"
764
+ }
765
+ ],
766
+ "name": "registerInstance",
767
+ "outputs": [
768
+ {
769
+ "components": [
770
+ {
771
+ "internalType": "NftId",
772
+ "name": "nftId",
773
+ "type": "uint96"
774
+ },
775
+ {
776
+ "internalType": "NftId",
777
+ "name": "parentNftId",
778
+ "type": "uint96"
779
+ },
780
+ {
781
+ "internalType": "ObjectType",
782
+ "name": "objectType",
783
+ "type": "uint8"
784
+ },
785
+ {
786
+ "internalType": "bool",
787
+ "name": "isInterceptor",
788
+ "type": "bool"
789
+ },
790
+ {
791
+ "internalType": "address",
792
+ "name": "objectAddress",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "address",
797
+ "name": "initialOwner",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "internalType": "bytes",
802
+ "name": "data",
803
+ "type": "bytes"
804
+ }
805
+ ],
806
+ "internalType": "struct IRegistry.ObjectInfo",
807
+ "name": "info",
808
+ "type": "tuple"
809
+ },
810
+ {
811
+ "internalType": "bytes",
812
+ "name": "data",
813
+ "type": "bytes"
814
+ }
815
+ ],
816
+ "stateMutability": "nonpayable",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [
821
+ {
822
+ "components": [
823
+ {
824
+ "internalType": "NftId",
825
+ "name": "nftId",
826
+ "type": "uint96"
827
+ },
828
+ {
829
+ "internalType": "NftId",
830
+ "name": "parentNftId",
831
+ "type": "uint96"
832
+ },
833
+ {
834
+ "internalType": "ObjectType",
835
+ "name": "objectType",
836
+ "type": "uint8"
837
+ },
838
+ {
839
+ "internalType": "bool",
840
+ "name": "isInterceptor",
841
+ "type": "bool"
842
+ },
843
+ {
844
+ "internalType": "address",
845
+ "name": "objectAddress",
846
+ "type": "address"
847
+ },
848
+ {
849
+ "internalType": "address",
850
+ "name": "initialOwner",
851
+ "type": "address"
852
+ },
853
+ {
854
+ "internalType": "bytes",
855
+ "name": "data",
856
+ "type": "bytes"
857
+ }
858
+ ],
859
+ "internalType": "struct IRegistry.ObjectInfo",
860
+ "name": "info",
861
+ "type": "tuple"
862
+ }
863
+ ],
864
+ "name": "registerPolicy",
865
+ "outputs": [
866
+ {
867
+ "internalType": "NftId",
868
+ "name": "nftId",
869
+ "type": "uint96"
870
+ }
871
+ ],
872
+ "stateMutability": "nonpayable",
873
+ "type": "function"
874
+ },
875
+ {
876
+ "inputs": [
877
+ {
878
+ "internalType": "contract IBaseComponent",
879
+ "name": "pool",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "internalType": "address",
884
+ "name": "owner",
885
+ "type": "address"
886
+ }
887
+ ],
888
+ "name": "registerPool",
889
+ "outputs": [
890
+ {
891
+ "components": [
892
+ {
893
+ "internalType": "NftId",
894
+ "name": "nftId",
895
+ "type": "uint96"
896
+ },
897
+ {
898
+ "internalType": "NftId",
899
+ "name": "parentNftId",
900
+ "type": "uint96"
901
+ },
902
+ {
903
+ "internalType": "ObjectType",
904
+ "name": "objectType",
905
+ "type": "uint8"
906
+ },
907
+ {
908
+ "internalType": "bool",
909
+ "name": "isInterceptor",
910
+ "type": "bool"
911
+ },
912
+ {
913
+ "internalType": "address",
914
+ "name": "objectAddress",
915
+ "type": "address"
916
+ },
917
+ {
918
+ "internalType": "address",
919
+ "name": "initialOwner",
920
+ "type": "address"
921
+ },
922
+ {
923
+ "internalType": "bytes",
924
+ "name": "data",
925
+ "type": "bytes"
926
+ }
927
+ ],
928
+ "internalType": "struct IRegistry.ObjectInfo",
929
+ "name": "info",
930
+ "type": "tuple"
931
+ },
932
+ {
933
+ "internalType": "bytes",
934
+ "name": "data",
935
+ "type": "bytes"
936
+ }
937
+ ],
938
+ "stateMutability": "nonpayable",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [
943
+ {
944
+ "internalType": "contract IBaseComponent",
945
+ "name": "product",
946
+ "type": "address"
947
+ },
948
+ {
949
+ "internalType": "address",
950
+ "name": "owner",
951
+ "type": "address"
952
+ }
953
+ ],
954
+ "name": "registerProduct",
955
+ "outputs": [
956
+ {
957
+ "components": [
958
+ {
959
+ "internalType": "NftId",
960
+ "name": "nftId",
961
+ "type": "uint96"
962
+ },
963
+ {
964
+ "internalType": "NftId",
965
+ "name": "parentNftId",
966
+ "type": "uint96"
967
+ },
968
+ {
969
+ "internalType": "ObjectType",
970
+ "name": "objectType",
971
+ "type": "uint8"
972
+ },
973
+ {
974
+ "internalType": "bool",
975
+ "name": "isInterceptor",
976
+ "type": "bool"
977
+ },
978
+ {
979
+ "internalType": "address",
980
+ "name": "objectAddress",
981
+ "type": "address"
982
+ },
983
+ {
984
+ "internalType": "address",
985
+ "name": "initialOwner",
986
+ "type": "address"
987
+ },
988
+ {
989
+ "internalType": "bytes",
990
+ "name": "data",
991
+ "type": "bytes"
992
+ }
993
+ ],
994
+ "internalType": "struct IRegistry.ObjectInfo",
995
+ "name": "info",
996
+ "type": "tuple"
997
+ },
998
+ {
999
+ "internalType": "bytes",
1000
+ "name": "data",
1001
+ "type": "bytes"
1002
+ }
1003
+ ],
1004
+ "stateMutability": "nonpayable",
1005
+ "type": "function"
1006
+ },
1007
+ {
1008
+ "inputs": [
1009
+ {
1010
+ "internalType": "contract IService",
1011
+ "name": "service",
1012
+ "type": "address"
1013
+ }
1014
+ ],
1015
+ "name": "registerService",
1016
+ "outputs": [
1017
+ {
1018
+ "components": [
1019
+ {
1020
+ "internalType": "NftId",
1021
+ "name": "nftId",
1022
+ "type": "uint96"
1023
+ },
1024
+ {
1025
+ "internalType": "NftId",
1026
+ "name": "parentNftId",
1027
+ "type": "uint96"
1028
+ },
1029
+ {
1030
+ "internalType": "ObjectType",
1031
+ "name": "objectType",
1032
+ "type": "uint8"
1033
+ },
1034
+ {
1035
+ "internalType": "bool",
1036
+ "name": "isInterceptor",
1037
+ "type": "bool"
1038
+ },
1039
+ {
1040
+ "internalType": "address",
1041
+ "name": "objectAddress",
1042
+ "type": "address"
1043
+ },
1044
+ {
1045
+ "internalType": "address",
1046
+ "name": "initialOwner",
1047
+ "type": "address"
1048
+ },
1049
+ {
1050
+ "internalType": "bytes",
1051
+ "name": "data",
1052
+ "type": "bytes"
1053
+ }
1054
+ ],
1055
+ "internalType": "struct IRegistry.ObjectInfo",
1056
+ "name": "info",
1057
+ "type": "tuple"
1058
+ },
1059
+ {
1060
+ "internalType": "bytes",
1061
+ "name": "data",
1062
+ "type": "bytes"
1063
+ }
1064
+ ],
1065
+ "stateMutability": "nonpayable",
1066
+ "type": "function"
1067
+ },
1068
+ {
1069
+ "inputs": [
1070
+ {
1071
+ "internalType": "address",
1072
+ "name": "tokenAddress",
1073
+ "type": "address"
1074
+ }
1075
+ ],
1076
+ "name": "registerToken",
1077
+ "outputs": [
1078
+ {
1079
+ "internalType": "NftId",
1080
+ "name": "nftId",
1081
+ "type": "uint96"
1082
+ }
1083
+ ],
1084
+ "stateMutability": "nonpayable",
1085
+ "type": "function"
1086
+ },
1087
+ {
1088
+ "inputs": [
1089
+ {
1090
+ "internalType": "address",
1091
+ "name": "newAuthority",
1092
+ "type": "address"
1093
+ }
1094
+ ],
1095
+ "name": "setAuthority",
1096
+ "outputs": [],
1097
+ "stateMutability": "nonpayable",
1098
+ "type": "function"
1099
+ },
1100
+ {
1101
+ "inputs": [
1102
+ {
1103
+ "internalType": "bytes4",
1104
+ "name": "interfaceId",
1105
+ "type": "bytes4"
1106
+ }
1107
+ ],
1108
+ "name": "supportsInterface",
1109
+ "outputs": [
1110
+ {
1111
+ "internalType": "bool",
1112
+ "name": "",
1113
+ "type": "bool"
1114
+ }
1115
+ ],
1116
+ "stateMutability": "view",
1117
+ "type": "function"
1118
+ },
1119
+ {
1120
+ "inputs": [
1121
+ {
1122
+ "internalType": "address",
1123
+ "name": "implementation",
1124
+ "type": "address"
1125
+ },
1126
+ {
1127
+ "internalType": "address",
1128
+ "name": "activatedBy",
1129
+ "type": "address"
1130
+ },
1131
+ {
1132
+ "internalType": "bytes",
1133
+ "name": "data",
1134
+ "type": "bytes"
1135
+ }
1136
+ ],
1137
+ "name": "upgrade",
1138
+ "outputs": [],
1139
+ "stateMutability": "nonpayable",
1140
+ "type": "function"
1141
+ }
1142
+ ],
1143
+ "bytecode": "0x60806040523480156200001157600080fd5b506301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055600280546001600160a01b031916331790556200006a62000070565b62000124565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000c15760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001215780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61338680620001346000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063834af1531161010f578063b88da759116100a2578063cf7a1d7711610071578063cf7a1d77146105c4578063e285c9c4146105d7578063ed841d0c146105df578063fdd9ec7d146105e757600080fd5b8063b88da7591461057c578063bf7e214f1461058f578063c2bf08c814610597578063cde749f4146105aa57600080fd5b8063946dfcfe116100de578063946dfcfe146104f4578063a3f4df7e1461051b578063a745e3df14610549578063b3c650151461055c57600080fd5b8063834af153146104b1578063893d20e8146104c45780638fb36037146104cc5780638fbc2d81146104e157600080fd5b80634d459c90116101875780635d966289116101565780635d96628914610460578063644c45e0146104735780637286e5e51461048b5780637a9e5e4b1461049e57600080fd5b80634d459c90146102fc5780634f421333146104155780635ab1bd53146104285780635c992fed1461044d57600080fd5b80630fec111c116101c35780630fec111c14610273578063138461e01461028957806317d7de7c146102935780631eff4b22146102c757600080fd5b806301ffc9a7146101ea57806309824a801461022c5780630d8e6e2c14610257575b600080fd5b6102176101f8366004612911565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023f61023a366004612960565b6105fa565b6040516001600160601b039091168152602001610223565b61025f610867565b60405162ffffff9091168152602001610223565b61027b6108f1565b604051610223929190612a3e565b610291610a44565b005b60408051808201909152600f81526e52656769737472795365727669636560881b60208201525b6040516102239190612a6c565b6102ee7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610223565b6103b861030a366004612a90565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260008051602061333183398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610223565b610217610423366004612a90565b610c66565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610223565b61023f61045b366004612beb565b610d19565b61027b61046e366004612cbd565b610e1c565b600154600160a01b90046001600160601b031661023f565b61027b610499366004612cbd565b611021565b6102916104ac366004612960565b6110d0565b61027b6104bf366004612960565b611157565b6104356112df565b6104d46113f8565b6040516102239190612cf6565b61027b6104ef366004612cbd565b611431565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed901546102ee565b6102ba6040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b610291610557366004612d0b565b6114e0565b61056461163a565b6040516001600160401b039091168152602001610223565b61025f61058a366004612d6c565b61165b565b6104356116ac565b61023f6105a5366004612beb565b6116c8565b6105b261174d565b60405160ff9091168152602001610223565b6102916105d2366004612d0b565b6117d0565b610435600181565b6102ee600081565b61027b6105f5366004612960565b6118d9565b60006001600160a01b0382163303610625576040516317faf4db60e11b815260040160405180910390fd5b6001600160a01b0382163b15806106485750610648826303fb044760e21b611a53565b156106665760405163087cada760e21b815260040160405180910390fd5b600154604051636939560f60e11b81526001600160a01b039091166004820181905260009163d272ac1e90602401602060405180830381865afa1580156106b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d59190612d90565b600154604051631c5da14d60e11b81526001600160601b03831660048201529192506001600160a01b0316906338bb429a90602401602060405180830381865afa158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190612db8565b6001600160a01b0316336001600160a01b03161461077c5760405163778d468d60e11b815260040160405180910390fd5b60006040518060e00160405280610791600090565b6001600160601b03168152602001836001600160601b031681526020016107b6601e90565b60ff168152600060208083018290526001600160a01b0380891660408086019190915260016060860181905281519384018252938352608090940191909152905491516352efcf2760e11b8152929350169063a5df9e4e9061081c908490600401612dd5565b6020604051808303816000875af115801561083b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085f9190612d90565b949350505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156108c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ec9190612de8565b905090565b6108f96128d3565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e001604052806109456001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161098d6112df565b6001600160a01b031681526020018260010180546109aa90612e05565b80601f01602080910402602001604051908101604052809291908181526020018280546109d690612e05565b8015610a235780601f106109f857610100808354040283529160200191610a23565b820191906000526020600020905b815481529060010190602001808311610a0657829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca9190612e4a565b15610b11576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b0316610b3a5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610b83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba79190612e4a565b610bcf576040516372657a5160e01b81526001600160a01b0382166004820152602401610b08565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3d9190612d90565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b60008060008051602061333183398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610cee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d129190612e67565b1192915050565b6000610d28335b600036611a6f565b600154604051636939560f60e11b81523360048201526000916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d959190612d90565b9050610da28360d2611b75565b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90610dd2908690600401612dd5565b6020604051808303816000875af1158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e159190612d90565b9392505050565b610e246128d3565b6060610e2f33610d20565b6040516301ffc9a760e01b81526001600160a01b038516906301ffc9a790610e62906379fc0e7160e11b90600401612cf6565b602060405180830381865afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea39190612e4a565b610ec057604051637a71998760e01b815260040160405180910390fd5b610ecd84606e5b85611c72565b600154604051636939560f60e11b81523360048201529294509092506000916001600160a01b039091169063d272ac1e90602401602060405180830381865afa158015610f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f429190612d90565b6001546040516352efcf2760e11b81529192506001600160a01b03169063a5df9e4e90610f73908690600401612dd5565b6020604051808303816000875af1158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb69190612d90565b6001600160601b0316835260408051629c230f60e51b815290516001600160a01b0387169163138461e091600480830192600092919082900301818387803b15801561100157600080fd5b505af1158015611015573d6000803e3d6000fd5b50505050509250929050565b6110296128d3565b606061103433610d20565b6040516301ffc9a760e01b81526001600160a01b038516906301ffc9a79061106790638165cf9760e01b90600401612cf6565b602060405180830381865afa158015611084573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a89190612e4a565b6110c557604051636f61f64160e01b815260040160405180910390fd5b610ecd84608c610ec7565b336110d96116ac565b6001600160a01b0316816001600160a01b0316146111145760405162d1953b60e31b81526001600160a01b0382166004820152602401610b08565b816001600160a01b03163b60000361114a576040516361798f2f60e11b81526001600160a01b0383166004820152602401610b08565b61115382611e67565b5050565b61115f6128d3565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a79061119590630de7806f60e41b90600401612cf6565b602060405180830381865afa1580156111b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d69190612e4a565b6111f357604051636795c76360e01b815260040160405180910390fd5b6112008360325b33611c72565b6001546040516352efcf2760e11b81529294509092506001600160a01b03169063a5df9e4e90611234908590600401612dd5565b6020604051808303816000875af1158015611253573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112779190612d90565b6001600160601b0316825260408051629c230f60e51b815290516001600160a01b0385169163138461e091600480830192600092919082900301818387803b1580156112c257600080fd5b505af11580156112d6573d6000803e3d6000fd5b50505050915091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611344573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113689190612e4a565b156113e857600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ec9190612db8565b506002546001600160a01b031690565b6000805160206132f1833981519152805460009190600160a01b900460ff1661142257600061142b565b638fb3603760e01b5b91505090565b6114396128d3565b606061144433610d20565b6040516301ffc9a760e01b81526001600160a01b038516906301ffc9a7906114779063b4d7c7a360e01b90600401612cf6565b602060405180830381865afa158015611494573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b89190612e4a565b6114d5576040516308707e3160e41b815260040160405180910390fd5b610ecd846078610ec7565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c611502610867565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015611542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115669190612e80565b6000805160206133118339815191528054600160401b900460ff1680611599575080546001600160401b03808416911610155b156115b75760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b1781556115e28585611ec8565b6115eb83612103565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006108ec600080516020613311833981519152546001600160401b031690565b6000600080516020613331833981519152600101828154811061168057611680612ea9565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000805160206132f1833981519152546001600160a01b031690565b60006116d333610d20565b600154604051636939560f60e11b81523360048201526000916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561171c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117409190612d90565b9050610da28360dc611b75565b6000611757610867565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156117ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ec9190612eca565b6000805160206133118339815191528054600160401b810460ff1615906001600160401b03166000811580156118035750825b90506000826001600160401b0316600114801561181f5750303b155b90508115801561182d575080155b1561184b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561187557845460ff60401b1916600160401b1785555b61187f8888611ec8565b611889878761210b565b83156118cf57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6118e16128d3565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a79061191790631b4612f160e31b90600401612cf6565b602060405180830381865afa158015611934573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119589190612e4a565b61197557604051635458064d60e11b815260040160405180910390fd5b6119808360286111fa565b60015460408051631127a41d60e31b815290519395509193506001600160a01b03169163893d20e8916004808201926020929091908290030181865afa1580156119ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f29190612db8565b6001600160a01b0316336001600160a01b031614611a235760405163778d468d60e11b815260040160405180910390fd5b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90611234908590600401612dd5565b6000611a5e836123f9565b8015610e155750610e15838361242d565b6000805160206132f1833981519152600080611aaa611a8c6116ac565b8730611a9c600460008a8c612ee7565b611aa591612f11565b6124b0565b9150915081611b6d5763ffffffff811615611b4a57825460ff60a01b1916600160a01b178355611ad86116ac565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611b0793929190612f41565b600060405180830381600087803b158015611b2157600080fd5b505af1158015611b35573d6000803e3d6000fd5b5050845460ff60a01b1916855550611b6d9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610b08565b505050505050565b60808201516001600160a01b031615611bb2576080820151604051634726455360e11b81526001600160a01b039091166004820152602401610b08565b6001546001600160a01b031660a083015160405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015611c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2d9190612e4a565b80611c43575060a08201516001600160a01b0316155b156111535760a082015160405163711c133360e01b81526001600160a01b039091166004820152602401610b08565b611c7a6128d3565b6060846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611cba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ce29190810190612fc6565b6001600160a01b03871660808301526040820151919350915060ff858116911614611d33576040808301519051632208245760e11b815260ff80871660048301529091166024820152604401610b08565b60a08201516001600160a01b0380821690851614611d6f5760405163dfc430cb60e01b81526001600160a01b0385166004820152602401610b08565b856001600160a01b0316816001600160a01b031603611da1576040516317faf4db60e11b815260040160405180910390fd5b6001600160a01b038116611dc857604051630fd187d360e01b815260040160405180910390fd5b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015611e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e409190612e4a565b15611e5e57604051637142ceb360e11b815260040160405180910390fd5b50935093915050565b6000805160206132f183398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611ed06125bc565b6000805160206133318339815191526000611f00600080516020613311833981519152546001600160401b031690565b90506000611f0c610867565b9050816001600160401b0316600103611f395760028301805462ffffff191662ffffff8316179055611f87565b600283015462ffffff90811690821611611f875760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610b08565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101611ffb4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf689061162b9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101e56125bc565b6000805160206133118339815191528054600160401b810460ff1615906001600160401b031660008115801561213e5750825b90506000826001600160401b0316600114801561215a5750303b155b905081158015612168575080155b156121865760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156121b057845460ff60401b1916600160401b1785555b600080878060200190518101906121c791906130be565b915091506121d4826125f5565b6000896121df61174d565b604080516001600160a01b03909316602084015260ff9091169082015260600160408051601f1981840301815290829052631585e94960e21b8252915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90635617a5249061224b9086908690600401613104565b600060405180830381865af4158015612268573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122909190810190613117565b60405163257b1f8160e11b815290915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90634af63f02906122cf908590859060040161314b565b602060405180830381865af41580156122ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123109190612db8565b604051636939560f60e11b81526001600160a01b038216600482018190529192506000919063d272ac1e90602401602060405180830381865afa15801561235b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237f9190612d90565b905061238c82828f612609565b612394610a44565b6123a46324cded3360e11b61268d565b50505050505083156123f057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b600061240c826301ffc9a760e01b61242d565b80156124275750612425826001600160e01b031961242d565b155b92915050565b600080826040516024016124419190612cf6565b60408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d91506000519050828015612499575060208210155b80156124a55750600081115b979650505050505050565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161251f919061316d565b600060405180830381855afa9150503d806000811461255a576040519150601f19603f3d011682016040523d82523d6000602084013e61255f565b606091505b509150915081156125b157604081511061259157808060200190518101906125879190613189565b90945092506125b1565b60208151106125b157808060200190518101906125ae9190612e4a565b93505b505094509492505050565b60008051602061331183398151915254600160401b900460ff166125f357604051631afcd79f60e31b815260040160405180910390fd5b565b6125fd6125bc565b612606816126b2565b50565b600061263760408051808201909152600f81526e52656769737472795365727669636560881b602082015290565b61263f61174d565b6040516020016126509291906131c1565b6040516020818303038152906040529050612677848461266e602890565b600086866126c3565b612687631b4612f160e31b61268d565b50505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6126ba6125bc565b61260681611e67565b6126cd828761274e565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b8615150217815590506001810161273d8382613231565b506123f06303fb044760e21b61268d565b600280546001600160a01b0319166001600160a01b038416179055611153816001546001600160a01b0316156127a65760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610b08565b6001600160a01b0381166127cd5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036128035760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610b08565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526301ffc9a7906128499063350fb35160e11b90600401612cf6565b602060405180830381865afa925050508015612882575060408051601f3d908101601f1916820190925261287f91810190612e4a565b60015b6128aa5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610b08565b806111535760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610b08565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561292357600080fd5b81356001600160e01b031981168114610e1557600080fd5b6001600160a01b038116811461260657600080fd5b803561295b8161293b565b919050565b60006020828403121561297257600080fd5b8135610e158161293b565b60005b83811015612998578181015183820152602001612980565b50506000910152565b600081518084526129b981602086016020860161297d565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c085015261085f60e08501826129a1565b604081526000612a5160408301856129cd565b8281036020840152612a6381856129a1565b95945050505050565b602081526000610e1560208301846129a1565b62ffffff8116811461260657600080fd5b600060208284031215612aa257600080fd5b8135610e1581612a7f565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715612ae557612ae5612aad565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612b1357612b13612aad565b604052919050565b6001600160601b038116811461260657600080fd5b803561295b81612b1b565b60ff8116811461260657600080fd5b803561295b81612b3b565b801515811461260657600080fd5b803561295b81612b55565b60006001600160401b03821115612b8757612b87612aad565b50601f01601f191660200190565b600082601f830112612ba657600080fd5b8135612bb9612bb482612b6e565b612aeb565b818152846020838601011115612bce57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612bfd57600080fd5b81356001600160401b0380821115612c1457600080fd5b9083019060e08286031215612c2857600080fd5b612c30612ac3565b612c3983612b30565b8152612c4760208401612b30565b6020820152612c5860408401612b4a565b6040820152612c6960608401612b63565b6060820152612c7a60808401612950565b6080820152612c8b60a08401612950565b60a082015260c083013582811115612ca257600080fd5b612cae87828601612b95565b60c08301525095945050505050565b60008060408385031215612cd057600080fd5b8235612cdb8161293b565b91506020830135612ceb8161293b565b809150509250929050565b6001600160e01b031991909116815260200190565b600080600060608486031215612d2057600080fd5b8335612d2b8161293b565b92506020840135612d3b8161293b565b915060408401356001600160401b03811115612d5657600080fd5b612d6286828701612b95565b9150509250925092565b600060208284031215612d7e57600080fd5b5035919050565b805161295b81612b1b565b600060208284031215612da257600080fd5b8151610e1581612b1b565b805161295b8161293b565b600060208284031215612dca57600080fd5b8151610e158161293b565b602081526000610e1560208301846129cd565b600060208284031215612dfa57600080fd5b8151610e1581612a7f565b600181811c90821680612e1957607f821691505b602082108103612e3957634e487b7160e01b600052602260045260246000fd5b50919050565b805161295b81612b55565b600060208284031215612e5c57600080fd5b8151610e1581612b55565b600060208284031215612e7957600080fd5b5051919050565b600060208284031215612e9257600080fd5b81516001600160401b0381168114610e1557600080fd5b634e487b7160e01b600052603260045260246000fd5b805161295b81612b3b565b600060208284031215612edc57600080fd5b8151610e1581612b3b565b60008085851115612ef757600080fd5b83861115612f0457600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015612f395780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b600082601f830112612f9257600080fd5b8151612fa0612bb482612b6e565b818152846020838601011115612fb557600080fd5b61085f82602083016020870161297d565b60008060408385031215612fd957600080fd5b82516001600160401b0380821115612ff057600080fd5b9084019060e0828703121561300457600080fd5b61300c612ac3565b61301583612d85565b815261302360208401612d85565b602082015261303460408401612ebf565b604082015261304560608401612e3f565b606082015261305660808401612dad565b608082015261306760a08401612dad565b60a082015260c08301518281111561307e57600080fd5b61308a88828601612f81565b60c08301525060208601519094509150808211156130a757600080fd5b506130b485828601612f81565b9150509250929050565b600080604083850312156130d157600080fd5b82516130dc8161293b565b60208401519092506001600160401b038111156130f857600080fd5b6130b485828601612f81565b604081526000612a5160408301856129a1565b60006020828403121561312957600080fd5b81516001600160401b0381111561313f57600080fd5b61085f84828501612f81565b60408152600061315e60408301856129a1565b90508260208301529392505050565b6000825161317f81846020870161297d565b9190910192915050565b6000806040838503121561319c57600080fd5b82516131a781612b55565b602084015190925063ffffffff81168114612ceb57600080fd5b6040815260006131d460408301856129a1565b905060ff831660208301529392505050565b601f82111561322c57600081815260208120601f850160051c8101602086101561320d5750805b601f850160051c820191505b81811015611b6d57828155600101613219565b505050565b81516001600160401b0381111561324a5761324a612aad565b61325e816132588454612e05565b846131e6565b602080601f831160018114613293576000841561327b5750858301515b600019600386901b1c1916600185901b178555611b6d565b600085815260208120601f198616915b828110156132c2578886015182559484019460019091019084016132a3565b50858210156132e05787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a2646970667358221220714d5b52d8b1c6a8bab02cce654a61c0a3b5e6720e4b48524218bc730de4424f64736f6c63430008140033",
1144
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063834af1531161010f578063b88da759116100a2578063cf7a1d7711610071578063cf7a1d77146105c4578063e285c9c4146105d7578063ed841d0c146105df578063fdd9ec7d146105e757600080fd5b8063b88da7591461057c578063bf7e214f1461058f578063c2bf08c814610597578063cde749f4146105aa57600080fd5b8063946dfcfe116100de578063946dfcfe146104f4578063a3f4df7e1461051b578063a745e3df14610549578063b3c650151461055c57600080fd5b8063834af153146104b1578063893d20e8146104c45780638fb36037146104cc5780638fbc2d81146104e157600080fd5b80634d459c90116101875780635d966289116101565780635d96628914610460578063644c45e0146104735780637286e5e51461048b5780637a9e5e4b1461049e57600080fd5b80634d459c90146102fc5780634f421333146104155780635ab1bd53146104285780635c992fed1461044d57600080fd5b80630fec111c116101c35780630fec111c14610273578063138461e01461028957806317d7de7c146102935780631eff4b22146102c757600080fd5b806301ffc9a7146101ea57806309824a801461022c5780630d8e6e2c14610257575b600080fd5b6102176101f8366004612911565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61023f61023a366004612960565b6105fa565b6040516001600160601b039091168152602001610223565b61025f610867565b60405162ffffff9091168152602001610223565b61027b6108f1565b604051610223929190612a3e565b610291610a44565b005b60408051808201909152600f81526e52656769737472795365727669636560881b60208201525b6040516102239190612a6c565b6102ee7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610223565b6103b861030a366004612a90565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260008051602061333183398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610223565b610217610423366004612a90565b610c66565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610223565b61023f61045b366004612beb565b610d19565b61027b61046e366004612cbd565b610e1c565b600154600160a01b90046001600160601b031661023f565b61027b610499366004612cbd565b611021565b6102916104ac366004612960565b6110d0565b61027b6104bf366004612960565b611157565b6104356112df565b6104d46113f8565b6040516102239190612cf6565b61027b6104ef366004612cbd565b611431565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed901546102ee565b6102ba6040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b610291610557366004612d0b565b6114e0565b61056461163a565b6040516001600160401b039091168152602001610223565b61025f61058a366004612d6c565b61165b565b6104356116ac565b61023f6105a5366004612beb565b6116c8565b6105b261174d565b60405160ff9091168152602001610223565b6102916105d2366004612d0b565b6117d0565b610435600181565b6102ee600081565b61027b6105f5366004612960565b6118d9565b60006001600160a01b0382163303610625576040516317faf4db60e11b815260040160405180910390fd5b6001600160a01b0382163b15806106485750610648826303fb044760e21b611a53565b156106665760405163087cada760e21b815260040160405180910390fd5b600154604051636939560f60e11b81526001600160a01b039091166004820181905260009163d272ac1e90602401602060405180830381865afa1580156106b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d59190612d90565b600154604051631c5da14d60e11b81526001600160601b03831660048201529192506001600160a01b0316906338bb429a90602401602060405180830381865afa158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074b9190612db8565b6001600160a01b0316336001600160a01b03161461077c5760405163778d468d60e11b815260040160405180910390fd5b60006040518060e00160405280610791600090565b6001600160601b03168152602001836001600160601b031681526020016107b6601e90565b60ff168152600060208083018290526001600160a01b0380891660408086019190915260016060860181905281519384018252938352608090940191909152905491516352efcf2760e11b8152929350169063a5df9e4e9061081c908490600401612dd5565b6020604051808303816000875af115801561083b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085f9190612d90565b949350505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156108c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ec9190612de8565b905090565b6108f96128d3565b606060007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e001604052806109456001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161098d6112df565b6001600160a01b031681526020018260010180546109aa90612e05565b80601f01602080910402602001604051908101604052809291908181526020018280546109d690612e05565b8015610a235780601f106109f857610100808354040283529160200191610a23565b820191906000526020600020905b815481529060010190602001808311610a0657829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca9190612e4a565b15610b11576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b0316610b3a5760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610b83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba79190612e4a565b610bcf576040516372657a5160e01b81526001600160a01b0382166004820152602401610b08565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3d9190612d90565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b60008060008051602061333183398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015610cee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d129190612e67565b1192915050565b6000610d28335b600036611a6f565b600154604051636939560f60e11b81523360048201526000916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d959190612d90565b9050610da28360d2611b75565b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90610dd2908690600401612dd5565b6020604051808303816000875af1158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e159190612d90565b9392505050565b610e246128d3565b6060610e2f33610d20565b6040516301ffc9a760e01b81526001600160a01b038516906301ffc9a790610e62906379fc0e7160e11b90600401612cf6565b602060405180830381865afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea39190612e4a565b610ec057604051637a71998760e01b815260040160405180910390fd5b610ecd84606e5b85611c72565b600154604051636939560f60e11b81523360048201529294509092506000916001600160a01b039091169063d272ac1e90602401602060405180830381865afa158015610f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f429190612d90565b6001546040516352efcf2760e11b81529192506001600160a01b03169063a5df9e4e90610f73908690600401612dd5565b6020604051808303816000875af1158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb69190612d90565b6001600160601b0316835260408051629c230f60e51b815290516001600160a01b0387169163138461e091600480830192600092919082900301818387803b15801561100157600080fd5b505af1158015611015573d6000803e3d6000fd5b50505050509250929050565b6110296128d3565b606061103433610d20565b6040516301ffc9a760e01b81526001600160a01b038516906301ffc9a79061106790638165cf9760e01b90600401612cf6565b602060405180830381865afa158015611084573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a89190612e4a565b6110c557604051636f61f64160e01b815260040160405180910390fd5b610ecd84608c610ec7565b336110d96116ac565b6001600160a01b0316816001600160a01b0316146111145760405162d1953b60e31b81526001600160a01b0382166004820152602401610b08565b816001600160a01b03163b60000361114a576040516361798f2f60e11b81526001600160a01b0383166004820152602401610b08565b61115382611e67565b5050565b61115f6128d3565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a79061119590630de7806f60e41b90600401612cf6565b602060405180830381865afa1580156111b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d69190612e4a565b6111f357604051636795c76360e01b815260040160405180910390fd5b6112008360325b33611c72565b6001546040516352efcf2760e11b81529294509092506001600160a01b03169063a5df9e4e90611234908590600401612dd5565b6020604051808303816000875af1158015611253573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112779190612d90565b6001600160601b0316825260408051629c230f60e51b815290516001600160a01b0385169163138461e091600480830192600092919082900301818387803b1580156112c257600080fd5b505af11580156112d6573d6000803e3d6000fd5b50505050915091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611344573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113689190612e4a565b156113e857600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ec9190612db8565b506002546001600160a01b031690565b6000805160206132f1833981519152805460009190600160a01b900460ff1661142257600061142b565b638fb3603760e01b5b91505090565b6114396128d3565b606061144433610d20565b6040516301ffc9a760e01b81526001600160a01b038516906301ffc9a7906114779063b4d7c7a360e01b90600401612cf6565b602060405180830381865afa158015611494573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b89190612e4a565b6114d5576040516308707e3160e41b815260040160405180910390fd5b610ecd846078610ec7565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c611502610867565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015611542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115669190612e80565b6000805160206133118339815191528054600160401b900460ff1680611599575080546001600160401b03808416911610155b156115b75760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b1781556115e28585611ec8565b6115eb83612103565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006108ec600080516020613311833981519152546001600160401b031690565b6000600080516020613331833981519152600101828154811061168057611680612ea9565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000805160206132f1833981519152546001600160a01b031690565b60006116d333610d20565b600154604051636939560f60e11b81523360048201526000916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561171c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117409190612d90565b9050610da28360dc611b75565b6000611757610867565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156117ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ec9190612eca565b6000805160206133118339815191528054600160401b810460ff1615906001600160401b03166000811580156118035750825b90506000826001600160401b0316600114801561181f5750303b155b90508115801561182d575080155b1561184b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561187557845460ff60401b1916600160401b1785555b61187f8888611ec8565b611889878761210b565b83156118cf57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b6118e16128d3565b6040516301ffc9a760e01b81526060906001600160a01b038416906301ffc9a79061191790631b4612f160e31b90600401612cf6565b602060405180830381865afa158015611934573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119589190612e4a565b61197557604051635458064d60e11b815260040160405180910390fd5b6119808360286111fa565b60015460408051631127a41d60e31b815290519395509193506001600160a01b03169163893d20e8916004808201926020929091908290030181865afa1580156119ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f29190612db8565b6001600160a01b0316336001600160a01b031614611a235760405163778d468d60e11b815260040160405180910390fd5b6001546040516352efcf2760e11b81526001600160a01b039091169063a5df9e4e90611234908590600401612dd5565b6000611a5e836123f9565b8015610e155750610e15838361242d565b6000805160206132f1833981519152600080611aaa611a8c6116ac565b8730611a9c600460008a8c612ee7565b611aa591612f11565b6124b0565b9150915081611b6d5763ffffffff811615611b4a57825460ff60a01b1916600160a01b178355611ad86116ac565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611b0793929190612f41565b600060405180830381600087803b158015611b2157600080fd5b505af1158015611b35573d6000803e3d6000fd5b5050845460ff60a01b1916855550611b6d9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610b08565b505050505050565b60808201516001600160a01b031615611bb2576080820151604051634726455360e11b81526001600160a01b039091166004820152602401610b08565b6001546001600160a01b031660a083015160405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015611c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2d9190612e4a565b80611c43575060a08201516001600160a01b0316155b156111535760a082015160405163711c133360e01b81526001600160a01b039091166004820152602401610b08565b611c7a6128d3565b6060846001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611cba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ce29190810190612fc6565b6001600160a01b03871660808301526040820151919350915060ff858116911614611d33576040808301519051632208245760e11b815260ff80871660048301529091166024820152604401610b08565b60a08201516001600160a01b0380821690851614611d6f5760405163dfc430cb60e01b81526001600160a01b0385166004820152602401610b08565b856001600160a01b0316816001600160a01b031603611da1576040516317faf4db60e11b815260040160405180910390fd5b6001600160a01b038116611dc857604051630fd187d360e01b815260040160405180910390fd5b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015611e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e409190612e4a565b15611e5e57604051637142ceb360e11b815260040160405180910390fd5b50935093915050565b6000805160206132f183398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611ed06125bc565b6000805160206133318339815191526000611f00600080516020613311833981519152546001600160401b031690565b90506000611f0c610867565b9050816001600160401b0316600103611f395760028301805462ffffff191662ffffff8316179055611f87565b600283015462ffffff90811690821611611f875760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610b08565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101611ffb4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf689061162b9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101e56125bc565b6000805160206133118339815191528054600160401b810460ff1615906001600160401b031660008115801561213e5750825b90506000826001600160401b0316600114801561215a5750303b155b905081158015612168575080155b156121865760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156121b057845460ff60401b1916600160401b1785555b600080878060200190518101906121c791906130be565b915091506121d4826125f5565b6000896121df61174d565b604080516001600160a01b03909316602084015260ff9091169082015260600160408051601f1981840301815290829052631585e94960e21b8252915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90635617a5249061224b9086908690600401613104565b600060405180830381865af4158015612268573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122909190810190613117565b60405163257b1f8160e11b815290915060009073__$b2e3f5fb9dc49bcf3e057142c7696ab68d$__90634af63f02906122cf908590859060040161314b565b602060405180830381865af41580156122ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123109190612db8565b604051636939560f60e11b81526001600160a01b038216600482018190529192506000919063d272ac1e90602401602060405180830381865afa15801561235b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237f9190612d90565b905061238c82828f612609565b612394610a44565b6123a46324cded3360e11b61268d565b50505050505083156123f057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b600061240c826301ffc9a760e01b61242d565b80156124275750612425826001600160e01b031961242d565b155b92915050565b600080826040516024016124419190612cf6565b60408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d91506000519050828015612499575060208210155b80156124a55750600081115b979650505050505050565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161251f919061316d565b600060405180830381855afa9150503d806000811461255a576040519150601f19603f3d011682016040523d82523d6000602084013e61255f565b606091505b509150915081156125b157604081511061259157808060200190518101906125879190613189565b90945092506125b1565b60208151106125b157808060200190518101906125ae9190612e4a565b93505b505094509492505050565b60008051602061331183398151915254600160401b900460ff166125f357604051631afcd79f60e31b815260040160405180910390fd5b565b6125fd6125bc565b612606816126b2565b50565b600061263760408051808201909152600f81526e52656769737472795365727669636560881b602082015290565b61263f61174d565b6040516020016126509291906131c1565b6040516020818303038152906040529050612677848461266e602890565b600086866126c3565b612687631b4612f160e31b61268d565b50505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6126ba6125bc565b61260681611e67565b6126cd828761274e565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b8615150217815590506001810161273d8382613231565b506123f06303fb044760e21b61268d565b600280546001600160a01b0319166001600160a01b038416179055611153816001546001600160a01b0316156127a65760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610b08565b6001600160a01b0381166127cd5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b6000036128035760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610b08565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526301ffc9a7906128499063350fb35160e11b90600401612cf6565b602060405180830381865afa925050508015612882575060408051601f3d908101601f1916820190925261287f91810190612e4a565b60015b6128aa5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610b08565b806111535760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610b08565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561292357600080fd5b81356001600160e01b031981168114610e1557600080fd5b6001600160a01b038116811461260657600080fd5b803561295b8161293b565b919050565b60006020828403121561297257600080fd5b8135610e158161293b565b60005b83811015612998578181015183820152602001612980565b50506000910152565b600081518084526129b981602086016020860161297d565b601f01601f19169290920160200192915050565b60006001600160601b038083511684528060208401511660208501525060ff6040830151166040840152606082015115156060840152608082015160018060a01b0380821660808601528060a08501511660a0860152505060c082015160e060c085015261085f60e08501826129a1565b604081526000612a5160408301856129cd565b8281036020840152612a6381856129a1565b95945050505050565b602081526000610e1560208301846129a1565b62ffffff8116811461260657600080fd5b600060208284031215612aa257600080fd5b8135610e1581612a7f565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715612ae557612ae5612aad565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612b1357612b13612aad565b604052919050565b6001600160601b038116811461260657600080fd5b803561295b81612b1b565b60ff8116811461260657600080fd5b803561295b81612b3b565b801515811461260657600080fd5b803561295b81612b55565b60006001600160401b03821115612b8757612b87612aad565b50601f01601f191660200190565b600082601f830112612ba657600080fd5b8135612bb9612bb482612b6e565b612aeb565b818152846020838601011115612bce57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612bfd57600080fd5b81356001600160401b0380821115612c1457600080fd5b9083019060e08286031215612c2857600080fd5b612c30612ac3565b612c3983612b30565b8152612c4760208401612b30565b6020820152612c5860408401612b4a565b6040820152612c6960608401612b63565b6060820152612c7a60808401612950565b6080820152612c8b60a08401612950565b60a082015260c083013582811115612ca257600080fd5b612cae87828601612b95565b60c08301525095945050505050565b60008060408385031215612cd057600080fd5b8235612cdb8161293b565b91506020830135612ceb8161293b565b809150509250929050565b6001600160e01b031991909116815260200190565b600080600060608486031215612d2057600080fd5b8335612d2b8161293b565b92506020840135612d3b8161293b565b915060408401356001600160401b03811115612d5657600080fd5b612d6286828701612b95565b9150509250925092565b600060208284031215612d7e57600080fd5b5035919050565b805161295b81612b1b565b600060208284031215612da257600080fd5b8151610e1581612b1b565b805161295b8161293b565b600060208284031215612dca57600080fd5b8151610e158161293b565b602081526000610e1560208301846129cd565b600060208284031215612dfa57600080fd5b8151610e1581612a7f565b600181811c90821680612e1957607f821691505b602082108103612e3957634e487b7160e01b600052602260045260246000fd5b50919050565b805161295b81612b55565b600060208284031215612e5c57600080fd5b8151610e1581612b55565b600060208284031215612e7957600080fd5b5051919050565b600060208284031215612e9257600080fd5b81516001600160401b0381168114610e1557600080fd5b634e487b7160e01b600052603260045260246000fd5b805161295b81612b3b565b600060208284031215612edc57600080fd5b8151610e1581612b3b565b60008085851115612ef757600080fd5b83861115612f0457600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015612f395780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b600082601f830112612f9257600080fd5b8151612fa0612bb482612b6e565b818152846020838601011115612fb557600080fd5b61085f82602083016020870161297d565b60008060408385031215612fd957600080fd5b82516001600160401b0380821115612ff057600080fd5b9084019060e0828703121561300457600080fd5b61300c612ac3565b61301583612d85565b815261302360208401612d85565b602082015261303460408401612ebf565b604082015261304560608401612e3f565b606082015261305660808401612dad565b608082015261306760a08401612dad565b60a082015260c08301518281111561307e57600080fd5b61308a88828601612f81565b60c08301525060208601519094509150808211156130a757600080fd5b506130b485828601612f81565b9150509250929050565b600080604083850312156130d157600080fd5b82516130dc8161293b565b60208401519092506001600160401b038111156130f857600080fd5b6130b485828601612f81565b604081526000612a5160408301856129a1565b60006020828403121561312957600080fd5b81516001600160401b0381111561313f57600080fd5b61085f84828501612f81565b60408152600061315e60408301856129a1565b90508260208301529392505050565b6000825161317f81846020870161297d565b9190910192915050565b6000806040838503121561319c57600080fd5b82516131a781612b55565b602084015190925063ffffffff81168114612ceb57600080fd5b6040815260006131d460408301856129a1565b905060ff831660208301529392505050565b601f82111561322c57600081815260208120601f850160051c8101602086101561320d5750805b601f850160051c820191505b81811015611b6d57828155600101613219565b505050565b81516001600160401b0381111561324a5761324a612aad565b61325e816132588454612e05565b846131e6565b602080601f831160018114613293576000841561327b5750858301515b600019600386901b1c1916600185901b178555611b6d565b600085815260208120601f198616915b828110156132c2578886015182559484019460019091019084016132a3565b50858210156132e05787850151600019600388901b60f8161c191681555b5050505050600190811b0190555056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a2646970667358221220714d5b52d8b1c6a8bab02cce654a61c0a3b5e6720e4b48524218bc730de4424f64736f6c63430008140033",
1145
+ "linkReferences": {
1146
+ "contracts/shared/ContractDeployerLib.sol": {
1147
+ "ContractDeployerLib": [
1148
+ {
1149
+ "length": 20,
1150
+ "start": 9045
1151
+ },
1152
+ {
1153
+ "length": 20,
1154
+ "start": 9177
1155
+ }
1156
+ ]
1157
+ },
1158
+ "contracts/types/Blocknumber.sol": {
1159
+ "BlocknumberLib": [
1160
+ {
1161
+ "length": 20,
1162
+ "start": 3560
1163
+ }
1164
+ ]
1165
+ },
1166
+ "contracts/types/NftId.sol": {
1167
+ "NftIdLib": [
1168
+ {
1169
+ "length": 20,
1170
+ "start": 2976
1171
+ },
1172
+ {
1173
+ "length": 20,
1174
+ "start": 5182
1175
+ }
1176
+ ]
1177
+ },
1178
+ "contracts/types/Version.sol": {
1179
+ "VersionLib": [
1180
+ {
1181
+ "length": 20,
1182
+ "start": 2498
1183
+ },
1184
+ {
1185
+ "length": 20,
1186
+ "start": 5654
1187
+ },
1188
+ {
1189
+ "length": 20,
1190
+ "start": 6310
1191
+ }
1192
+ ]
1193
+ }
1194
+ },
1195
+ "deployedLinkReferences": {
1196
+ "contracts/shared/ContractDeployerLib.sol": {
1197
+ "ContractDeployerLib": [
1198
+ {
1199
+ "length": 20,
1200
+ "start": 8737
1201
+ },
1202
+ {
1203
+ "length": 20,
1204
+ "start": 8869
1205
+ }
1206
+ ]
1207
+ },
1208
+ "contracts/types/Blocknumber.sol": {
1209
+ "BlocknumberLib": [
1210
+ {
1211
+ "length": 20,
1212
+ "start": 3252
1213
+ }
1214
+ ]
1215
+ },
1216
+ "contracts/types/NftId.sol": {
1217
+ "NftIdLib": [
1218
+ {
1219
+ "length": 20,
1220
+ "start": 2668
1221
+ },
1222
+ {
1223
+ "length": 20,
1224
+ "start": 4874
1225
+ }
1226
+ ]
1227
+ },
1228
+ "contracts/types/Version.sol": {
1229
+ "VersionLib": [
1230
+ {
1231
+ "length": 20,
1232
+ "start": 2190
1233
+ },
1234
+ {
1235
+ "length": 20,
1236
+ "start": 5346
1237
+ },
1238
+ {
1239
+ "length": 20,
1240
+ "start": 6002
1241
+ }
1242
+ ]
1243
+ }
1244
+ }
1245
+ }