@etherisc/gif-next 0.0.2-de220d6-949 → 0.0.2-e1e92ab-754

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. package/README.md +82 -0
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +166 -39
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +557 -0
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +119 -39
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +177 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +108 -156
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +67 -139
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +417 -88
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +360 -51
  18. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -34
  21. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  31. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  37. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  38. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +762 -698
  39. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
  40. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  41. package/artifacts/contracts/instance/Instance.sol/Instance.json +945 -817
  42. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  43. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +224 -43
  44. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  45. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +51 -1
  46. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  47. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
  48. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  49. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
  50. package/artifacts/contracts/instance/base/IService.sol/IService.json +174 -53
  51. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
  52. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +263 -45
  53. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  54. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
  55. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  56. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
  57. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
  58. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
  59. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +220 -52
  60. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
  61. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +55 -54
  62. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
  63. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
  64. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +56 -55
  65. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
  66. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
  67. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
  68. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
  69. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +22 -93
  70. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
  71. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
  72. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
  73. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
  74. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensation.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
  76. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
  77. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
  78. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +53 -53
  79. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
  80. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +53 -53
  81. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
  82. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
  83. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +29 -14
  84. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
  85. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +28 -13
  86. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
  87. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
  88. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +104 -1
  89. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
  90. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
  91. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
  92. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
  93. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +326 -221
  94. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  95. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
  96. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
  97. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +326 -221
  98. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +374 -70
  100. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +630 -0
  102. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +176 -74
  104. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +446 -0
  106. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  107. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +235 -50
  108. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  109. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +325 -51
  110. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  111. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +335 -53
  112. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  113. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +468 -73
  114. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  115. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +141 -12
  116. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  117. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
  118. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +190 -51
  120. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  121. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +872 -0
  122. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  123. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  124. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  125. package/artifacts/contracts/registry/Registry.sol/Registry.json +380 -139
  126. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  127. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1245 -0
  128. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  129. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +490 -0
  130. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  131. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  132. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  133. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  134. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  135. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  136. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  137. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +117 -37
  138. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  139. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  140. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  141. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +158 -0
  142. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  143. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +349 -0
  144. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  145. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +190 -37
  146. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  147. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  148. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  149. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  150. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
  151. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +557 -0
  152. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  154. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestPool.sol/TestPool.json +417 -88
  156. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +407 -56
  158. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +204 -36
  160. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  161. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
  162. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  163. package/artifacts/contracts/test/TestService.sol/TestService.json +267 -62
  164. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  165. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  166. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  167. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  168. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  169. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +89 -25
  170. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  171. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  172. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  173. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  174. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  175. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  177. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  178. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
  179. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  181. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  182. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  183. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  185. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
  186. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
  187. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  188. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  189. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
  191. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  192. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  193. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  194. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  195. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  196. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  197. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  199. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  200. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
  201. package/contracts/components/BaseComponent.sol +11 -20
  202. package/contracts/components/Distribution.sol +155 -0
  203. package/contracts/components/IBaseComponent.sol +1 -1
  204. package/contracts/components/IDistributionComponent.sol +46 -0
  205. package/contracts/components/IPoolComponent.sol +15 -8
  206. package/contracts/components/IProductComponent.sol +26 -8
  207. package/contracts/components/Pool.sol +99 -27
  208. package/contracts/components/Product.sol +204 -22
  209. package/contracts/experiment/errors/Revert.sol +4 -13
  210. package/contracts/instance/IInstance.sol +11 -11
  211. package/contracts/instance/Instance.sol +28 -13
  212. package/contracts/instance/base/ComponentServiceBase.sol +13 -6
  213. package/contracts/instance/base/IInstanceBase.sol +11 -2
  214. package/contracts/instance/base/IKeyValueStore.sol +4 -3
  215. package/contracts/instance/base/InstanceBase.sol +19 -10
  216. package/contracts/instance/base/KeyValueStore.sol +12 -7
  217. package/contracts/instance/base/Lifecycle.sol +15 -10
  218. package/contracts/instance/base/ModuleBase.sol +22 -17
  219. package/contracts/instance/base/ServiceBase.sol +20 -13
  220. package/contracts/instance/module/bundle/BundleModule.sol +10 -12
  221. package/contracts/instance/module/bundle/IBundle.sol +6 -11
  222. package/contracts/instance/module/component/ComponentModule.sol +33 -57
  223. package/contracts/instance/module/component/IComponent.sol +6 -31
  224. package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
  225. package/contracts/instance/module/distribution/IDistribution.sol +10 -0
  226. package/contracts/instance/module/policy/IPolicy.sol +11 -9
  227. package/contracts/instance/module/policy/PolicyModule.sol +33 -19
  228. package/contracts/instance/module/pool/IPoolModule.sol +4 -4
  229. package/contracts/instance/module/pool/PoolModule.sol +23 -15
  230. package/contracts/instance/module/risk/IRisk.sol +18 -2
  231. package/contracts/instance/module/risk/RiskModule.sol +56 -2
  232. package/contracts/instance/module/treasury/ITreasury.sol +31 -50
  233. package/contracts/instance/module/treasury/TokenHandler.sol +1 -1
  234. package/contracts/instance/module/treasury/TreasuryModule.sol +70 -91
  235. package/contracts/instance/service/ComponentOwnerService.sol +238 -93
  236. package/contracts/instance/service/DistributionService.sol +54 -0
  237. package/contracts/instance/service/IComponentOwnerService.sol +0 -2
  238. package/contracts/instance/service/IDistributionService.sol +12 -0
  239. package/contracts/instance/service/IPoolService.sol +7 -0
  240. package/contracts/instance/service/IProductService.sol +56 -7
  241. package/contracts/instance/service/PoolService.sol +49 -23
  242. package/contracts/instance/service/ProductService.sol +249 -93
  243. package/contracts/registry/ChainNft.sol +42 -14
  244. package/contracts/registry/IChainNft.sol +2 -1
  245. package/contracts/registry/IRegistry.sol +27 -27
  246. package/contracts/registry/IRegistryService.sol +35 -0
  247. package/contracts/registry/ITransferInterceptor.sol +6 -0
  248. package/contracts/registry/Registry.sol +313 -268
  249. package/contracts/registry/RegistryService.sol +441 -0
  250. package/contracts/registry/RegistryServiceManager.sol +63 -0
  251. package/contracts/shared/ContractDeployerLib.sol +72 -0
  252. package/contracts/shared/INftOwnable.sol +22 -0
  253. package/contracts/shared/IRegisterable.sol +8 -15
  254. package/contracts/shared/IVersionable.sol +55 -11
  255. package/contracts/shared/NftOwnable.sol +136 -0
  256. package/contracts/shared/ProxyManager.sol +94 -0
  257. package/contracts/shared/Registerable.sol +62 -59
  258. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  259. package/contracts/shared/Versionable.sol +112 -54
  260. package/contracts/test/TestDistribution.sol +22 -0
  261. package/contracts/test/TestFee.sol +2 -2
  262. package/contracts/test/TestPool.sol +7 -2
  263. package/contracts/test/TestProduct.sol +37 -7
  264. package/contracts/test/TestRegisterable.sol +5 -6
  265. package/contracts/test/TestService.sol +5 -11
  266. package/contracts/types/Fee.sol +10 -5
  267. package/contracts/types/ObjectType.sol +24 -8
  268. package/contracts/types/ReferralId.sol +48 -0
  269. package/contracts/types/RiskId.sol +43 -0
  270. package/contracts/types/RoleId.sol +9 -2
  271. package/contracts/types/UFixed.sol +128 -12
  272. package/contracts/types/Version.sol +9 -0
  273. package/package.json +4 -3
  274. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IIncrementRevert.dbg.json +0 -4
  275. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IIncrementRevert.json +0 -27
  276. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IncrementRevert.dbg.json +0 -4
  277. package/artifacts/contracts/experiment/errors/IncrementRevert.sol/IncrementRevert.json +0 -83
  278. package/artifacts/contracts/experiment/errors/Revert.sol/IRevert.dbg.json +0 -4
  279. package/artifacts/contracts/experiment/errors/Revert.sol/IRevert.json +0 -75
  280. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  281. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  282. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  283. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  284. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  285. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  286. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  287. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  288. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  289. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  290. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  291. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  292. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  293. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  294. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  295. package/contracts/experiment/errors/IncrementRevert.sol +0 -43
  296. package/contracts/experiment/statemachine/README.md +0 -112
  297. package/contracts/instance/module/access/Access.sol +0 -149
  298. package/contracts/instance/module/access/IAccess.sol +0 -53
  299. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  300. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  301. package/contracts/registry/IRegistryLinked.sol +0 -8
  302. package/contracts/shared/IOwnable.sol +0 -6
