@etherisc/gif-next 0.0.2-fb8d07b-779 → 0.0.2-fbe22f0-239

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. package/README.md +136 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +858 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +588 -92
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{shared/RegisterableUpgradable.sol/RegisterableUpgradable.json → components/IComponent.sol/IComponent.json} +208 -143
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +543 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +663 -31
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +648 -5
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +818 -273
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +657 -181
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  33. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  39. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  40. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  41. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  42. package/artifacts/contracts/instance/{AccessManagedSimple.sol/AccessManagedSimple.json → Cloneable.sol/Cloneable.json} +86 -2
  43. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  44. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1371 -129
  45. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  46. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +132 -21
  47. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  48. package/artifacts/contracts/instance/Instance.sol/Instance.json +293 -656
  49. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  50. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +211 -144
  51. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  52. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +89 -91
  53. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  54. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +395 -122
  55. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  56. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +149 -57
  57. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  58. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  59. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  60. package/artifacts/contracts/instance/base/{ComponentServiceBase.sol/ComponentServiceBase.json → ComponentService.sol/ComponentService.json} +243 -55
  61. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  62. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  63. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  64. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +2 -2
  65. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  66. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  67. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +59 -16
  69. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  70. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  71. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  72. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  73. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  74. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  75. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  76. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +1091 -0
  77. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  78. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1292 -0
  79. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  80. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +560 -0
  81. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  82. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +272 -91
  83. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  84. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +140 -40
  85. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  86. package/artifacts/contracts/instance/service/{IComponentOwnerService.sol/IComponentOwnerService.json → IApplicationService.sol/IApplicationService.json} +217 -58
  87. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  88. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +785 -0
  89. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  90. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +20 -20
  91. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  92. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +771 -0
  93. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  94. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +22 -84
  95. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  96. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +32 -247
  97. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1352 -0
  99. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +616 -0
  101. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  102. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +256 -180
  103. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  104. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +140 -52
  105. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +981 -0
  107. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  108. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +548 -0
  109. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +2 -2
  111. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +208 -224
  113. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +228 -95
  115. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  116. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  117. package/artifacts/contracts/registry/Registry.sol/Registry.json +222 -330
  118. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  119. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  120. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +197 -109
  122. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +162 -112
  124. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  125. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  126. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +124 -29
  128. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  129. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  131. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +24 -0
  133. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  134. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  135. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +5 -5
  137. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  138. package/artifacts/contracts/shared/IService.sol/IService.json +20 -20
  139. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  140. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -2
  141. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  142. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +130 -11
  143. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  144. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +172 -0
  145. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  146. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +130 -6
  147. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +126 -11
  149. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  150. package/artifacts/contracts/shared/Service.sol/Service.json +153 -20
  151. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  152. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  153. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  154. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  155. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -2
  156. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  158. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +126 -11
  159. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  160. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  161. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  162. package/artifacts/contracts/test/TestService.sol/TestService.json +171 -38
  163. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  164. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  166. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +8 -8
  167. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  168. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  169. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  170. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  171. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
  173. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  175. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  176. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  177. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  178. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  179. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  180. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
  181. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  183. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +2 -2
  185. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  187. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  189. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  191. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  195. package/contracts/components/Component.sol +230 -0
  196. package/contracts/components/Distribution.sol +53 -57
  197. package/contracts/components/IComponent.sol +50 -0
  198. package/contracts/components/IDistributionComponent.sol +5 -2
  199. package/contracts/components/IPoolComponent.sol +54 -29
  200. package/contracts/components/IProductComponent.sol +7 -3
  201. package/contracts/components/Pool.sol +153 -142
  202. package/contracts/components/Product.sol +109 -128
  203. package/contracts/instance/BundleManager.sol +125 -0
  204. package/contracts/instance/Cloneable.sol +46 -0
  205. package/contracts/instance/IInstance.sol +41 -8
  206. package/contracts/instance/IInstanceService.sol +15 -4
  207. package/contracts/instance/Instance.sol +65 -240
  208. package/contracts/instance/InstanceAccessManager.sol +87 -78
  209. package/contracts/instance/InstanceReader.sol +12 -25
  210. package/contracts/instance/InstanceService.sol +347 -95
  211. package/contracts/instance/InstanceServiceManager.sol +10 -12
  212. package/contracts/instance/ObjectManager.sol +84 -0
  213. package/contracts/instance/base/ComponentService.sol +134 -0
  214. package/contracts/instance/module/IAccess.sol +27 -18
  215. package/contracts/instance/module/ISetup.sol +7 -4
  216. package/contracts/instance/service/ApplicationService.sol +268 -0
  217. package/contracts/instance/service/BundleService.sol +298 -0
  218. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  219. package/contracts/instance/service/DistributionService.sol +45 -27
  220. package/contracts/instance/service/DistributionServiceManager.sol +10 -12
  221. package/contracts/instance/service/IApplicationService.sol +82 -0
  222. package/contracts/instance/service/IBundleService.sol +54 -0
  223. package/contracts/instance/service/IPolicyService.sol +88 -0
  224. package/contracts/instance/service/IPoolService.sol +6 -23
  225. package/contracts/instance/service/IProductService.sol +6 -73
  226. package/contracts/instance/service/PolicyService.sol +524 -0
  227. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  228. package/contracts/instance/service/PoolService.sol +40 -124
  229. package/contracts/instance/service/PoolServiceManager.sol +10 -12
  230. package/contracts/instance/service/ProductService.sol +233 -0
  231. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  232. package/contracts/registry/ChainNft.sol +1 -1
  233. package/contracts/registry/IRegistry.sol +38 -33
  234. package/contracts/registry/IRegistryService.sol +45 -13
  235. package/contracts/registry/Registry.sol +223 -250
  236. package/contracts/registry/RegistryAccessManager.sol +216 -0
  237. package/contracts/registry/RegistryService.sol +86 -224
  238. package/contracts/registry/RegistryServiceManager.sol +18 -36
  239. package/contracts/registry/ReleaseManager.sol +332 -0
  240. package/contracts/registry/TokenRegistry.sol +11 -9
  241. package/contracts/shared/ERC165.sol +12 -11
  242. package/contracts/shared/INftOwnable.sol +6 -1
  243. package/contracts/shared/IPolicyHolder.sol +26 -0
  244. package/contracts/shared/IRegisterable.sol +4 -6
  245. package/contracts/shared/IService.sol +2 -1
  246. package/contracts/shared/IVersionable.sol +2 -2
  247. package/contracts/shared/NftOwnable.sol +93 -42
  248. package/contracts/shared/PolicyHolder.sol +52 -0
  249. package/contracts/shared/ProxyManager.sol +6 -5
  250. package/contracts/shared/Registerable.sol +15 -24
  251. package/contracts/shared/Service.sol +18 -13
  252. package/contracts/shared/Versionable.sol +3 -2
  253. package/contracts/test/TestRegisterable.sol +1 -1
  254. package/contracts/test/TestService.sol +4 -3
  255. package/contracts/types/NftIdSet.sol +26 -24
  256. package/contracts/types/ObjectType.sol +5 -1
  257. package/contracts/types/RoleId.sol +10 -9
  258. package/package.json +3 -3
  259. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  260. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -327
  261. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  262. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -280
  263. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  264. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  265. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  266. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  267. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  268. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  269. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  270. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  271. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  272. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  273. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  274. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  275. package/contracts/components/BaseComponent.sol +0 -91
  276. package/contracts/components/IBaseComponent.sol +0 -25
  277. package/contracts/instance/AccessManagedSimple.sol +0 -115
  278. package/contracts/instance/AccessManagerSimple.sol +0 -692
  279. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  280. package/contracts/instance/base/ComponentServiceBase.sol +0 -125
  281. package/contracts/instance/base/IInstanceBase.sol +0 -23
  282. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  283. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  284. package/contracts/shared/RegisterableUpgradable.sol +0 -16
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5933227f1dcc121773cf6c64af3bdc36.json"
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
4
  }
