@etherisc/gif-next 0.0.2-d96b9e1-825 → 0.0.2-da06f3b-803

Sign up to get free protection for your applications and to get access to all the features.
Files changed (418) hide show
  1. package/README.md +255 -8
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +656 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +849 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → components/IComponent.sol/IComponent.json} +244 -241
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +648 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +429 -72
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +533 -64
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +603 -76
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +711 -67
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +2 -2
  26. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +2 -2
  28. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +2 -2
  30. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +2 -2
  32. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  36. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  42. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  44. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  45. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  46. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  47. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +2 -2
  48. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  49. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +2 -2
  50. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  51. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  52. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  53. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  54. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  55. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1137 -1023
  56. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  57. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +592 -0
  58. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  59. package/artifacts/contracts/instance/Instance.sol/Instance.json +2001 -1098
  60. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1081 -0
  62. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1381 -0
  64. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  65. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1050 -0
  66. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +473 -0
  68. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  70. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +603 -0
  72. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +45 -127
  74. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  75. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  76. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +55 -245
  77. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  78. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +6 -6
  79. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  80. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +228 -0
  81. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  82. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  83. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  84. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IDistribution.sol/IDistribution.json} +2 -2
  85. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  86. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  87. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  88. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  89. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  90. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  91. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  92. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  93. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  94. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1102 -0
  95. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  96. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +449 -0
  97. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  98. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +772 -0
  99. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  100. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +437 -0
  101. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  102. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +715 -0
  103. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  104. package/artifacts/contracts/instance/{base/IService.sol/IService.json → service/IDistributionService.sol/IDistributionService.json} +202 -61
  105. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  106. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +766 -0
  107. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  108. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +198 -80
  109. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  110. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +204 -150
  111. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  112. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1227 -0
  113. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  114. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +505 -0
  115. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  116. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +423 -88
  117. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  118. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +437 -0
  119. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
  120. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +398 -215
  121. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  122. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +437 -0
  123. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  124. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +186 -12
  125. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  126. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +474 -36
  127. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  128. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +981 -0
  129. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  130. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  131. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  132. package/artifacts/contracts/registry/Registry.sol/Registry.json +481 -108
  133. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  134. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  135. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  136. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1200 -0
  137. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  138. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +464 -0
  139. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  140. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  141. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  142. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +394 -0
  143. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  144. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  145. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  146. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  147. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  148. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +127 -0
  149. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  150. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +112 -37
  151. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  152. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +169 -117
  153. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  154. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
  155. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  156. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +171 -0
  157. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  158. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +362 -0
  159. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  160. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +193 -32
  161. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  162. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +221 -71
  163. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  165. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  166. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  167. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
  169. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  170. package/artifacts/contracts/test/TestFee.sol/TestFee.json +10 -10
  171. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  172. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +207 -31
  173. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  174. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +44 -10
  175. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  176. package/artifacts/contracts/test/TestService.sol/TestService.json +292 -63
  177. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  178. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  179. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  180. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +12 -12
  181. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  182. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +103 -23
  183. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  184. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  185. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  186. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +2 -2
  187. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +2 -2
  189. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  190. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +2 -2
  191. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  193. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Fee.sol/FeeLib.json +52 -13
  195. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  197. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  198. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +4 -4
  199. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  200. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +26 -3
  201. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  202. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  203. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  204. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  205. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  206. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  207. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  208. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  209. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  210. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  211. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  212. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  213. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  214. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  215. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  216. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  217. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  218. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  219. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  220. package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
  221. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  222. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  223. package/contracts/components/Component.sol +216 -0
  224. package/contracts/components/Distribution.sol +153 -0
  225. package/contracts/components/IComponent.sol +43 -0
  226. package/contracts/components/IDistributionComponent.sol +47 -0
  227. package/contracts/components/IPoolComponent.sol +13 -19
  228. package/contracts/components/IProductComponent.sol +29 -9
  229. package/contracts/components/Pool.sol +105 -71
  230. package/contracts/components/Product.sol +189 -40
  231. package/contracts/experiment/cloning/Cloner.sol +47 -0
  232. package/contracts/instance/BundleManager.sol +125 -0
  233. package/contracts/instance/Cloneable.sol +46 -0
  234. package/contracts/instance/IInstance.sol +65 -45
  235. package/contracts/instance/IInstanceService.sol +42 -0
  236. package/contracts/instance/Instance.sol +254 -53
  237. package/contracts/instance/InstanceAccessManager.sol +414 -0
  238. package/contracts/instance/InstanceReader.sol +293 -0
  239. package/contracts/instance/InstanceService.sol +473 -0
  240. package/contracts/instance/InstanceServiceManager.sol +54 -0
  241. package/contracts/instance/ObjectManager.sol +84 -0
  242. package/contracts/instance/base/ComponentService.sol +134 -0
  243. package/contracts/instance/base/IKeyValueStore.sol +13 -13
  244. package/contracts/instance/base/ILifecycle.sol +3 -3
  245. package/contracts/instance/base/KeyValueStore.sol +61 -36
  246. package/contracts/instance/base/Lifecycle.sol +16 -11
  247. package/contracts/instance/module/IAccess.sol +48 -0
  248. package/contracts/instance/module/IBundle.sol +20 -0
  249. package/contracts/instance/module/IDistribution.sol +39 -0
  250. package/contracts/instance/module/IPolicy.sol +45 -0
  251. package/contracts/instance/module/IRisk.sol +11 -0
  252. package/contracts/instance/module/ISetup.sol +46 -0
  253. package/contracts/instance/module/ITreasury.sol +23 -0
  254. package/contracts/instance/service/BundleService.sol +293 -0
  255. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  256. package/contracts/instance/service/DistributionService.sol +106 -0
  257. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  258. package/contracts/instance/service/IBundleService.sol +44 -0
  259. package/contracts/instance/service/IDistributionService.sol +12 -0
  260. package/contracts/instance/service/IPolicyService.sol +94 -0
  261. package/contracts/instance/service/IPoolService.sol +8 -18
  262. package/contracts/instance/service/IProductService.sol +21 -39
  263. package/contracts/instance/service/PolicyService.sol +538 -0
  264. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  265. package/contracts/instance/service/PoolService.sol +78 -91
  266. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  267. package/contracts/instance/service/ProductService.sol +168 -289
  268. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  269. package/contracts/registry/ChainNft.sol +79 -36
  270. package/contracts/registry/IRegistry.sol +67 -24
  271. package/contracts/registry/IRegistryService.sol +65 -0
  272. package/contracts/registry/ITransferInterceptor.sol +6 -0
  273. package/contracts/registry/Registry.sol +363 -287
  274. package/contracts/registry/RegistryAccessManager.sol +216 -0
  275. package/contracts/registry/RegistryService.sol +262 -0
  276. package/contracts/registry/RegistryServiceManager.sol +62 -0
  277. package/contracts/registry/ReleaseManager.sol +332 -0
  278. package/contracts/registry/TokenRegistry.sol +112 -0
  279. package/contracts/shared/ContractDeployerLib.sol +72 -0
  280. package/contracts/shared/ERC165.sol +6 -2
  281. package/contracts/shared/INftOwnable.sol +22 -0
  282. package/contracts/shared/IRegisterable.sol +8 -17
  283. package/contracts/shared/IService.sol +16 -0
  284. package/contracts/shared/IVersionable.sol +55 -11
  285. package/contracts/shared/NftOwnable.sol +139 -0
  286. package/contracts/shared/ProxyManager.sol +94 -0
  287. package/contracts/shared/Registerable.sol +59 -59
  288. package/contracts/shared/Service.sol +60 -0
  289. package/contracts/shared/TokenHandler.sol +27 -0
  290. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  291. package/contracts/shared/Versionable.sol +113 -55
  292. package/contracts/test/TestFee.sol +2 -2
  293. package/contracts/test/TestRegisterable.sol +5 -6
  294. package/contracts/test/TestRoleId.sol +2 -2
  295. package/contracts/test/TestService.sol +7 -14
  296. package/contracts/test/Usdc.sol +26 -0
  297. package/contracts/types/DistributorType.sol +55 -0
  298. package/contracts/types/Fee.sol +10 -5
  299. package/contracts/types/Key32.sol +8 -3
  300. package/contracts/types/NftIdSet.sol +26 -24
  301. package/contracts/types/NumberId.sol +52 -0
  302. package/contracts/types/ObjectType.sol +51 -14
  303. package/contracts/types/Referral.sol +85 -0
  304. package/contracts/types/RiskId.sol +43 -0
  305. package/contracts/types/RoleId.sol +68 -11
  306. package/contracts/types/StateId.sol +5 -1
  307. package/contracts/types/Timestamp.sol +7 -3
  308. package/contracts/types/UFixed.sol +144 -25
  309. package/contracts/types/Version.sol +13 -1
  310. package/package.json +9 -5
  311. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  312. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  313. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  314. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -174
  315. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  316. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  317. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  318. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  319. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  320. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -63
  321. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  322. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  323. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  324. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  325. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
  326. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  327. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  328. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  329. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  330. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  331. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  332. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -296
  333. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  334. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  335. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -296
  336. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  337. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  338. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  339. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  340. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  341. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  342. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  343. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -188
  344. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  345. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  346. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  347. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -188
  348. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  349. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  350. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -261
  351. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  352. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -261
  353. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  354. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  355. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  356. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -149
  357. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  358. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -149
  359. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  360. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  361. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  362. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  363. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  364. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  365. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  366. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -533
  367. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  368. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  369. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  370. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -533
  371. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  372. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -491
  373. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  374. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  375. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  376. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
  377. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  378. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  379. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  380. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -387
  381. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  382. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -393
  383. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  384. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -453
  385. package/contracts/components/BaseComponent.sol +0 -88
  386. package/contracts/components/IBaseComponent.sol +0 -19
  387. package/contracts/experiment/statemachine/README.md +0 -112
  388. package/contracts/instance/IInstanceLinked.sol +0 -8
  389. package/contracts/instance/base/ComponentServiceBase.sol +0 -42
  390. package/contracts/instance/base/IInstanceBase.sol +0 -14
  391. package/contracts/instance/base/IService.sol +0 -15
  392. package/contracts/instance/base/InstanceBase.sol +0 -80
  393. package/contracts/instance/base/ModuleBase.sol +0 -52
  394. package/contracts/instance/base/ServiceBase.sol +0 -37
  395. package/contracts/instance/module/access/Access.sol +0 -149
  396. package/contracts/instance/module/access/IAccess.sol +0 -53
  397. package/contracts/instance/module/bundle/BundleModule.sol +0 -136
  398. package/contracts/instance/module/bundle/IBundle.sol +0 -58
  399. package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
  400. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  401. package/contracts/instance/module/component/ComponentModule.sol +0 -95
  402. package/contracts/instance/module/component/IComponent.sol +0 -53
  403. package/contracts/instance/module/policy/IPolicy.sol +0 -60
  404. package/contracts/instance/module/policy/PolicyModule.sol +0 -76
  405. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  406. package/contracts/instance/module/pool/PoolModule.sol +0 -87
  407. package/contracts/instance/module/risk/IRisk.sol +0 -10
  408. package/contracts/instance/module/risk/RiskModule.sol +0 -8
  409. package/contracts/instance/module/treasury/ITreasury.sol +0 -103
  410. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  411. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -152
  412. package/contracts/instance/service/ComponentOwnerService.sol +0 -170
  413. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  414. package/contracts/registry/IChainNft.sol +0 -21
  415. package/contracts/registry/IRegistryLinked.sol +0 -8
  416. package/contracts/shared/IOwnable.sol +0 -6
  417. package/contracts/test/TestPool.sol +0 -22
  418. package/contracts/test/TestProduct.sol +0 -44