@@ -14,11 +14,120 @@
14
14
  "internalType": "NftId",
15
15
  "name": "registryNftId",
16
16
  "type": "uint96"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "initialOwner",
21
+ "type": "address"
17
22
  }
18
23
  ],
19
24
  "stateMutability": "nonpayable",
20
25
  "type": "constructor"
21
26
  },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "address",
31
+ "name": "registry",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "NftId",
36
+ "name": "nftId",
37
+ "type": "uint96"
38
+ }
39
+ ],
40
+ "name": "ErrorAlreadyLinked",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "contractAddress",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "ErrorContractNotRegistered",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "account",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "name": "ErrorNotOwner",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [
67
+ {
68
+ "internalType": "address",
69
+ "name": "registryAddress",
70
+ "type": "address"
71
+ }
72
+ ],
73
+ "name": "ErrorNotRegistry",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "registryAddress",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "ErrorRegisterableNotRegistry",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "ErrorRegistryAddressZero",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "address",
96
+ "name": "registry",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "name": "ErrorRegistryAlreadyInitialized",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "ErrorRegistryNotInitialized",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "InvalidInitialization",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "NotInitializing",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "anonymous": false,
120
+ "inputs": [
121
+ {
122
+ "indexed": false,
123
+ "internalType": "uint64",
124
+ "name": "version",
125
+ "type": "uint64"
126
+ }
127
+ ],
128
+ "name": "Initialized",
129
+ "type": "event"
130
+ },
22
131
  {
23
132
  "anonymous": false,
24
133
  "inputs": [
@@ -41,7 +150,7 @@
41
150
  "type": "address"
42
151
  }
43
152
  ],
