@etherisc/gif-next 0.0.2-f619be3-760 → 0.0.2-f72939c-683

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/README.md +114 -11
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +4 -0
  3. package/artifacts/contracts/components/{Component.sol/Component.json → BaseComponent.sol/BaseComponent.json} +26 -57
  4. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +4 -0
  5. package/artifacts/contracts/{instance/component/IComponent.sol/IComponentContract.json → components/IBaseComponent.sol/IBaseComponent.json} +26 -57
  6. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +356 -0
  8. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/{IPool.sol/IPoolComponent.json → IProductComponent.sol/IProductComponent.json} +89 -65
  10. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  11. package/artifacts/contracts/components/Pool.sol/Pool.json +156 -29
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  13. package/artifacts/contracts/components/Product.sol/Product.json +74 -72
  14. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  15. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  16. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  17. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  18. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  19. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  20. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  21. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  22. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  23. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  24. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  26. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  30. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  32. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  34. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  35. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1124 -598
  36. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +4 -0
  37. package/artifacts/contracts/instance/{component/IComponent.sol → IInstanceLinked.sol}/IInstanceLinked.json +1 -1
  38. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  39. package/artifacts/contracts/instance/Instance.sol/Instance.json +1424 -782
  40. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +4 -0
  41. package/artifacts/contracts/instance/{component/ComponentModule.sol/ComponentModule.json → base/ComponentServiceBase.sol/ComponentServiceBase.json} +133 -132
  42. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +4 -0
  43. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +81 -0
  44. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +560 -0
  46. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  47. package/artifacts/contracts/instance/{lifecycle/ILifecycle.sol/ILifecycleModule.json → base/ILifecycle.sol/ILifecycle.json} +10 -77
  48. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +4 -0
  49. package/artifacts/contracts/instance/base/IService.sol/IService.json +300 -0
  50. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +4 -0
  51. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +344 -0
  52. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +710 -0
  54. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  55. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  56. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +4 -0
  57. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.json +10 -0
  58. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +4 -0
  59. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +300 -0
  60. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +4 -0
  61. package/artifacts/contracts/instance/{access → module/access}/Access.sol/AccessModule.json +85 -152
  62. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +4 -0
  63. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccess.json +1 -1
  64. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +4 -0
  65. package/artifacts/contracts/instance/{access → module/access}/IAccess.sol/IAccessModule.json +96 -99
  66. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +4 -0
  67. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +265 -0
  68. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +4 -0
  69. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.json +10 -0
  70. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +4 -0
  71. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +265 -0
  72. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +4 -0
  73. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +10 -0
  74. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +10 -0
  76. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +10 -0
  78. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +136 -0
  80. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +4 -0
  81. package/artifacts/contracts/instance/{component → module/component}/IComponent.sol/IComponent.json +1 -1
  82. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +4 -0
  83. package/artifacts/contracts/instance/{product/IProductService.sol/IProductService.json → module/component/IComponent.sol/IComponentModule.json} +66 -57
  84. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicy.json +1 -1
  86. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +4 -0
  87. package/artifacts/contracts/instance/{policy → module/policy}/IPolicy.sol/IPolicyModule.json +145 -111
  88. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +4 -0
  89. package/artifacts/contracts/instance/{policy → module/policy}/PolicyModule.sol/PolicyModule.json +146 -112
  90. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +4 -0
  91. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPool.json +1 -1
  92. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +4 -0
  93. package/artifacts/contracts/instance/{pool → module/pool}/IPoolModule.sol/IPoolModule.json +67 -52
  94. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +4 -0
  95. package/artifacts/contracts/instance/{pool → module/pool}/PoolModule.sol/PoolModule.json +51 -62
  96. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +4 -0
  97. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.json +10 -0
  98. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +4 -0
  99. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +132 -0
  100. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +4 -0
  101. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +150 -0
  102. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +4 -0
  103. package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasury.json +1 -1
  104. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +4 -0
  105. package/artifacts/contracts/instance/{treasury → module/treasury}/ITreasury.sol/ITreasuryModule.json +231 -190
  106. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  107. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +76 -0
  108. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +4 -0
  109. package/artifacts/contracts/instance/{treasury → module/treasury}/TreasuryModule.sol/TreasuryModule.json +232 -191
  110. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +4 -0
  111. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +523 -0
  112. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +4 -0
  113. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +364 -0
  114. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  115. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +376 -0
  116. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  117. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +548 -0
  118. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  119. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +471 -0
  120. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  121. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +744 -0
  122. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  123. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +65 -2
  124. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
  125. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  126. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +147 -30
  127. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  128. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +24 -0
  129. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  130. package/artifacts/contracts/registry/Registry.sol/Registry.json +241 -25
  131. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  132. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +35 -0
  133. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +4 -0
  134. package/artifacts/contracts/{registry/IRegistry.sol → shared/IOwnable.sol}/IOwnable.json +1 -1
  135. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  136. package/artifacts/contracts/{registry/IRegistry.sol → shared/IRegisterable.sol}/IRegisterable.json +16 -61
  137. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  138. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +164 -0
  139. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  140. package/artifacts/contracts/{registry/Registry.sol → shared/Registerable.sol}/Registerable.json +16 -61
  141. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  142. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +164 -0
  143. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  144. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  145. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +4 -0
  146. package/artifacts/contracts/test/TestPool.sol/TestPool.json +455 -0
  147. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  148. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +479 -0
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  150. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +137 -0
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  152. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  153. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  154. package/artifacts/contracts/test/TestService.sol/TestService.json +379 -0
  155. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  156. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +338 -0
  157. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  158. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  159. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  160. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +206 -0
  161. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  162. package/artifacts/contracts/{mock → test}/Usdc.sol/USDC.json +3 -3
  163. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  164. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  165. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  166. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  167. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  168. package/artifacts/contracts/types/Fee.sol/FeeLib.json +218 -0
  169. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  170. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +111 -0
  171. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +65 -4
  173. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  174. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +10 -0
  175. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  176. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  177. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  178. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  179. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  180. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  181. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  183. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +64 -2
  185. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +58 -58
  187. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  188. package/artifacts/contracts/types/Version.sol/VersionLib.json +139 -0
  189. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  190. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  191. package/contracts/components/BaseComponent.sol +94 -0
  192. package/contracts/components/IBaseComponent.sol +19 -0
  193. package/contracts/components/IPoolComponent.sol +57 -0
  194. package/contracts/components/{IProduct.sol → IProductComponent.sol} +9 -6
  195. package/contracts/components/Pool.sol +155 -16
  196. package/contracts/components/Product.sol +116 -24
  197. package/contracts/instance/IInstance.sol +37 -11
  198. package/contracts/instance/IInstanceLinked.sol +8 -0
  199. package/contracts/instance/Instance.sol +48 -49
  200. package/contracts/instance/base/ComponentServiceBase.sol +42 -0
  201. package/contracts/instance/base/IInstanceBase.sol +19 -0
  202. package/contracts/instance/base/IKeyValueStore.sol +50 -0
  203. package/contracts/instance/{lifecycle → base}/ILifecycle.sol +4 -21
  204. package/contracts/instance/base/IService.sol +15 -0
  205. package/contracts/instance/base/InstanceBase.sol +84 -0
  206. package/contracts/instance/base/KeyValueStore.sol +161 -0
  207. package/contracts/instance/base/Lifecycle.sol +100 -0
  208. package/contracts/instance/base/ModuleBase.sol +53 -0
  209. package/contracts/instance/base/ServiceBase.sol +37 -0
  210. package/contracts/instance/module/access/Access.sol +149 -0
  211. package/contracts/instance/module/access/IAccess.sol +53 -0
  212. package/contracts/instance/module/bundle/BundleModule.sol +135 -0
  213. package/contracts/instance/module/bundle/IBundle.sol +51 -0
  214. package/contracts/instance/module/compensation/CompensationModule.sol +17 -0
  215. package/contracts/instance/module/compensation/ICompensation.sol +10 -0
  216. package/contracts/instance/module/component/ComponentModule.sol +81 -0
  217. package/contracts/instance/module/component/IComponent.sol +29 -0
  218. package/contracts/instance/module/policy/IPolicy.sol +62 -0
  219. package/contracts/instance/module/policy/PolicyModule.sol +92 -0
  220. package/contracts/instance/module/pool/IPoolModule.sol +40 -0
  221. package/contracts/instance/module/pool/PoolModule.sol +90 -0
  222. package/contracts/instance/module/risk/IRisk.sol +27 -0
  223. package/contracts/instance/module/risk/RiskModule.sol +70 -0
  224. package/contracts/instance/module/treasury/ITreasury.sol +96 -0
  225. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  226. package/contracts/instance/module/treasury/TreasuryModule.sol +171 -0
  227. package/contracts/instance/service/ComponentOwnerService.sol +155 -0
  228. package/contracts/instance/service/IComponentOwnerService.sol +22 -0
  229. package/contracts/instance/service/IPoolService.sol +30 -0
  230. package/contracts/instance/service/IProductService.sol +78 -0
  231. package/contracts/instance/service/PoolService.sol +129 -0
  232. package/contracts/instance/service/ProductService.sol +406 -0
  233. package/contracts/registry/ChainNft.sol +61 -37
  234. package/contracts/registry/IRegistry.sol +24 -34
  235. package/contracts/registry/IRegistryLinked.sol +8 -0
  236. package/contracts/registry/Registry.sol +284 -85
  237. package/contracts/shared/ERC165.sol +21 -0
  238. package/contracts/shared/IOwnable.sol +6 -0
  239. package/contracts/shared/IRegisterable.sol +24 -0
  240. package/contracts/shared/IVersionable.sol +52 -0
  241. package/contracts/shared/Registerable.sol +86 -0
  242. package/contracts/shared/Versionable.sol +89 -0
  243. package/contracts/test/TestFee.sol +25 -0
  244. package/contracts/test/TestPool.sol +24 -0
  245. package/contracts/test/TestProduct.sol +66 -0
  246. package/contracts/test/TestRegisterable.sol +19 -0
  247. package/contracts/test/TestRoleId.sol +14 -0
  248. package/contracts/test/TestService.sol +32 -0
  249. package/contracts/{mock/Dip.sol → test/TestToken.sol} +5 -5
  250. package/contracts/test/TestVersion.sol +44 -0
  251. package/contracts/test/TestVersionable.sol +17 -0
  252. package/contracts/{mock → test}/Usdc.sol +1 -1
  253. package/contracts/types/AddressSet.sol +58 -0
  254. package/contracts/types/Fee.sol +39 -20
  255. package/contracts/types/Key32.sol +45 -0
  256. package/contracts/types/NftId.sol +22 -1
  257. package/contracts/types/NftIdSet.sol +60 -0
  258. package/contracts/types/ObjectType.sol +33 -13
  259. package/contracts/types/RiskId.sol +43 -0
  260. package/contracts/types/RoleId.sol +38 -0
  261. package/contracts/types/StateId.sol +13 -3
  262. package/contracts/types/Timestamp.sol +22 -1
  263. package/contracts/types/UFixed.sol +12 -13
  264. package/contracts/types/Version.sol +95 -0
  265. package/package.json +8 -3
  266. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  267. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  268. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  269. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  270. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  271. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  272. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  273. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  274. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  275. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  276. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  277. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  278. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  279. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  280. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  281. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  282. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  283. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  284. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  285. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -217
  286. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  287. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  288. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  289. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  290. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  291. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  293. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  294. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  295. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  296. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  297. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  298. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  299. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  300. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  301. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  302. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  303. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  304. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  305. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  306. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  307. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  308. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  309. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  310. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  311. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  312. package/artifacts/contracts/mock/Dip.sol/DIP.dbg.json +0 -4
  313. package/artifacts/contracts/mock/Dip.sol/DIP.json +0 -338
  314. package/artifacts/contracts/mock/TestPool.sol/TestPool.dbg.json +0 -4
  315. package/artifacts/contracts/mock/TestPool.sol/TestPool.json +0 -294
  316. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.dbg.json +0 -4
  317. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.json +0 -384
  318. package/artifacts/contracts/mock/Usdc.sol/USDC.dbg.json +0 -4
  319. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  320. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  321. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  322. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  323. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  324. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  325. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  326. package/contracts/components/Component.sol +0 -77
  327. package/contracts/components/IPool.sol +0 -15
  328. package/contracts/instance/access/Access.sol +0 -165
  329. package/contracts/instance/access/IAccess.sol +0 -63
  330. package/contracts/instance/component/ComponentModule.sol +0 -274
  331. package/contracts/instance/component/IComponent.sol +0 -74
  332. package/contracts/instance/lifecycle/LifecycleModule.sol +0 -88
  333. package/contracts/instance/policy/IPolicy.sol +0 -50
  334. package/contracts/instance/policy/PolicyModule.sol +0 -114
  335. package/contracts/instance/pool/IPoolModule.sol +0 -23
  336. package/contracts/instance/pool/PoolModule.sol +0 -81
  337. package/contracts/instance/product/IProductService.sol +0 -36
  338. package/contracts/instance/product/ProductService.sol +0 -136
  339. package/contracts/instance/treasury/ITreasury.sol +0 -91
  340. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  341. package/contracts/instance/treasury/TreasuryModule.sol +0 -168
  342. package/contracts/mock/TestPool.sol +0 -16
  343. package/contracts/mock/TestProduct.sol +0 -39
