@etherisc/gif-next 0.0.2-e1e92ab-754 → 0.0.2-e20063b-144

Sign up to get free protection for your applications and to get access to all the features.
Files changed (458) hide show
  1. package/README.md +167 -14
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +842 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +978 -190
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → components/IComponent.sol/IComponent.json} +284 -147
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +816 -24
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +883 -127
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +656 -33
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +925 -265
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +712 -159
  18. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  19. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  20. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  22. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  23. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +190 -0
  24. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  25. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1803 -1132
  26. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +633 -0
  28. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  29. package/artifacts/contracts/instance/Instance.sol/Instance.json +2094 -1152
  30. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1330 -0
  32. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1403 -0
  34. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1140 -0
  36. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +741 -0
  38. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  39. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +256 -0
  40. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/{InstanceBase.sol/InstanceBase.json → ComponentService.sol/ComponentService.json} +250 -187
  42. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  44. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  46. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +67 -245
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  48. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  53. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{pool/IPoolModule.sol/IPool.json → IComponents.sol/IComponents.json} +2 -2
  55. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  56. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  57. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  58. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  59. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  60. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  61. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  62. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  63. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  64. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  65. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  66. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1060 -0
  67. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  68. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +681 -0
  69. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  70. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1266 -0
  71. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  72. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +725 -0
  73. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  74. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +1040 -0
  75. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +685 -0
  77. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  78. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1372 -228
  79. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +793 -0
  81. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  82. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +627 -0
  83. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  84. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +686 -0
  85. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IClaimService.sol/IClaimService.json} +327 -191
  87. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  88. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +804 -160
  89. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  90. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +937 -0
  91. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  92. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +437 -154
  93. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +90 -391
  95. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1511 -0
  97. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +741 -0
  99. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  100. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +674 -190
  101. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +661 -0
  103. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +300 -528
  105. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +653 -0
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  108. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +60 -2
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  110. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +373 -61
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  112. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +223 -229
  113. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  114. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  115. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  116. package/artifacts/contracts/registry/Registry.sol/Registry.json +333 -188
  117. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  118. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  119. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +227 -314
  121. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +312 -132
  123. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  124. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  125. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  127. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  128. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  130. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +40 -29
  132. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  133. package/artifacts/contracts/{instance/module/component/IComponent.sol/IComponentModule.json → shared/IPolicyHolder.sol/IPolicyHolder.json} +69 -57
  134. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  135. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +21 -34
  136. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  137. package/artifacts/contracts/{experiment/inheritance/IB.sol/IB.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +18 -20
  138. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  139. package/artifacts/contracts/{components/BaseComponent.sol/BaseComponent.json → shared/IService.sol/IService.json} +102 -68
  140. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  141. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  142. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +120 -27
  144. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  145. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  146. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  147. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +294 -61
  148. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  149. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +129 -51
  150. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  151. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  152. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  153. package/artifacts/contracts/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/Service.sol/Service.json} +185 -170
  154. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  155. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  156. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  157. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  158. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  159. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  160. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
  162. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +129 -51
  164. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  166. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  167. package/artifacts/contracts/test/TestService.sol/TestService.json +210 -198
  168. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  169. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  171. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -174
  173. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  174. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  175. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +4 -0
  176. package/artifacts/contracts/types/Amount.sol/AmountLib.json +185 -0
  177. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  179. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  181. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +179 -0
  182. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  184. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  185. package/artifacts/contracts/types/Fee.sol/FeeLib.json +40 -9
  186. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  187. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  188. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  189. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
  190. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  191. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  192. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  194. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  195. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  196. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +209 -0
  198. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +142 -0
  200. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  201. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  202. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  203. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  204. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  206. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  207. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  208. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  209. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +51 -7
  210. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  211. package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
  212. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  213. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
  214. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  215. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  216. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  217. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  218. package/contracts/components/Component.sol +253 -0
  219. package/contracts/components/Distribution.sol +208 -79
  220. package/contracts/components/IComponent.sol +76 -0
  221. package/contracts/components/IDistributionComponent.sol +43 -18
  222. package/contracts/components/IPoolComponent.sol +88 -39
  223. package/contracts/components/IProductComponent.sol +12 -9
  224. package/contracts/components/Pool.sol +221 -165
  225. package/contracts/components/Product.sol +250 -178
  226. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +13 -0
  227. package/contracts/instance/BundleManager.sol +126 -0
  228. package/contracts/instance/Cloneable.sol +51 -0
  229. package/contracts/instance/IInstance.sol +91 -41
  230. package/contracts/instance/IInstanceService.sol +68 -0
  231. package/contracts/instance/Instance.sol +293 -66
  232. package/contracts/instance/InstanceAccessManager.sol +527 -0
  233. package/contracts/instance/InstanceReader.sol +317 -0
  234. package/contracts/instance/InstanceService.sol +478 -0
  235. package/contracts/instance/InstanceServiceManager.sol +54 -0
  236. package/contracts/instance/ObjectManager.sol +82 -0
  237. package/contracts/instance/base/ComponentService.sol +121 -0
  238. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  239. package/contracts/instance/base/ILifecycle.sol +3 -3
  240. package/contracts/instance/base/KeyValueStore.sol +60 -41
  241. package/contracts/instance/base/Lifecycle.sol +24 -7
  242. package/contracts/instance/module/IAccess.sol +54 -0
  243. package/contracts/instance/module/IBundle.sol +23 -0
  244. package/contracts/instance/module/IComponents.sol +41 -0
  245. package/contracts/instance/module/IDistribution.sol +41 -0
  246. package/contracts/instance/module/IPolicy.sol +77 -0
  247. package/contracts/instance/module/IRisk.sol +11 -0
  248. package/contracts/instance/module/ISetup.sol +33 -0
  249. package/contracts/instance/module/ITreasury.sol +23 -0
  250. package/contracts/instance/service/ApplicationService.sol +355 -0
  251. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  252. package/contracts/instance/service/BundleService.sol +436 -0
  253. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  254. package/contracts/instance/service/ClaimService.sol +239 -0
  255. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  256. package/contracts/instance/service/DistributionService.sol +399 -22
  257. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  258. package/contracts/instance/service/IApplicationService.sol +78 -0
  259. package/contracts/instance/service/IBundleService.sol +96 -0
  260. package/contracts/instance/service/IClaimService.sol +92 -0
  261. package/contracts/instance/service/IDistributionService.sol +88 -1
  262. package/contracts/instance/service/IPolicyService.sol +137 -0
  263. package/contracts/instance/service/IPoolService.sol +80 -18
  264. package/contracts/instance/service/IProductService.sol +9 -76
  265. package/contracts/instance/service/PolicyService.sol +541 -0
  266. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  267. package/contracts/instance/service/PoolService.sol +248 -94
  268. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  269. package/contracts/instance/service/ProductService.sol +133 -433
  270. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  271. package/contracts/registry/ChainNft.sol +47 -24
  272. package/contracts/registry/IRegistry.sol +52 -8
  273. package/contracts/registry/IRegistryService.sol +53 -20
  274. package/contracts/registry/ITransferInterceptor.sol +1 -0
  275. package/contracts/registry/Registry.sol +277 -236
  276. package/contracts/registry/RegistryAccessManager.sol +216 -0
  277. package/contracts/registry/RegistryService.sol +114 -273
  278. package/contracts/registry/RegistryServiceManager.sol +24 -25
  279. package/contracts/registry/ReleaseManager.sol +324 -0
  280. package/contracts/registry/TokenRegistry.sol +116 -0
  281. package/contracts/shared/ERC165.sol +14 -8
  282. package/contracts/shared/INftOwnable.sol +11 -10
  283. package/contracts/shared/IPolicyHolder.sol +26 -0
  284. package/contracts/shared/IRegisterable.sol +4 -6
  285. package/contracts/shared/IRegistryLinked.sol +12 -0
  286. package/contracts/shared/IService.sol +16 -0
  287. package/contracts/shared/IVersionable.sol +4 -47
  288. package/contracts/shared/NftOwnable.sol +67 -83
  289. package/contracts/shared/PolicyHolder.sol +81 -0
  290. package/contracts/shared/ProxyManager.sol +100 -25
  291. package/contracts/shared/Registerable.sol +16 -31
  292. package/contracts/shared/RegistryLinked.sol +48 -0
  293. package/contracts/shared/Service.sol +72 -0
  294. package/contracts/shared/TokenHandler.sol +33 -0
  295. package/contracts/shared/Versionable.sol +4 -92
  296. package/contracts/test/TestRegisterable.sol +1 -1
  297. package/contracts/test/TestRoleId.sol +1 -1
  298. package/contracts/test/TestService.sol +6 -7
  299. package/contracts/types/Amount.sol +65 -0
  300. package/contracts/types/Blocknumber.sol +1 -0
  301. package/contracts/types/ClaimId.sol +75 -0
  302. package/contracts/types/DistributorType.sol +55 -0
  303. package/contracts/types/Fee.sol +13 -5
  304. package/contracts/types/Key32.sol +8 -3
  305. package/contracts/types/NftId.sol +8 -0
  306. package/contracts/types/NftIdSet.sol +26 -24
  307. package/contracts/types/NumberId.sol +52 -0
  308. package/contracts/types/ObjectType.sol +41 -15
  309. package/contracts/types/PayoutId.sol +82 -0
  310. package/contracts/types/Referral.sol +89 -0
  311. package/contracts/types/RoleId.sol +67 -15
  312. package/contracts/types/Seconds.sol +54 -0
  313. package/contracts/types/StateId.sol +12 -3
  314. package/contracts/types/Timestamp.sol +22 -13
  315. package/contracts/types/UFixed.sol +1 -0
  316. package/contracts/types/Version.sol +5 -1
  317. package/package.json +3 -3
  318. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  319. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  320. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -254
  321. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  322. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  323. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  324. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  325. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  326. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  327. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  328. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  329. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  330. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  331. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  332. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  333. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  334. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  335. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  336. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  337. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  339. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  340. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  341. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  342. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  343. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  344. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  345. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  346. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  347. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  348. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  349. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  350. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  351. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  352. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  353. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  354. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  355. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  356. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  357. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  358. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  359. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  360. package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -421
  361. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  362. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  363. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  364. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  365. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  366. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  367. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  368. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  369. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  370. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -117
  371. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  372. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  373. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  374. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  375. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  376. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  377. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  378. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  379. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  380. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  381. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -271
  382. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  383. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -271
  384. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  385. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  386. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  387. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  389. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  390. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  391. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  392. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  393. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  394. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  395. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  396. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  397. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  398. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  399. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  400. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  401. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  402. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  403. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  404. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  405. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  406. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  407. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -557
  408. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  409. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -716
  410. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  411. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -744
  412. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  413. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  414. package/contracts/components/BaseComponent.sol +0 -79
  415. package/contracts/components/IBaseComponent.sol +0 -19
  416. package/contracts/experiment/errors/Require.sol +0 -38
  417. package/contracts/experiment/errors/Revert.sol +0 -44
  418. package/contracts/experiment/inheritance/A.sol +0 -53
  419. package/contracts/experiment/inheritance/B.sol +0 -28
  420. package/contracts/experiment/inheritance/C.sol +0 -34
  421. package/contracts/experiment/inheritance/IA.sol +0 -13
  422. package/contracts/experiment/inheritance/IB.sol +0 -10
  423. package/contracts/experiment/inheritance/IC.sol +0 -12
  424. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  425. package/contracts/experiment/statemachine/ISM.sol +0 -25
  426. package/contracts/experiment/statemachine/SM.sol +0 -57
  427. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  428. package/contracts/experiment/types/TypeA.sol +0 -47
  429. package/contracts/experiment/types/TypeB.sol +0 -29
  430. package/contracts/instance/IInstanceLinked.sol +0 -8
  431. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  432. package/contracts/instance/base/IInstanceBase.sol +0 -23
  433. package/contracts/instance/base/IService.sol +0 -15
  434. package/contracts/instance/base/InstanceBase.sol +0 -89
  435. package/contracts/instance/base/ModuleBase.sol +0 -57
  436. package/contracts/instance/base/ServiceBase.sol +0 -44
  437. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  438. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  439. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  440. package/contracts/instance/module/component/IComponent.sol +0 -28
  441. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  442. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  443. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  444. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  445. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  446. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  447. package/contracts/instance/module/risk/IRisk.sol +0 -26
  448. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  449. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  450. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  451. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  452. package/contracts/instance/service/ComponentOwnerService.sol +0 -315
  453. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  454. package/contracts/registry/IChainNft.sol +0 -22
  455. package/contracts/test/TestDistribution.sol +0 -22
  456. package/contracts/test/TestPool.sol +0 -27
  457. package/contracts/test/TestProduct.sol +0 -74
  458. package/contracts/types/ReferralId.sol +0 -48