44
- "name": "LogVersionableActivated",
153
+ "name": "LogVersionableInitialized",
45
154
  "type": "event"
46
155
  },
47
156
  {
@@ -58,27 +167,64 @@
58
167
  "type": "function"
59
168
  },
60
169
  {
61
- "inputs": [
62
- {
63
- "internalType": "address",
64
- "name": "implementation",
65
- "type": "address"
66
- },
170
+ "inputs": [],
171
+ "name": "REGISTERABLE_LOCATION_V1",
172
+ "outputs": [
67
173
  {
68
- "internalType": "address",
69
- "name": "activatedBy",
70
- "type": "address"
174
+ "internalType": "bytes32",
175
+ "name": "",
176
+ "type": "bytes32"
71
177
  }
72
178
  ],
73
- "name": "activate",
74
- "outputs": [],
75
- "stateMutability": "nonpayable",
179
+ "stateMutability": "view",
76
180
  "type": "function"
77
181
  },
78
182
  {
79
183
  "inputs": [],
80
- "name": "getData",
184
+ "name": "getInitialInfo",
81
185
  "outputs": [
186
+ {
187
+ "components": [
188
+ {
189
+ "internalType": "NftId",
190
+ "name": "nftId",
191
+ "type": "uint96"
192
+ },
193
+ {
194
+ "internalType": "NftId",
195
+ "name": "parentNftId",
196
+ "type": "uint96"
197
+ },
198
+ {
199
+ "internalType": "ObjectType",
200
+ "name": "objectType",
201
+ "type": "uint8"
202
+ },
203
+ {
204
+ "internalType": "bool",
205
+ "name": "isInterceptor",
206
+ "type": "bool"
207
+ },
208
+ {
209
+ "internalType": "address",
210
+ "name": "objectAddress",
211
+ "type": "address"
212
+ },
213
+ {
214
+ "internalType": "address",
215
+ "name": "initialOwner",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "internalType": "bytes",
220
+ "name": "data",
221
+ "type": "bytes"
222
+ }
223
+ ],
224
+ "internalType": "struct IRegistry.ObjectInfo",
225
+ "name": "",
226
+ "type": "tuple"
227
+ },
82
228
  {
83
229
  "internalType": "bytes",
84
230
  "name": "data",
@@ -88,6 +234,19 @@
88
234
  "stateMutability": "view",
89
235
  "type": "function"
90
236
  },
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
+ },
91
250
  {
92
251
  "inputs": [],
93
252
  "name": "getMajorVersion",
@@ -120,7 +279,7 @@
120
279
  "outputs": [
121
280
  {
122
281
  "internalType": "NftId",
123
- "name": "nftId",
282
+ "name": "",
124
283
  "type": "uint96"
125
284
  }
126
285
  ],
@@ -133,52 +292,26 @@
133
292
  "outputs": [
134
293
  {
135
294
  "internalType": "address",
136
- "name": "owner",
295
+ "name": "",
137
296
  "type": "address"
138
297
  }
139
298
  ],
140
299
  "stateMutability": "view",
141
300
  "type": "function"
142
301
  },
143
- {
144
- "inputs": [],
145
- "name": "getParentNftId",
146
- "outputs": [
147
- {
148
- "internalType": "NftId",
149
- "name": "nftId",
150
- "type": "uint96"
151
- }
152
- ],
153
- "stateMutability": "view",
154
- "type": "function"
155
- },
156
302
  {
157
303
  "inputs": [],
158
304
  "name": "getRegistry",
159
305
  "outputs": [
160
306
  {
161
307
  "internalType": "contract IRegistry",
162
- "name": "registry",
308
+ "name": "",
163
309
  "type": "address"
164
310
  }
165
311
  ],
166
312
  "stateMutability": "view",
167
313
  "type": "function"
168
314
  },
169
- {
170
- "inputs": [],
171
- "name": "getType",
172
- "outputs": [
173
- {
174
- "internalType": "ObjectType",
175
- "name": "",
176
- "type": "uint8"
177
- }
178
- ],
179
- "stateMutability": "pure",
180
- "type": "function"
181
- },
182
315
  {
183
316
  "inputs": [],
184
317
  "name": "getVersion",
@@ -270,6 +403,29 @@
270
403
  "stateMutability": "view",
271
404
  "type": "function"
272
405
  },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "address",
410
+ "name": "implementation",
411
+ "type": "address"
412
+ },
413
+ {
414
+ "internalType": "address",
415
+ "name": "activatedBy",
416
+ "type": "address"
417
+ },
418
+ {
419
+ "internalType": "bytes",
420
+ "name": "data",
421
+ "type": "bytes"
422
+ }
423
+ ],
424
+ "name": "initialize",
425
+ "outputs": [],
426
+ "stateMutability": "nonpayable",
427
+ "type": "function"
428
+ },
273
429
  {
274
430
  "inputs": [
275
431
  {
@@ -278,7 +434,7 @@
278
434
  "type": "uint24"
279
435
  }
280
436
  ],
281
- "name": "isActivated",
437
+ "name": "isInitialized",
282
438
  "outputs": [
283
439
  {
284
440
  "internalType": "bool",
@@ -291,14 +447,8 @@
291
447
  },
292
448
  {
293
449
  "inputs": [],
294
- "name": "register",
295
- "outputs": [
296
- {
297
- "internalType": "NftId",
298
- "name": "nftId",
299
- "type": "uint96"
300
- }
301
- ],
450
+ "name": "linkToRegisteredNftId",
451
+ "outputs": [],
302
452
  "stateMutability": "nonpayable",
303
453
  "type": "function"
304
454
  },
@@ -320,20 +470,51 @@
320
470
  ],
321
471
  "stateMutability": "view",
322
472
  "type": "function"
473
+ },
474
+ {
475
+ "inputs": [
476
+ {
477
+ "internalType": "address",
478
+ "name": "implementation",
479
+ "type": "address"
480
+ },
481
+ {
482
+ "internalType": "address",
483
+ "name": "activatedBy",
484
+ "type": "address"
485
+ },
486
+ {
487
+ "internalType": "bytes",
488
+ "name": "data",
489
+ "type": "bytes"
490
+ }
491
+ ],
492
+ "name": "upgrade",
493
+ "outputs": [],
494
+ "stateMutability": "nonpayable",
495
+ "type": "function"
323
496
  }
