@etherisc/gif-next 0.0.2-f99f1d2-109 → 0.0.2-fb8d07b-779

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