@@ -28,81 +28,87 @@
28
28
  "inputs": [
29
29
  {
30
30
  "internalType": "address",
31
- "name": "registry",
31
+ "name": "authority",
32
32
  "type": "address"
33
- },
34
- {
35
- "internalType": "NftId",
36
- "name": "nftId",
37
- "type": "uint96"
38
33
  }
39
34
  ],
40
- "name": "ErrorAlreadyLinked",
35
+ "name": "AccessManagedInvalidAuthority",
41
36
  "type": "error"
42
37
  },
43
38
  {
44
39
  "inputs": [
45
40
  {
46
41
  "internalType": "address",
47
- "name": "contractAddress",
42
+ "name": "caller",
48
43
  "type": "address"
44
+ },
45
+ {
46
+ "internalType": "uint32",
47
+ "name": "delay",
48
+ "type": "uint32"
49
49
  }
50
50
  ],
51
- "name": "ErrorContractNotRegistered",
51
+ "name": "AccessManagedRequiredDelay",
52
52
  "type": "error"
53
53
  },
54
54
  {
55
55
  "inputs": [
56
56
  {
57
57
  "internalType": "address",
58
- "name": "account",
58
+ "name": "caller",
59
59
  "type": "address"
60
60
  }
61
61
  ],
62
- "name": "ErrorNotOwner",
62
+ "name": "AccessManagedUnauthorized",
63
63
  "type": "error"
64
64
  },
65
65
  {
66
66
  "inputs": [
67
67
  {
68
- "internalType": "address",
69
- "name": "registryAddress",
70
- "type": "address"
68
+ "internalType": "NftId",
69
+ "name": "nftId",
70
+ "type": "uint96"
71
71
  }
72
72
  ],
73
- "name": "ErrorNotRegistry",
73
+ "name": "ErrorNftOwnableAlreadyLinked",
74
74
  "type": "error"
75
75
  },
76
76
  {
77
77
  "inputs": [
78
78
  {
79
79
  "internalType": "address",
80
- "name": "registryAddress",
80
+ "name": "contractAddress",
81
81
  "type": "address"
82
82
  }
83
83
  ],
84
- "name": "ErrorRegisterableNotRegistry",
84
+ "name": "ErrorNftOwnableContractNotRegistered",
85
85
  "type": "error"
86
86
  },
87
87
  {
88
88
  "inputs": [],
89
- "name": "ErrorRegistryAddressZero",
89
+ "name": "ErrorNftOwnableInitialOwnerZero",
90
90
  "type": "error"
91
91
  },