@@ -5,11 +5,6 @@
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [
8
- {
9
- "internalType": "uint256",
10
- "name": "amount",
11
- "type": "uint256"
12
- },
13
8
  {
14
9
  "components": [
15
10
  {
@@ -26,6 +21,11 @@
26
21
  "internalType": "struct Fee",
27
22
  "name": "fee",
28
23
  "type": "tuple"
24
+ },
25
+ {
26
+ "internalType": "uint256",
27
+ "name": "amount",
28
+ "type": "uint256"
29
29
  }
30
30
  ],
31
31
  "name": "calculateFee",
@@ -123,6 +123,37 @@
123
123
  "stateMutability": "pure",
124
124
  "type": "function"
125
125
  },
126
+ {
127
+ "inputs": [
128
+ {
129
+ "internalType": "uint8",
130
+ "name": "percent",
131
+ "type": "uint8"
132
+ }
133
+ ],
134
+ "name": "percentageFee",
135
+ "outputs": [
136
+ {
137
+ "components": [
138
+ {
139
+ "internalType": "UFixed",
140
+ "name": "fractionalFee",
141
+ "type": "uint256"
142
+ },
143
+ {
144
+ "internalType": "uint256",
145
+ "name": "fixedFee",
146
+ "type": "uint256"
147
+ }
148
+ ],
149
+ "internalType": "struct Fee",
150
+ "name": "fee",
151
+ "type": "tuple"
152
+ }
153
+ ],
154
+ "stateMutability": "pure",
155
+ "type": "function"
156
+ },
126
157
  {
127
158
  "inputs": [
128
159
  {
@@ -185,32 +216,40 @@
185
216
  "type": "function"
186
217
  }
187
218
  ],
188
- "bytecode": "0x6109e2610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c80632bd182d3146100665780638de0a4c21461008457806395248868146100b4578063c66fb3ae146100e4578063c7010dfa14610115575b600080fd5b61006e610145565b60405161007b91906104e2565b60405180910390f35b61009e60048036038101906100999190610645565b610169565b6040516100ab919061068d565b60405180910390f35b6100ce60048036038101906100c991906106a8565b610189565b6040516100db919061068d565b60405180910390f35b6100fe60048036038101906100f991906106e8565b6101b8565b60405161010c929190610737565b60405180910390f35b61012f600480360381019061012a9190610760565b6102e5565b60405161013c91906104e2565b60405180910390f35b61014d610445565b6040518060400160405280600081526020016000815250905090565b6000808260200151148015610182575060008260000151145b9050919050565b6000816020015183602001511480156101b057506101af8360000151836000015161030a565b5b905092915050565b600080600061024273__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__6345ebb61e876040518263ffffffff1660e01b81526004016101f791906107a0565b602060405180830381865af4158015610214573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023891906107d0565b8560000151610317565b905083602001518173__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__6344aa683690916040518263ffffffff1660e01b8152600401610282919061080c565b602060405180830381865af415801561029f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c3919061083c565b6102cd9190610898565b925082856102db91906108cc565b9150509250929050565b6102ed610445565b604051806040016040528084815260200183815250905092915050565b6000818314905092915050565b600061032c8383670de0b6b3a7640000610334565b905092915050565b600080600080198587098587029250828110838203039150506000810361036f5783828161036557610364610900565b5b049250505061043e565b8084116103b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a89061098c565b60405180910390fd5b60008486880990508281118203915080830392506000600186190186169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b604051806040016040528060008152602001600081525090565b6000819050919050565b6000819050919050565b600061048e6104896104848461045f565b610469565b61045f565b9050919050565b61049e81610473565b82525050565b6104ad8161045f565b82525050565b6040820160008201516104c96000850182610495565b5060208201516104dc60208501826104a4565b50505050565b60006040820190506104f760008301846104b3565b92915050565b6000604051905090565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61055a82610511565b810181811067ffffffffffffffff8211171561057957610578610522565b5b80604052505050565b600061058c6104fd565b90506105988282610551565b919050565b6105a68161045f565b81146105b157600080fd5b50565b6000813590506105c38161059d565b92915050565b6105d28161045f565b81146105dd57600080fd5b50565b6000813590506105ef816105c9565b92915050565b60006040828403121561060b5761060a61050c565b5b6106156040610582565b90506000610625848285016105b4565b6000830152506020610639848285016105e0565b60208301525092915050565b60006040828403121561065b5761065a610507565b5b6000610669848285016105f5565b91505092915050565b60008115159050919050565b61068781610672565b82525050565b60006020820190506106a2600083018461067e565b92915050565b600080608083850312156106bf576106be610507565b5b60006106cd858286016105f5565b92505060406106de858286016105f5565b9150509250929050565b600080606083850312156106ff576106fe610507565b5b600061070d858286016105e0565b925050602061071e858286016105f5565b9150509250929050565b6107318161045f565b82525050565b600060408201905061074c6000830185610728565b6107596020830184610728565b9392505050565b6000806040838503121561077757610776610507565b5b6000610785858286016105b4565b9250506020610796858286016105e0565b9150509250929050565b60006020820190506107b56000830184610728565b92915050565b6000815190506107ca8161059d565b92915050565b6000602082840312156107e6576107e5610507565b5b60006107f4848285016107bb565b91505092915050565b61080681610473565b82525050565b600060208201905061082160008301846107fd565b92915050565b600081519050610836816105c9565b92915050565b60006020828403121561085257610851610507565b5b600061086084828501610827565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006108a38261045f565b91506108ae8361045f565b92508282019050808211156108c6576108c5610869565b5b92915050565b60006108d78261045f565b91506108e28361045f565b92508282039050818111156108fa576108f9610869565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082825260208201905092915050565b7f4d6174683a206d756c446976206f766572666c6f770000000000000000000000600082015250565b600061097660158361092f565b915061098182610940565b602082019050919050565b600060208201905081810360008301526109a581610969565b905091905056fea26469706673582212205803ef57433457e2d4f2b6a903a086e0dc38d0c20358c0cebc688f4c49590c7864736f6c63430008140033",
189
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c80632bd182d3146100665780638de0a4c21461008457806395248868146100b4578063c66fb3ae146100e4578063c7010dfa14610115575b600080fd5b61006e610145565b60405161007b91906104e2565b60405180910390f35b61009e60048036038101906100999190610645565b610169565b6040516100ab919061068d565b60405180910390f35b6100ce60048036038101906100c991906106a8565b610189565b6040516100db919061068d565b60405180910390f35b6100fe60048036038101906100f991906106e8565b6101b8565b60405161010c929190610737565b60405180910390f35b61012f600480360381019061012a9190610760565b6102e5565b60405161013c91906104e2565b60405180910390f35b61014d610445565b6040518060400160405280600081526020016000815250905090565b6000808260200151148015610182575060008260000151145b9050919050565b6000816020015183602001511480156101b057506101af8360000151836000015161030a565b5b905092915050565b600080600061024273__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__6345ebb61e876040518263ffffffff1660e01b81526004016101f791906107a0565b602060405180830381865af4158015610214573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023891906107d0565b8560000151610317565b905083602001518173__$fa7f345063a1bf0cf2bd14a32ccc1b6018$__6344aa683690916040518263ffffffff1660e01b8152600401610282919061080c565b602060405180830381865af415801561029f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c3919061083c565b6102cd9190610898565b925082856102db91906108cc565b9150509250929050565b6102ed610445565b604051806040016040528084815260200183815250905092915050565b6000818314905092915050565b600061032c8383670de0b6b3a7640000610334565b905092915050565b600080600080198587098587029250828110838203039150506000810361036f5783828161036557610364610900565b5b049250505061043e565b8084116103b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a89061098c565b60405180910390fd5b60008486880990508281118203915080830392506000600186190186169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b604051806040016040528060008152602001600081525090565b6000819050919050565b6000819050919050565b600061048e6104896104848461045f565b610469565b61045f565b9050919050565b61049e81610473565b82525050565b6104ad8161045f565b82525050565b6040820160008201516104c96000850182610495565b5060208201516104dc60208501826104a4565b50505050565b60006040820190506104f760008301846104b3565b92915050565b6000604051905090565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61055a82610511565b810181811067ffffffffffffffff8211171561057957610578610522565b5b80604052505050565b600061058c6104fd565b90506105988282610551565b919050565b6105a68161045f565b81146105b157600080fd5b50565b6000813590506105c38161059d565b92915050565b6105d28161045f565b81146105dd57600080fd5b50565b6000813590506105ef816105c9565b92915050565b60006040828403121561060b5761060a61050c565b5b6106156040610582565b90506000610625848285016105b4565b6000830152506020610639848285016105e0565b60208301525092915050565b60006040828403121561065b5761065a610507565b5b6000610669848285016105f5565b91505092915050565b60008115159050919050565b61068781610672565b82525050565b60006020820190506106a2600083018461067e565b92915050565b600080608083850312156106bf576106be610507565b5b60006106cd858286016105f5565b92505060406106de858286016105f5565b9150509250929050565b600080606083850312156106ff576106fe610507565b5b600061070d858286016105e0565b925050602061071e858286016105f5565b9150509250929050565b6107318161045f565b82525050565b600060408201905061074c6000830185610728565b6107596020830184610728565b9392505050565b6000806040838503121561077757610776610507565b5b6000610785858286016105b4565b9250506020610796858286016105e0565b9150509250929050565b60006020820190506107b56000830184610728565b92915050565b6000815190506107ca8161059d565b92915050565b6000602082840312156107e6576107e5610507565b5b60006107f4848285016107bb565b91505092915050565b61080681610473565b82525050565b600060208201905061082160008301846107fd565b92915050565b600081519050610836816105c9565b92915050565b60006020828403121561085257610851610507565b5b600061086084828501610827565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006108a38261045f565b91506108ae8361045f565b92508282019050808211156108c6576108c5610869565b5b92915050565b60006108d78261045f565b91506108e28361045f565b92508282039050818111156108fa576108f9610869565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082825260208201905092915050565b7f4d6174683a206d756c446976206f766572666c6f770000000000000000000000600082015250565b600061097660158361092f565b915061098182610940565b602082019050919050565b600060208201905081810360008301526109a581610969565b905091905056fea26469706673582212205803ef57433457e2d4f2b6a903a086e0dc38d0c20358c0cebc688f4c49590c7864736f6c63430008140033",
219
+ "bytecode": "0x61062361003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806304baf60c146100715780632bd182d31461009e5780635faa955b146100df5780638de0a4c2146100f25780639524886814610115578063c7010dfa14610128575b600080fd5b61008461007f3660046104c1565b61015c565b604080519283526020830191909152015b60405180910390f35b604080518082018252600080825260209182018190528251808401909352808352908201525b60408051825181526020928301519281019290925201610095565b6100c46100ed3660046104ec565b610282565b61010561010036600461050f565b61032b565b6040519015158152602001610095565b61010561012336600461052b565b610346565b6100c4610136366004610560565b604080518082018252600080825260209182015281518083019092529281529182015290565b60008060006101e573__$5ac3274b8cf1e01ea223bf093142af05b0$__6345ebb61e866040518263ffffffff1660e01b815260040161019d91815260200190565b602060405180830381865af41580156101ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101de9190610582565b8651610367565b6020860151604051632255341b60e11b8152600481018390529192509073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401602060405180830381865af415801561023e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102629190610582565b61026c91906105b1565b925061027883856105c4565b9150509250929050565b60408051808201825260008082526020820152815180830192839052631488c84560e01b90925260ff831660448301526001196064830152908073__$5ac3274b8cf1e01ea223bf093142af05b0$__631488c84560848301602060405180830381865af41580156102f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031b9190610582565b8152600060209091015292915050565b60008160200151600014801561034057508151155b92915050565b600081602001518360200151148015610360575082518251145b9392505050565b60006103608383670de0b6b3a764000060008080600019858709858702925082811083820303915050806000036103b1578382816103a7576103a76105d7565b0492505050610360565b8084116103fc5760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b604482015260640160405180910390fd5b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b60006040828403121561047657600080fd5b6040516040810181811067ffffffffffffffff821117156104a757634e487b7160e01b600052604160045260246000fd5b604052823581526020928301359281019290925250919050565b600080606083850312156104d457600080fd5b6104de8484610464565b946040939093013593505050565b6000602082840312156104fe57600080fd5b813560ff8116811461036057600080fd5b60006040828403121561052157600080fd5b6103608383610464565b6000806080838503121561053e57600080fd5b6105488484610464565b91506105578460408501610464565b90509250929050565b6000806040838503121561057357600080fd5b50508035926020909101359150565b60006020828403121561059457600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103405761034061059b565b818103818111156103405761034061059b565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220c77a95dee494b2abcf575cdf95fd67f95e3ba1946af0cc3c46d0e454b9587ac064736f6c63430008140033",
220
+ "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806304baf60c146100715780632bd182d31461009e5780635faa955b146100df5780638de0a4c2146100f25780639524886814610115578063c7010dfa14610128575b600080fd5b61008461007f3660046104c1565b61015c565b604080519283526020830191909152015b60405180910390f35b604080518082018252600080825260209182018190528251808401909352808352908201525b60408051825181526020928301519281019290925201610095565b6100c46100ed3660046104ec565b610282565b61010561010036600461050f565b61032b565b6040519015158152602001610095565b61010561012336600461052b565b610346565b6100c4610136366004610560565b604080518082018252600080825260209182015281518083019092529281529182015290565b60008060006101e573__$5ac3274b8cf1e01ea223bf093142af05b0$__6345ebb61e866040518263ffffffff1660e01b815260040161019d91815260200190565b602060405180830381865af41580156101ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101de9190610582565b8651610367565b6020860151604051632255341b60e11b8152600481018390529192509073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401602060405180830381865af415801561023e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102629190610582565b61026c91906105b1565b925061027883856105c4565b9150509250929050565b60408051808201825260008082526020820152815180830192839052631488c84560e01b90925260ff831660448301526001196064830152908073__$5ac3274b8cf1e01ea223bf093142af05b0$__631488c84560848301602060405180830381865af41580156102f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031b9190610582565b8152600060209091015292915050565b60008160200151600014801561034057508151155b92915050565b600081602001518360200151148015610360575082518251145b9392505050565b60006103608383670de0b6b3a764000060008080600019858709858702925082811083820303915050806000036103b1578382816103a7576103a76105d7565b0492505050610360565b8084116103fc5760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b604482015260640160405180910390fd5b600084868809600260036001881981018916988990049182028318808302840302808302840302808302840302808302840302808302840302918202909203026000889003889004909101858311909403939093029303949094049190911702949350505050565b60006040828403121561047657600080fd5b6040516040810181811067ffffffffffffffff821117156104a757634e487b7160e01b600052604160045260246000fd5b604052823581526020928301359281019290925250919050565b600080606083850312156104d457600080fd5b6104de8484610464565b946040939093013593505050565b6000602082840312156104fe57600080fd5b813560ff8116811461036057600080fd5b60006040828403121561052157600080fd5b6103608383610464565b6000806080838503121561053e57600080fd5b6105488484610464565b91506105578460408501610464565b90509250929050565b6000806040838503121561057357600080fd5b50508035926020909101359150565b60006020828403121561059457600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103405761034061059b565b818103818111156103405761034061059b565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220c77a95dee494b2abcf575cdf95fd67f95e3ba1946af0cc3c46d0e454b9587ac064736f6c63430008140033",
190
221
  "linkReferences": {
191
222
  "contracts/types/UFixed.sol": {
192
- "UFixedMathLib": [
223
+ "UFixedLib": [
224
+ {
225
+ "length": 20,
226
+ "start": 416
227
+ },
193
228
  {
194
229
  "length": 20,
195
- "start": 533
230
+ "start": 574
196
231
  },
197
232
  {
198
233
  "length": 20,
199
- "start": 671
234
+ "start": 760
200
235
  }
201
236
  ]
202
237
  }
203
238
  },
204
239
  "deployedLinkReferences": {
205
240
  "contracts/types/UFixed.sol": {
206
- "UFixedMathLib": [
241
+ "UFixedLib": [
242
+ {
243
+ "length": 20,
244
+ "start": 358
245
+ },
207
246
  {
208
247
  "length": 20,
209
- "start": 450
248
+ "start": 516
210
249
  },
211
250
  {
212
251
  "length": 20,
213
- "start": 588
252
+ "start": 702
214
253
  }
215
254
  ]
216
255
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
3
+ "buildInfo": "../../../build-info/fe11587699ed98bdf117fb70903a54b7.json"
4
4
  }
@@ -57,14 +57,6 @@
57
57
  },
58
58
  {
59
59
  "inputs": [
60
- {
61
- "internalType": "Key32",
62
- "name": "key",
63
- "type": "bytes32"
64
- }
65
- ],
66
- "name": "toKey",
67
- "outputs": [
68
60
  {
69
61
  "internalType": "ObjectType",
70
62
  "name": "objectType",
@@ -76,36 +68,58 @@
76
68
  "type": "bytes31"
77
69
  }
78
70
  ],
71
+ "name": "toKey32",
72
+ "outputs": [
73
+ {
74
+ "internalType": "Key32",
75
+ "name": "",
76
+ "type": "bytes32"
77
+ }
78
+ ],
79
79
  "stateMutability": "pure",
80
80
  "type": "function"
81
81
  },
82
82
  {
83
83
  "inputs": [
84
84
  {
85
- "internalType": "ObjectType",
86
- "name": "objectType",
87
- "type": "uint8"
88
- },
85
+ "internalType": "Key32",
86
+ "name": "key",
87
+ "type": "bytes32"
88
+ }
89
+ ],
90
+ "name": "toKeyId",
91
+ "outputs": [
89
92
  {
90
93
  "internalType": "KeyId",
91
94
  "name": "id",
92
95
  "type": "bytes31"
93
96
  }
94
97
  ],
95
- "name": "toKey32",
96
- "outputs": [
98
+ "stateMutability": "pure",
99
+ "type": "function"
100
+ },
101
+ {
102
+ "inputs": [
97
103
  {
98
104
  "internalType": "Key32",
99
- "name": "",
105
+ "name": "key",
100
106
  "type": "bytes32"
101
107
  }
102
108
  ],
109
+ "name": "toObjectType",
110
+ "outputs": [
111
+ {
112
+ "internalType": "ObjectType",
113
+ "name": "objectType",
114
+ "type": "uint8"
115
+ }
116
+ ],
103
117
  "stateMutability": "pure",
104
118
  "type": "function"
105
119
  }
106
120
  ],
107
- "bytecode": "0x6105cc610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630f94cc501461007157806329e9b2261461008f578063a4dc7d86146100ad578063d92bb60d146100de578063da3fe412146100fc578063f48016ce1461011a575b600080fd5b61007961014a565b60405161008691906102b0565b60405180910390f35b610097610174565b6040516100a491906102e7565b60405180910390f35b6100c760048036038101906100c29190610333565b610179565b6040516100d59291906103e8565b60405180910390f35b6100e66101ff565b6040516100f391906102b0565b60405180910390f35b61010461022a565b60405161011191906102e7565b60405180910390f35b610134600480360381019061012f9190610469565b61023f565b60405161014191906104ca565b60405180910390f35b60ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681565b60f881565b600080600083905060f860ff1660ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916821660001c901c925060f860ff166101006101c89190610522565b60ff1660ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916198216901b915050915091565b60ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161981565b60f860ff1661010061023c9190610522565b81565b6000808360ff16905060008360081c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16905060008160f860ff1684901b6102869190610562565b90508060001b935050505092915050565b6000819050919050565b6102aa81610297565b82525050565b60006020820190506102c560008301846102a1565b92915050565b600060ff82169050919050565b6102e1816102cb565b82525050565b60006020820190506102fc60008301846102d8565b92915050565b600080fd5b61031081610297565b811461031b57600080fd5b50565b60008135905061032d81610307565b92915050565b60006020828403121561034957610348610302565b5b60006103578482850161031e565b91505092915050565b6000819050919050565b600061038561038061037b846102cb565b610360565b6102cb565b9050919050565b6103958161036a565b82525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082169050919050565b60006103d28261039b565b9050919050565b6103e2816103c7565b82525050565b60006040820190506103fd600083018561038c565b61040a60208301846103d9565b9392505050565b61041a816102cb565b811461042557600080fd5b50565b60008135905061043781610411565b92915050565b6104468161039b565b811461045157600080fd5b50565b6000813590506104638161043d565b92915050565b600080604083850312156104805761047f610302565b5b600061048e85828601610428565b925050602061049f85828601610454565b9150509250929050565b60006104b482610297565b9050919050565b6104c4816104a9565b82525050565b60006020820190506104df60008301846104bb565b92915050565b600061ffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061052d826104e5565b9150610538836104e5565b9250828203905061ffff811115610552576105516104f3565b5b92915050565b6000819050919050565b600061056d82610558565b915061057883610558565b92508282019050808211156105905761058f6104f3565b5b9291505056fea264697066735822122015c089ac91547935a32ea5c13920c6c01e4ab99450eb5a453e3d3ffbb1297e3b64736f6c63430008140033",
108
- "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630f94cc501461007157806329e9b2261461008f578063a4dc7d86146100ad578063d92bb60d146100de578063da3fe412146100fc578063f48016ce1461011a575b600080fd5b61007961014a565b60405161008691906102b0565b60405180910390f35b610097610174565b6040516100a491906102e7565b60405180910390f35b6100c760048036038101906100c29190610333565b610179565b6040516100d59291906103e8565b60405180910390f35b6100e66101ff565b6040516100f391906102b0565b60405180910390f35b61010461022a565b60405161011191906102e7565b60405180910390f35b610134600480360381019061012f9190610469565b61023f565b60405161014191906104ca565b60405180910390f35b60ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681565b60f881565b600080600083905060f860ff1660ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916821660001c901c925060f860ff166101006101c89190610522565b60ff1660ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916198216901b915050915091565b60ff60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161981565b60f860ff1661010061023c9190610522565b81565b6000808360ff16905060008360081c7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16905060008160f860ff1684901b6102869190610562565b90508060001b935050505092915050565b6000819050919050565b6102aa81610297565b82525050565b60006020820190506102c560008301846102a1565b92915050565b600060ff82169050919050565b6102e1816102cb565b82525050565b60006020820190506102fc60008301846102d8565b92915050565b600080fd5b61031081610297565b811461031b57600080fd5b50565b60008135905061032d81610307565b92915050565b60006020828403121561034957610348610302565b5b60006103578482850161031e565b91505092915050565b6000819050919050565b600061038561038061037b846102cb565b610360565b6102cb565b9050919050565b6103958161036a565b82525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082169050919050565b60006103d28261039b565b9050919050565b6103e2816103c7565b82525050565b60006040820190506103fd600083018561038c565b61040a60208301846103d9565b9392505050565b61041a816102cb565b811461042557600080fd5b50565b60008135905061043781610411565b92915050565b6104468161039b565b811461045157600080fd5b50565b6000813590506104638161043d565b92915050565b600080604083850312156104805761047f610302565b5b600061048e85828601610428565b925050602061049f85828601610454565b9150509250929050565b60006104b482610297565b9050919050565b6104c4816104a9565b82525050565b60006020820190506104df60008301846104bb565b92915050565b600061ffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061052d826104e5565b9150610538836104e5565b9250828203905061ffff811115610552576105516104f3565b5b92915050565b6000819050919050565b600061056d82610558565b915061057883610558565b92508282019050808211156105905761058f6104f3565b5b9291505056fea264697066735822122015c089ac91547935a32ea5c13920c6c01e4ab99450eb5a453e3d3ffbb1297e3b64736f6c63430008140033",
121
+ "bytecode": "0x61027361003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80639601d31e116100655780639601d31e146100ee578063d92bb60d14610102578063da3fe41214610110578063f48016ce1461011857600080fd5b80630f94cc501461008c57806329e9b226146100ae578063389e7d68146100c8575b600080fd5b61009b6001600160f81b031981565b6040519081526020015b60405180910390f35b6100b660f881565b60405160ff90911681526020016100a5565b6100db6100d6366004610193565b61012b565b60405160ff1990911681526020016100a5565b6100b66100fc366004610193565b60f81c90565b61009b6001600160f81b0381565b6100b6610153565b61009b6101263660046101ac565b610163565b60008161013b60f8610100610208565b6001600160f81b039190911660ff9091161b92915050565b61016060f8610100610208565b81565b600060ff8316600883901c82610187826001600160f81b031960f889901b1661022a565b93505050505b92915050565b6000602082840312156101a557600080fd5b5035919050565b600080604083850312156101bf57600080fd5b823560ff811681146101d057600080fd5b9150602083013560ff19811681146101e757600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115610223576102236101f2565b5092915050565b8082018082111561018d5761018d6101f256fea2646970667358221220fc2c078a79039b851ed1a97b716c4f273efc929a80af74af156e165fca4066db64736f6c63430008140033",
122
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80639601d31e116100655780639601d31e146100ee578063d92bb60d14610102578063da3fe41214610110578063f48016ce1461011857600080fd5b80630f94cc501461008c57806329e9b226146100ae578063389e7d68146100c8575b600080fd5b61009b6001600160f81b031981565b6040519081526020015b60405180910390f35b6100b660f881565b60405160ff90911681526020016100a5565b6100db6100d6366004610193565b61012b565b60405160ff1990911681526020016100a5565b6100b66100fc366004610193565b60f81c90565b61009b6001600160f81b0381565b6100b6610153565b61009b6101263660046101ac565b610163565b60008161013b60f8610100610208565b6001600160f81b039190911660ff9091161b92915050565b61016060f8610100610208565b81565b600060ff8316600883901c82610187826001600160f81b031960f889901b1661022a565b93505050505b92915050565b6000602082840312156101a557600080fd5b5035919050565b600080604083850312156101bf57600080fd5b823560ff811681146101d057600080fd5b9150602083013560ff19811681146101e757600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115610223576102236101f2565b5092915050565b8082018082111561018d5761018d6101f256fea2646970667358221220fc2c078a79039b851ed1a97b716c4f273efc929a80af74af156e165fca4066db64736f6c63430008140033",
109
123
  "linkReferences": {},
110
124
  "deployedLinkReferences": {}
111
125
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
3
+ "buildInfo": "../../../build-info/fe11587699ed98bdf117fb70903a54b7.json"
4
4
  }
@@ -128,14 +128,14 @@
128
128
  "type": "function"
129
129
  }
130
130
  ],