@@ -11,15 +11,25 @@
11
11
  "type": "address"
12
12
  },
13
13
  {
14
- "internalType": "address",
15
- "name": "instance",
16
- "type": "address"
14
+ "internalType": "NftId",
15
+ "name": "instanceNftId",
16
+ "type": "uint96"
17
17
  },
18
18
  {
19
19
  "internalType": "address",
20
20
  "name": "token",
21
21
  "type": "address"
22
22
  },
23
+ {
24
+ "internalType": "bool",
25
+ "name": "verifying",
26
+ "type": "bool"
27
+ },
28
+ {
29
+ "internalType": "UFixed",
30
+ "name": "collateralizationLevel",
31
+ "type": "uint256"
32
+ },
23
33
  {
24
34
  "components": [
25
35
  {
@@ -61,36 +71,65 @@
61
71
  {
62
72
  "anonymous": false,
63
73
  "inputs": [
74
+ {
75
+ "indexed": false,
76
+ "internalType": "NftId",
77
+ "name": "policyNftId",
78
+ "type": "uint96"
79
+ },
64
80
  {
65
81
  "indexed": false,
66
82
  "internalType": "uint256",
67
- "name": "idx",
83
+ "name": "collateralizationAmount",
68
84
  "type": "uint256"
69
85
  },
70
86
  {
71
87
  "indexed": false,
72
88
  "internalType": "address",
73
- "name": "module",
89
+ "name": "pool",
74
90
  "type": "address"
91
+ }
92
+ ],
93
+ "name": "LogUnderwrittenByPool",
94
+ "type": "event"
95
+ },
96
+ {
97
+ "inputs": [
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "initialAmount",
101
+ "type": "uint256"
75
102
  },
76
103
  {
77
- "indexed": false,
78
- "internalType": "string",
79
- "name": "comment",
80
- "type": "string"
104
+ "internalType": "uint256",
105
+ "name": "lifetime",
106
+ "type": "uint256"
107
+ },
108
+ {
109
+ "internalType": "bytes",
110
+ "name": "filter",
111
+ "type": "bytes"
81
112
  }
82
113
  ],
83
- "name": "LogDebug",
84
- "type": "event"
114
+ "name": "createBundle",
115
+ "outputs": [
116
+ {
117
+ "internalType": "NftId",
118
+ "name": "bundleNftId",
119
+ "type": "uint96"
120
+ }
121
+ ],
122
+ "stateMutability": "nonpayable",
123
+ "type": "function"
85
124
  },
86
125
  {
87
126
  "inputs": [],
88
- "name": "getData",
127
+ "name": "getCollateralizationLevel",
89
128
  "outputs": [
90
129
  {
91
- "internalType": "bytes",
92
- "name": "data",
93
- "type": "bytes"
130
+ "internalType": "UFixed",
131
+ "name": "collateralizationLevel",
132
+ "type": "uint256"
94
133
  }
95
134
  ],
96
135
  "stateMutability": "view",
@@ -98,12 +137,12 @@
98
137
  },
99
138
  {
100
139
  "inputs": [],
101
- "name": "getInitialOwner",
140
+ "name": "getData",
102
141
  "outputs": [
103
142
  {
104
- "internalType": "address",
105
- "name": "deployer",
106
- "type": "address"
143
+ "internalType": "bytes",
144
+ "name": "data",
145
+ "type": "bytes"
107
146
  }
108
147
  ],
109
148
  "stateMutability": "view",
@@ -154,7 +193,7 @@
154
193
  "outputs": [
155
194
  {
156
195
  "internalType": "NftId",
157
- "name": "",
196
+ "name": "nftId",
158
197
  "type": "uint96"
159
198
  }
160
199
  ],
@@ -265,24 +304,42 @@
265
304
  },
266
305
  {
267
306
  "inputs": [],
268
- "name": "isRegisterable",
307
+ "name": "isVerifying",
269
308
  "outputs": [
270
309
  {
271
310
  "internalType": "bool",
272
- "name": "",
311
+ "name": "verifying",
273
312
  "type": "bool"
274
313
  }
275
314
  ],
276
- "stateMutability": "pure",
315
+ "stateMutability": "view",
277
316
  "type": "function"
278
317
  },
279
318
  {
280
319
  "inputs": [],
281
- "name": "isRegistered",
320
+ "name": "lock",
321
+ "outputs": [],
322
+ "stateMutability": "nonpayable",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "bytes",
329
+ "name": "",
330
+ "type": "bytes"
331
+ },
332
+ {
333
+ "internalType": "bytes",
334
+ "name": "",
335
+ "type": "bytes"
336
+ }
337
+ ],
338
+ "name": "policyMatchesBundle",
282
339
  "outputs": [
283
340
  {
284
341
  "internalType": "bool",
285
- "name": "",
342
+ "name": "isMatching",
286
343
  "type": "bool"
287
344
  }
288
345
  ],
@@ -301,16 +358,82 @@
301
358
  ],