92
92
  {
93
93
  "inputs": [
94
94
  {
95
95
  "internalType": "address",
96
- "name": "registry",
96
+ "name": "account",
97
97
  "type": "address"
98
98
  }
99
99
  ],
100
- "name": "ErrorRegistryAlreadyInitialized",
100
+ "name": "ErrorNftOwnableNotOwner",
101
101
  "type": "error"
102
102
  },
103
103
  {
104
- "inputs": [],
105
- "name": "ErrorRegistryNotInitialized",
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "registryAddress",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "ErrorNotRegistry",
106
112
  "type": "error"
107
113
  },
108
114
  {
@@ -120,12 +126,12 @@
120
126
  "inputs": [
121
127
  {
122
128
  "indexed": false,
123
- "internalType": "uint64",
124
- "name": "version",
125
- "type": "uint64"
129
+ "internalType": "address",
130
+ "name": "authority",
131
+ "type": "address"
126
132
  }
127
133
  ],
128
- "name": "Initialized",
134
+ "name": "AuthorityUpdated",
129
135
  "type": "event"
130
136
  },
131
137
  {
@@ -133,24 +139,12 @@
133
139
  "inputs": [
134
140
  {
135
141
  "indexed": false,
136
- "internalType": "Version",
142
+ "internalType": "uint64",
137
143
  "name": "version",
138
- "type": "uint24"
139
- },
140
- {
141
- "indexed": false,
142
- "internalType": "address",
143
- "name": "implementation",
144
- "type": "address"
145
- },
146
- {
147
- "indexed": false,
148
- "internalType": "address",
149
- "name": "activatedBy",
150
- "type": "address"
144
+ "type": "uint64"
151
145
  }
152
146
  ],
153
- "name": "LogVersionableInitialized",
147
+ "name": "Initialized",
154
148
  "type": "event"
155
149
  },
156
150
  {
@@ -166,6 +160,19 @@
166
160
  "stateMutability": "view",
167
161
  "type": "function"
168
162
  },
163
+ {
164
+ "inputs": [],
165
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
166
+ "outputs": [
167
+ {
168
+ "internalType": "bytes32",
169
+ "name": "",
170
+ "type": "bytes32"
171
+ }
172
+ ],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
169
176
  {
170
177
  "inputs": [],
171
178
  "name": "REGISTERABLE_LOCATION_V1",
@@ -179,6 +186,32 @@
179
186
  "stateMutability": "view",
180
187
  "type": "function"
181
188
  },
189
+ {
190
+ "inputs": [],
191
+ "name": "authority",
192
+ "outputs": [
193
+ {
194
+ "internalType": "address",
195
+ "name": "",
196
+ "type": "address"
197
+ }
198
+ ],
199
+ "stateMutability": "view",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [],
204
+ "name": "getDomain",
205
+ "outputs": [
206
+ {
207
+ "internalType": "ObjectType",
208
+ "name": "",
209
+ "type": "uint8"
210
+ }
211
+ ],
212
+ "stateMutability": "pure",
213
+ "type": "function"
214
+ },
182
215
  {
183
216
  "inputs": [],
184
217
  "name": "getInitialInfo",
@@ -222,57 +255,13 @@
222
255
  }
223
256
  ],
224
257
  "internalType": "struct IRegistry.ObjectInfo",
225
- "name": "",
258
+ "name": "info",
226
259
  "type": "tuple"
227
- },
228
- {
229
- "internalType": "bytes",
230
- "name": "data",
231
- "type": "bytes"
232
260
  }
233
261
  ],
234
262
  "stateMutability": "view",
235
263
  "type": "function"
236
264
  },
237
- {
238
- "inputs": [],
239
- "name": "getInitializedVersion",
240
- "outputs": [
241
- {
242
- "internalType": "uint64",
243
- "name": "",
244
- "type": "uint64"
245
- }
246
- ],
247
- "stateMutability": "view",
248
- "type": "function"
249
- },
250
- {
251
- "inputs": [],
252
- "name": "getMajorVersion",
253
- "outputs": [
254
- {
255
- "internalType": "VersionPart",
256
- "name": "majorVersion",
257
- "type": "uint8"
258
- }
259
- ],
260
- "stateMutability": "view",
261
- "type": "function"
262
- },
263
- {
264
- "inputs": [],
265
- "name": "getName",
266
- "outputs": [
267
- {
268
- "internalType": "string",
269
- "name": "name",
270
- "type": "string"
271
- }
272
- ],
273
- "stateMutability": "pure",
274
- "type": "function"
275
- },
276
265
  {
277
266
  "inputs": [],
278
267
  "name": "getNftId",
@@ -314,25 +303,19 @@
314
303
  },
315
304
  {
316
305
  "inputs": [],
317
- "name": "getVersion",
306
+ "name": "getRegistryAddress",
318
307
  "outputs": [
319
308
  {
320
- "internalType": "Version",
309
+ "internalType": "address",
321
310
  "name": "",
322
- "type": "uint24"
311
+ "type": "address"
323
312
  }
324
313
  ],
325
- "stateMutability": "pure",
314
+ "stateMutability": "view",
326
315
  "type": "function"
327
316
  },
328
317
  {
329
- "inputs": [
330
- {
331
- "internalType": "uint256",
332
- "name": "idx",
333
- "type": "uint256"
334
- }
335
- ],
318
+ "inputs": [],
336
319
  "name": "getVersion",
337
320
  "outputs": [
338
321
  {
@@ -341,87 +324,104 @@
341
324
  "type": "uint24"
342
325
  }
343
326
  ],
344
- "stateMutability": "view",
327
+ "stateMutability": "pure",
345
328
  "type": "function"
346
329
  },