131
- "bytecode": "0x6105e3610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806308dc895e1461007157806330b8415f146100a15780633889a4c8146100d157806340a8cd9e1461010157806352694ee814610131578063c4cade9d14610161575b600080fd5b61008b600480360381019061008691906102fc565b610191565b6040516100989190610338565b60405180910390f35b6100bb60048036038101906100b691906102fc565b61019b565b6040516100c8919061036e565b60405180910390f35b6100eb60048036038101906100e691906103c2565b6101b5565b6040516100f8919061042d565b60405180910390f35b61011b600480360381019061011691906102fc565b610241565b6040516101289190610495565b60405180910390f35b61014b600480360381019061014691906102fc565b61025c565b604051610158919061036e565b60405180910390f35b61017b600480360381019061017691906104b0565b610276565b604051610188919061036e565b60405180910390f35b6000819050919050565b600080826bffffffffffffffffffffffff16119050919050565b600073__$c8f743efd2b4f0c9300f2558c784479d3e$__63f48016ce836101db86610241565b6040518363ffffffff1660e01b81526004016101f892919061052b565b602060405180830381865af4158015610215573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102399190610580565b905092915050565b6000816bffffffffffffffffffffffff1660081b9050919050565b600080826bffffffffffffffffffffffff16149050919050565b6000610282838361028a565b905092915050565b6000816bffffffffffffffffffffffff16836bffffffffffffffffffffffff1614905092915050565b600080fd5b60006bffffffffffffffffffffffff82169050919050565b6102d9816102b8565b81146102e457600080fd5b50565b6000813590506102f6816102d0565b92915050565b600060208284031215610312576103116102b3565b5b6000610320848285016102e7565b91505092915050565b610332816102b8565b82525050565b600060208201905061034d6000830184610329565b92915050565b60008115159050919050565b61036881610353565b82525050565b6000602082019050610383600083018461035f565b92915050565b600060ff82169050919050565b61039f81610389565b81146103aa57600080fd5b50565b6000813590506103bc81610396565b92915050565b600080604083850312156103d9576103d86102b3565b5b60006103e7858286016102e7565b92505060206103f8858286016103ad565b9150509250929050565b6000819050919050565b600061041782610402565b9050919050565b6104278161040c565b82525050565b6000602082019050610442600083018461041e565b92915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082169050919050565b600061047f82610448565b9050919050565b61048f81610474565b82525050565b60006020820190506104aa6000830184610486565b92915050565b600080604083850312156104c7576104c66102b3565b5b60006104d5858286016102e7565b92505060206104e6858286016102e7565b9150509250929050565b6000819050919050565b600061051561051061050b84610389565b6104f0565b610389565b9050919050565b610525816104fa565b82525050565b6000604082019050610540600083018561051c565b61054d6020830184610486565b9392505050565b61055d81610402565b811461056857600080fd5b50565b60008151905061057a81610554565b92915050565b600060208284031215610596576105956102b3565b5b60006105a48482850161056b565b9150509291505056fea26469706673582212207d716f98f6a7f53a1e3b3b9186369103d05a2c3783045946ebebf5361ea67d0564736f6c63430008140033",
132
- "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806308dc895e1461007157806330b8415f146100a15780633889a4c8146100d157806340a8cd9e1461010157806352694ee814610131578063c4cade9d14610161575b600080fd5b61008b600480360381019061008691906102fc565b610191565b6040516100989190610338565b60405180910390f35b6100bb60048036038101906100b691906102fc565b61019b565b6040516100c8919061036e565b60405180910390f35b6100eb60048036038101906100e691906103c2565b6101b5565b6040516100f8919061042d565b60405180910390f35b61011b600480360381019061011691906102fc565b610241565b6040516101289190610495565b60405180910390f35b61014b600480360381019061014691906102fc565b61025c565b604051610158919061036e565b60405180910390f35b61017b600480360381019061017691906104b0565b610276565b604051610188919061036e565b60405180910390f35b6000819050919050565b600080826bffffffffffffffffffffffff16119050919050565b600073__$c8f743efd2b4f0c9300f2558c784479d3e$__63f48016ce836101db86610241565b6040518363ffffffff1660e01b81526004016101f892919061052b565b602060405180830381865af4158015610215573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102399190610580565b905092915050565b6000816bffffffffffffffffffffffff1660081b9050919050565b600080826bffffffffffffffffffffffff16149050919050565b6000610282838361028a565b905092915050565b6000816bffffffffffffffffffffffff16836bffffffffffffffffffffffff1614905092915050565b600080fd5b60006bffffffffffffffffffffffff82169050919050565b6102d9816102b8565b81146102e457600080fd5b50565b6000813590506102f6816102d0565b92915050565b600060208284031215610312576103116102b3565b5b6000610320848285016102e7565b91505092915050565b610332816102b8565b82525050565b600060208201905061034d6000830184610329565b92915050565b60008115159050919050565b61036881610353565b82525050565b6000602082019050610383600083018461035f565b92915050565b600060ff82169050919050565b61039f81610389565b81146103aa57600080fd5b50565b6000813590506103bc81610396565b92915050565b600080604083850312156103d9576103d86102b3565b5b60006103e7858286016102e7565b92505060206103f8858286016103ad565b9150509250929050565b6000819050919050565b600061041782610402565b9050919050565b6104278161040c565b82525050565b6000602082019050610442600083018461041e565b92915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082169050919050565b600061047f82610448565b9050919050565b61048f81610474565b82525050565b60006020820190506104aa6000830184610486565b92915050565b600080604083850312156104c7576104c66102b3565b5b60006104d5858286016102e7565b92505060206104e6858286016102e7565b9150509250929050565b6000819050919050565b600061051561051061050b84610389565b6104f0565b610389565b9050919050565b610525816104fa565b82525050565b6000604082019050610540600083018561051c565b61054d6020830184610486565b9392505050565b61055d81610402565b811461056857600080fd5b50565b60008151905061057a81610554565b92915050565b600060208284031215610596576105956102b3565b5b60006105a48482850161056b565b9150509291505056fea26469706673582212207d716f98f6a7f53a1e3b3b9186369103d05a2c3783045946ebebf5361ea67d0564736f6c63430008140033",
131
+ "bytecode": "0x6102fa61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806308dc895e1461007157806330b8415f1461009f5780633889a4c8146100cb57806340a8cd9e146100ec57806352694ee814610122578063c4cade9d1461013d575b600080fd5b61008261007f366004610220565b90565b6040516001600160601b0390911681526020015b60405180910390f35b6100bb6100ad366004610220565b6001600160601b0316151590565b6040519015158152602001610096565b6100de6100d936600461023b565b610161565b604051908152602001610096565b61010f6100fa366004610220565b60081b6cffffffffffffffffffffffff001690565b60405160ff199091168152602001610096565b6100bb610130366004610220565b6001600160601b03161590565b6100bb61014b366004610278565b60006001600160601b03808416908316146101fd565b600073__$c8f743efd2b4f0c9300f2558c784479d3e$__63f48016ce83600886901b6cffffffffffffffffffffffff00166040516001600160e01b031960e085901b16815260ff909216600483015260ff19166024820152604401602060405180830381865af41580156101d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fd91906102ab565b9392505050565b80356001600160601b038116811461021b57600080fd5b919050565b60006020828403121561023257600080fd5b6101fd82610204565b6000806040838503121561024e57600080fd5b61025783610204565b9150602083013560ff8116811461026d57600080fd5b809150509250929050565b6000806040838503121561028b57600080fd5b61029483610204565b91506102a260208401610204565b90509250929050565b6000602082840312156102bd57600080fd5b505191905056fea2646970667358221220c1854ba353d599ea92c2bc434c766302432128fb99662446139943367f71224164736f6c63430008140033",
132
+ "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c806308dc895e1461007157806330b8415f1461009f5780633889a4c8146100cb57806340a8cd9e146100ec57806352694ee814610122578063c4cade9d1461013d575b600080fd5b61008261007f366004610220565b90565b6040516001600160601b0390911681526020015b60405180910390f35b6100bb6100ad366004610220565b6001600160601b0316151590565b6040519015158152602001610096565b6100de6100d936600461023b565b610161565b604051908152602001610096565b61010f6100fa366004610220565b60081b6cffffffffffffffffffffffff001690565b60405160ff199091168152602001610096565b6100bb610130366004610220565b6001600160601b03161590565b6100bb61014b366004610278565b60006001600160601b03808416908316146101fd565b600073__$c8f743efd2b4f0c9300f2558c784479d3e$__63f48016ce83600886901b6cffffffffffffffffffffffff00166040516001600160e01b031960e085901b16815260ff909216600483015260ff19166024820152604401602060405180830381865af41580156101d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fd91906102ab565b9392505050565b80356001600160601b038116811461021b57600080fd5b919050565b60006020828403121561023257600080fd5b6101fd82610204565b6000806040838503121561024e57600080fd5b61025783610204565b9150602083013560ff8116811461026d57600080fd5b809150509250929050565b6000806040838503121561028b57600080fd5b61029483610204565b91506102a260208401610204565b90509250929050565b6000602082840312156102bd57600080fd5b505191905056fea2646970667358221220c1854ba353d599ea92c2bc434c766302432128fb99662446139943367f71224164736f6c63430008140033",
133
133
  "linkReferences": {
134
134
  "contracts/types/Key32.sol": {
135
135
  "Key32Lib": [
136
136
  {
137
137
  "length": 20,
138
- "start": 524
138
+ "start": 415
139
139
  }
140
140
  ]
141
141
  }
@@ -145,7 +145,7 @@
145
145
  "Key32Lib": [
146
146
  {
147
147
  "length": 20,
148
- "start": 441
148
+ "start": 357
149
149
  }
150
150
  ]
151
151
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
3
+ "buildInfo": "../../../build-info/fe11587699ed98bdf117fb70903a54b7.json"
4
4
  }