302
359
  "stateMutability": "nonpayable",
303
360
  "type": "function"
361
+ },
362
+ {
363
+ "inputs": [
364
+ {
365
+ "internalType": "bytes4",
366
+ "name": "interfaceId",
367
+ "type": "bytes4"
368
+ }
369
+ ],
370
+ "name": "supportsInterface",
371
+ "outputs": [
372
+ {
373
+ "internalType": "bool",
374
+ "name": "",
375
+ "type": "bool"
376
+ }
377
+ ],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ {
384
+ "internalType": "NftId",
385
+ "name": "policyNftId",
386
+ "type": "uint96"
387
+ },
388
+ {
389
+ "internalType": "bytes",
390
+ "name": "policyData",
391
+ "type": "bytes"
392
+ },
393
+ {
394
+ "internalType": "bytes",
395
+ "name": "bundleFilter",
396
+ "type": "bytes"
397
+ },
398
+ {
399
+ "internalType": "uint256",
400
+ "name": "collateralizationAmount",
401
+ "type": "uint256"
402
+ }
403
+ ],
404
+ "name": "underwrite",
405
+ "outputs": [],
406
+ "stateMutability": "nonpayable",
407
+ "type": "function"
408
+ },
409
+ {
410
+ "inputs": [],
411
+ "name": "unlock",
412
+ "outputs": [],
413
+ "stateMutability": "nonpayable",
414
+ "type": "function"
304
415
  }
305
416
  ],
