@etherisc/gif-next 0.0.2-de220d6-949 → 0.0.2-e37834a-021

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