@@ -2,9 +2,32 @@
2
2
  "_format": "hh-sol-artifact-1",
3
3
  "contractName": "LibNftIdSet",
4
4
  "sourceName": "contracts/types/NftIdSet.sol",
5
- "abi": [],
6
- "bytecode": "0x610838610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80632bfdd6b91461007157806331a97de2146100a1578063a3082a18146100d1578063a73d57561461010e578063d2fa1e361461014b578063e797d8991461017b575b600080fd5b61008b600480360381019061008691906105a8565b6101ab565b6040516100989190610603565b60405180910390f35b6100bb60048036038101906100b6919061061e565b6101e9565b6040516100c89190610603565b60405180910390f35b8180156100dd57600080fd5b506100f860048036038101906100f391906105a8565b6101fc565b6040516101059190610603565b60405180910390f35b81801561011a57600080fd5b50610135600480360381019061013091906105a8565b6102e7565b6040516101429190610603565b60405180910390f35b6101656004803603810190610160919061061e565b6104ca565b6040516101729190610664565b60405180910390f35b610195600480360381019061019091906106ab565b6104db565b6040516101a29190610726565b60405180910390f35b600080836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff1681526020019081526020016000205411905092915050565b6000808260000180549050149050919050565b600080836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002054036102dc5782600001829080600181540180825580915050600190039060005260206000209060029182820401919006600c029091909190916101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055508260000180549050836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002081905550600190506102e1565b600090505b92915050565b600080836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002054905060008111156104be5760006001826103369190610770565b905060006001866000018054905061034e9190610770565b905081811461043157600086600001828154811061036f5761036e6107a4565b5b9060005260206000209060029182820401919006600c029054906101000a90046bffffffffffffffffffffffff169050808760000184815481106103b6576103b56107a4565b5b9060005260206000209060029182820401919006600c026101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555083876001016000836bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002081905550505b85600001805480610445576104446107d3565b5b6001900381819060005260206000209060029182820401919006600c026101000a8154906bffffffffffffffffffffffff02191690559055856001016000866bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002060009055600193505050506104c4565b60009150505b92915050565b600081600001805490509050919050565b60008260000182815481106104f3576104f26107a4565b5b9060005260206000209060029182820401919006600c029054906101000a90046bffffffffffffffffffffffff16905092915050565b600080fd5b6000819050919050565b6105418161052e565b811461054c57600080fd5b50565b60008135905061055e81610538565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61058581610564565b811461059057600080fd5b50565b6000813590506105a28161057c565b92915050565b600080604083850312156105bf576105be610529565b5b60006105cd8582860161054f565b92505060206105de85828601610593565b9150509250929050565b60008115159050919050565b6105fd816105e8565b82525050565b600060208201905061061860008301846105f4565b92915050565b60006020828403121561063457610633610529565b5b60006106428482850161054f565b91505092915050565b6000819050919050565b61065e8161064b565b82525050565b60006020820190506106796000830184610655565b92915050565b6106888161064b565b811461069357600080fd5b50565b6000813590506106a58161067f565b92915050565b600080604083850312156106c2576106c1610529565b5b60006106d08582860161054f565b92505060206106e185828601610696565b9150509250929050565b6000819050919050565b600061071061070b61070684610564565b6106eb565b610564565b9050919050565b610720816106f5565b82525050565b600060208201905061073b6000830184610717565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061077b8261064b565b91506107868361064b565b925082820390508181111561079e5761079d610741565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220b9807fed6dad0bfe1b1e1c6ca92c60c83c9238d756782f500fcc32d3bffd456d64736f6c63430008140033",
7
- "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80632bfdd6b91461007157806331a97de2146100a1578063a3082a18146100d1578063a73d57561461010e578063d2fa1e361461014b578063e797d8991461017b575b600080fd5b61008b600480360381019061008691906105a8565b6101ab565b6040516100989190610603565b60405180910390f35b6100bb60048036038101906100b6919061061e565b6101e9565b6040516100c89190610603565b60405180910390f35b8180156100dd57600080fd5b506100f860048036038101906100f391906105a8565b6101fc565b6040516101059190610603565b60405180910390f35b81801561011a57600080fd5b50610135600480360381019061013091906105a8565b6102e7565b6040516101429190610603565b60405180910390f35b6101656004803603810190610160919061061e565b6104ca565b6040516101729190610664565b60405180910390f35b610195600480360381019061019091906106ab565b6104db565b6040516101a29190610726565b60405180910390f35b600080836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff1681526020019081526020016000205411905092915050565b6000808260000180549050149050919050565b600080836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002054036102dc5782600001829080600181540180825580915050600190039060005260206000209060029182820401919006600c029091909190916101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055508260000180549050836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002081905550600190506102e1565b600090505b92915050565b600080836001016000846bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002054905060008111156104be5760006001826103369190610770565b905060006001866000018054905061034e9190610770565b905081811461043157600086600001828154811061036f5761036e6107a4565b5b9060005260206000209060029182820401919006600c029054906101000a90046bffffffffffffffffffffffff169050808760000184815481106103b6576103b56107a4565b5b9060005260206000209060029182820401919006600c026101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555083876001016000836bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002081905550505b85600001805480610445576104446107d3565b5b6001900381819060005260206000209060029182820401919006600c026101000a8154906bffffffffffffffffffffffff02191690559055856001016000866bffffffffffffffffffffffff166bffffffffffffffffffffffff16815260200190815260200160002060009055600193505050506104c4565b60009150505b92915050565b600081600001805490509050919050565b60008260000182815481106104f3576104f26107a4565b5b9060005260206000209060029182820401919006600c029054906101000a90046bffffffffffffffffffffffff16905092915050565b600080fd5b6000819050919050565b6105418161052e565b811461054c57600080fd5b50565b60008135905061055e81610538565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61058581610564565b811461059057600080fd5b50565b6000813590506105a28161057c565b92915050565b600080604083850312156105bf576105be610529565b5b60006105cd8582860161054f565b92505060206105de85828601610593565b9150509250929050565b60008115159050919050565b6105fd816105e8565b82525050565b600060208201905061061860008301846105f4565b92915050565b60006020828403121561063457610633610529565b5b60006106428482850161054f565b91505092915050565b6000819050919050565b61065e8161064b565b82525050565b60006020820190506106796000830184610655565b92915050565b6106888161064b565b811461069357600080fd5b50565b6000813590506106a58161067f565b92915050565b600080604083850312156106c2576106c1610529565b5b60006106d08582860161054f565b92505060206106e185828601610696565b9150509250929050565b6000819050919050565b600061071061070b61070684610564565b6106eb565b610564565b9050919050565b610720816106f5565b82525050565b600060208201905061073b6000830184610717565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061077b8261064b565b91506107868361064b565b925082820390508181111561079e5761079d610741565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220b9807fed6dad0bfe1b1e1c6ca92c60c83c9238d756782f500fcc32d3bffd456d64736f6c63430008140033",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "NftId",
10
+ "name": "nftId",
11
+ "type": "uint96"
12
+ }
13
+ ],
14
+ "name": "ErrorNftIdSetAlreadyAdded",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "NftId",
21
+ "name": "nftId",
22
+ "type": "uint96"
23
+ }
24
+ ],
25
+ "name": "ErrorNftIdSetNotInSet",
26
+ "type": "error"
27
+ }
28
+ ],
29
+ "bytecode": "0x6104c261003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80632bfdd6b91461007157806331a97de2146100995780638b6233dd146100ac578063a3082a18146100cc578063a73d5756146100ee578063e797d8991461010e575b600080fd5b61008461007f3660046103c8565b610139565b60405190151581526020015b60405180910390f35b6100846100a7366004610404565b541590565b6100be6100ba366004610404565b5490565b604051908152602001610090565b8180156100d857600080fd5b506100ec6100e73660046103c8565b61015d565b005b8180156100fa57600080fd5b506100ec6101093660046103c8565b6101f8565b61012161011c36600461041d565b610380565b6040516001600160601b039091168152602001610090565b6001600160601b038116600090815260018301602052604090205415155b92915050565b6001600160601b0381166000908152600183016020526040902054156101a6576040516301eae2c560e61b81526001600160601b03821660048201526024015b60405180910390fd5b81546001818101845560008481526020808220600285040180546001600160601b03968716600c968616969096026101000a868102970219169590951790945584549281529301909152604090912055565b6001600160601b03811660009081526001830160205260408120549081900361023f5760405163482084f160e01b81526001600160601b038316600482015260240161019d565b600061024c60018361043f565b84549091506000906102609060019061043f565b905081811461030a57600085600001828154811061028057610280610460565b9060005260206000209060029182820401919006600c029054906101000a90046001600160601b03169050808660000184815481106102c1576102c1610460565b60009182526020808320600283040180546001600160601b03958616600c6001958616026101000a90810290870219909116179055939092168152908701909152604090208390555b845485908061031b5761031b610476565b6001900381819060005260206000209060029182820401919006600c026101000a8154906001600160601b0302191690559055846001016000856001600160601b03166001600160601b03168152602001908152602001600020600090555050505050565b600082600001828154811061039757610397610460565b9060005260206000209060029182820401919006600c029054906101000a90046001600160601b0316905092915050565b600080604083850312156103db57600080fd5b8235915060208301356001600160601b03811681146103f957600080fd5b809150509250929050565b60006020828403121561041657600080fd5b5035919050565b6000806040838503121561043057600080fd5b50508035926020909101359150565b8181038181111561015757634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a59021e4afbe697b487a178e328b0427efd3acf42ac7b39308d6f8fbbe16b6d664736f6c63430008140033",
30
+ "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80632bfdd6b91461007157806331a97de2146100995780638b6233dd146100ac578063a3082a18146100cc578063a73d5756146100ee578063e797d8991461010e575b600080fd5b61008461007f3660046103c8565b610139565b60405190151581526020015b60405180910390f35b6100846100a7366004610404565b541590565b6100be6100ba366004610404565b5490565b604051908152602001610090565b8180156100d857600080fd5b506100ec6100e73660046103c8565b61015d565b005b8180156100fa57600080fd5b506100ec6101093660046103c8565b6101f8565b61012161011c36600461041d565b610380565b6040516001600160601b039091168152602001610090565b6001600160601b038116600090815260018301602052604090205415155b92915050565b6001600160601b0381166000908152600183016020526040902054156101a6576040516301eae2c560e61b81526001600160601b03821660048201526024015b60405180910390fd5b81546001818101845560008481526020808220600285040180546001600160601b03968716600c968616969096026101000a868102970219169590951790945584549281529301909152604090912055565b6001600160601b03811660009081526001830160205260408120549081900361023f5760405163482084f160e01b81526001600160601b038316600482015260240161019d565b600061024c60018361043f565b84549091506000906102609060019061043f565b905081811461030a57600085600001828154811061028057610280610460565b9060005260206000209060029182820401919006600c029054906101000a90046001600160601b03169050808660000184815481106102c1576102c1610460565b60009182526020808320600283040180546001600160601b03958616600c6001958616026101000a90810290870219909116179055939092168152908701909152604090208390555b845485908061031b5761031b610476565b6001900381819060005260206000209060029182820401919006600c026101000a8154906001600160601b0302191690559055846001016000856001600160601b03166001600160601b03168152602001908152602001600020600090555050505050565b600082600001828154811061039757610397610460565b9060005260206000209060029182820401919006600c029054906101000a90046001600160601b0316905092915050565b600080604083850312156103db57600080fd5b8235915060208301356001600160601b03811681146103f957600080fd5b809150509250929050565b60006020828403121561041657600080fd5b5035919050565b6000806040838503121561043057600080fd5b50508035926020909101359150565b8181038181111561015757634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a59021e4afbe697b487a178e328b0427efd3acf42ac7b39308d6f8fbbe16b6d664736f6c63430008140033",
8
31
  "linkReferences": {},
