@etherisc/gif-next 0.0.2-a196164-289 → 0.0.2-a25e4b8-781

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