306
- "bytecode": "0x608060405234801561001057600080fd5b50604051610a9a380380610a9a83398101604081905261002f9161011a565b600080546001600160a01b039687166001600160a01b03199182161790915560018054821633179055600280549587169582169590951790945560048054851630179055600580549590931694909316939093179055815160065560209182015160075580516008550151600955610181565b80516001600160a01b03811681146100b957600080fd5b919050565b6000604082840312156100d057600080fd5b604080519081016001600160401b038111828210171561010057634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b600080600080600060e0868803121561013257600080fd5b61013b866100a2565b9450610149602087016100a2565b9350610157604087016100a2565b925061016687606088016100be565b91506101758760a088016100be565b90509295509295909350565b61090a806101906000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
307
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
417
+ "bytecode": "0x60e06040523480156200001157600080fd5b5060405162001bbf38038062001bbf833981016040819052620000349162000791565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905586868682826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000147919062000824565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000213919062000824565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c9190810190620008d6565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630506037b60e21b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba919062000824565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c9190620009b0565b600180546001600160a01b039283166001600160a01b0319918216179091556003805482163017905560048054928516929091169190911781556005805460ff60a01b1916905560408051632bd182d360e01b8152815173__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39383820193909291908290030181865af4158015620004f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005179190620009d0565b80516006556020908101516007556008805460ff19168a151517905560098890558651600a5586810151600b558551600c5585810151600d5560055460408051636b9bf08b60e01b815290516001600160a01b039092169650636b9bf08b9550600480820195509293509091908290030181865afa1580156200059e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005c49190620009b0565b600e80546001600160a01b0319166001600160a01b0392831617905560055460408051634288121d60e01b815290519190921691634288121d9160048083019260209291908290030181865afa15801562000623573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006499190620009b0565b600f80546001600160a01b0319166001600160a01b039290921691909117905550620009ef95505050505050565b6001600160a01b03811681146200068d57600080fd5b50565b80516200069d8162000677565b919050565b80516001600160601b03811681146200069d57600080fd5b805180151581146200069d57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715620007065762000706620006cb565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007375762000737620006cb565b604052919050565b6000604082840312156200075257600080fd5b604080519081016001600160401b0381118282101715620007775762000777620006cb565b604052825181526020928301519281019290925250919050565b6000806000806000806000610120888a031215620007ae57600080fd5b8751620007bb8162000677565b9650620007cb60208901620006a2565b95506040880151620007dd8162000677565b9450620007ed60608901620006ba565b935060808801519250620008058960a08a016200073f565b9150620008168960e08a016200073f565b905092959891949750929550565b6000602082840312156200083757600080fd5b6200084282620006ba565b9392505050565b600082601f8301126200085b57600080fd5b81516001600160401b03811115620008775762000877620006cb565b60206200088d601f8301601f191682016200070c565b8281528582848701011115620008a257600080fd5b60005b83811015620008c2578581018301518282018401528201620008a5565b506000928101909101919091529392505050565b600060208284031215620008e957600080fd5b81516001600160401b03808211156200090157600080fd5b9083019060c082860312156200091657600080fd5b62000920620006e1565b6200092b83620006a2565b81526200093b60208401620006a2565b6020820152604083015160ff811681146200095557600080fd5b6040820152620009686060840162000690565b60608201526200097b6080840162000690565b608082015260a0830151828111156200099357600080fd5b620009a18782860162000849565b60a08301525095945050505050565b600060208284031215620009c357600080fd5b8151620008428162000677565b600060408284031215620009e357600080fd5b6200084283836200073f565b60805160a05160c05161117d62000a426000396000610a0a015260006101fd01526000818161025601528181610344015281816103da015281816108a60152818161098d0152610a4d015261117d6000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102aa578063b487aa7d146102b2578063dab12325146102c5578063de7b5d14146102db578063f83d08ba146102ec57600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a257600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610ce9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b604051608c815260200161016a565b6101af6102f9565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e061051e565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610d60565b6101e06106d6565b60095460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61088e565b610295610290366004610e58565b6108f5565b005b60085460ff1661015e565b61018061096b565b610295610ac6565b6101af6102c0366004610ed6565b610b82565b61015e6102d3366004610f26565b600192915050565b6005546001600160a01b0316610180565b610295610c09565b905090565b600061030361096b565b6001600160a01b0316336001600160a01b0316146103425760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103b85760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610339565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa158015610423573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104479190610f8a565b61049d5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610339565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f49190610fbc565b60408051808201909152600080825260208201526005546000906001600160a01b0316639ae31ff561054e61088e565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa158015610592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b69190610fbc565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106359190610f8a565b156106ba5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa15801561068c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b09190611048565b60e0015191505090565b505060408051808201909152600c548152600d54602082015290565b60408051808201909152600080825260208201526005546000906001600160a01b0316639ae31ff561070661088e565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa15801561074a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076e9190610fbc565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed9190610f8a565b156108725760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108689190611048565b60c0015191505090565b505060408051808201909152600a548152600b54602082015290565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104fa573d6000803e3d6000fd5b600f546001600160a01b031633146109595760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610339565b61096584848484610c9b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156109d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f89190610fbc565b90506001600160601b038116610a2f577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac091906110f3565b91505090565b610ace61096b565b6001600160a01b0316336001600160a01b031614610b285760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610339565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610b6e57600080fd5b505af1158015610965573d6000803e3d6000fd5b600e546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a90610bbd908490899089908990600401611110565b6020604051808303816000875af1158015610bdc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c009190610fbc565b95945050505050565b610c1161096b565b6001600160a01b0316336001600160a01b031614610c6b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610339565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610b54565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610cfb57600080fd5b81356001600160e01b031981168114610d1357600080fd5b9392505050565b6000815180845260005b81811015610d4057602081850181015186830182015201610d24565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610d136020830184610d1a565b6001600160601b0381168114610d8857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051610100810167ffffffffffffffff81118282101715610dc557610dc5610d8b565b60405290565b600082601f830112610ddc57600080fd5b813567ffffffffffffffff80821115610df757610df7610d8b565b604051601f8301601f19908116603f01168101908282118183101715610e1f57610e1f610d8b565b81604052838152866020858801011115610e3857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610e6e57600080fd5b8435610e7981610d73565b9350602085013567ffffffffffffffff80821115610e9657600080fd5b610ea288838901610dcb565b94506040870135915080821115610eb857600080fd5b50610ec587828801610dcb565b949793965093946060013593505050565b600080600060608486031215610eeb57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610f1057600080fd5b610f1c86828701610dcb565b9150509250925092565b60008060408385031215610f3957600080fd5b823567ffffffffffffffff80821115610f5157600080fd5b610f5d86838701610dcb565b93506020850135915080821115610f7357600080fd5b50610f8085828601610dcb565b9150509250929050565b600060208284031215610f9c57600080fd5b81518015158114610d1357600080fd5b8051610fb781610d73565b919050565b600060208284031215610fce57600080fd5b8151610d1381610d73565b6001600160a01b0381168114610d8857600080fd5b8051610fb781610fd9565b60006040828403121561100b57600080fd5b6040516040810181811067ffffffffffffffff8211171561102e5761102e610d8b565b604052825181526020928301519281019290925250919050565b60006101a0828403121561105b57600080fd5b611063610da1565b61106c83610fac565b815261107a60208401610fac565b602082015261108b60408401610fee565b604082015261109d8460608501610ff9565b60608201526110af8460a08501610ff9565b60808201526110c18460e08501610ff9565b60a08201526110d4846101208501610ff9565b60c08201526110e7846101608501610ff9565b60e08201529392505050565b60006020828403121561110557600080fd5b8151610d1381610fd9565b60018060a01b038516815283602082015282604082015260806060820152600061113d6080830184610d1a565b969550505050505056fea264697066735822122085475ff8a614064b967a2ad7948529ba04b4691ccc652724fc5d037c3e34b7d764736f6c63430008140033",
418
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102aa578063b487aa7d146102b2578063dab12325146102c5578063de7b5d14146102db578063f83d08ba146102ec57600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a257600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610ce9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b604051608c815260200161016a565b6101af6102f9565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e061051e565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610d60565b6101e06106d6565b60095460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61088e565b610295610290366004610e58565b6108f5565b005b60085460ff1661015e565b61018061096b565b610295610ac6565b6101af6102c0366004610ed6565b610b82565b61015e6102d3366004610f26565b600192915050565b6005546001600160a01b0316610180565b610295610c09565b905090565b600061030361096b565b6001600160a01b0316336001600160a01b0316146103425760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103b85760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610339565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa158015610423573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104479190610f8a565b61049d5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610339565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104fa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f49190610fbc565b60408051808201909152600080825260208201526005546000906001600160a01b0316639ae31ff561054e61088e565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa158015610592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b69190610fbc565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106359190610f8a565b156106ba5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa15801561068c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b09190611048565b60e0015191505090565b505060408051808201909152600c548152600d54602082015290565b60408051808201909152600080825260208201526005546000906001600160a01b0316639ae31ff561070661088e565b6040516001600160e01b031960e084901b1681526001600160601b039091166004820152602401602060405180830381865afa15801561074a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076e9190610fbc565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed9190610f8a565b156108725760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108689190611048565b60c0015191505090565b505060408051808201909152600a548152600b54602082015290565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104fa573d6000803e3d6000fd5b600f546001600160a01b031633146109595760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610339565b61096584848484610c9b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156109d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f89190610fbc565b90506001600160601b038116610a2f577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa158015610a9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac091906110f3565b91505090565b610ace61096b565b6001600160a01b0316336001600160a01b031614610b285760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610339565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610b6e57600080fd5b505af1158015610965573d6000803e3d6000fd5b600e546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a90610bbd908490899089908990600401611110565b6020604051808303816000875af1158015610bdc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c009190610fbc565b95945050505050565b610c1161096b565b6001600160a01b0316336001600160a01b031614610c6b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610339565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610b54565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610cfb57600080fd5b81356001600160e01b031981168114610d1357600080fd5b9392505050565b6000815180845260005b81811015610d4057602081850181015186830182015201610d24565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610d136020830184610d1a565b6001600160601b0381168114610d8857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051610100810167ffffffffffffffff81118282101715610dc557610dc5610d8b565b60405290565b600082601f830112610ddc57600080fd5b813567ffffffffffffffff80821115610df757610df7610d8b565b604051601f8301601f19908116603f01168101908282118183101715610e1f57610e1f610d8b565b81604052838152866020858801011115610e3857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610e6e57600080fd5b8435610e7981610d73565b9350602085013567ffffffffffffffff80821115610e9657600080fd5b610ea288838901610dcb565b94506040870135915080821115610eb857600080fd5b50610ec587828801610dcb565b949793965093946060013593505050565b600080600060608486031215610eeb57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610f1057600080fd5b610f1c86828701610dcb565b9150509250925092565b60008060408385031215610f3957600080fd5b823567ffffffffffffffff80821115610f5157600080fd5b610f5d86838701610dcb565b93506020850135915080821115610f7357600080fd5b50610f8085828601610dcb565b9150509250929050565b600060208284031215610f9c57600080fd5b81518015158114610d1357600080fd5b8051610fb781610d73565b919050565b600060208284031215610fce57600080fd5b8151610d1381610d73565b6001600160a01b0381168114610d8857600080fd5b8051610fb781610fd9565b60006040828403121561100b57600080fd5b6040516040810181811067ffffffffffffffff8211171561102e5761102e610d8b565b604052825181526020928301519281019290925250919050565b60006101a0828403121561105b57600080fd5b611063610da1565b61106c83610fac565b815261107a60208401610fac565b602082015261108b60408401610fee565b604082015261109d8460608501610ff9565b60608201526110af8460a08501610ff9565b60808201526110c18460e08501610ff9565b60a08201526110d4846101208501610ff9565b60c08201526110e7846101608501610ff9565b60e08201529392505050565b60006020828403121561110557600080fd5b8151610d1381610fd9565b60018060a01b038516815283602082015282604082015260806060820152600061113d6080830184610d1a565b969550505050505056fea264697066735822122085475ff8a614064b967a2ad7948529ba04b4691ccc652724fc5d037c3e34b7d764736f6c63430008140033",
308
419
  "linkReferences": {
420
+ "contracts/types/Fee.sol": {
421
+ "FeeLib": [
422
+ {
423
+ "length": 20,
424
+ "start": 1205
425
+ }
426
+ ]
427
+ },
309
428
  "contracts/types/NftId.sol": {
310
429
  "NftIdLib": [
311
430
  {
312
431
  "length": 20,
313
- "start": 1741
432
+ "start": 4121
433
+ },
434
+ {
435
+ "length": 20,
436
+ "start": 4561
314
437
  }
315
438
  ]
316
439
  }
@@ -320,7 +443,11 @@
320
443
  "NftIdLib": [
321
444
  {
322
445
  "length": 20,
323
- "start": 1341
446
+ "start": 1495
447
+ },
448
+ {
449
+ "length": 20,
450
+ "start": 1935
324
451
  }
325
452
  ]
326
453
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -11,9 +11,9 @@
11
11
  "type": "address"
12
12
  },