324
497
  ],
325
- "bytecode": "0x60e06040523480156200001157600080fd5b50604051620016703803806200167083398101604081905262000034916200071f565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055818181816001600160a01b038216620000d05760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000120573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000146919062000774565b620001945760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c7565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000212919062000774565b6200026c5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c7565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550620002bc905060003362000302565b631b4612f160e31b60009081526020527ffc58a5a01198e68c5a5d0bcd463f9ab550fc4337b1df271aed6dbb33d25fef25805460ff191660011790555050505062000818565b60006200030e620005da565b90506200031b8162000667565b156200037a5760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401620000c7565b600254156200043b57600280546000919062000399906001906200079f565b81548110620003ac57620003ac620007c1565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050620003df82826200070d565b620004395760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401620000c7565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b03808616602084015284169082015260608101620004c54290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d441990620005cd9083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156200063c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006629190620007d7565b905090565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af4158015620006e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007069190620007fe565b1192915050565b62ffffff808216908316115b92915050565b600080604083850312156200073357600080fd5b82516001600160a01b03811681146200074b57600080fd5b60208401519092506001600160601b03811681146200076957600080fd5b809150509250929050565b6000602082840312156200078757600080fd5b815180151581146200079857600080fd5b9392505050565b818103818111156200071957634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060208284031215620007ea57600080fd5b815162ffffff811681146200079857600080fd5b6000602082840312156200081157600080fd5b5051919050565b60805160a05160c051610e0c620008646000396000610712015260006101e801526000818161033101528181610595015281816106220152818161069301526107550152610e0c6000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80634d459c90116100a2578063946dfcfe11610071578063946dfcfe146103795780639555c4db1461038a578063a3f4df7e1461039f578063b88da759146103c9578063cde749f4146103dc57600080fd5b80634d459c90146102205780635ab1bd531461032f578063644c45e014610369578063893d20e81461037157600080fd5b806317d7de7c116100de57806317d7de7c146101965780631aa3a008146101c657806331b62a3b146101e65780633bc5de301461020c57600080fd5b806301ffc9a7146101105780630abd8434146101525780630d8e6e2c1461016557806315dae03e14610181575b600080fd5b61013d61011e366004610bde565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61013d610160366004610c23565b6103e4565b61016d610487565b60405162ffffff9091168152602001610149565b60285b60405160ff9091168152602001610149565b60408051808201909152600b81526a546573745365727669636560a81b60208201525b6040516101499190610c86565b6101ce610511565b6040516001600160601b039091168152602001610149565b7f00000000000000000000000000000000000000000000000000000000000000006101ce565b6040805160208101909152600081526101b9565b6102d261022e366004610c23565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610149565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610149565b6101ce61060a565b610351610671565b600254604051908152602001610149565b61039d610398366004610cae565b6107ce565b005b6101b96040518060400160405280600b81526020016a546573745365727669636560a81b81525081565b61016d6103d7366004610ce7565b6107dc565b61018461081d565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190610d00565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610d19565b905090565b600061051b610671565b6001600160a01b0316336001600160a01b0316146105805760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af11580156105e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610d36565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156105e6573d6000803e3d6000fd5b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156106da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fe9190610d36565b905061070b8160006108fa565b15610737577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156107a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c89190610d5f565b91505090565b6107d88282610910565b5050565b6000600282815481106107f1576107f1610d7c565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561085d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108819190610d19565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156108d6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610d92565b6001600160601b03828116908216145b92915050565b600061091a610487565b9050610925816103e4565b156109825760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401610577565b60025415610a4157600280546000919061099e90600190610db5565b815481106109ae576109ae610d7c565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506109e7828262ffffff90811691161190565b610a3f5760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401610577565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b03808616602084015284169082015260608101610aca4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d441990610bd19083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b600060208284031215610bf057600080fd5b81356001600160e01b031981168114610c0857600080fd5b9392505050565b62ffffff81168114610c2057600080fd5b50565b600060208284031215610c3557600080fd5b8135610c0881610c0f565b6000815180845260005b81811015610c6657602081850181015186830182015201610c4a565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610c086020830184610c40565b6001600160a01b0381168114610c2057600080fd5b60008060408385031215610cc157600080fd5b8235610ccc81610c99565b91506020830135610cdc81610c99565b809150509250929050565b600060208284031215610cf957600080fd5b5035919050565b600060208284031215610d1257600080fd5b5051919050565b600060208284031215610d2b57600080fd5b8151610c0881610c0f565b600060208284031215610d4857600080fd5b81516001600160601b0381168114610c0857600080fd5b600060208284031215610d7157600080fd5b8151610c0881610c99565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610da457600080fd5b815160ff81168114610c0857600080fd5b8181038181111561090a57634e487b7160e01b600052601160045260246000fdfea2646970667358221220cf53b83d60ef211931181e29e4190fc3472384102bfb073672ec9548eae94c9364736f6c63430008140033",
326
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80634d459c90116100a2578063946dfcfe11610071578063946dfcfe146103795780639555c4db1461038a578063a3f4df7e1461039f578063b88da759146103c9578063cde749f4146103dc57600080fd5b80634d459c90146102205780635ab1bd531461032f578063644c45e014610369578063893d20e81461037157600080fd5b806317d7de7c116100de57806317d7de7c146101965780631aa3a008146101c657806331b62a3b146101e65780633bc5de301461020c57600080fd5b806301ffc9a7146101105780630abd8434146101525780630d8e6e2c1461016557806315dae03e14610181575b600080fd5b61013d61011e366004610bde565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61013d610160366004610c23565b6103e4565b61016d610487565b60405162ffffff9091168152602001610149565b60285b60405160ff9091168152602001610149565b60408051808201909152600b81526a546573745365727669636560a81b60208201525b6040516101499190610c86565b6101ce610511565b6040516001600160601b039091168152602001610149565b7f00000000000000000000000000000000000000000000000000000000000000006101ce565b6040805160208101909152600081526101b9565b6102d261022e366004610c23565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091525062ffffff908116600090815260016020818152604092839020835160a0810185528154958616815263010000009095046001600160a01b03908116928601929092529091015490811691830191909152600160a01b810464ffffffffff166060830152600160c81b900463ffffffff16608082015290565b60408051825162ffffff1681526020808401516001600160a01b039081169183019190915283830151169181019190915260608083015164ffffffffff169082015260809182015163ffffffff169181019190915260a001610149565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610149565b6101ce61060a565b610351610671565b600254604051908152602001610149565b61039d610398366004610cae565b6107ce565b005b6101b96040518060400160405280600b81526020016a546573745365727669636560a81b81525081565b61016d6103d7366004610ce7565b6107dc565b61018461081d565b62ffffff81166000908152600160208190526040808320909101549051631bbffab160e21b8152600160c81b90910463ffffffff166004820152819073__$5f476116ae21c5294e0c0761c07efa7e1c$__90636effeac490602401602060405180830381865af415801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190610d00565b1192915050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__90632efe011390606401602060405180830381865af41580156104e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610d19565b905090565b600061051b610671565b6001600160a01b0316336001600160a01b0316146105805760405162461bcd60e51b815260206004820152601760248201527f4552524f523a5247422d3030313a4e4f545f4f574e455200000000000000000060448201526064015b60405180910390fd5b604051632210724360e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634420e486906024016020604051808303816000875af11580156105e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610d36565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156105e6573d6000803e3d6000fd5b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156106da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fe9190610d36565b905061070b8160006108fa565b15610737577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156107a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c89190610d5f565b91505090565b6107d88282610910565b5050565b6000600282815481106107f1576107f1610d7c565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff169050919050565b6000306001600160a01b0316630d8e6e2c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561085d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108819190610d19565b60405163c9e66e2960e01b815262ffffff909116600482015273__$c0fcb9c1c2e971ebe3d8745a7e2c5cc364$__9063c9e66e2990602401602060405180830381865af41580156108d6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050c9190610d92565b6001600160601b03828116908216145b92915050565b600061091a610487565b9050610925816103e4565b156109825760405162461bcd60e51b815260206004820152602760248201527f4552524f523a56524e2d3030313a56455253494f4e5f414c52454144595f41436044820152661512559055115160ca1b6064820152608401610577565b60025415610a4157600280546000919061099e90600190610db5565b815481106109ae576109ae610d7c565b90600052602060002090600a91828204019190066003029054906101000a900462ffffff1690506109e7828262ffffff90811691161190565b610a3f5760405162461bcd60e51b8152602060048201526024808201527f4552524f523a56524e2d3030323a56455253494f4e5f4e4f545f494e4352454160448201526353494e4760e01b6064820152608401610577565b505b60028054600181018255600091909152600a8082047f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805462ffffff808616600394909506939093026101000a848102930219169190911790556040805160a0810182529182526001600160a01b03808616602084015284169082015260608101610aca4290565b64ffffffffff1681526020014363ffffffff90811690915262ffffff80841660009081526001602081815260409283902086518154928801516001600160a01b039081166301000000026001600160b81b0319909416919096161791909117815585830151910180546060870151608090970151909516600160c81b0263ffffffff60c81b1964ffffffffff909716600160a01b026001600160c81b031990961692909416919091179390931793909316179055517f68e7327fca0057a787cde34ababb9ef9844ba8065ee03e8781d8122fc15d441990610bd19083908690869062ffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a1505050565b600060208284031215610bf057600080fd5b81356001600160e01b031981168114610c0857600080fd5b9392505050565b62ffffff81168114610c2057600080fd5b50565b600060208284031215610c3557600080fd5b8135610c0881610c0f565b6000815180845260005b81811015610c6657602081850181015186830182015201610c4a565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610c086020830184610c40565b6001600160a01b0381168114610c2057600080fd5b60008060408385031215610cc157600080fd5b8235610ccc81610c99565b91506020830135610cdc81610c99565b809150509250929050565b600060208284031215610cf957600080fd5b5035919050565b600060208284031215610d1257600080fd5b5051919050565b600060208284031215610d2b57600080fd5b8151610c0881610c0f565b600060208284031215610d4857600080fd5b81516001600160601b0381168114610c0857600080fd5b600060208284031215610d7157600080fd5b8151610c0881610c99565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610da457600080fd5b815160ff81168114610c0857600080fd5b8181038181111561090a57634e487b7160e01b600052601160045260246000fdfea2646970667358221220cf53b83d60ef211931181e29e4190fc3472384102bfb073672ec9548eae94c9364736f6c63430008140033",
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",
327
500
  "linkReferences": {
328
501
  "contracts/types/Blocknumber.sol": {
329
502
  "BlocknumberLib": [
330
503
  {
331
504
  "length": 20,
332
- "start": 1701
505
+ "start": 4367
506
+ }
507
+ ]
508
+ },
509
+ "contracts/types/NftId.sol": {
510
+ "NftIdLib": [
511
+ {
512
+ "length": 20,
513
+ "start": 3783
333
514
  },
334
515
  {
335
516
  "length": 20,
336
- "start": 3206
517
+ "start": 4511
337
518
  }
338
519
  ]
339
520
  },
@@ -341,15 +522,23 @@
341
522
  "VersionLib": [
342
523
  {
343
524
  "length": 20,
344
- "start": 1537
525
+ "start": 555
526
+ },
527
+ {
528
+ "length": 20,
529
+ "start": 905
345
530
  },
346
531
  {
347
532
  "length": 20,
348
- "start": 3346
533
+ "start": 3258
349
534
  },
350
535
  {
351
536
  "length": 20,
352
- "start": 4352
537
+ "start": 4751
538
+ },
539
+ {
540
+ "length": 20,
541
+ "start": 5250
353
542
  }
354
543
  ]
355
544
  }
@@ -359,7 +548,19 @@
359
548
  "BlocknumberLib": [
360
549
  {
361
550
  "length": 20,
362
- "start": 1058
551
+ "start": 2243
552
+ }
553
+ ]
554
+ },
555
+ "contracts/types/NftId.sol": {
556
+ "NftIdLib": [
557
+ {
558
+ "length": 20,
559
+ "start": 1659
560
+ },
561
+ {
562
+ "length": 20,
563
+ "start": 2387
363
564
  }
364
565
  ]
365
566
  },
@@ -367,11 +568,15 @@
367
568
  "VersionLib": [
368
569
  {
369
570
  "length": 20,
370
- "start": 1198
571
+ "start": 1134
572
+ },
573
+ {
574
+ "length": 20,
575
+ "start": 2627
371
576
  },
372
577
  {
373
578
  "length": 20,
374
- "start": 2204
579
+ "start": 3126
375
580
  }
376
581
  ]
377
582
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/13c4329f81ddc934c5d7a5db64b32ef7.json"
3
+ "buildInfo": "../../../build-info/b012f4ed156d977fd771c60cd60f52df.json"
4
4
  }