9
32
  "deployedLinkReferences": {}
10
33
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/fe11587699ed98bdf117fb70903a54b7.json"
4
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "NumberIdLib",
4
+ "sourceName": "contracts/types/NumberId.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "NumberId",
10
+ "name": "a",
11
+ "type": "uint32"
12
+ }
13
+ ],
14
+ "name": "eqz",
15
+ "outputs": [
16
+ {
17
+ "internalType": "bool",
18
+ "name": "",
19
+ "type": "bool"
20
+ }
21
+ ],
22
+ "stateMutability": "pure",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "NumberId",
29
+ "name": "a",
30
+ "type": "uint32"
31
+ }
32
+ ],
33
+ "name": "gtz",
34
+ "outputs": [
35
+ {
36
+ "internalType": "bool",
37
+ "name": "",
38
+ "type": "bool"
39
+ }
40
+ ],
41
+ "stateMutability": "pure",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "NumberId",
48
+ "name": "a",
49
+ "type": "uint32"
50
+ }
51
+ ],
52
+ "name": "toInt",
53
+ "outputs": [
54
+ {
55
+ "internalType": "uint32",
56
+ "name": "",
57
+ "type": "uint32"
58
+ }
59
+ ],
60
+ "stateMutability": "pure",
61
+ "type": "function"
62
+ },
63
+ {
64
+ "inputs": [
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "a",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "name": "toNumberId",
72
+ "outputs": [
73
+ {
74
+ "internalType": "NumberId",
75
+ "name": "",
76
+ "type": "uint32"
77
+ }
78
+ ],
79
+ "stateMutability": "pure",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "zero",
85
+ "outputs": [
86
+ {
87
+ "internalType": "NumberId",
88
+ "name": "",
89
+ "type": "uint32"
90
+ }
91
+ ],
92
+ "stateMutability": "pure",
93
+ "type": "function"
94
+ }
95
+ ],
96
+ "bytecode": "0x61016361003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c806342f49ac0146100665780636effeac4146100935780637409c40f146100b9578063bc1b392d146100c7578063d15b5893146100ce575b600080fd5b61007e6100743660046100e7565b63ffffffff161590565b60405190151581526020015b60405180910390f35b6100a46100a13660046100e7565b90565b60405163ffffffff909116815260200161008a565b6100a46100a1366004610114565b60006100a4565b61007e6100dc3660046100e7565b63ffffffff16151590565b6000602082840312156100f957600080fd5b813563ffffffff8116811461010d57600080fd5b9392505050565b60006020828403121561012657600080fd5b503591905056fea2646970667358221220d2b815692572b0a06f7afcf6bbb5e7b61423399976164fb7683b5c8a481c863964736f6c63430008140033",
97
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c806342f49ac0146100665780636effeac4146100935780637409c40f146100b9578063bc1b392d146100c7578063d15b5893146100ce575b600080fd5b61007e6100743660046100e7565b63ffffffff161590565b60405190151581526020015b60405180910390f35b6100a46100a13660046100e7565b90565b60405163ffffffff909116815260200161008a565b6100a46100a1366004610114565b60006100a4565b61007e6100dc3660046100e7565b63ffffffff16151590565b6000602082840312156100f957600080fd5b813563ffffffff8116811461010d57600080fd5b9392505050565b60006020828403121561012657600080fd5b503591905056fea2646970667358221220d2b815692572b0a06f7afcf6bbb5e7b61423399976164fb7683b5c8a481c863964736f6c63430008140033",
98
+ "linkReferences": {},
99
+ "deployedLinkReferences": {}
100
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/746f2ad7b0d888e05db828a61f6d5e10.json"
3
+ "buildInfo": "../../../build-info/fe11587699ed98bdf117fb70903a54b7.json"
4
4
  }