347
330
  {
348
331
  "inputs": [],
349
- "name": "getVersionCount",
350
- "outputs": [
332
+ "name": "initializeERC165",
333
+ "outputs": [],
334
+ "stateMutability": "nonpayable",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [
351
339
  {
352
- "internalType": "uint256",
353
- "name": "",
354
- "type": "uint256"
340
+ "internalType": "address",
341
+ "name": "initialOwner",
342
+ "type": "address"
343
+ },
344
+ {
345
+ "internalType": "address",
346
+ "name": "registryAddress",
347
+ "type": "address"
355
348
  }
356
349
  ],
357
- "stateMutability": "view",
350
+ "name": "initializeNftOwnable",
351
+ "outputs": [],
352
+ "stateMutability": "nonpayable",
358
353
  "type": "function"
359
354
  },
360
355
  {
361
356
  "inputs": [
362
357
  {
363
- "internalType": "Version",
364
- "name": "_version",
365
- "type": "uint24"
358
+ "internalType": "address",
359
+ "name": "registryAddress",
360
+ "type": "address"
361
+ },
362
+ {
363
+ "internalType": "NftId",
364
+ "name": "parentNftId",
365
+ "type": "uint96"
366
+ },
367
+ {
368
+ "internalType": "ObjectType",
369
+ "name": "objectType",
370
+ "type": "uint8"
371
+ },
372
+ {
373
+ "internalType": "bool",
374
+ "name": "isInterceptor",
375
+ "type": "bool"
376
+ },
377
+ {
378
+ "internalType": "address",
379
+ "name": "initialOwner",
380
+ "type": "address"
381
+ },
382
+ {
383
+ "internalType": "bytes",
384
+ "name": "registryData",
385
+ "type": "bytes"
366
386
  }
367
387
  ],
368
- "name": "getVersionInfo",
369
- "outputs": [
388
+ "name": "initializeRegisterable",
389
+ "outputs": [],
390
+ "stateMutability": "nonpayable",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [
370
395
  {
371
- "components": [
372
- {
373
- "internalType": "Version",
374
- "name": "version",
375
- "type": "uint24"
376
- },
377
- {
378
- "internalType": "address",
379
- "name": "implementation",
380
- "type": "address"
381
- },
382
- {
383
- "internalType": "address",
384
- "name": "activatedBy",
385
- "type": "address"
386
- },
387
- {
388
- "internalType": "Timestamp",
389
- "name": "activatedAt",
390
- "type": "uint40"
391
- },
392
- {
393
- "internalType": "Blocknumber",
394
- "name": "activatedIn",
395
- "type": "uint32"
396
- }
397
- ],
398
- "internalType": "struct IVersionable.VersionInfo",
399
- "name": "",
400
- "type": "tuple"
396
+ "internalType": "address",
397
+ "name": "registryAddress",
398
+ "type": "address"
401
399
  }
402
400
  ],
403
- "stateMutability": "view",
401
+ "name": "initializeRegistryLinked",
402
+ "outputs": [],
403
+ "stateMutability": "nonpayable",
404
404
  "type": "function"
405
405
  },
406
406
  {
407
407
  "inputs": [
408
408
  {
409
409
  "internalType": "address",
410
- "name": "implementation",
410
+ "name": "registry",
411
411
  "type": "address"
412
412
  },
413
413
  {
414
414
  "internalType": "address",
415
- "name": "activatedBy",
415
+ "name": "authority",
416
416
  "type": "address"
417
417
  },
418
418
  {
419
- "internalType": "bytes",
420
- "name": "data",
421
- "type": "bytes"
419
+ "internalType": "address",
420
+ "name": "initialOwner",
421
+ "type": "address"
422
422
  }
423
423
  ],
424
- "name": "initialize",
424
+ "name": "initializeService",
425
425
  "outputs": [],
426
426
  "stateMutability": "nonpayable",
427
427
  "type": "function"
@@ -429,17 +429,29 @@
429
429
  {
430
430
  "inputs": [
431
431
  {
432
- "internalType": "Version",
433
- "name": "_version",
434
- "type": "uint24"
432
+ "internalType": "address",
433
+ "name": "activatedBy",
434
+ "type": "address"
435
+ },
436
+ {
437
+ "internalType": "bytes",
438
+ "name": "data",
439
+ "type": "bytes"
435
440
  }
436
441
  ],
437
- "name": "isInitialized",
442
+ "name": "initializeVersionable",
443
+ "outputs": [],
444
+ "stateMutability": "nonpayable",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "isConsumingScheduledOp",
438
450
  "outputs": [
439
451
  {
440
- "internalType": "bool",
452
+ "internalType": "bytes4",
441
453
  "name": "",
442
- "type": "bool"
454
+ "type": "bytes4"
443
455
  }
444
456
  ],
445
457
  "stateMutability": "view",
@@ -452,6 +464,32 @@
452
464
  "stateMutability": "nonpayable",
453
465
  "type": "function"
454
466
  },
467
+ {
468
+ "inputs": [
469
+ {
470
+ "internalType": "bytes4",
471
+ "name": "interfaceId",
472
+ "type": "bytes4"
473
+ }
474
+ ],
475
+ "name": "registerInterface",
476
+ "outputs": [],
477
+ "stateMutability": "nonpayable",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [
482
+ {
483
+ "internalType": "address",
484
+ "name": "newAuthority",
485
+ "type": "address"
486
+ }
487
+ ],
488
+ "name": "setAuthority",
489
+ "outputs": [],
490
+ "stateMutability": "nonpayable",
491
+ "type": "function"
492
+ },
455
493
  {
456
494
  "inputs": [
457
495
  {
@@ -473,48 +511,30 @@
473
511
  },
474
512
  {
475
513
  "inputs": [
476
- {
477
- "internalType": "address",
478
- "name": "implementation",
479
- "type": "address"
480
- },
481
- {
482
- "internalType": "address",
483
- "name": "activatedBy",
484
- "type": "address"
485
- },
486
514
  {
487
515
  "internalType": "bytes",
488
516
  "name": "data",
489
517
  "type": "bytes"
490
518
  }
491
519
  ],
492
- "name": "upgrade",
520
+ "name": "upgradeVersionable",
493
521
  "outputs": [],
494
522
  "stateMutability": "nonpayable",
495
523
  "type": "function"
496
524
  }
497
525
  ],
498
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162001c9238038062001c928339810160408190526200003491620005a2565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055600280546001600160a01b031916331790556200008c620000a2565b6200009983838362000156565b5050506200083c565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000f35760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001535780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b60006200018160408051808201909152600b81526a546573745365727669636560a81b602082015290565b6200018b62000204565b6040516020016200019e929190620005fa565b60408051808303601f190181529190529050620001c2848460286000868662000291565b631b4612f160e31b60009081526020527ffc58a5a01198e68c5a5d0bcd463f9ab550fc4337b1df271aed6dbb33d25fef25805460ff1916600117905550505050565b60006200021062000362565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af415801562000266573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028c919062000654565b905090565b6200029d8287620003ea565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d0100000000000000000000000000861515021781559050600181016200031c838262000725565b506303fb044760e21b60009081526020527fb43e4f3791bfcdefa3a0fbe2a5555f8d6490b90e01de0ff40c66f18b49b562c5805460ff1916600117905550505050505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af4158015620003c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028c9190620007f1565b600280546001600160a01b0319166001600160a01b038416179055620004108162000414565b5050565b6001546001600160a01b031615620004535760015460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024015b60405180910390fd5b6001600160a01b0381166200047b5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003620004b35760405163fdeac91f60e01b81526001600160a01b03821660048201526024016200044a565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263350fb35160e11b60048201526301ffc9a790602401602060405180830381865afa92505050801562000530575060408051601f3d908101601f191682019092526200052d9181019062000818565b60015b6200055a5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016200044a565b80620004105760405163fdeac91f60e01b81526001600160a01b03831660048201526024016200044a565b80516001600160a01b03811681146200059d57600080fd5b919050565b600080600060608486031215620005b857600080fd5b620005c38462000585565b60208501519093506001600160601b0381168114620005e157600080fd5b9150620005f16040850162000585565b90509250925092565b604081526000835180604084015260005b818110156200062a57602081870181015160608684010152016200060b565b506000606082850101526060601f19601f83011684010191505060ff831660208301529392505050565b6000602082840312156200066757600080fd5b815160ff811681146200067957600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006ab57607f821691505b602082108103620006cc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200072057600081815260208120601f850160051c81016020861015620006fb5750805b601f850160051c820191505b818110156200071c5782815560010162000707565b5050505b505050565b81516001600160401b0381111562000741576200074162000680565b620007598162000752845462000696565b84620006d2565b602080601f831160018114620007915760008415620007785750858301515b600019600386901b1c1916600185901b1785556200071c565b600085815260208120601f198616915b82811015620007c257888601518255948401946001909101908401620007a1565b5085821015620007e15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200080457600080fd5b815162ffffff811681146200067957600080fd5b6000602082840312156200082b57600080fd5b815180151581146200067957600080fd5b611446806200084c6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063644c45e0116100a2578063a745e3df11610071578063a745e3df146103d3578063b3c65015146103e6578063b88da75914610407578063cde749f41461041a578063cf7a1d771461043457600080fd5b8063644c45e01461034f578063893d20e81461037a578063946dfcfe14610382578063a3f4df7e146103a957600080fd5b806317d7de7c116100e957806317d7de7c146101995780631eff4b22146101c95780634d459c90146101fe5780634f421333146103175780635ab1bd531461032a57600080fd5b806301ffc9a71461011b5780630d8e6e2c1461015d5780630fec111c14610179578063138461e01461018f575b600080fd5b610148610129366004611019565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610165610447565b60405162ffffff9091168152602001610154565b6101816104d1565b604051610154929190611090565b610197610653565b005b60408051808201909152600b81526a546573745365727669636560a81b60208201525b6040516101549190611137565b6101f07f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610154565b6102ba61020c36600461115e565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526000805160206113f183398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610154565b61014861032536600461115e565b610875565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610154565b600154600160a01b90046001600160601b03166040516001600160601b039091168152602001610154565b610337610928565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed901546101f0565b6101bc6040518060400160405280600b81526020016a546573745365727669636560a81b81525081565b6101976103e13660046111a6565b610a41565b6103ee610b9e565b60405167ffffffffffffffff9091168152602001610154565b61016561041536600461127c565b610bc0565b610422610c11565b60405160ff9091168152602001610154565b6101976104423660046111a6565b610c94565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cc9190611295565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e001604052806105546001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161059c610928565b6001600160a01b031681526020018260010180546105b9906112b2565b80601f01602080910402602001604051908101604052809291908181526020018280546105e5906112b2565b80156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d991906112ec565b15610720576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166107495760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b691906112ec565b6107de576040516372657a5160e01b81526001600160a01b0382166004820152602401610717565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610828573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084c919061130e565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b6000806000805160206113f183398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af41580156108fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109219190611337565b1192915050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561098d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b191906112ec565b15610a3157600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610a0d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cc9190611350565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610a63610447565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac7919061136d565b6000805160206113d18339815191528054600160401b900460ff1680610afb5750805467ffffffffffffffff808416911610155b15610b195760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff191667ffffffffffffffff831617600160401b178155610b458585610d9f565b610b4e83610fdc565b805460ff60401b1916815560405167ffffffffffffffff831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006104cc6000805160206113d18339815191525467ffffffffffffffff1690565b60006000805160206113f18339815191526001018281548110610be557610be5611397565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000610c1b610447565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610c70573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cc91906113ad565b6000805160206113d18339815191528054600160401b810460ff16159067ffffffffffffffff16600081158015610cc85750825b905060008267ffffffffffffffff166001148015610ce55750303b155b905081158015610cf3575080155b15610d115760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d3b57845460ff60401b1916600160401b1785555b610d458888610d9f565b610d4f8787610fdc565b8315610d9557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b610da7610fe0565b6000805160206113f18339815191526000610dd86000805160206113d18339815191525467ffffffffffffffff1690565b90506000610de4610447565b90508167ffffffffffffffff16600103610e125760028301805462ffffff191662ffffff8316179055610e60565b600283015462ffffff90811690821611610e605760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610717565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101610ed44290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf6890610b8f9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101165b6000805160206113d183398151915254600160401b900460ff1661101757604051631afcd79f60e31b815260040160405180910390fd5b565b60006020828403121561102b57600080fd5b81356001600160e01b03198116811461104357600080fd5b9392505050565b6000815180845260005b8181101561107057602081850181015186830182015201611054565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516110d460a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e061010084015261111a61012084018261104a565b9050828103602084015261112e818561104a565b95945050505050565b602081526000611043602083018461104a565b62ffffff8116811461115b57600080fd5b50565b60006020828403121561117057600080fd5b81356110438161114a565b6001600160a01b038116811461115b57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156111bb57600080fd5b83356111c68161117b565b925060208401356111d68161117b565b9150604084013567ffffffffffffffff808211156111f357600080fd5b818601915086601f83011261120757600080fd5b81358181111561121957611219611190565b604051601f8201601f19908116603f0116810190838211818310171561124157611241611190565b8160405282815289602084870101111561125a57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561128e57600080fd5b5035919050565b6000602082840312156112a757600080fd5b81516110438161114a565b600181811c908216806112c657607f821691505b6020821081036112e657634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156112fe57600080fd5b8151801515811461104357600080fd5b60006020828403121561132057600080fd5b81516001600160601b038116811461104357600080fd5b60006020828403121561134957600080fd5b5051919050565b60006020828403121561136257600080fd5b81516110438161117b565b60006020828403121561137f57600080fd5b815167ffffffffffffffff8116811461104357600080fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156113bf57600080fd5b815160ff8116811461104357600080fdfef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a2646970667358221220aabddf932def7f1ab4973ae41efbd46c18e027d097c74366145e7bdb8481e42264736f6c63430008140033",
499
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063644c45e0116100a2578063a745e3df11610071578063a745e3df146103d3578063b3c65015146103e6578063b88da75914610407578063cde749f41461041a578063cf7a1d771461043457600080fd5b8063644c45e01461034f578063893d20e81461037a578063946dfcfe14610382578063a3f4df7e146103a957600080fd5b806317d7de7c116100e957806317d7de7c146101995780631eff4b22146101c95780634d459c90146101fe5780634f421333146103175780635ab1bd531461032a57600080fd5b806301ffc9a71461011b5780630d8e6e2c1461015d5780630fec111c14610179578063138461e01461018f575b600080fd5b610148610129366004611019565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b610165610447565b60405162ffffff9091168152602001610154565b6101816104d1565b604051610154929190611090565b610197610653565b005b60408051808201909152600b81526a546573745365727669636560a81b60208201525b6040516101549190611137565b6101f07f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610154565b6102ba61020c36600461115e565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526000805160206113f183398151915262ffffff92831660009081526020918252604090819020815160a0810183528154958616815263010000009095046001600160a01b03908116938601939093526001015491821690840152600160a01b810464ffffffffff166060840152600160c81b900463ffffffff1660808301525090565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610154565b61014861032536600461115e565b610875565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610154565b600154600160a01b90046001600160601b03166040516001600160601b039091168152602001610154565b610337610928565b7f4f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed901546101f0565b6101bc6040518060400160405280600b81526020016a546573745365727669636560a81b81525081565b6101976103e13660046111a6565b610a41565b6103ee610b9e565b60405167ffffffffffffffff9091168152602001610154565b61016561041536600461127c565b610bc0565b610422610c11565b60405160ff9091168152602001610154565b6101976104423660046111a6565b610c94565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cc9190611295565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820181905290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e001604052806105546001546001600160601b03600160a01b9091041690565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161059c610928565b6001600160a01b031681526020018260010180546105b9906112b2565b80601f01602080910402602001604051908101604052809291908181526020018280546105e5906112b2565b80156106325780601f1061060757610100808354040283529160200191610632565b820191906000526020600020905b81548152906001019060200180831161061557829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d991906112ec565b15610720576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b03166107495760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b691906112ec565b6107de576040516372657a5160e01b81526001600160a01b0382166004820152602401610717565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610828573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084c919061130e565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b6000806000805160206113f183398151915262ffffff84166000908152602091909152604090819020600101549051631bbffab160e21b8152600160c81b90910463ffffffff16600482015273__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af41580156108fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109219190611337565b1192915050565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561098d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b191906112ec565b15610a3157600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa158015610a0d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cc9190611350565b506002546001600160a01b031690565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c610a63610447565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac7919061136d565b6000805160206113d18339815191528054600160401b900460ff1680610afb5750805467ffffffffffffffff808416911610155b15610b195760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff191667ffffffffffffffff831617600160401b178155610b458585610d9f565b610b4e83610fdc565b805460ff60401b1916815560405167ffffffffffffffff831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15050505050565b60006104cc6000805160206113d18339815191525467ffffffffffffffff1690565b60006000805160206113f18339815191526001018281548110610be557610be5611397565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000610c1b610447565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af4158015610c70573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cc91906113ad565b6000805160206113d18339815191528054600160401b810460ff16159067ffffffffffffffff16600081158015610cc85750825b905060008267ffffffffffffffff166001148015610ce55750303b155b905081158015610cf3575080155b15610d115760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d3b57845460ff60401b1916600160401b1785555b610d458888610d9f565b610d4f8787610fdc565b8315610d9557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050565b610da7610fe0565b6000805160206113f18339815191526000610dd86000805160206113d18339815191525467ffffffffffffffff1690565b90506000610de4610447565b90508167ffffffffffffffff16600103610e125760028301805462ffffff191662ffffff8316179055610e60565b600283015462ffffff90811690821611610e605760405162461bcd60e51b815260206004820152600f60248201526e24a72b20a624a2102b22a929a4a7a760891b6044820152606401610717565b6001808401805491820181556000908152602090819020600a808404909101805462ffffff808716600394909606939093026101000a858102930219169190911790556040805160a0810182529283526001600160a01b03808916928401929092529086169082015260608101610ed44290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff8084166000908152602087815260409182902085518154928701516001600160a01b039081166301000000026001600160b81b0319909416919095161791909117815584820151600190910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517fad0a0fc10465a8dd9da3ad5f43e1a7fff4b4578551c76f0ae8deb844f0d0bf6890610b8f9083908890889062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b6101165b6000805160206113d183398151915254600160401b900460ff1661101757604051631afcd79f60e31b815260040160405180910390fd5b565b60006020828403121561102b57600080fd5b81356001600160e01b03198116811461104357600080fd5b9392505050565b6000815180845260005b8181101561107057602081850181015186830182015201611054565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516110d460a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e061010084015261111a61012084018261104a565b9050828103602084015261112e818561104a565b95945050505050565b602081526000611043602083018461104a565b62ffffff8116811461115b57600080fd5b50565b60006020828403121561117057600080fd5b81356110438161114a565b6001600160a01b038116811461115b57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156111bb57600080fd5b83356111c68161117b565b925060208401356111d68161117b565b9150604084013567ffffffffffffffff808211156111f357600080fd5b818601915086601f83011261120757600080fd5b81358181111561121957611219611190565b604051601f8201601f19908116603f0116810190838211818310171561124157611241611190565b8160405282815289602084870101111561125a57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561128e57600080fd5b5035919050565b6000602082840312156112a757600080fd5b81516110438161114a565b600181811c908216806112c657607f821691505b6020821081036112e657634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156112fe57600080fd5b8151801515811461104357600080fd5b60006020828403121561132057600080fd5b81516001600160601b038116811461104357600080fd5b60006020828403121561134957600080fd5b5051919050565b60006020828403121561136257600080fd5b81516110438161117b565b60006020828403121561137f57600080fd5b815167ffffffffffffffff8116811461104357600080fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156113bf57600080fd5b815160ff8116811461104357600080fdfef0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a004f61291a8ac3d020d0a7d919a76b8592aa88385744dee3f8b4f3873b969ed900a2646970667358221220aabddf932def7f1ab4973ae41efbd46c18e027d097c74366145e7bdb8481e42264736f6c63430008140033",
526
+ "bytecode": "0x60806040523480156200001157600080fd5b50604051620021c4380380620021c4833981016040819052620000349162000751565b6200003e62000055565b6200004c8360008362000109565b50505062000997565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000a65760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620001065780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6200011362000363565b6200019e83846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000157573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200017d91906200079b565b603c60008560405180602001604052806000815250620003b460201b60201c565b6001600160a01b03821615620001bf57620001b98262000453565b6200033a565b6000620001d46001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af415801562000235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200025b9190620007c0565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015620002a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002c79190620007e5565b905062000338816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200030c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003329190620007e5565b62000453565b505b6200034c634a531f3360e01b62000468565b6200035e63b68d180960e01b62000468565b505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16620003b257604051631afcd79f60e31b815260040160405180910390fd5b565b620003be62000363565b620003ca828762000497565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166001600160681b0319909116176c0100000000000000000000000060ff8816021760ff60681b19166d010000000000000000000000000086151502178155905060018101620004498382620008a7565b5050505050505050565b6200045d62000363565b620001068162000530565b6200047262000363565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b620004a162000363565b620004ac8162000545565b620004b662000661565b6001600160a01b038216620004de5760405163f17ef42d60e01b815260040160405180910390fd5b507f07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f0080546001600160601b03166c010000000000000000000000006001600160a01b0390931692909202919091179055565b6200053a62000363565b6200010681620006a9565b6200054f62000363565b806001600160a01b03163b6000036200058b5760405163fdeac91f60e01b81526001600160a01b03821660048201526024015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa92505050801562000608575060408051601f3d908101601f19168201909252620006059181019062000973565b60015b620006325760405163fdeac91f60e01b81526001600160a01b038216600482015260240162000582565b806200065d5760405163fdeac91f60e01b81526001600160a01b038316600482015260240162000582565b5050565b6200066b62000363565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b7ff3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0080546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b80516001600160a01b03811681146200073457600080fd5b919050565b80516001600160601b03811681146200073457600080fd5b6000806000606084860312156200076757600080fd5b62000772846200071c565b9250620007826020850162000739565b915062000792604085016200071c565b90509250925092565b600060208284031215620007ae57600080fd5b620007b98262000739565b9392505050565b600060208284031215620007d357600080fd5b815160ff81168114620007b957600080fd5b600060208284031215620007f857600080fd5b620007b9826200071c565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200082e57607f821691505b6020821081036200084f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035e57600081815260208120601f850160051c810160208610156200087e5750805b601f850160051c820191505b818110156200089f578281556001016200088a565b505050505050565b81516001600160401b03811115620008c357620008c362000803565b620008db81620008d4845462000819565b8462000855565b602080601f831160018114620009135760008415620008fa5750858301515b600019600386901b1c1916600185901b1785556200089f565b600085815260208120601f198616915b82811015620009445788860151825594840194600190910190840162000923565b5085821015620009635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200098657600080fd5b81518015158114620007b957600080fd5b61181d80620009a76000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063644c45e0116100c3578063a3f4df7e1161007c578063a3f4df7e14610307578063ada9652e1461033e578063b68d180914610353578063bf7e214f14610362578063f21de1e814610258578063f7c34ee01461038057600080fd5b8063644c45e01461027d578063675393bf146102a55780637a9e5e4b146102b8578063893d20e8146102cb5780638e32e979146102d35780638fb36037146102e657600080fd5b8063214cdb8011610115578063214cdb801461020457806327bb7a3314610217578063329d6e741461022a57806336fc697e1461023d57806349bb9e4b146102455780635ab1bd531461025857600080fd5b806301ffc9a7146101525780630d8e6e2c146101945780630fec111c146101b0578063138461e0146101c55780631eff4b22146101cf575b600080fd5b61017f6101603660046111de565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c610393565b60405162ffffff909116815260200161018b565b6101b861041d565b60405161018b9190611255565b6101cd6105cc565b005b6101f67f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161018b565b6101cd6102123660046111de565b6107d3565b6101cd6102253660046113ca565b610800565b6101cd610238366004611463565b61088c565b6101cd6109ee565b6101cd610253366004611498565b610a34565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161018b565b6000805160206117a8833981519152546040516001600160601b03909116815260200161018b565b6101cd6102b33660046114e8565b610b46565b6101cd6102c63660046114e8565b610c54565b610265610cee565b6101cd6102e1366004611505565b610e25565b6102ee61105e565b6040516001600160e01b0319909116815260200161018b565b6103316040518060400160405280600b81526020016a546573745365727669636560a81b81525081565b60405161018b9190611550565b6101f66000805160206117a883398151915281565b604051606e815260200161018b565b6000805160206117c8833981519152546001600160a01b0316610265565b6101cd61038e366004611563565b611096565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610418919061159c565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b909104161515918101919091526001820180549192916060840191906104c8906115c1565b80601f01602080910402602001604051908101604052809291908181526020018280546104f4906115c1565b80156105415780601f1061051657610100808354040283529160200191610541565b820191906000526020600020905b81548152906001019060200180831161052457829003601f168201915b50505050508152505090506040518060e0016040528061055f600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b031681526020016105b0610cee565b6001600160a01b03168152602001826060015181525091505090565b60006000805160206117a883398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561063b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065f91906115fb565b156106905780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306106a36001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f91906115fb565b6107375760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610687565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa15801561078b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107af9190611618565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6107db61110d565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61080861110d565b6108128287611096565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016108828382611683565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6108ae610393565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156108ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109129190611743565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b900460ff16806109585750805467ffffffffffffffff808416911610155b156109765760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff191667ffffffffffffffff831617600160401b1781556109a183611158565b805460ff60401b1916815560405167ffffffffffffffff831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b6109f661110d565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff16600081158015610a7a5750825b905060008267ffffffffffffffff166001148015610a975750303b155b905081158015610aa5575080155b15610ac35760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610aed57845460ff60401b1916600160401b1785555b610af78787611158565b8315610b3d57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610b4e61110d565b806001600160a01b03163b600003610b845760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610687565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610bfe575060408051601f3d908101601f19168201909252610bfb918101906115fb565b60015b610c265760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610687565b80610c4f5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610687565b505b50565b33610c746000805160206117c8833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b031614610caf5760405162d1953b60e31b81526001600160a01b0382166004820152602401610687565b816001600160a01b03163b600003610ce5576040516361798f2f60e11b81526001600160a01b0383166004820152602401610687565b610c4f82611160565b6000806000805160206117a883398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610d5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8291906115fb565b15610e0f576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610de5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e09919061176d565b91505090565b54600160601b90046001600160a01b0316919050565b610e2d61110d565b610ead83846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e939190611618565b603c60008560405180602001604052806000815250610800565b6001600160a01b03821615610eca57610ec5826111c1565b611039565b6000610ede6001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015610f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f62919061178a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015610fa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcb919061176d565b9050611037816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561100e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611032919061176d565b6111c1565b505b611049634a531f3360e01b6107d3565b61105963b68d180960e01b6107d3565b505050565b6000805160206117c8833981519152805460009190600160a01b900460ff16611088576000610e09565b638fb3603760e01b91505090565b61109e61110d565b6110a781610b46565b6110af6109ee565b6001600160a01b0382166110d65760405163f17ef42d60e01b815260040160405180910390fd5b506000805160206117a883398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661115657604051631afcd79f60e31b815260040160405180910390fd5b565b61014d61110d565b6000805160206117c883398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6111c961110d565b610c51816111d561110d565b610c5181611160565b6000602082840312156111f057600080fd5b81356001600160e01b03198116811461120857600080fd5b9392505050565b6000815180845260005b8181101561123557602081850181015186830182015201611219565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516112be60c08401826001600160a01b03169052565b5060c083015160e0808401526112d861010084018261120f565b949350505050565b6001600160a01b0381168114610c5157600080fd5b6001600160601b0381168114610c5157600080fd5b60ff81168114610c5157600080fd5b8015158114610c5157600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f83011261134e57600080fd5b813567ffffffffffffffff8082111561136957611369611327565b604051601f8301601f19908116603f0116810190828211818310171561139157611391611327565b816040528381528660208588010111156113aa57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c087890312156113e357600080fd5b86356113ee816112e0565b955060208701356113fe816112f5565b9450604087013561140e8161130a565b9350606087013561141e81611319565b9250608087013561142e816112e0565b915060a087013567ffffffffffffffff81111561144a57600080fd5b61145689828a0161133d565b9150509295509295509295565b60006020828403121561147557600080fd5b813567ffffffffffffffff81111561148c57600080fd5b6112d88482850161133d565b600080604083850312156114ab57600080fd5b82356114b6816112e0565b9150602083013567ffffffffffffffff8111156114d257600080fd5b6114de8582860161133d565b9150509250929050565b6000602082840312156114fa57600080fd5b8135611208816112e0565b60008060006060848603121561151a57600080fd5b8335611525816112e0565b92506020840135611535816112e0565b91506040840135611545816112e0565b809150509250925092565b602081526000611208602083018461120f565b6000806040838503121561157657600080fd5b8235611581816112e0565b91506020830135611591816112e0565b809150509250929050565b6000602082840312156115ae57600080fd5b815162ffffff8116811461120857600080fd5b600181811c908216806115d557607f821691505b6020821081036115f557634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561160d57600080fd5b815161120881611319565b60006020828403121561162a57600080fd5b8151611208816112f5565b601f82111561105957600081815260208120601f850160051c8101602086101561165c5750805b601f850160051c820191505b8181101561167b57828155600101611668565b505050505050565b815167ffffffffffffffff81111561169d5761169d611327565b6116b1816116ab84546115c1565b84611635565b602080601f8311600181146116e657600084156116ce5750858301515b600019600386901b1c1916600185901b17855561167b565b600085815260208120601f198616915b82811015611715578886015182559484019460019091019084016116f6565b50858210156117335787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561175557600080fd5b815167ffffffffffffffff8116811461120857600080fd5b60006020828403121561177f57600080fd5b8151611208816112e0565b60006020828403121561179c57600080fd5b81516112088161130a56fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220eb215c4961f0a18f7ae373f55c1283b269c36b2968ecd66bb5f9c314e18a9f4864736f6c63430008140033",
527
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063644c45e0116100c3578063a3f4df7e1161007c578063a3f4df7e14610307578063ada9652e1461033e578063b68d180914610353578063bf7e214f14610362578063f21de1e814610258578063f7c34ee01461038057600080fd5b8063644c45e01461027d578063675393bf146102a55780637a9e5e4b146102b8578063893d20e8146102cb5780638e32e979146102d35780638fb36037146102e657600080fd5b8063214cdb8011610115578063214cdb801461020457806327bb7a3314610217578063329d6e741461022a57806336fc697e1461023d57806349bb9e4b146102455780635ab1bd531461025857600080fd5b806301ffc9a7146101525780630d8e6e2c146101945780630fec111c146101b0578063138461e0146101c55780631eff4b22146101cf575b600080fd5b61017f6101603660046111de565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c610393565b60405162ffffff909116815260200161018b565b6101b861041d565b60405161018b9190611255565b6101cd6105cc565b005b6101f67f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b60405190815260200161018b565b6101cd6102123660046111de565b6107d3565b6101cd6102253660046113ca565b610800565b6101cd610238366004611463565b61088c565b6101cd6109ee565b6101cd610253366004611498565b610a34565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161018b565b6000805160206117a8833981519152546040516001600160601b03909116815260200161018b565b6101cd6102b33660046114e8565b610b46565b6101cd6102c63660046114e8565b610c54565b610265610cee565b6101cd6102e1366004611505565b610e25565b6102ee61105e565b6040516001600160e01b0319909116815260200161018b565b6103316040518060400160405280600b81526020016a546573745365727669636560a81b81525081565b60405161018b9190611550565b6101f66000805160206117a883398151915281565b604051606e815260200161018b565b6000805160206117c8833981519152546001600160a01b0316610265565b6101cd61038e366004611563565b611096565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610418919061159c565b905090565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b909104161515918101919091526001820180549192916060840191906104c8906115c1565b80601f01602080910402602001604051908101604052809291908181526020018280546104f4906115c1565b80156105415780601f1061051657610100808354040283529160200191610541565b820191906000526020600020905b81548152906001019060200180831161052457829003601f168201915b50505050508152505090506040518060e0016040528061055f600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b031681526020016105b0610cee565b6001600160a01b03168152602001826060015181525091505090565b60006000805160206117a883398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561063b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065f91906115fb565b156106905780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306106a36001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f91906115fb565b6107375760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610687565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa15801561078b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107af9190611618565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b6107db61110d565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61080861110d565b6108128287611096565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016108828382611683565b5050505050505050565b73__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__63a123b37c6108ae610393565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af41580156108ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109129190611743565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b900460ff16806109585750805467ffffffffffffffff808416911610155b156109765760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff191667ffffffffffffffff831617600160401b1781556109a183611158565b805460ff60401b1916815560405167ffffffffffffffff831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b6109f661110d565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff16600081158015610a7a5750825b905060008267ffffffffffffffff166001148015610a975750303b155b905081158015610aa5575080155b15610ac35760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610aed57845460ff60401b1916600160401b1785555b610af78787611158565b8315610b3d57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610b4e61110d565b806001600160a01b03163b600003610b845760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610687565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015610bfe575060408051601f3d908101601f19168201909252610bfb918101906115fb565b60015b610c265760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610687565b80610c4f5760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610687565b505b50565b33610c746000805160206117c8833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b031614610caf5760405162d1953b60e31b81526001600160a01b0382166004820152602401610687565b816001600160a01b03163b600003610ce5576040516361798f2f60e11b81526001600160a01b0383166004820152602401610687565b610c4f82611160565b6000806000805160206117a883398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610d5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8291906115fb565b15610e0f576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610de5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e09919061176d565b91505090565b54600160601b90046001600160a01b0316919050565b610e2d61110d565b610ead83846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e939190611618565b603c60008560405180602001604052806000815250610800565b6001600160a01b03821615610eca57610ec5826111c1565b611039565b6000610ede6001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015610f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f62919061178a565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015610fa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcb919061176d565b9050611037816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561100e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611032919061176d565b6111c1565b505b611049634a531f3360e01b6107d3565b61105963b68d180960e01b6107d3565b505050565b6000805160206117c8833981519152805460009190600160a01b900460ff16611088576000610e09565b638fb3603760e01b91505090565b61109e61110d565b6110a781610b46565b6110af6109ee565b6001600160a01b0382166110d65760405163f17ef42d60e01b815260040160405180910390fd5b506000805160206117a883398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661115657604051631afcd79f60e31b815260040160405180910390fd5b565b61014d61110d565b6000805160206117c883398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6111c961110d565b610c51816111d561110d565b610c5181611160565b6000602082840312156111f057600080fd5b81356001600160e01b03198116811461120857600080fd5b9392505050565b6000815180845260005b8181101561123557602081850181015186830182015201611219565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516112be60c08401826001600160a01b03169052565b5060c083015160e0808401526112d861010084018261120f565b949350505050565b6001600160a01b0381168114610c5157600080fd5b6001600160601b0381168114610c5157600080fd5b60ff81168114610c5157600080fd5b8015158114610c5157600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f83011261134e57600080fd5b813567ffffffffffffffff8082111561136957611369611327565b604051601f8301601f19908116603f0116810190828211818310171561139157611391611327565b816040528381528660208588010111156113aa57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c087890312156113e357600080fd5b86356113ee816112e0565b955060208701356113fe816112f5565b9450604087013561140e8161130a565b9350606087013561141e81611319565b9250608087013561142e816112e0565b915060a087013567ffffffffffffffff81111561144a57600080fd5b61145689828a0161133d565b9150509295509295509295565b60006020828403121561147557600080fd5b813567ffffffffffffffff81111561148c57600080fd5b6112d88482850161133d565b600080604083850312156114ab57600080fd5b82356114b6816112e0565b9150602083013567ffffffffffffffff8111156114d257600080fd5b6114de8582860161133d565b9150509250929050565b6000602082840312156114fa57600080fd5b8135611208816112e0565b60008060006060848603121561151a57600080fd5b8335611525816112e0565b92506020840135611535816112e0565b91506040840135611545816112e0565b809150509250925092565b602081526000611208602083018461120f565b6000806040838503121561157657600080fd5b8235611581816112e0565b91506020830135611591816112e0565b809150509250929050565b6000602082840312156115ae57600080fd5b815162ffffff8116811461120857600080fd5b600181811c908216806115d557607f821691505b6020821081036115f557634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561160d57600080fd5b815161120881611319565b60006020828403121561162a57600080fd5b8151611208816112f5565b601f82111561105957600081815260208120601f850160051c8101602086101561165c5750805b601f850160051c820191505b8181101561167b57828155600101611668565b505050505050565b815167ffffffffffffffff81111561169d5761169d611327565b6116b1816116ab84546115c1565b84611635565b602080601f8311600181146116e657600084156116ce5750858301515b600019600386901b1c1916600185901b17855561167b565b600085815260208120601f198616915b82811015611715578886015182559484019460019091019084016116f6565b50858210156117335787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561175557600080fd5b815167ffffffffffffffff8116811461120857600080fd5b60006020828403121561177f57600080fd5b8151611208816112e0565b60006020828403121561179c57600080fd5b81516112088161130a56fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220eb215c4961f0a18f7ae373f55c1283b269c36b2968ecd66bb5f9c314e18a9f4864736f6c63430008140033",
500
528
  "linkReferences": {
501
- "contracts/types/Blocknumber.sol": {
502
- "BlocknumberLib": [
503
- {
504
- "length": 20,
505
- "start": 4367
506
- }
507
- ]
508
- },
509
529
  "contracts/types/NftId.sol": {
510
530
  "NftIdLib": [
511
531
  {
512
532
  "length": 20,
513
- "start": 3783
533
+ "start": 4008
514
534
  },
515
535
  {
516
536
  "length": 20,
517
- "start": 4511
537
+ "start": 5835
518
538
  }
519
539
  ]
520
540
  },
@@ -522,45 +542,35 @@
522
542
  "VersionLib": [
523
543
  {
524
544
  "length": 20,
525
- "start": 555
545
+ "start": 3425
526
546
  },
527
547
  {
528
548
  "length": 20,
529
- "start": 905
530
- },
531
- {
532
- "length": 20,
533
- "start": 3258
534
- },
549
+ "start": 4661
550
+ }
551
+ ],
552
+ "VersionPartLib": [
535
553
  {
536
554
  "length": 20,
537
- "start": 4751
555
+ "start": 506
538
556
  },
539
557
  {
540
558
  "length": 20,
541
- "start": 5250
559
+ "start": 6315
542
560
  }
543
561
  ]
544
562
  }
545
563
  },
546
564
  "deployedLinkReferences": {
547
- "contracts/types/Blocknumber.sol": {
548
- "BlocknumberLib": [
549
- {
550
- "length": 20,
551
- "start": 2243
552
- }
553
- ]
554
- },
555
565
  "contracts/types/NftId.sol": {
556
566
  "NftIdLib": [
557
567
  {
558
568
  "length": 20,
559
- "start": 1659
569
+ "start": 1537
560
570
  },
561
571
  {
562
572
  "length": 20,
563
- "start": 2387
573
+ "start": 3364
564
574
  }
565
575
  ]
566
576
  },
@@ -568,15 +578,17 @@
568
578
  "VersionLib": [
569
579
  {
570
580
  "length": 20,
571
- "start": 1134
581
+ "start": 954
572
582
  },
573
583
  {
574
584
  "length": 20,
575
- "start": 2627
576
- },
585
+ "start": 2190
586
+ }
587
+ ],
588
+ "VersionPartLib": [
577
589
  {
578
590
  "length": 20,
579
- "start": 3126
591
+ "start": 3844
580
592
  }
581
593
  ]
582
594
  }