@etherisc/gif-next 0.0.2-f9bc4c7-556 → 0.0.2-fbe22f0-239

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