@@ -85,8 +85,8 @@
85
85
  "type": "function"
86
86
  }
87
87
  ],
88
- "bytecode": "0x6102c6610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c80632c2f8a671461005b5780636f9196201461008b578063ac43d834146100bb578063b2466acf146100eb575b600080fd5b610075600480360381019061007091906101ab565b61011b565b6040516100829190610206565b60405180910390f35b6100a560048036038101906100a09190610221565b61012f565b6040516100b29190610206565b60405180910390f35b6100d560048036038101906100d09190610221565b61013e565b6040516100e29190610275565b60405180910390f35b61010560048036038101906101009190610221565b61014b565b6040516101129190610206565b60405180910390f35b6000610127838361015a565b905092915050565b6000808260ff16149050919050565b60008160ff169050919050565b6000808260ff16119050919050565b60008160ff168360ff1614905092915050565b600080fd5b600060ff82169050919050565b61018881610172565b811461019357600080fd5b50565b6000813590506101a58161017f565b92915050565b600080604083850312156101c2576101c161016d565b5b60006101d085828601610196565b92505060206101e185828601610196565b9150509250929050565b60008115159050919050565b610200816101eb565b82525050565b600060208201905061021b60008301846101f7565b92915050565b6000602082840312156102375761023661016d565b5b600061024584828501610196565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b61026f8161024e565b82525050565b600060208201905061028a6000830184610266565b9291505056fea264697066735822122052cc6ad67bf4a6cb971b7b44f7561859da74722168fa5d78f849d4135189e83d64736f6c63430008140033",
89
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c80632c2f8a671461005b5780636f9196201461008b578063ac43d834146100bb578063b2466acf146100eb575b600080fd5b610075600480360381019061007091906101ab565b61011b565b6040516100829190610206565b60405180910390f35b6100a560048036038101906100a09190610221565b61012f565b6040516100b29190610206565b60405180910390f35b6100d560048036038101906100d09190610221565b61013e565b6040516100e29190610275565b60405180910390f35b61010560048036038101906101009190610221565b61014b565b6040516101129190610206565b60405180910390f35b6000610127838361015a565b905092915050565b6000808260ff16149050919050565b60008160ff169050919050565b6000808260ff16119050919050565b60008160ff168360ff1614905092915050565b600080fd5b600060ff82169050919050565b61018881610172565b811461019357600080fd5b50565b6000813590506101a58161017f565b92915050565b600080604083850312156101c2576101c161016d565b5b60006101d085828601610196565b92505060206101e185828601610196565b9150509250929050565b60008115159050919050565b610200816101eb565b82525050565b600060208201905061021b60008301846101f7565b92915050565b6000602082840312156102375761023661016d565b5b600061024584828501610196565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b61026f8161024e565b82525050565b600060208201905061028a6000830184610266565b9291505056fea264697066735822122052cc6ad67bf4a6cb971b7b44f7561859da74722168fa5d78f849d4135189e83d64736f6c63430008140033",
88
+ "bytecode": "0x61018c61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c80632c2f8a671461005b5780636f91962014610083578063ac43d83414610098578063b2466acf146100c9575b600080fd5b61006e610069366004610108565b6100df565b60405190151581526020015b60405180910390f35b61006e61009136600461013b565b60ff161590565b6100ac6100a636600461013b565b60ff1690565b6040516bffffffffffffffffffffffff909116815260200161007a565b61006e6100d736600461013b565b60ff16151590565b600060ff808416908316145b9392505050565b803560ff8116811461010357600080fd5b919050565b6000806040838503121561011b57600080fd5b610124836100f2565b9150610132602084016100f2565b90509250929050565b60006020828403121561014d57600080fd5b6100eb826100f256fea264697066735822122013bbd335615b0d218f172f83998b5b9b4ccc921136a46d9b929e74817a3a7f9664736f6c63430008140033",
89
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c80632c2f8a671461005b5780636f91962014610083578063ac43d83414610098578063b2466acf146100c9575b600080fd5b61006e610069366004610108565b6100df565b60405190151581526020015b60405180910390f35b61006e61009136600461013b565b60ff161590565b6100ac6100a636600461013b565b60ff1690565b6040516bffffffffffffffffffffffff909116815260200161007a565b61006e6100d736600461013b565b60ff16151590565b600060ff808416908316145b9392505050565b803560ff8116811461010357600080fd5b919050565b6000806040838503121561011b57600080fd5b610124836100f2565b9150610132602084016100f2565b90509250929050565b60006020828403121561014d57600080fd5b6100eb826100f256fea264697066735822122013bbd335615b0d218f172f83998b5b9b4ccc921136a46d9b929e74817a3a7f9664736f6c63430008140033",
90
90
  "linkReferences": {},
