@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-fb8d07b-779

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