13
13
  {
14
- "internalType": "address",
15
- "name": "instance",
16
- "type": "address"
14
+ "internalType": "NftId",
15
+ "name": "instanceNftid",
16
+ "type": "uint96"
17
17
  },
18
18
  {
19
19
  "internalType": "address",
@@ -63,31 +63,6 @@
63
63
  "stateMutability": "nonpayable",
64
64
  "type": "constructor"
65
65
  },
66
- {
67
- "anonymous": false,
68
- "inputs": [
69
- {
70
- "indexed": false,
71
- "internalType": "uint256",
72
- "name": "idx",
73
- "type": "uint256"
74
- },
75
- {
76
- "indexed": false,
77
- "internalType": "address",
78
- "name": "module",
79
- "type": "address"
80
- },
81
- {
82
- "indexed": false,
83
- "internalType": "string",
84
- "name": "comment",
85
- "type": "string"
86
- }
87
- ],
88
- "name": "LogDebug",
89
- "type": "event"
90
- },
91
66
  {
92
67
  "inputs": [],
93
68
  "name": "getData",
@@ -101,19 +76,6 @@
101
76
  "stateMutability": "view",
102
77
  "type": "function"
103
78
  },
104
- {
105
- "inputs": [],
106
- "name": "getInitialOwner",
107
- "outputs": [
108
- {
109
- "internalType": "address",
110
- "name": "deployer",
111
- "type": "address"
112
- }
113
- ],
114
- "stateMutability": "view",
115
- "type": "function"
116
- },
117
79
  {
118
80
  "inputs": [],
119
81
  "name": "getInstance",
@@ -159,7 +121,7 @@
159
121
  "outputs": [
160
122
  {
161
123
  "internalType": "NftId",
162
- "name": "",
124
+ "name": "nftId",
163
125
  "type": "uint96"
164
126
  }
165
127
  ],
@@ -283,20 +245,75 @@
283
245
  },