91
91
  "deployedLinkReferences": {}
92
92
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/fe11587699ed98bdf117fb70903a54b7.json"
4
+ }
@@ -0,0 +1,123 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ReferralLib",
4
+ "sourceName": "contracts/types/Referral.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "ReferralId",
10
+ "name": "id",
11
+ "type": "bytes8"
12
+ }
13
+ ],
14
+ "name": "toKey32",
15
+ "outputs": [
16
+ {
17
+ "internalType": "Key32",
18
+ "name": "key",
19
+ "type": "bytes32"
20
+ }
21
+ ],
22
+ "stateMutability": "pure",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "ReferralId",
29
+ "name": "id",
30
+ "type": "bytes8"
31
+ }
32
+ ],
33
+ "name": "toKeyId",
34
+ "outputs": [
35
+ {
36
+ "internalType": "KeyId",
37
+ "name": "keyId",
38
+ "type": "bytes31"
39
+ }
40
+ ],
41
+ "stateMutability": "pure",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "NftId",
48
+ "name": "distributionNftId",
49
+ "type": "uint96"
50
+ },
51
+ {
52
+ "internalType": "string",
53
+ "name": "referral",
54
+ "type": "string"
55
+ }
56
+ ],
57
+ "name": "toReferralId",
58
+ "outputs": [
59
+ {
60
+ "internalType": "ReferralId",
61
+ "name": "",
62
+ "type": "bytes8"
63
+ }
64
+ ],
65
+ "stateMutability": "pure",
66
+ "type": "function"
67
+ },
68
+ {
69
+ "inputs": [
70
+ {
71
+ "internalType": "uint8",
72
+ "name": "status",
73
+ "type": "uint8"
74
+ }
75
+ ],
76
+ "name": "toReferralStatus",
77
+ "outputs": [
78
+ {
79
+ "internalType": "ReferralStatus",
80
+ "name": "",
81
+ "type": "uint8"
82
+ }
83
+ ],
84
+ "stateMutability": "pure",
85
+ "type": "function"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "zero",
90
+ "outputs": [
91
+ {
92
+ "internalType": "ReferralId",
93
+ "name": "",
94
+ "type": "bytes8"
95
+ }
96
+ ],
97
+ "stateMutability": "pure",
98
+ "type": "function"
99
+ }
100
+ ],
101
+ "bytecode": "0x6103cf61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c80632cf96bf9146100665780633f093cd61461009957806355ee6275146100c5578063a420c787146100e6578063bc1b392d14610109575b600080fd5b6100816100743660046101dd565b6001600160c01b03191690565b60405160ff1990911681526020015b60405180910390f35b6100ac6100a7366004610224565b610110565b6040516001600160c01b03199091168152602001610090565b6100d86100d33660046101dd565b610143565b604051908152602001610090565b6100f76100f43660046102f9565b90565b60405160ff9091168152602001610090565b60006100ac565b6000828260405160200161012592919061031c565b60405160208183030381529060405280519060200120905092915050565b600073__$c8f743efd2b4f0c9300f2558c784479d3e$__63f48016ce607b6001600160c01b031985166040516001600160e01b031960e085901b16815260ff909216600483015260ff19166024820152604401602060405180830381865af41580156101b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d79190610380565b92915050565b6000602082840312156101ef57600080fd5b81356001600160c01b03198116811461020757600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561023757600080fd5b82356bffffffffffffffffffffffff8116811461025357600080fd5b9150602083013567ffffffffffffffff8082111561027057600080fd5b818501915085601f83011261028457600080fd5b8135818111156102965761029661020e565b604051601f8201601f19908116603f011681019083821181831017156102be576102be61020e565b816040528281528860208487010111156102d757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561030b57600080fd5b813560ff8116811461020757600080fd5b6bffffffffffffffffffffffff8316815260006020604081840152835180604085015260005b8181101561035e57858101830151858201606001528201610342565b506000606082860101526060601f19601f830116850101925050509392505050565b60006020828403121561039257600080fd5b505191905056fea2646970667358221220e3067e33abc10c92bca6b263bfc1f83fba9fd0597a869d4ffec064e06a9d7c1464736f6c63430008140033",
102
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100615760003560e01c80632cf96bf9146100665780633f093cd61461009957806355ee6275146100c5578063a420c787146100e6578063bc1b392d14610109575b600080fd5b6100816100743660046101dd565b6001600160c01b03191690565b60405160ff1990911681526020015b60405180910390f35b6100ac6100a7366004610224565b610110565b6040516001600160c01b03199091168152602001610090565b6100d86100d33660046101dd565b610143565b604051908152602001610090565b6100f76100f43660046102f9565b90565b60405160ff9091168152602001610090565b60006100ac565b6000828260405160200161012592919061031c565b60405160208183030381529060405280519060200120905092915050565b600073__$c8f743efd2b4f0c9300f2558c784479d3e$__63f48016ce607b6001600160c01b031985166040516001600160e01b031960e085901b16815260ff909216600483015260ff19166024820152604401602060405180830381865af41580156101b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d79190610380565b92915050565b6000602082840312156101ef57600080fd5b81356001600160c01b03198116811461020757600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561023757600080fd5b82356bffffffffffffffffffffffff8116811461025357600080fd5b9150602083013567ffffffffffffffff8082111561027057600080fd5b818501915085601f83011261028457600080fd5b8135818111156102965761029661020e565b604051601f8201601f19908116603f011681019083821181831017156102be576102be61020e565b816040528281528860208487010111156102d757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561030b57600080fd5b813560ff8116811461020757600080fd5b6bffffffffffffffffffffffff8316815260006020604081840152835180604085015260005b8181101561035e57858101830151858201606001528201610342565b506000606082860101526060601f19601f830116850101925050509392505050565b60006020828403121561039257600080fd5b505191905056fea2646970667358221220e3067e33abc10c92bca6b263bfc1f83fba9fd0597a869d4ffec064e06a9d7c1464736f6c63430008140033",
103
+ "linkReferences": {
104
+ "contracts/types/Key32.sol": {
105
+ "Key32Lib": [
106
+ {
107
+ "length": 20,
108
+ "start": 385
109
+ }
110
+ ]
111
+ }
112
+ },
113
+ "deployedLinkReferences": {
114
+ "contracts/types/Key32.sol": {
115
+ "Key32Lib": [
116
+ {
117
+ "length": 20,
118
+ "start": 327
119
+ }
120
+ ]
121
+ }
122
+ }
123
+ }