@@ -35,6 +35,11 @@
35
35
  "name": "ErrorContractNotRegistered",
36
36
  "type": "error"
37
37
  },
38
+ {
39
+ "inputs": [],
40
+ "name": "ErrorInitialOwnerZero",
41
+ "type": "error"
42
+ },
38
43
  {
39
44
  "inputs": [
40
45
  {
@@ -78,6 +83,11 @@
78
83
  "name": "ErrorRegistryNotInitialized",
79
84
  "type": "error"
80
85
  },
86
+ {
87
+ "inputs": [],
88
+ "name": "InvalidInitialization",
89
+ "type": "error"
90
+ },
81
91
  {
82
92
  "inputs": [
83
93
  {
@@ -89,6 +99,11 @@
89
99
  "name": "NotContract",
90
100
  "type": "error"
91
101
  },
102
+ {
103
+ "inputs": [],
104
+ "name": "NotInitializing",
105
+ "type": "error"
106
+ },
92
107
  {
93
108
  "inputs": [
94
109
  {
@@ -116,6 +131,19 @@
116
131
  "name": "TokenMajorVersionInvalid",
117
132
  "type": "error"
118
133
  },
134
+ {
135
+ "anonymous": false,
136
+ "inputs": [
137
+ {
138
+ "indexed": false,
139
+ "internalType": "uint64",
140
+ "name": "version",
141
+ "type": "uint64"
142
+ }
143
+ ],
144
+ "name": "Initialized",
145
+ "type": "event"
146
+ },
119
147
  {
120
148
  "anonymous": false,
121
149
  "inputs": [
@@ -168,12 +196,25 @@
168
196
  },
169
197
  {
170
198
  "inputs": [],
171
- "name": "REGISTRY_SERVICE_NAME",
199
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
172
200
  "outputs": [
173
201
  {
174
- "internalType": "string",
202
+ "internalType": "bytes32",
175
203
  "name": "",
176
- "type": "string"
204
+ "type": "bytes32"
205
+ }
206
+ ],
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "inputs": [],
212
+ "name": "getInitialOwner",
213
+ "outputs": [
214
+ {
215
+ "internalType": "address",
216
+ "name": "",
217
+ "type": "address"
177
218
  }
178
219
  ],
179
220
  "stateMutability": "view",
@@ -237,6 +278,44 @@
237
278
  "stateMutability": "view",
238
279
  "type": "function"
239
280
  },
281
+ {
282
+ "inputs": [],
283
+ "name": "initializeERC165",
284
+ "outputs": [],
285
+ "stateMutability": "nonpayable",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [
290
+ {
291
+ "internalType": "address",
292
+ "name": "initialOwner",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "internalType": "address",
297
+ "name": "registryAddress",
298
+ "type": "address"
299
+ }
300
+ ],
301
+ "name": "initializeNftOwnable",
302
+ "outputs": [],
303
+ "stateMutability": "nonpayable",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "address",
310
+ "name": "initialOwner",
311
+ "type": "address"
312
+ }
313
+ ],
314
+ "name": "initializeOwner",
315
+ "outputs": [],
316
+ "stateMutability": "nonpayable",
317
+ "type": "function"
318
+ },
240
319
  {
241
320
  "inputs": [
242
321
  {
@@ -300,6 +379,19 @@
300
379
  "stateMutability": "nonpayable",
301
380
  "type": "function"
302
381
  },
382
+ {
383
+ "inputs": [
384
+ {
385
+ "internalType": "bytes4",
386
+ "name": "interfaceId",
387
+ "type": "bytes4"
388
+ }
389
+ ],
390
+ "name": "registerInterface",
391
+ "outputs": [],
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
303
395
  {
304
396
  "inputs": [
305
397
  {
@@ -323,6 +415,25 @@
323
415
  "stateMutability": "nonpayable",
324
416
  "type": "function"
325
417
  },
418
+ {
419
+ "inputs": [
420
+ {
421
+ "internalType": "bytes4",
422
+ "name": "interfaceId",
423
+ "type": "bytes4"
424
+ }
425
+ ],
426
+ "name": "supportsInterface",
427
+ "outputs": [
428
+ {
429
+ "internalType": "bool",
430
+ "name": "",
431
+ "type": "bool"
432
+ }
433
+ ],
434
+ "stateMutability": "view",
435
+ "type": "function"
436
+ },
326
437
  {
327
438
  "inputs": [],
328
439
  "name": "tokens",
@@ -337,22 +448,22 @@
337
448
  "type": "function"
338
449
  }
339
450
  ],
340
- "bytecode": "0x608060405234801561001057600080fd5b50600180546001600160a01b03191633179055611495806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063644c45e011610071578063644c45e014610154578063893d20e81461017f5780639d63848a14610187578063c3c5a54714610198578063cf3ecc1b146101c4578063e4b50cb8146101ff57600080fd5b8063138461e0146100ae57806340be2376146100b85780634390ea70146100cb5780635ab1bd531461011c5780636141740f14610141575b600080fd5b6100b6610212565b005b6100b66100c6366004611162565b610434565b6101076100d936600461118e565b6001600160a01b0391909116600090815260046020908152604080832060ff94851684529091529020541690565b60405190151581526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610113565b6100b661014f3660046111d5565b610592565b600054600160a01b90046001600160601b03166040516001600160601b039091168152602001610113565b610129610905565b600254604051908152602001610113565b6101076101a6366004611162565b6001600160a01b031660009081526003602052604090205460ff1690565b6101f26040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b6040516101139190611270565b61012961020d366004611283565b610a21565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610274573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610298919061129c565b156102df576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6000546001600160a01b03166103085760405163cf29926160e01b815260040160405180910390fd5b60005460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610375919061129c565b61039d576040516372657a5160e01b81526001600160a01b03821660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156103e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040b91906112b9565b600060146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061043e610905565b90506001600160a01b038116158015906104615750336001600160a01b03821614155b156104815760405163700dd81160e01b81523360048201526024016102d6565b60008290506000816001600160a01b031663a3bcd81d6040518060400160405280600f81526020016e52656769737472795365727669636560881b815250846001600160a01b031663cde749f46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052191906112e2565b6040518363ffffffff1660e01b815260040161053e9291906112ff565b602060405180830381865afa15801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057f9190611324565b905061058b8482610a51565b5050505050565b600061059c610905565b90506001600160a01b038116158015906105bf5750336001600160a01b03821614155b156105df5760405163700dd81160e01b81523360048201526024016102d6565b6001600160a01b03841660009081526003602052604090205460ff166106085761060884610ca6565b604051632b10f60d60e21b815260ff8416600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561065d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106819190611341565b905060008054906101000a90046001600160a01b03166001600160a01b03166338e19a756040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f891906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611341565b811080610866575060008054906101000a90046001600160a01b03166001600160a01b0316637374162b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ec91906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561083f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108639190611341565b81115b156108895760405163374a659160e21b815260ff851660048201526024016102d6565b6001600160a01b038516600081815260046020908152604080832060ff891680855290835292819020805460ff1916881515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a15050505050565b600080546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c919061129c565b15610a1157600054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156109e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0c9190611324565b905090565b506001546001600160a01b031690565b600060028281548110610a3657610a3661135a565b6000918252602090912001546001600160a01b031692915050565b600080610a5c610905565b90506001600160a01b03811615801590610a7f5750336001600160a01b03821614155b15610a9f5760405163700dd81160e01b81523360048201526024016102d6565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b25919061129c565b15610b67576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044016102d6565b610b7084610f06565b60005460405163c3c5a54760e01b81526001600160a01b0385811660048301529091169063c3c5a54790602401602060405180830381865afa158015610bba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bde919061129c565b610c06576040516372657a5160e01b81526001600160a01b03841660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0385811660048301529091169063d272ac1e90602401602060405180830381865afa158015610c50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7491906112b9565b600080546001600160a01b0316600160a01b6001600160601b0393841681029190911791829055900416949350505050565b806001600160a01b03163b600003610cdc5760405163b5cf5b8f60e01b81526001600160a01b03821660048201526024016102d6565b610ced816303fb044760e21b61106c565b15610d1557604051629fd8a560e11b81526001600160a01b03821660048201526024016102d6565b6000819050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c91906112e2565b60ff16600003610d9f5760405163925af66160e01b815260040160405180910390fd5b6001600160a01b03808316600081815260036020526040808220805460ff1916600190811790915560028054918201815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b03191690931790925581516395d89b4160e01b815291517f651192eeb68d28f238bbf7aa9dfa996bf9159fd79ca109531d6b72d909b1bbff938693908616926395d89b41926004808401938290030181865afa158015610e61573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e899190810190611386565b836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb91906112e2565b604051610efa93929190611428565b60405180910390a15050565b6000546001600160a01b031615610f3f5760005460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016102d6565b6001600160a01b038116610f665760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003610f9c5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b600080546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263e14a543960e01b60048201526301ffc9a790602401602060405180830381865afa925050508015611016575060408051601f3d908101601f191682019092526110139181019061129c565b60015b61103e5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b806110675760405163fdeac91f60e01b81526001600160a01b03831660048201526024016102d6565b505b50565b60006110778361108f565b8015611088575061108883836110c3565b9392505050565b60006110a2826301ffc9a760e01b6110c3565b80156110bd57506110bb826001600160e01b03196110c3565b155b92915050565b6040516001600160e01b031982166024820152600090819060440160408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d91506000519050828015611136575060208210155b80156111425750600081115b979650505050505050565b6001600160a01b038116811461106957600080fd5b60006020828403121561117457600080fd5b81356110888161114d565b60ff8116811461106957600080fd5b600080604083850312156111a157600080fd5b82356111ac8161114d565b915060208301356111bc8161117f565b809150509250929050565b801515811461106957600080fd5b6000806000606084860312156111ea57600080fd5b83356111f58161114d565b925060208401356112058161117f565b91506040840135611215816111c7565b809150509250925092565b60005b8381101561123b578181015183820152602001611223565b50506000910152565b6000815180845261125c816020860160208601611220565b601f01601f19169290920160200192915050565b6020815260006110886020830184611244565b60006020828403121561129557600080fd5b5035919050565b6000602082840312156112ae57600080fd5b8151611088816111c7565b6000602082840312156112cb57600080fd5b81516001600160601b038116811461108857600080fd5b6000602082840312156112f457600080fd5b81516110888161117f565b6040815260006113126040830185611244565b905060ff831660208301529392505050565b60006020828403121561133657600080fd5b81516110888161114d565b60006020828403121561135357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60006020828403121561139857600080fd5b815167ffffffffffffffff808211156113b057600080fd5b818401915084601f8301126113c457600080fd5b8151818111156113d6576113d6611370565b604051601f8201601f19908116603f011681019083821181831017156113fe576113fe611370565b8160405282815287602084870101111561141757600080fd5b611142836020830160208801611220565b6001600160a01b038416815260606020820181905260009061144c90830185611244565b905060ff8316604083015294935050505056fea26469706673582212205ec6dcbe3beac2494c8077cd3e562891e89871ea5ca5c76e2b499e410b7cf23164736f6c63430008140033",
341
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063644c45e011610071578063644c45e014610154578063893d20e81461017f5780639d63848a14610187578063c3c5a54714610198578063cf3ecc1b146101c4578063e4b50cb8146101ff57600080fd5b8063138461e0146100ae57806340be2376146100b85780634390ea70146100cb5780635ab1bd531461011c5780636141740f14610141575b600080fd5b6100b6610212565b005b6100b66100c6366004611162565b610434565b6101076100d936600461118e565b6001600160a01b0391909116600090815260046020908152604080832060ff94851684529091529020541690565b60405190151581526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610113565b6100b661014f3660046111d5565b610592565b600054600160a01b90046001600160601b03166040516001600160601b039091168152602001610113565b610129610905565b600254604051908152602001610113565b6101076101a6366004611162565b6001600160a01b031660009081526003602052604090205460ff1690565b6101f26040518060400160405280600f81526020016e52656769737472795365727669636560881b81525081565b6040516101139190611270565b61012961020d366004611283565b610a21565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610274573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610298919061129c565b156102df576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6000546001600160a01b03166103085760405163cf29926160e01b815260040160405180910390fd5b60005460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610375919061129c565b61039d576040516372657a5160e01b81526001600160a01b03821660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156103e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040b91906112b9565b600060146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b600061043e610905565b90506001600160a01b038116158015906104615750336001600160a01b03821614155b156104815760405163700dd81160e01b81523360048201526024016102d6565b60008290506000816001600160a01b031663a3bcd81d6040518060400160405280600f81526020016e52656769737472795365727669636560881b815250846001600160a01b031663cde749f46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052191906112e2565b6040518363ffffffff1660e01b815260040161053e9291906112ff565b602060405180830381865afa15801561055b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057f9190611324565b905061058b8482610a51565b5050505050565b600061059c610905565b90506001600160a01b038116158015906105bf5750336001600160a01b03821614155b156105df5760405163700dd81160e01b81523360048201526024016102d6565b6001600160a01b03841660009081526003602052604090205460ff166106085761060884610ca6565b604051632b10f60d60e21b815260ff8416600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561065d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106819190611341565b905060008054906101000a90046001600160a01b03166001600160a01b03166338e19a756040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f891906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611341565b811080610866575060008054906101000a90046001600160a01b03166001600160a01b0316637374162b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ec91906112e2565b604051632b10f60d60e21b815260ff909116600482015273__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af415801561083f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108639190611341565b81115b156108895760405163374a659160e21b815260ff851660048201526024016102d6565b6001600160a01b038516600081815260046020908152604080832060ff891680855290835292819020805460ff1916881515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a15050505050565b600080546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c919061129c565b15610a1157600054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156109e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0c9190611324565b905090565b506001546001600160a01b031690565b600060028281548110610a3657610a3661135a565b6000918252602090912001546001600160a01b031692915050565b600080610a5c610905565b90506001600160a01b03811615801590610a7f5750336001600160a01b03821614155b15610a9f5760405163700dd81160e01b81523360048201526024016102d6565b6000546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b25919061129c565b15610b67576000546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044016102d6565b610b7084610f06565b60005460405163c3c5a54760e01b81526001600160a01b0385811660048301529091169063c3c5a54790602401602060405180830381865afa158015610bba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bde919061129c565b610c06576040516372657a5160e01b81526001600160a01b03841660048201526024016102d6565b600054604051636939560f60e11b81526001600160a01b0385811660048301529091169063d272ac1e90602401602060405180830381865afa158015610c50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7491906112b9565b600080546001600160a01b0316600160a01b6001600160601b0393841681029190911791829055900416949350505050565b806001600160a01b03163b600003610cdc5760405163b5cf5b8f60e01b81526001600160a01b03821660048201526024016102d6565b610ced816303fb044760e21b61106c565b15610d1557604051629fd8a560e11b81526001600160a01b03821660048201526024016102d6565b6000819050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c91906112e2565b60ff16600003610d9f5760405163925af66160e01b815260040160405180910390fd5b6001600160a01b03808316600081815260036020526040808220805460ff1916600190811790915560028054918201815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b03191690931790925581516395d89b4160e01b815291517f651192eeb68d28f238bbf7aa9dfa996bf9159fd79ca109531d6b72d909b1bbff938693908616926395d89b41926004808401938290030181865afa158015610e61573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e899190810190611386565b836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eeb91906112e2565b604051610efa93929190611428565b60405180910390a15050565b6000546001600160a01b031615610f3f5760005460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016102d6565b6001600160a01b038116610f665760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003610f9c5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b600080546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b815263e14a543960e01b60048201526301ffc9a790602401602060405180830381865afa925050508015611016575060408051601f3d908101601f191682019092526110139181019061129c565b60015b61103e5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016102d6565b806110675760405163fdeac91f60e01b81526001600160a01b03831660048201526024016102d6565b505b50565b60006110778361108f565b8015611088575061108883836110c3565b9392505050565b60006110a2826301ffc9a760e01b6110c3565b80156110bd57506110bb826001600160e01b03196110c3565b155b92915050565b6040516001600160e01b031982166024820152600090819060440160408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d91506000519050828015611136575060208210155b80156111425750600081115b979650505050505050565b6001600160a01b038116811461106957600080fd5b60006020828403121561117457600080fd5b81356110888161114d565b60ff8116811461106957600080fd5b600080604083850312156111a157600080fd5b82356111ac8161114d565b915060208301356111bc8161117f565b809150509250929050565b801515811461106957600080fd5b6000806000606084860312156111ea57600080fd5b83356111f58161114d565b925060208401356112058161117f565b91506040840135611215816111c7565b809150509250925092565b60005b8381101561123b578181015183820152602001611223565b50506000910152565b6000815180845261125c816020860160208601611220565b601f01601f19169290920160200192915050565b6020815260006110886020830184611244565b60006020828403121561129557600080fd5b5035919050565b6000602082840312156112ae57600080fd5b8151611088816111c7565b6000602082840312156112cb57600080fd5b81516001600160601b038116811461108857600080fd5b6000602082840312156112f457600080fd5b81516110888161117f565b6040815260006113126040830185611244565b905060ff831660208301529392505050565b60006020828403121561133657600080fd5b81516110888161114d565b60006020828403121561135357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60006020828403121561139857600080fd5b815167ffffffffffffffff808211156113b057600080fd5b818401915084601f8301126113c457600080fd5b8151818111156113d6576113d6611370565b604051601f8201601f19908116603f011681019083821181831017156113fe576113fe611370565b8160405282815287602084870101111561141757600080fd5b611142836020830160208801611220565b6001600160a01b038416815260606020820181905260009061144c90830185611244565b905060ff8316604083015294935050505056fea26469706673582212205ec6dcbe3beac2494c8077cd3e562891e89871ea5ca5c76e2b499e410b7cf23164736f6c63430008140033",
451
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001d3362000023565b62000299565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff1615906001600160401b03166000811580156200006e5750825b90506000826001600160401b031660011480156200008b5750303b155b9050811580156200009a575080155b15620000b95760405163f92ee8a960e01b815260040160405180910390fd5b84546001600160401b03191660011785558315620000e857845460ff60401b1916680100000000000000001785555b620000f3866200015e565b620000fd620001d1565b6200010f63a444b9bb60e01b62000219565b83156200015657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6200016862000248565b6001600160a01b03811662000190576040516352e2d0c160e01b815260040160405180910390fd5b7f07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f0180546001600160a01b0319166001600160a01b0392909216919091179055565b620001db62000248565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b6200022362000248565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff166200029757604051631afcd79f60e31b815260040160405180910390fd5b565b6116bb80620002a96000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063644c45e0116100a2578063ada9652e11610071578063ada9652e14610270578063c3c5a54714610285578063e4b50cb8146102b1578063f7c34ee0146102c4578063fb2cb101146102d757600080fd5b8063644c45e01461020b578063893d20e8146102435780638c5f36bb1461024b5780639d63848a1461025e57600080fd5b806340be2376116100de57806340be2376146101775780634390ea701461018a5780635ab1bd53146101c65780636141740f146101f857600080fd5b806301ffc9a714610110578063138461e014610152578063214cdb801461015c57806336fc697e1461016f575b600080fd5b61013d61011e366004611346565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61015a6102df565b005b61015a61016a366004611346565b61050d565b61015a61053a565b61015a610185366004611388565b610580565b61013d6101983660046113b4565b6001600160a01b0391909116600090815260036020908152604080832060ff94851684529091529020541690565b600080516020611666833981519152546001600160a01b03165b6040516001600160a01b039091168152602001610149565b61015a6102063660046113fb565b6106ac565b60008051602061166683398151915254600160a01b90046001600160601b03166040516001600160601b039091168152602001610149565b6101e06108b4565b61015a610259366004611388565b6109e5565b6001545b604051908152602001610149565b61026260008051602061166683398151915281565b61013d610293366004611388565b6001600160a01b031660009081526002602052604090205460ff1690565b6101e06102bf366004611446565b610b0d565b61015a6102d236600461145f565b610b3d565b6101e0610b73565b600060008051602061166683398151915280546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610354573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610378919061148d565b156103be5780546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b80546001600160a01b03166103e65760405163cf29926160e01b815260040160405180910390fd5b805460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561042e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610452919061148d565b61047a576040516372657a5160e01b81526001600160a01b03821660048201526024016103b5565b8154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e791906114aa565b82546001600160601b0391909116600160a01b026001600160a01b039091161790915550565b610515610b89565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610542610b89565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b6105886108b4565b6001600160a01b0316336001600160a01b0316146105bb5760405163700dd81160e01b81523360048201526024016103b5565b8060006001600160a01b03821663d39e60436028846001600160a01b031663f40d7c306040518163ffffffff1660e01b8152600401602060405180830381865afa15801561060d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063191906114d3565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015610676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069a91906114f0565b90506106a68382610bd4565b50505050565b6106b46108b4565b6001600160a01b0316336001600160a01b0316146106e75760405163700dd81160e01b81523360048201526024016103b5565b6001600160a01b03831660009081526002602052604090205460ff166107105761071083610e26565b604051632b10f60d60e21b815260ff8316600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af4158015610765573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610789919061150d565b90506107aa600080516020611666833981519152546001600160a01b031690565b60405163a52ec52960e01b815260ff851660048201526001600160a01b03919091169063a52ec52990602401602060405180830381865afa1580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610817919061148d565b6108395760405163374a659160e21b815260ff841660048201526024016103b5565b6001600160a01b038416600081815260036020908152604080832060ff881680855290835292819020805460ff1916871515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a150505050565b60008060008051602061166683398151915280546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e919061148d565b156109d3578054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156109a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cd91906114f0565b91505090565b600101546001600160a01b0316919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff16600081158015610a2b5750825b905060008267ffffffffffffffff166001148015610a485750303b155b905081158015610a56575080155b15610a745760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610a9e57845460ff60401b1916600160401b1785555b610aa786611085565b610aaf61053a565b610abf63a444b9bb60e01b61050d565b8315610b0557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600060018281548110610b2257610b22611526565b6000918252602090912001546001600160a01b031692915050565b610b45610b89565b610b4e82611085565b610b57816110f5565b610b5f61053a565b610b6f63a444b9bb60e01b61050d565b5050565b60006000805160206116668339815191526109d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16610bd257604051631afcd79f60e31b815260040160405180910390fd5b565b6000610bde6108b4565b6001600160a01b0316336001600160a01b031614610c115760405163700dd81160e01b81523360048201526024016103b5565b600060008051602061166683398151915280546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caa919061148d565b15610ceb5780546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044016103b5565b610cf4846110f5565b805460405163c3c5a54760e01b81526001600160a01b0385811660048301529091169063c3c5a54790602401602060405180830381865afa158015610d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d61919061148d565b610d89576040516372657a5160e01b81526001600160a01b03841660048201526024016103b5565b8054604051636939560f60e11b81526001600160a01b0385811660048301529091169063d272ac1e90602401602060405180830381865afa158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df691906114aa565b81546001600160a01b0316600160a01b6001600160601b0392831681029190911792839055909104169392505050565b806001600160a01b03163b600003610e5c5760405163b5cf5b8f60e01b81526001600160a01b03821660048201526024016103b5565b610e6d816303fb044760e21b611265565b15610e9557604051629fd8a560e11b81526001600160a01b03821660048201526024016103b5565b6000819050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc91906114d3565b60ff16600003610f1f5760405163925af66160e01b815260040160405180910390fd5b6001600160a01b03808316600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191690931790925581516395d89b4160e01b815291517f651192eeb68d28f238bbf7aa9dfa996bf9159fd79ca109531d6b72d909b1bbff938693908616926395d89b41926004808401938290030181865afa158015610fe0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110089190810190611576565b836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611046573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106a91906114d3565b60405161107993929190611618565b60405180910390a15050565b61108d610b89565b6001600160a01b0381166110b4576040516352e2d0c160e01b815260040160405180910390fd5b7f07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f0180546001600160a01b0319166001600160a01b0392909216919091179055565b60008051602061166683398151915280546001600160a01b03161561113b57805460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016103b5565b6001600160a01b0382166111625760405163f5c4d07d60e01b815260040160405180910390fd5b816001600160a01b03163b6000036111985760405163fdeac91f60e01b81526001600160a01b03831660048201526024016103b5565b80546001600160a01b0319166001600160a01b03831690811782556040516301ffc9a760e01b815263230c0c8160e11b60048201526301ffc9a790602401602060405180830381865afa92505050801561120f575060408051601f3d908101601f1916820190925261120c9181019061148d565b60015b6112375760405163fdeac91f60e01b81526001600160a01b03831660048201526024016103b5565b806112605760405163fdeac91f60e01b81526001600160a01b03841660048201526024016103b5565b505050565b600061127083611288565b8015611281575061128183836112bc565b9392505050565b600061129b826301ffc9a760e01b6112bc565b80156112b657506112b4826001600160e01b03196112bc565b155b92915050565b6040516001600160e01b031982166024820152600090819060440160408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d9150600051905082801561132f575060208210155b801561133b5750600081115b979650505050505050565b60006020828403121561135857600080fd5b81356001600160e01b03198116811461128157600080fd5b6001600160a01b038116811461138557600080fd5b50565b60006020828403121561139a57600080fd5b813561128181611370565b60ff8116811461138557600080fd5b600080604083850312156113c757600080fd5b82356113d281611370565b915060208301356113e2816113a5565b809150509250929050565b801515811461138557600080fd5b60008060006060848603121561141057600080fd5b833561141b81611370565b9250602084013561142b816113a5565b9150604084013561143b816113ed565b809150509250925092565b60006020828403121561145857600080fd5b5035919050565b6000806040838503121561147257600080fd5b823561147d81611370565b915060208301356113e281611370565b60006020828403121561149f57600080fd5b8151611281816113ed565b6000602082840312156114bc57600080fd5b81516001600160601b038116811461128157600080fd5b6000602082840312156114e557600080fd5b8151611281816113a5565b60006020828403121561150257600080fd5b815161128181611370565b60006020828403121561151f57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561156d578181015183820152602001611555565b50506000910152565b60006020828403121561158857600080fd5b815167ffffffffffffffff808211156115a057600080fd5b818401915084601f8301126115b457600080fd5b8151818111156115c6576115c661153c565b604051601f8201601f19908116603f011681019083821181831017156115ee576115ee61153c565b8160405282815287602084870101111561160757600080fd5b61133b836020830160208801611552565b60018060a01b03841681526060602082015260008351806060840152611645816080850160208801611552565b60ff93909316604083015250601f91909101601f1916016080019291505056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00a2646970667358221220b02854c1d7a023c4b24d672fa47e6ca4aa5cfc3759a7329d2d7af8ea85abfac564736f6c63430008140033",
452
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c8063644c45e0116100a2578063ada9652e11610071578063ada9652e14610270578063c3c5a54714610285578063e4b50cb8146102b1578063f7c34ee0146102c4578063fb2cb101146102d757600080fd5b8063644c45e01461020b578063893d20e8146102435780638c5f36bb1461024b5780639d63848a1461025e57600080fd5b806340be2376116100de57806340be2376146101775780634390ea701461018a5780635ab1bd53146101c65780636141740f146101f857600080fd5b806301ffc9a714610110578063138461e014610152578063214cdb801461015c57806336fc697e1461016f575b600080fd5b61013d61011e366004611346565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61015a6102df565b005b61015a61016a366004611346565b61050d565b61015a61053a565b61015a610185366004611388565b610580565b61013d6101983660046113b4565b6001600160a01b0391909116600090815260036020908152604080832060ff94851684529091529020541690565b600080516020611666833981519152546001600160a01b03165b6040516001600160a01b039091168152602001610149565b61015a6102063660046113fb565b6106ac565b60008051602061166683398151915254600160a01b90046001600160601b03166040516001600160601b039091168152602001610149565b6101e06108b4565b61015a610259366004611388565b6109e5565b6001545b604051908152602001610149565b61026260008051602061166683398151915281565b61013d610293366004611388565b6001600160a01b031660009081526002602052604090205460ff1690565b6101e06102bf366004611446565b610b0d565b61015a6102d236600461145f565b610b3d565b6101e0610b73565b600060008051602061166683398151915280546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610354573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610378919061148d565b156103be5780546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b80546001600160a01b03166103e65760405163cf29926160e01b815260040160405180910390fd5b805460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa15801561042e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610452919061148d565b61047a576040516372657a5160e01b81526001600160a01b03821660048201526024016103b5565b8154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e791906114aa565b82546001600160601b0391909116600160a01b026001600160a01b039091161790915550565b610515610b89565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610542610b89565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b6105886108b4565b6001600160a01b0316336001600160a01b0316146105bb5760405163700dd81160e01b81523360048201526024016103b5565b8060006001600160a01b03821663d39e60436028846001600160a01b031663f40d7c306040518163ffffffff1660e01b8152600401602060405180830381865afa15801561060d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063191906114d3565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015610676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069a91906114f0565b90506106a68382610bd4565b50505050565b6106b46108b4565b6001600160a01b0316336001600160a01b0316146106e75760405163700dd81160e01b81523360048201526024016103b5565b6001600160a01b03831660009081526002602052604090205460ff166107105761071083610e26565b604051632b10f60d60e21b815260ff8316600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__9063ac43d83490602401602060405180830381865af4158015610765573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610789919061150d565b90506107aa600080516020611666833981519152546001600160a01b031690565b60405163a52ec52960e01b815260ff851660048201526001600160a01b03919091169063a52ec52990602401602060405180830381865afa1580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610817919061148d565b6108395760405163374a659160e21b815260ff841660048201526024016103b5565b6001600160a01b038416600081815260036020908152604080832060ff881680855290835292819020805460ff1916871515908117909155815194855291840192909252908201527f330dde7b71e0842a092329aeedc8f261bfaa3210e3743b743d0a147ab085e87f9060600160405180910390a150505050565b60008060008051602061166683398151915280546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e919061148d565b156109d3578054604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a90602401602060405180830381865afa1580156109a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cd91906114f0565b91505090565b600101546001600160a01b0316919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff16600081158015610a2b5750825b905060008267ffffffffffffffff166001148015610a485750303b155b905081158015610a56575080155b15610a745760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610a9e57845460ff60401b1916600160401b1785555b610aa786611085565b610aaf61053a565b610abf63a444b9bb60e01b61050d565b8315610b0557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600060018281548110610b2257610b22611526565b6000918252602090912001546001600160a01b031692915050565b610b45610b89565b610b4e82611085565b610b57816110f5565b610b5f61053a565b610b6f63a444b9bb60e01b61050d565b5050565b60006000805160206116668339815191526109d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16610bd257604051631afcd79f60e31b815260040160405180910390fd5b565b6000610bde6108b4565b6001600160a01b0316336001600160a01b031614610c115760405163700dd81160e01b81523360048201526024016103b5565b600060008051602061166683398151915280546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caa919061148d565b15610ceb5780546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044016103b5565b610cf4846110f5565b805460405163c3c5a54760e01b81526001600160a01b0385811660048301529091169063c3c5a54790602401602060405180830381865afa158015610d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d61919061148d565b610d89576040516372657a5160e01b81526001600160a01b03841660048201526024016103b5565b8054604051636939560f60e11b81526001600160a01b0385811660048301529091169063d272ac1e90602401602060405180830381865afa158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df691906114aa565b81546001600160a01b0316600160a01b6001600160601b0392831681029190911792839055909104169392505050565b806001600160a01b03163b600003610e5c5760405163b5cf5b8f60e01b81526001600160a01b03821660048201526024016103b5565b610e6d816303fb044760e21b611265565b15610e9557604051629fd8a560e11b81526001600160a01b03821660048201526024016103b5565b6000819050806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ed8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efc91906114d3565b60ff16600003610f1f5760405163925af66160e01b815260040160405180910390fd5b6001600160a01b03808316600081815260026020526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191690931790925581516395d89b4160e01b815291517f651192eeb68d28f238bbf7aa9dfa996bf9159fd79ca109531d6b72d909b1bbff938693908616926395d89b41926004808401938290030181865afa158015610fe0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110089190810190611576565b836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611046573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106a91906114d3565b60405161107993929190611618565b60405180910390a15050565b61108d610b89565b6001600160a01b0381166110b4576040516352e2d0c160e01b815260040160405180910390fd5b7f07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f0180546001600160a01b0319166001600160a01b0392909216919091179055565b60008051602061166683398151915280546001600160a01b03161561113b57805460405163fcdbf2d960e01b81526001600160a01b0390911660048201526024016103b5565b6001600160a01b0382166111625760405163f5c4d07d60e01b815260040160405180910390fd5b816001600160a01b03163b6000036111985760405163fdeac91f60e01b81526001600160a01b03831660048201526024016103b5565b80546001600160a01b0319166001600160a01b03831690811782556040516301ffc9a760e01b815263230c0c8160e11b60048201526301ffc9a790602401602060405180830381865afa92505050801561120f575060408051601f3d908101601f1916820190925261120c9181019061148d565b60015b6112375760405163fdeac91f60e01b81526001600160a01b03831660048201526024016103b5565b806112605760405163fdeac91f60e01b81526001600160a01b03841660048201526024016103b5565b505050565b600061127083611288565b8015611281575061128183836112bc565b9392505050565b600061129b826301ffc9a760e01b6112bc565b80156112b657506112b4826001600160e01b03196112bc565b155b92915050565b6040516001600160e01b031982166024820152600090819060440160408051601f19818403018152919052602080820180516001600160e01b03166301ffc9a760e01b178152825192935060009283928392909183918a617530fa92503d9150600051905082801561132f575060208210155b801561133b5750600081115b979650505050505050565b60006020828403121561135857600080fd5b81356001600160e01b03198116811461128157600080fd5b6001600160a01b038116811461138557600080fd5b50565b60006020828403121561139a57600080fd5b813561128181611370565b60ff8116811461138557600080fd5b600080604083850312156113c757600080fd5b82356113d281611370565b915060208301356113e2816113a5565b809150509250929050565b801515811461138557600080fd5b60008060006060848603121561141057600080fd5b833561141b81611370565b9250602084013561142b816113a5565b9150604084013561143b816113ed565b809150509250925092565b60006020828403121561145857600080fd5b5035919050565b6000806040838503121561147257600080fd5b823561147d81611370565b915060208301356113e281611370565b60006020828403121561149f57600080fd5b8151611281816113ed565b6000602082840312156114bc57600080fd5b81516001600160601b038116811461128157600080fd5b6000602082840312156114e557600080fd5b8151611281816113a5565b60006020828403121561150257600080fd5b815161128181611370565b60006020828403121561151f57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561156d578181015183820152602001611555565b50506000910152565b60006020828403121561158857600080fd5b815167ffffffffffffffff808211156115a057600080fd5b818401915084601f8301126115b457600080fd5b8151818111156115c6576115c661153c565b604051601f8201601f19908116603f011681019083821181831017156115ee576115ee61153c565b8160405282815287602084870101111561160757600080fd5b61133b836020830160208801611552565b60018060a01b03841681526060602082015260008351806060840152611645816080850160208801611552565b60ff93909316604083015250601f91909101601f1916016080019291505056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00a2646970667358221220b02854c1d7a023c4b24d672fa47e6ca4aa5cfc3759a7329d2d7af8ea85abfac564736f6c63430008140033",
342
453
  "linkReferences": {
343
454
  "contracts/types/NftId.sol": {
344
455
  "NftIdLib": [
345
456
  {
346
457
  "length": 20,
347
- "start": 620
458
+ "start": 1475
348
459
  },
349
460
  {
350
461
  "length": 20,
351
- "start": 2400
462
+ "start": 2969
352
463
  },
353
464
  {
354
465
  "length": 20,
355
- "start": 2809
466
+ "start": 3829
356
467
  }
357
468
  ]
358
469
  },
@@ -360,15 +471,7 @@
360
471
  "VersionPartLib": [
361
472
  {
362
473
  "length": 20,
363
- "start": 1621
364
- },
365
- {
366
- "length": 20,
367
- "start": 1859
368
- },
369
- {
370
- "length": 20,
371
- "start": 2103
474
+ "start": 2516
372
475
  }
373
476
  ]
374
477
  }
@@ -378,15 +481,15 @@
378
481
  "NftIdLib": [
379
482
  {
380
483
  "length": 20,
381
- "start": 570
484
+ "start": 794
382
485
  },
383
486
  {
384
487
  "length": 20,
385
- "start": 2350
488
+ "start": 2288
386
489
  },
387
490
  {
388
491
  "length": 20,
389
- "start": 2759
492
+ "start": 3148
390
493
  }
391
494
  ]
392
495
  },
@@ -394,15 +497,7 @@
394
497
  "VersionPartLib": [
395
498
  {
396
499
  "length": 20,
397
- "start": 1571
398
- },
399
- {
400
- "length": 20,
401
- "start": 1809
402
- },
403
- {
404
- "length": 20,
405
- "start": 2053
500
+ "start": 1835
406
501
  }
407
502
  ]
408
503
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5933227f1dcc121773cf6c64af3bdc36.json"
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5933227f1dcc121773cf6c64af3bdc36.json"
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
4
  }
@@ -5,8 +5,46 @@
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [],
8
+ "name": "InvalidInitialization",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "NotInitializing",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "anonymous": false,
18
+ "inputs": [
19
+ {
20
+ "indexed": false,
21
+ "internalType": "uint64",
22
+ "name": "version",
23
+ "type": "uint64"
24
+ }
25
+ ],
26
+ "name": "Initialized",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "inputs": [],
31
+ "name": "initializeERC165",
32
+ "outputs": [],
8
33
  "stateMutability": "nonpayable",
9
- "type": "constructor"
34
+ "type": "function"
35
+ },
36
+ {
37
+ "inputs": [
38
+ {
39
+ "internalType": "bytes4",
40
+ "name": "interfaceId",
41
+ "type": "bytes4"
42
+ }
43
+ ],
44
+ "name": "registerInterface",
45
+ "outputs": [],
46
+ "stateMutability": "nonpayable",
47
+ "type": "function"
10
48
  },
11
49
  {
12
50
  "inputs": [
@@ -28,8 +66,8 @@
28
66
  "type": "function"
29
67
  }
30
68
  ],
31
- "bytecode": "0x608060405234801561001057600080fd5b506100526301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b60d0806100606000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b60576038366004606b565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b600060208284031215607c57600080fd5b81356001600160e01b031981168114609357600080fd5b939250505056fea2646970667358221220ddf10c535265fa0148782915dfe17f1cb24928ccbbf1f4209b9ad4198816a80f64736f6c63430008140033",
32
- "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b60576038366004606b565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b600060208284031215607c57600080fd5b81356001600160e01b031981168114609357600080fd5b939250505056fea2646970667358221220ddf10c535265fa0148782915dfe17f1cb24928ccbbf1f4209b9ad4198816a80f64736f6c63430008140033",
69
+ "bytecode": "0x608060405234801561001057600080fd5b506101ce806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063214cdb801461008757806336fc697e1461009c575b600080fd5b610073610054366004610167565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b61009a610095366004610167565b6100a4565b005b61009a6100d1565b6100ac610117565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6100d9610117565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff1661016557604051631afcd79f60e31b815260040160405180910390fd5b565b60006020828403121561017957600080fd5b81356001600160e01b03198116811461019157600080fd5b939250505056fea26469706673582212205e73e399c6e9b09dcb58b7b49072c660f113c541ad7702507560d0524f127ac064736f6c63430008140033",
70
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063214cdb801461008757806336fc697e1461009c575b600080fd5b610073610054366004610167565b6001600160e01b03191660009081526020819052604090205460ff1690565b604051901515815260200160405180910390f35b61009a610095366004610167565b6100a4565b005b61009a6100d1565b6100ac610117565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6100d9610117565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff1661016557604051631afcd79f60e31b815260040160405180910390fd5b565b60006020828403121561017957600080fd5b81356001600160e01b03198116811461019157600080fd5b939250505056fea26469706673582212205e73e399c6e9b09dcb58b7b49072c660f113c541ad7702507560d0524f127ac064736f6c63430008140033",
33
71
  "linkReferences": {},
34
72
  "deployedLinkReferences": {}
35
73
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5933227f1dcc121773cf6c64af3bdc36.json"
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
4
  }
@@ -30,6 +30,11 @@
30
30
  "name": "ErrorContractNotRegistered",
31
31
  "type": "error"
32
32
  },
33
+ {
34
+ "inputs": [],
35
+ "name": "ErrorInitialOwnerZero",
36
+ "type": "error"
37
+ },
33
38
  {
34
39
  "inputs": [
35
40
  {
@@ -118,6 +123,25 @@
118
123
  "outputs": [],
119
124
  "stateMutability": "nonpayable",
120
125
  "type": "function"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "internalType": "bytes4",
131
+ "name": "interfaceId",
132
+ "type": "bytes4"
133
+ }
134
+ ],
135
+ "name": "supportsInterface",
136
+ "outputs": [
137
+ {
138
+ "internalType": "bool",
139
+ "name": "",
140
+ "type": "bool"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
121
145
  }
122
146
  ],
123
147
  "bytecode": "0x",
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPolicyHolder",
4
+ "sourceName": "contracts/shared/IPolicyHolder.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "NftId",
10
+ "name": "policyId",
11
+ "type": "uint96"
12
+ },
13
+ {
14
+ "internalType": "NumberId",
15
+ "name": "claimId",
16
+ "type": "uint32"
17
+ }
18
+ ],
19
+ "name": "getBeneficiary",
20
+ "outputs": [
21
+ {
22
+ "internalType": "address",
23
+ "name": "beneficiary",
24
+ "type": "address"
25
+ }
26
+ ],
27
+ "stateMutability": "view",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "address",
34
+ "name": "operator",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "internalType": "address",
39
+ "name": "from",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "internalType": "uint256",
44
+ "name": "tokenId",
45
+ "type": "uint256"
46
+ },
47
+ {
48
+ "internalType": "bytes",
49
+ "name": "data",
50
+ "type": "bytes"
51
+ }
52
+ ],
53
+ "name": "onERC721Received",
54
+ "outputs": [
55
+ {
56
+ "internalType": "bytes4",
57
+ "name": "",
58
+ "type": "bytes4"
59
+ }
60
+ ],
61
+ "stateMutability": "nonpayable",
62
+ "type": "function"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "NftId",
68
+ "name": "policyNftId",
69
+ "type": "uint96"
70
+ },
71
+ {
72
+ "internalType": "NumberId",
73
+ "name": "payoutId",
74
+ "type": "uint32"
75
+ },
76
+ {
77
+ "internalType": "address",
78
+ "name": "beneficiary",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "internalType": "uint256",
83
+ "name": "amount",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "payoutProcessed",
88
+ "outputs": [],
89
+ "stateMutability": "nonpayable",
90
+ "type": "function"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "NftId",
96
+ "name": "policyNftId",
97
+ "type": "uint96"
98
+ }
99
+ ],
100
+ "name": "policyCreated",
101
+ "outputs": [],
102
+ "stateMutability": "nonpayable",
103
+ "type": "function"
104
+ },
105
+ {
106
+ "inputs": [
107
+ {
108
+ "internalType": "bytes4",
109
+ "name": "interfaceId",
110
+ "type": "bytes4"
111
+ }
112
+ ],
113
+ "name": "supportsInterface",
114
+ "outputs": [
115
+ {
116
+ "internalType": "bool",
117
+ "name": "",
118
+ "type": "bool"
119
+ }
120
+ ],
121
+ "stateMutability": "view",
122
+ "type": "function"
123
+ }
124
+ ],
125
+ "bytecode": "0x",
126
+ "deployedBytecode": "0x",
127
+ "linkReferences": {},
128
+ "deployedLinkReferences": {}
129
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5933227f1dcc121773cf6c64af3bdc36.json"
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
4
  }
@@ -30,6 +30,11 @@
30
30
  "name": "ErrorContractNotRegistered",
31
31
  "type": "error"
32
32
  },
33
+ {
34
+ "inputs": [],
35
+ "name": "ErrorInitialOwnerZero",
36
+ "type": "error"
37
+ },
33
38
  {
34
39
  "inputs": [
35
40
  {
@@ -118,11 +123,6 @@
118
123
  "internalType": "struct IRegistry.ObjectInfo",
119
124
  "name": "",
120
125
  "type": "tuple"
121
- },
122
- {
123
- "internalType": "bytes",
124
- "name": "data",
125
- "type": "bytes"
126
126
  }
127
127
  ],
128
128
  "stateMutability": "view",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/5933227f1dcc121773cf6c64af3bdc36.json"
3
+ "buildInfo": "../../../build-info/ff7d6f99450632e8472f8e5ac690f339.json"
4
4
  }