284
246
  {
285
247
  "inputs": [],
286
- "name": "isRegisterable",
248
+ "name": "lock",
249
+ "outputs": [],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "register",
287
256
  "outputs": [
288
257
  {
289
- "internalType": "bool",
290
- "name": "",
291
- "type": "bool"
258
+ "internalType": "NftId",
259
+ "name": "componentId",
260
+ "type": "uint96"
292
261
  }
293
262
  ],
294
- "stateMutability": "pure",
263
+ "stateMutability": "nonpayable",
295
264
  "type": "function"
296
265
  },
297
266
  {
298
- "inputs": [],
299
- "name": "isRegistered",
267
+ "inputs": [
268
+ {
269
+ "components": [
270
+ {
271
+ "internalType": "UFixed",
272
+ "name": "fractionalFee",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "fixedFee",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "internalType": "struct Fee",
282
+ "name": "policyFee",
283
+ "type": "tuple"
284
+ },
285
+ {
286
+ "components": [
287
+ {
288
+ "internalType": "UFixed",
289
+ "name": "fractionalFee",
290
+ "type": "uint256"
291
+ },
292
+ {
293
+ "internalType": "uint256",
294
+ "name": "fixedFee",
295
+ "type": "uint256"
296
+ }
297
+ ],
298
+ "internalType": "struct Fee",
299
+ "name": "processingFee",
300
+ "type": "tuple"
301
+ }
302
+ ],
303
+ "name": "setFees",
304
+ "outputs": [],
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [
310
+ {
311
+ "internalType": "bytes4",
312
+ "name": "interfaceId",
313
+ "type": "bytes4"
314
+ }
315
+ ],
316
+ "name": "supportsInterface",
300
317
  "outputs": [
301
318
  {
302
319
  "internalType": "bool",
@@ -309,38 +326,23 @@
309
326
  },
310
327
  {
311
328
  "inputs": [],
312
- "name": "register",
313
- "outputs": [
314
- {
315
- "internalType": "NftId",
316
- "name": "componentId",
317
- "type": "uint96"
318
- }
319
- ],
329
+ "name": "unlock",
330
+ "outputs": [],
320
331
  "stateMutability": "nonpayable",
321
332
  "type": "function"
322
333
  }
323
334
  ],
324
- "bytecode": "0x608060405234801561001057600080fd5b50604051610bad380380610bad83398101604081905261002f916101a5565b600080546001600160a01b038089166001600160a01b031992831617909255600180548216331790556002805483891690831681179091556004805483163017815560058054948916949093169390931790915560408051634288121d60e01b815290519192634288121d9282820192602092908290030181865afa1580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e09190610227565b600680546001600160a01b039283166001600160a01b031991821617909155600780549590921694169390931790925580516008556020908101516009558151600a550151600b555061024b915050565b6001600160a01b038116811461014657600080fd5b50565b60006040828403121561015b57600080fd5b604080519081016001600160401b038111828210171561018b57634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008060008060008061010087890312156101bf57600080fd5b86516101ca81610131565b60208801519096506101db81610131565b60408801519095506101ec81610131565b60608801519094506101fd81610131565b925061020c8860808901610149565b915061021b8860c08901610149565b90509295509295509295565b60006020828403121561023957600080fd5b815161024481610131565b9392505050565b6109538061025a6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635ab1bd5311610097578063bc74aab011610066578063bc74aab0146101d4578063daafed4014610218578063de7b5d1414610245578063fb2cb1011461025657600080fd5b80635ab1bd53146101ac578063644c45e0146101bd57806379e829d0146101c5578063893d20e8146101cc57600080fd5b806321df0da7116100d357806321df0da714610166578063223668441461017757806331b62a3b1461018f5780633bc5de301461019757600080fd5b8063132996041461010557806315dae03e1461012f5780631aa3a0081461013e5780631bdd6b761461015e575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b604051603c8152602001610126565b61014661026c565b6040516001600160601b039091168152602001610126565b6101466104c2565b6005546001600160a01b0316610112565b61017f610534565b6040519015158152602001610126565b610146610620565b61019f610671565b6040516101269190610848565b6000546001600160a01b0316610112565b61014661070f565b600161017f565b610112610740565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b60408051825181526020928301519281019290925201610126565b60408051808201825260008082526020918201528151808301909252600a548252600b54908201526101fd565b6002546001600160a01b0316610112565b6001546001600160a01b0316610112565b905090565b60006102806001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102bf5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103175760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102b6565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610896565b6103e15760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102b6565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f91906108d7565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc91906108f4565b91505090565b60008054600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026791906108f4565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a191906108f4565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610896565b60006106346002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b60606106856002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e691906108f4565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e906024016104f3565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906108f4565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906108d7565b91506001600160a01b038216610844576001546001600160a01b03166104bc565b5090565b600060208083528351808285015260005b8181101561087557858101830151858201604001528201610859565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108a857600080fd5b815180151581146108b857600080fd5b9392505050565b6001600160a01b03811681146108d457600080fd5b50565b6000602082840312156108e957600080fd5b81516108b8816108bf565b60006020828403121561090657600080fd5b81516001600160601b03811681146108b857600080fdfea2646970667358221220ce4ca508b37dbeab6ef1fe6b2720f05ec3a77afe9d078ea5e62994dfb9be135064736f6c63430008140033",
325
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635ab1bd5311610097578063bc74aab011610066578063bc74aab0146101d4578063daafed4014610218578063de7b5d1414610245578063fb2cb1011461025657600080fd5b80635ab1bd53146101ac578063644c45e0146101bd57806379e829d0146101c5578063893d20e8146101cc57600080fd5b806321df0da7116100d357806321df0da714610166578063223668441461017757806331b62a3b1461018f5780633bc5de301461019757600080fd5b8063132996041461010557806315dae03e1461012f5780631aa3a0081461013e5780631bdd6b761461015e575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b604051603c8152602001610126565b61014661026c565b6040516001600160601b039091168152602001610126565b6101466104c2565b6005546001600160a01b0316610112565b61017f610534565b6040519015158152602001610126565b610146610620565b61019f610671565b6040516101269190610848565b6000546001600160a01b0316610112565b61014661070f565b600161017f565b610112610740565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b60408051825181526020928301519281019290925201610126565b60408051808201825260008082526020918201528151808301909252600a548252600b54908201526101fd565b6002546001600160a01b0316610112565b6001546001600160a01b0316610112565b905090565b60006102806001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102bf5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103175760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102b6565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610896565b6103e15760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102b6565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f91906108d7565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc91906108f4565b91505090565b60008054600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026791906108f4565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a191906108f4565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610896565b60006106346002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b60606106856002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e691906108f4565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e906024016104f3565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906108f4565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906108d7565b91506001600160a01b038216610844576001546001600160a01b03166104bc565b5090565b600060208083528351808285015260005b8181101561087557858101830151858201604001528201610859565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108a857600080fd5b815180151581146108b857600080fd5b9392505050565b6001600160a01b03811681146108d457600080fd5b50565b6000602082840312156108e957600080fd5b81516108b8816108bf565b60006020828403121561090657600080fd5b81516001600160601b03811681146108b857600080fdfea2646970667358221220ce4ca508b37dbeab6ef1fe6b2720f05ec3a77afe9d078ea5e62994dfb9be135064736f6c63430008140033",
335
+ "bytecode": "0x60e06040523480156200001157600080fd5b506040516200181c3803806200181c8339810160408190526200003491620006f4565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905585858582826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014791906200077f565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200021391906200077f565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c919081019062000837565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630506037b60e21b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba91906200077f565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000911565b600180546001600160a01b039283166001600160a01b0319918216179091556003805482163017905560048054928516929091169190911781556005805460ff60a01b1916905560408051632bd182d360e01b8152815173__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39383820193909291908290030181865af4158015620004f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000517919062000931565b805160065560209081015160075560055460408051634288121d60e01b815290516001600160a01b039092169650634288121d9550600480820195509293509091908290030181865afa15801562000573573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000599919062000911565b600880546001600160a01b039283166001600160a01b03199182161790915560098054959092169416939093179092558051600a55602090810151600b558151600c550151600d555062000950915050565b6001600160a01b03811681146200060157600080fd5b50565b80516200061181620005eb565b919050565b80516001600160601b03811681146200061157600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200066957620006696200062e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200069a576200069a6200062e565b604052919050565b600060408284031215620006b557600080fd5b604080519081016001600160401b0381118282101715620006da57620006da6200062e565b604052825181526020928301519281019290925250919050565b60008060008060008061010087890312156200070f57600080fd5b86516200071c81620005eb565b95506200072c6020880162000616565b945060408701516200073e81620005eb565b60608801519094506200075181620005eb565b9250620007628860808901620006a2565b9150620007738860c08901620006a2565b90509295509295509295565b6000602082840312156200079257600080fd5b81518015158114620007a357600080fd5b9392505050565b600082601f830112620007bc57600080fd5b81516001600160401b03811115620007d857620007d86200062e565b6020620007ee601f8301601f191682016200066f565b82815285828487010111156200080357600080fd5b60005b838110156200082357858101830151828201840152820162000806565b506000928101909101919091529392505050565b6000602082840312156200084a57600080fd5b81516001600160401b03808211156200086257600080fd5b9083019060c082860312156200087757600080fd5b6200088162000644565b6200088c8362000616565b81526200089c6020840162000616565b6020820152604083015160ff81168114620008b657600080fd5b6040820152620008c96060840162000604565b6060820152620008dc6080840162000604565b608082015260a083015182811115620008f457600080fd5b6200090287828601620007aa565b60a08301525095945050505050565b6000602082840312156200092457600080fd5b8151620007a381620005eb565b6000604082840312156200094457600080fd5b620007a38383620006a2565b60805160a05160c051610e72620009aa600039600061060f015260006101c1015260008181610201015281816102d80152818161036e015281816104d7015281816105370152818161059001526106520152610e726000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80635ab1bd53116100a2578063b6b412ba11610071578063b6b412ba1461023f578063bc74aab014610252578063daafed4014610267578063de7b5d141461026f578063f83d08ba1461028057600080fd5b80635ab1bd53146101ff578063644c45e014610225578063893d20e81461022d578063a69df4b51461023557600080fd5b80631bdd6b76116100de5780631bdd6b76146101a657806321df0da7146101ae57806331b62a3b146101bf5780633bc5de30146101e557600080fd5b806301ffc9a714610110578063132996041461015257806315dae03e146101775780631aa3a00814610186575b600080fd5b61013d61011e366004610b07565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610149565b604051606e8152602001610149565b61018e61028d565b6040516001600160601b039091168152602001610149565b61018e6104b2565b6004546001600160a01b031661015f565b7f000000000000000000000000000000000000000000000000000000000000000061018e565b604080516020810182526000815290516101499190610b38565b7f000000000000000000000000000000000000000000000000000000000000000061015f565b61018e61051f565b61015f61056e565b61023d6106cb565b005b61023d61024d366004610c1f565b610763565b61025a610803565b6040516101499190610c54565b61025a610946565b6005546001600160a01b031661015f565b61023d610a89565b905090565b600061029761056e565b6001600160a01b0316336001600160a01b0316146102d65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661034c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016102cd565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db9190610c6b565b6104315760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016102cd565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102889190610ca9565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561048e573d6000803e3d6000fd5b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610502565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb9190610ca9565b9050610608816000610af1565b15610634577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156106a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c59190610cdc565b91505090565b6106d361056e565b6001600160a01b0316336001600160a01b0316146107035760405162461bcd60e51b81526004016102cd90610cf9565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b50505050565b61076b61056e565b6001600160a01b0316336001600160a01b03161461079b5760405162461bcd60e51b81526004016102cd90610cf9565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906107cd9085908590600401610d30565b600060405180830381600087803b1580156107e757600080fd5b505af11580156107fb573d6000803e3d6000fd5b505050505050565b6040805180820190915260008082526020820152600061082161051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610cdc565b6001600160a01b03161461092a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa1580156108fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109209190610d91565b6080015191505090565b505060408051808201909152600a548152600b54602082015290565b6040805180820190915260008082526020820152600061096461051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190610cdc565b6001600160a01b031614610a6d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a639190610d91565b60a0015191505090565b505060408051808201909152600c548152600d54602082015290565b610a9161056e565b6001600160a01b0316336001600160a01b031614610ac15760405162461bcd60e51b81526004016102cd90610cf9565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a79060240161072f565b6001600160601b03828116908216145b92915050565b600060208284031215610b1957600080fd5b81356001600160e01b031981168114610b3157600080fd5b9392505050565b600060208083528351808285015260005b81811015610b6557858101830151858201604001528201610b49565b506000604082860101526040601f19601f8301168501019250505092915050565b6040805190810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b60405290565b604051610100810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b600060408284031215610c0157600080fd5b610c09610b86565b9050813581526020820135602082015292915050565b60008060808385031215610c3257600080fd5b610c3c8484610bef565b9150610c4b8460408501610bef565b90509250929050565b815181526020808301519082015260408101610b01565b600060208284031215610c7d57600080fd5b81518015158114610b3157600080fd5b80516001600160601b0381168114610ca457600080fd5b919050565b600060208284031215610cbb57600080fd5b610b3182610c8d565b6001600160a01b0381168114610cd957600080fd5b50565b600060208284031215610cee57600080fd5b8151610b3181610cc4565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610b31565b8051610ca481610cc4565b600060408284031215610d7357600080fd5b610d7b610b86565b9050815181526020820151602082015292915050565b60006101a08284031215610da457600080fd5b610dac610bbd565b610db583610c8d565b8152610dc360208401610c8d565b6020820152610dd460408401610d56565b6040820152610de68460608501610d61565b6060820152610df88460a08501610d61565b6080820152610e0a8460e08501610d61565b60a0820152610e1d846101208501610d61565b60c0820152610e30846101608501610d61565b60e0820152939250505056fea2646970667358221220137046d2ea9d1f7f412d1bfc02656507f9938eb7c02f74e695cee49880caf1aa64736f6c63430008140033",
336
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80635ab1bd53116100a2578063b6b412ba11610071578063b6b412ba1461023f578063bc74aab014610252578063daafed4014610267578063de7b5d141461026f578063f83d08ba1461028057600080fd5b80635ab1bd53146101ff578063644c45e014610225578063893d20e81461022d578063a69df4b51461023557600080fd5b80631bdd6b76116100de5780631bdd6b76146101a657806321df0da7146101ae57806331b62a3b146101bf5780633bc5de30146101e557600080fd5b806301ffc9a714610110578063132996041461015257806315dae03e146101775780631aa3a00814610186575b600080fd5b61013d61011e366004610b07565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610149565b604051606e8152602001610149565b61018e61028d565b6040516001600160601b039091168152602001610149565b61018e6104b2565b6004546001600160a01b031661015f565b7f000000000000000000000000000000000000000000000000000000000000000061018e565b604080516020810182526000815290516101499190610b38565b7f000000000000000000000000000000000000000000000000000000000000000061015f565b61018e61051f565b61015f61056e565b61023d6106cb565b005b61023d61024d366004610c1f565b610763565b61025a610803565b6040516101499190610c54565b61025a610946565b6005546001600160a01b031661015f565b61023d610a89565b905090565b600061029761056e565b6001600160a01b0316336001600160a01b0316146102d65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661034c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016102cd565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db9190610c6b565b6104315760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016102cd565b6005805460ff60a01b1916600160a01b179055600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102889190610ca9565b600954604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561048e573d6000803e3d6000fd5b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401610502565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb9190610ca9565b9050610608816000610af1565b15610634577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa1580156106a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c59190610cdc565b91505090565b6106d361056e565b6001600160a01b0316336001600160a01b0316146107035760405162461bcd60e51b81526004016102cd90610cf9565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b50505050565b61076b61056e565b6001600160a01b0316336001600160a01b03161461079b5760405162461bcd60e51b81526004016102cd90610cf9565b600854604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906107cd9085908590600401610d30565b600060405180830381600087803b1580156107e757600080fd5b505af11580156107fb573d6000803e3d6000fd5b505050505050565b6040805180820190915260008082526020820152600061082161051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610cdc565b6001600160a01b03161461092a5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa1580156108fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109209190610d91565b6080015191505090565b505060408051808201909152600a548152600b54602082015290565b6040805180820190915260008082526020820152600061096461051f565b60055460405163a310e2a360e01b81526001600160601b03831660048201529192506000916001600160a01b039091169063a310e2a390602401602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190610cdc565b6001600160a01b031614610a6d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101a060405180830381865afa158015610a3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a639190610d91565b60a0015191505090565b505060408051808201909152600c548152600d54602082015290565b610a9161056e565b6001600160a01b0316336001600160a01b031614610ac15760405162461bcd60e51b81526004016102cd90610cf9565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a79060240161072f565b6001600160601b03828116908216145b92915050565b600060208284031215610b1957600080fd5b81356001600160e01b031981168114610b3157600080fd5b9392505050565b600060208083528351808285015260005b81811015610b6557858101830151858201604001528201610b49565b506000604082860101526040601f19601f8301168501019250505092915050565b6040805190810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b60405290565b604051610100810167ffffffffffffffff81118282101715610bb757634e487b7160e01b600052604160045260246000fd5b600060408284031215610c0157600080fd5b610c09610b86565b9050813581526020820135602082015292915050565b60008060808385031215610c3257600080fd5b610c3c8484610bef565b9150610c4b8460408501610bef565b90509250929050565b815181526020808301519082015260408101610b01565b600060208284031215610c7d57600080fd5b81518015158114610b3157600080fd5b80516001600160601b0381168114610ca457600080fd5b919050565b600060208284031215610cbb57600080fd5b610b3182610c8d565b6001600160a01b0381168114610cd957600080fd5b50565b600060208284031215610cee57600080fd5b8151610b3181610cc4565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101610b31565b8051610ca481610cc4565b600060408284031215610d7357600080fd5b610d7b610b86565b9050815181526020820151602082015292915050565b60006101a08284031215610da457600080fd5b610dac610bbd565b610db583610c8d565b8152610dc360208401610c8d565b6020820152610dd460408401610d56565b6040820152610de68460608501610d61565b6060820152610df88460a08501610d61565b6080820152610e0a8460e08501610d61565b60a0820152610e1d846101208501610d61565b60c0820152610e30846101608501610d61565b60e0820152939250505056fea2646970667358221220137046d2ea9d1f7f412d1bfc02656507f9938eb7c02f74e695cee49880caf1aa64736f6c63430008140033",
326
337
  "linkReferences": {
327
- "contracts/types/NftId.sol": {
328
- "NftIdLib": [
338
+ "contracts/types/Fee.sol": {
339
+ "FeeLib": [
329
340
  {
330
341
  "length": 20,
331
- "start": 2076
342
+ "start": 1205
332
343
  }
333
344
  ]
334
345
  }
335
346
  },
336
- "deployedLinkReferences": {
337
- "contracts/types/NftId.sol": {
338
- "NftIdLib": [
339
- {
340
- "length": 20,
341
- "start": 1474
342
- }
343
- ]
344
- }
345
- }
347
+ "deployedLinkReferences": {}
346
348
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../../build-info/01797c1a22420f170e92428a4c013a0c.json"
4
4
  }