@etherisc/gif-next 0.0.2-f619be3-760 → 0.0.2-f752d2a-551

Sign up to get free protection for your applications and to get access to all the features.
Files changed (336) hide show
  1. package/README.md +81 -14
  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 +134 -75
  12. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  13. package/artifacts/contracts/components/Product.sol/Product.json +72 -113
  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 +719 -332
  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 +998 -527
  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/{product/ProductService.sol/ProductModule.json → base/IInstanceBase.sol/IInstanceBase.json} +18 -30
  44. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +511 -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 +326 -0
  52. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  53. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +692 -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 +296 -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 +296 -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 +188 -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/{component → module/component}/IComponent.sol/IComponentModule.json +33 -62
  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 +132 -125
  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 +132 -125
  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 -47
  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 -57
  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 +10 -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 +10 -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 +100 -57
  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 +100 -57
  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 +477 -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 +673 -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 +387 -0
  147. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +4 -0
  148. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +393 -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/RoleId.sol/RoleIdLib.dbg.json +4 -0
  178. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
  179. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  180. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  181. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +64 -2
  183. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +58 -58
  185. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  186. package/artifacts/contracts/types/Version.sol/VersionLib.json +139 -0
  187. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  188. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +30 -0
  189. package/contracts/components/BaseComponent.sol +88 -0
  190. package/contracts/components/IBaseComponent.sol +19 -0
  191. package/contracts/components/IPoolComponent.sol +57 -0
  192. package/contracts/components/{IProduct.sol → IProductComponent.sol} +9 -6
  193. package/contracts/components/Pool.sol +140 -18
  194. package/contracts/components/Product.sol +53 -25
  195. package/contracts/instance/IInstance.sol +38 -11
  196. package/contracts/instance/IInstanceLinked.sol +8 -0
  197. package/contracts/instance/Instance.sol +44 -48
  198. package/contracts/instance/base/ComponentServiceBase.sol +42 -0
  199. package/contracts/instance/base/IInstanceBase.sol +14 -0
  200. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  201. package/contracts/instance/{lifecycle → base}/ILifecycle.sol +4 -21
  202. package/contracts/instance/base/IService.sol +15 -0
  203. package/contracts/instance/base/InstanceBase.sol +80 -0
  204. package/contracts/instance/base/KeyValueStore.sol +156 -0
  205. package/contracts/instance/{lifecycle/LifecycleModule.sol → base/Lifecycle.sol} +36 -29
  206. package/contracts/instance/base/ModuleBase.sol +52 -0
  207. package/contracts/instance/base/ServiceBase.sol +37 -0
  208. package/contracts/instance/module/access/Access.sol +149 -0
  209. package/contracts/instance/module/access/IAccess.sol +53 -0
  210. package/contracts/instance/module/bundle/BundleModule.sol +136 -0
  211. package/contracts/instance/module/bundle/IBundle.sol +58 -0
  212. package/contracts/instance/module/compensation/CompensationModule.sol +8 -0
  213. package/contracts/instance/module/compensation/ICompensation.sol +10 -0
  214. package/contracts/instance/module/component/ComponentModule.sol +95 -0
  215. package/contracts/instance/module/component/IComponent.sol +53 -0
  216. package/contracts/instance/module/policy/IPolicy.sol +60 -0
  217. package/contracts/instance/module/policy/PolicyModule.sol +76 -0
  218. package/contracts/instance/module/pool/IPoolModule.sol +41 -0
  219. package/contracts/instance/module/pool/PoolModule.sol +87 -0
  220. package/contracts/instance/module/risk/IRisk.sol +10 -0
  221. package/contracts/instance/module/risk/RiskModule.sol +8 -0
  222. package/contracts/instance/{treasury → module/treasury}/ITreasury.sol +27 -15
  223. package/contracts/instance/module/treasury/TokenHandler.sol +48 -0
  224. package/contracts/instance/{treasury → module/treasury}/TreasuryModule.sol +43 -59
  225. package/contracts/instance/service/ComponentOwnerService.sol +170 -0
  226. package/contracts/instance/service/IComponentOwnerService.sol +22 -0
  227. package/contracts/instance/service/IPoolService.sol +30 -0
  228. package/contracts/instance/service/IProductService.sol +58 -0
  229. package/contracts/instance/service/PoolService.sol +123 -0
  230. package/contracts/instance/service/ProductService.sol +354 -0
  231. package/contracts/registry/ChainNft.sol +61 -37
  232. package/contracts/registry/IRegistry.sol +24 -34
  233. package/contracts/registry/IRegistryLinked.sol +8 -0
  234. package/contracts/registry/Registry.sol +284 -85
  235. package/contracts/shared/ERC165.sol +21 -0
  236. package/contracts/shared/IOwnable.sol +6 -0
  237. package/contracts/shared/IRegisterable.sol +24 -0
  238. package/contracts/shared/IVersionable.sol +52 -0
  239. package/contracts/shared/Registerable.sol +86 -0
  240. package/contracts/shared/Versionable.sol +89 -0
  241. package/contracts/test/TestFee.sol +25 -0
  242. package/contracts/test/TestPool.sol +22 -0
  243. package/contracts/test/TestProduct.sol +44 -0
  244. package/contracts/test/TestRegisterable.sol +19 -0
  245. package/contracts/test/TestRoleId.sol +14 -0
  246. package/contracts/test/TestService.sol +32 -0
  247. package/contracts/{mock/Dip.sol → test/TestToken.sol} +5 -5
  248. package/contracts/test/TestVersion.sol +44 -0
  249. package/contracts/test/TestVersionable.sol +17 -0
  250. package/contracts/{mock → test}/Usdc.sol +1 -1
  251. package/contracts/types/AddressSet.sol +58 -0
  252. package/contracts/types/Fee.sol +39 -20
  253. package/contracts/types/Key32.sol +45 -0
  254. package/contracts/types/NftId.sol +22 -1
  255. package/contracts/types/NftIdSet.sol +60 -0
  256. package/contracts/types/ObjectType.sol +22 -14
  257. package/contracts/types/RoleId.sol +38 -0
  258. package/contracts/types/StateId.sol +13 -3
  259. package/contracts/types/Timestamp.sol +22 -1
  260. package/contracts/types/UFixed.sol +12 -13
  261. package/contracts/types/Version.sol +95 -0
  262. package/package.json +8 -3
  263. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  264. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  265. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  266. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  267. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  268. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -74
  269. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  270. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  271. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  272. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.json +0 -35
  273. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  274. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  275. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  276. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  277. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  278. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -202
  279. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  280. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  281. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  282. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  283. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -141
  284. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  285. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  286. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycle.json +0 -134
  287. package/artifacts/contracts/instance/lifecycle/ILifecycle.sol/ILifecycleModule.dbg.json +0 -4
  288. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.dbg.json +0 -4
  289. package/artifacts/contracts/instance/lifecycle/LifecycleModule.sol/LifecycleModule.json +0 -221
  290. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  291. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  293. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  294. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  295. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  296. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  297. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  298. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  299. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -127
  300. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  301. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  302. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -196
  303. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  304. package/artifacts/contracts/instance/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  305. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  306. package/artifacts/contracts/instance/treasury/TokenHandler.sol/TokenHandler.json +0 -45
  307. package/artifacts/contracts/instance/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  308. package/artifacts/contracts/mock/Dip.sol/DIP.dbg.json +0 -4
  309. package/artifacts/contracts/mock/Dip.sol/DIP.json +0 -338
  310. package/artifacts/contracts/mock/TestPool.sol/TestPool.dbg.json +0 -4
  311. package/artifacts/contracts/mock/TestPool.sol/TestPool.json +0 -294
  312. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.dbg.json +0 -4
  313. package/artifacts/contracts/mock/TestProduct.sol/TestProduct.json +0 -384
  314. package/artifacts/contracts/mock/Usdc.sol/USDC.dbg.json +0 -4
  315. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  316. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  317. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  318. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  319. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  320. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  321. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  322. package/contracts/components/Component.sol +0 -77
  323. package/contracts/components/IPool.sol +0 -15
  324. package/contracts/instance/access/Access.sol +0 -165
  325. package/contracts/instance/access/IAccess.sol +0 -63
  326. package/contracts/instance/component/ComponentModule.sol +0 -274
  327. package/contracts/instance/component/IComponent.sol +0 -74
  328. package/contracts/instance/policy/IPolicy.sol +0 -50
  329. package/contracts/instance/policy/PolicyModule.sol +0 -114
  330. package/contracts/instance/pool/IPoolModule.sol +0 -23
  331. package/contracts/instance/pool/PoolModule.sol +0 -81
  332. package/contracts/instance/product/IProductService.sol +0 -36
  333. package/contracts/instance/product/ProductService.sol +0 -136
  334. package/contracts/instance/treasury/TokenHandler.sol +0 -24
  335. package/contracts/mock/TestPool.sol +0 -16
  336. package/contracts/mock/TestProduct.sol +0 -39
@@ -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",
@@ -21,38 +21,14 @@
21
21
  "type": "address"
22
22
  },
23
23
  {
24
- "components": [
25
- {
26
- "internalType": "UFixed",
27
- "name": "fractionalFee",
28
- "type": "uint256"
29
- },
30
- {
31
- "internalType": "uint256",
32
- "name": "fixedFee",
33
- "type": "uint256"
34
- }
35
- ],
36
- "internalType": "struct Fee",
37
- "name": "stakingFee",
38
- "type": "tuple"
24
+ "internalType": "bool",
25
+ "name": "verifying",
26
+ "type": "bool"
39
27
  },
40
28
  {
41
- "components": [
42
- {
43
- "internalType": "UFixed",
44
- "name": "fractionalFee",
45
- "type": "uint256"
46
- },
47
- {
48
- "internalType": "uint256",
49
- "name": "fixedFee",
50
- "type": "uint256"
51
- }
52
- ],
53
- "internalType": "struct Fee",
54
- "name": "performanceFee",
55
- "type": "tuple"
29
+ "internalType": "UFixed",
30
+ "name": "collateralizationLevel",
31
+ "type": "uint256"
56
32
  }
57
33
  ],
58
34
  "stateMutability": "nonpayable",
@@ -61,36 +37,65 @@
61
37
  {
62
38
  "anonymous": false,
63
39
  "inputs": [
40
+ {
41
+ "indexed": false,
42
+ "internalType": "NftId",
43
+ "name": "policyNftId",
44
+ "type": "uint96"
45
+ },
64
46
  {
65
47
  "indexed": false,
66
48
  "internalType": "uint256",
67
- "name": "idx",
49
+ "name": "collateralizationAmount",
68
50
  "type": "uint256"
69
51
  },
70
52
  {
71
53
  "indexed": false,
72
54
  "internalType": "address",
73
- "name": "module",
55
+ "name": "pool",
74
56
  "type": "address"
57
+ }
58
+ ],
59
+ "name": "LogUnderwrittenByPool",
60
+ "type": "event"
61
+ },
62
+ {
63
+ "inputs": [
64
+ {
65
+ "internalType": "uint256",
66
+ "name": "initialAmount",
67
+ "type": "uint256"
75
68
  },
76
69
  {
77
- "indexed": false,
78
- "internalType": "string",
79
- "name": "comment",
80
- "type": "string"
70
+ "internalType": "uint256",
71
+ "name": "lifetime",
72
+ "type": "uint256"
73
+ },
74
+ {
75
+ "internalType": "bytes",
76
+ "name": "filter",
77
+ "type": "bytes"
81
78
  }
82
79
  ],
83
- "name": "LogDebug",
84
- "type": "event"
80
+ "name": "createBundle",
81
+ "outputs": [
82
+ {
83
+ "internalType": "NftId",
84
+ "name": "bundleNftId",
85
+ "type": "uint96"
86
+ }
87
+ ],
88
+ "stateMutability": "nonpayable",
89
+ "type": "function"
85
90
  },
86
91
  {
87
92
  "inputs": [],
88
- "name": "getData",
93
+ "name": "getCollateralizationLevel",
89
94
  "outputs": [
90
95
  {
91
- "internalType": "bytes",
92
- "name": "data",
93
- "type": "bytes"
96
+ "internalType": "UFixed",
97
+ "name": "collateralizationLevel",
98
+ "type": "uint256"
94
99
  }
95
100
  ],
96
101
  "stateMutability": "view",
@@ -98,12 +103,12 @@
98
103
  },
99
104
  {
100
105
  "inputs": [],
101
- "name": "getInitialOwner",
106
+ "name": "getData",
102
107
  "outputs": [
103
108
  {
104
- "internalType": "address",
105
- "name": "deployer",
106
- "type": "address"
109
+ "internalType": "bytes",
110
+ "name": "data",
111
+ "type": "bytes"
107
112
  }
108
113
  ],
109
114
  "stateMutability": "view",
@@ -154,7 +159,7 @@
154
159
  "outputs": [
155
160
  {
156
161
  "internalType": "NftId",
157
- "name": "",
162
+ "name": "nftId",
158
163
  "type": "uint96"
159
164
  }
160
165
  ],
@@ -265,24 +270,42 @@
265
270
  },
266
271
  {
267
272
  "inputs": [],
268
- "name": "isRegisterable",
273
+ "name": "isVerifying",
269
274
  "outputs": [
270
275
  {
271
276
  "internalType": "bool",
272
- "name": "",
277
+ "name": "verifying",
273
278
  "type": "bool"
274
279
  }
275
280
  ],
276
- "stateMutability": "pure",
281
+ "stateMutability": "view",
277
282
  "type": "function"
278
283
  },
279
284
  {
280
285
  "inputs": [],
281
- "name": "isRegistered",
286
+ "name": "lock",
287
+ "outputs": [],
288
+ "stateMutability": "nonpayable",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "internalType": "bytes",
295
+ "name": "",
296
+ "type": "bytes"
297
+ },
298
+ {
299
+ "internalType": "bytes",
300
+ "name": "",
301
+ "type": "bytes"
302
+ }
303
+ ],
304
+ "name": "policyMatchesBundle",
282
305
  "outputs": [
283
306
  {
284
307
  "internalType": "bool",
285
- "name": "",
308
+ "name": "isMatching",
286
309
  "type": "bool"
287
310
  }
288
311
  ],
@@ -301,28 +324,64 @@
301
324
  ],
302
325
  "stateMutability": "nonpayable",
303
326
  "type": "function"
304
- }
305
- ],
306
- "bytecode": "0x608060405234801561001057600080fd5b50604051610a9a380380610a9a83398101604081905261002f9161011a565b600080546001600160a01b039687166001600160a01b03199182161790915560018054821633179055600280549587169582169590951790945560048054851630179055600580549590931694909316939093179055815160065560209182015160075580516008550151600955610181565b80516001600160a01b03811681146100b957600080fd5b919050565b6000604082840312156100d057600080fd5b604080519081016001600160401b038111828210171561010057634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b600080600080600060e0868803121561013257600080fd5b61013b866100a2565b9450610149602087016100a2565b9350610157604087016100a2565b925061016687606088016100be565b91506101758760a088016100be565b90509295509295909350565b61090a806101906000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
307
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80633bc5de301161009757806379e829d01161006657806379e829d014610223578063893d20e81461022a578063de7b5d1414610232578063fb2cb1011461024357600080fd5b80633bc5de30146101c85780634b270a46146101dd5780635ab1bd531461020a578063644c45e01461021b57600080fd5b806321df0da7116100d357806321df0da7146101535780632236684414610164578063235c36031461017c57806331b62a3b146101c057600080fd5b806313299604146100fa57806315dae03e146101245780631aa3a00814610133575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6040516050815260200161011b565b61013b610259565b6040516001600160601b03909116815260200161011b565b6005546001600160a01b0316610107565b61016c6104af565b604051901515815260200161011b565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b6040805182518152602092830151928101929092520161011b565b61013b61059b565b6101d0610610565b60405161011b91906107ff565b604080518082018252600080825260209182015281518083019092526006548252600754908201526101a5565b6000546001600160a01b0316610107565b61013b6106ae565b600161016c565b6101076106f7565b6002546001600160a01b0316610107565b6001546001600160a01b0316610107565b905090565b600061026d6001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102ac5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103045760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102a3565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610374919061084d565b6103ce5760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102a3565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa158015610418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043c919061088e565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610485573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a991906108ab565b91505090565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c91906108ab565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a9919061084d565b60006105af6002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025491906108ab565b60606106246002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610661573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068591906108ab565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e90602401602060405180830381865afa1580156105ec573d6000803e3d6000fd5b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076491906108ab565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da919061088e565b91506001600160a01b0382166107fb576001546001600160a01b03166104a9565b5090565b600060208083528351808285015260005b8181101561082c57858101830151858201604001528201610810565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561085f57600080fd5b8151801515811461086f57600080fd5b9392505050565b6001600160a01b038116811461088b57600080fd5b50565b6000602082840312156108a057600080fd5b815161086f81610876565b6000602082840312156108bd57600080fd5b81516001600160601b038116811461086f57600080fdfea264697066735822122048ece6eb5d40c2d8880ad834ec80994974ffc9738c34cccd5f4fbd5e942cf74364736f6c63430008140033",
308
- "linkReferences": {
309
- "contracts/types/NftId.sol": {
310
- "NftIdLib": [
311
- {
312
- "length": 20,
313
- "start": 1741
327
+ },
328
+ {
329
+ "inputs": [
330
+ {
331
+ "internalType": "bytes4",
332
+ "name": "interfaceId",
333
+ "type": "bytes4"
314
334
  }
315
- ]
316
- }
317
- },
318
- "deployedLinkReferences": {
319
- "contracts/types/NftId.sol": {
320
- "NftIdLib": [
335
+ ],
336
+ "name": "supportsInterface",
337
+ "outputs": [
338
+ {
339
+ "internalType": "bool",
340
+ "name": "",
341
+ "type": "bool"
342
+ }
343
+ ],
344
+ "stateMutability": "view",
345
+ "type": "function"
346
+ },
347
+ {
348
+ "inputs": [
349
+ {
350
+ "internalType": "NftId",
351
+ "name": "policyNftId",
352
+ "type": "uint96"
353
+ },
354
+ {
355
+ "internalType": "bytes",
356
+ "name": "policyData",
357
+ "type": "bytes"
358
+ },
321
359
  {
322
- "length": 20,
323
- "start": 1341
360
+ "internalType": "bytes",
361
+ "name": "bundleFilter",
362
+ "type": "bytes"
363
+ },
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "collateralizationAmount",
367
+ "type": "uint256"
324
368
  }
325
- ]
369
+ ],
370
+ "name": "underwrite",
371
+ "outputs": [],
372
+ "stateMutability": "nonpayable",
373
+ "type": "function"
374
+ },
375
+ {
376
+ "inputs": [],
377
+ "name": "unlock",
378
+ "outputs": [],
379
+ "stateMutability": "nonpayable",
380
+ "type": "function"
326
381
  }
327
- }
382
+ ],
383
+ "bytecode": "0x60e06040523480156200001157600080fd5b50604051620017d6380380620017d6833981016040819052620000349162000625565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905584848482826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000147919062000690565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000213919062000690565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c9190810190620007b6565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152638de54b9b60e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba919062000690565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c919062000890565b600180546001600160a01b039283166001600160a01b03199182161790915560038054821630179055600480549483169490911693909317835560058054881515600160a01b0260ff60a01b1982168117909255600688905560408051636b9bf08b60e01b8152905192841691909316179550636b9bf08b9450818401936020935090918290030181865afa158015620004fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000520919062000890565b600780546001600160a01b0319166001600160a01b0392831617905560055460408051634288121d60e01b815290519190921691634288121d9160048083019260209291908290030181865afa1580156200057f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005a5919062000890565b600880546001600160a01b0319166001600160a01b039290921691909117905550620008b09350505050565b6001600160a01b0381168114620005e757600080fd5b50565b8051620005f781620005d1565b919050565b80516001600160601b0381168114620005f757600080fd5b80518015158114620005f757600080fd5b600080600080600060a086880312156200063e57600080fd5b85516200064b81620005d1565b94506200065b60208701620005fc565b935060408601516200066d81620005d1565b92506200067d6060870162000614565b9150608086015190509295509295909350565b600060208284031215620006a357600080fd5b620006ae8262000614565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715620006f057620006f0620006b5565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007215762000721620006b5565b604052919050565b600082601f8301126200073b57600080fd5b81516001600160401b03811115620007575762000757620006b5565b60206200076d601f8301601f19168201620006f6565b82815285828487010111156200078257600080fd5b60005b83811015620007a257858101830151828201840152820162000785565b506000928101909101919091529392505050565b600060208284031215620007c957600080fd5b81516001600160401b0380821115620007e157600080fd5b9083019060c08286031215620007f657600080fd5b62000800620006cb565b6200080b83620005fc565b81526200081b60208401620005fc565b6020820152604083015160ff811681146200083557600080fd5b60408201526200084860608401620005ea565b60608201526200085b60808401620005ea565b608082015260a0830151828111156200087357600080fd5b620008818782860162000729565b60a08301525095945050505050565b600060208284031215620008a357600080fd5b8151620006ae81620005d1565b60805160a05160c051610ed36200090360003960006107ca015260006101fd0152600081816102560152818161034b015281816103e1015281816106660152818161074d015261080d0152610ed36000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102b1578063b487aa7d146102b9578063dab12325146102cc578063de7b5d14146102e2578063f83d08ba146102f357600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a957600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610aa9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6040516082815260200161016a565b6101af610300565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e0610512565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610b20565b6101e06105b0565b60065460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61064e565b610295610290366004610bee565b6106b5565b005b600554600160a01b900460ff1661015e565b61018061072b565b610295610886565b6101af6102c7366004610c6c565b610942565b61015e6102da366004610cbc565b600192915050565b6005546001600160a01b0316610180565b6102956109c9565b905090565b600061030a61072b565b6001600160a01b0316336001600160a01b0316146103495760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103bf5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610340565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e9190610d20565b6104a45760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610340565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610d42565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a861053f61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610dca565b60600151905090565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a86105dd61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190610dca565b60400151905090565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b6008546001600160a01b031633146107195760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610340565b61072584848484610a5b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610d42565b90506001600160601b0381166107ef577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610e4b565b91505090565b61088e61072b565b6001600160a01b0316336001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561092e57600080fd5b505af1158015610725573d6000803e3d6000fd5b6007546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a9061097d908490899089908990600401610e66565b6020604051808303816000875af115801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c09190610d42565b95945050505050565b6109d161072b565b6001600160a01b0316336001600160a01b031614610a2b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610914565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610abb57600080fd5b81356001600160e01b031981168114610ad357600080fd5b9392505050565b6000815180845260005b81811015610b0057602081850181015186830182015201610ae4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ad36020830184610ada565b6001600160601b0381168114610b4857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610b7257600080fd5b813567ffffffffffffffff80821115610b8d57610b8d610b4b565b604051601f8301601f19908116603f01168101908282118183101715610bb557610bb5610b4b565b81604052838152866020858801011115610bce57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610c0457600080fd5b8435610c0f81610b33565b9350602085013567ffffffffffffffff80821115610c2c57600080fd5b610c3888838901610b61565b94506040870135915080821115610c4e57600080fd5b50610c5b87828801610b61565b949793965093946060013593505050565b600080600060608486031215610c8157600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610ca657600080fd5b610cb286828701610b61565b9150509250925092565b60008060408385031215610ccf57600080fd5b823567ffffffffffffffff80821115610ce757600080fd5b610cf386838701610b61565b93506020850135915080821115610d0957600080fd5b50610d1685828601610b61565b9150509250929050565b600060208284031215610d3257600080fd5b81518015158114610ad357600080fd5b600060208284031215610d5457600080fd5b8151610ad381610b33565b80516001600160a01b0381168114610d7657600080fd5b919050565b600060408284031215610d8d57600080fd5b6040516040810181811067ffffffffffffffff82111715610db057610db0610b4b565b604052825181526020928301519281019290925250919050565b600060c08284031215610ddc57600080fd5b6040516080810181811067ffffffffffffffff82111715610dff57610dff610b4b565b6040528251610e0d81610b33565b8152610e1b60208401610d5f565b6020820152610e2d8460408501610d7b565b6040820152610e3f8460808501610d7b565b60608201529392505050565b600060208284031215610e5d57600080fd5b610ad382610d5f565b60018060a01b0385168152836020820152826040820152608060608201526000610e936080830184610ada565b969550505050505056fea2646970667358221220dd362c668025033fedf48f7dbb065353e0ca1f54b8a49aeec1860a87e7ebbc1164736f6c63430008140033",
384
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635ab1bd53116100ad578063a69df4b511610071578063a69df4b5146102b1578063b487aa7d146102b9578063dab12325146102cc578063de7b5d14146102e2578063f83d08ba146102f357600080fd5b80635ab1bd5314610254578063644c45e01461027a57806365effc1a1461028257806387ef9ba014610297578063893d20e8146102a957600080fd5b8063235c3603116100f4578063235c3603146101d857806331b62a3b146101fb5780633bc5de30146102215780634b270a461461023b57806354afef631461024357600080fd5b806301ffc9a714610131578063132996041461017357806315dae03e146101985780631aa3a008146101a757806321df0da7146101c7575b600080fd5b61015e61013f366004610aa9565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161016a565b6040516082815260200161016a565b6101af610300565b6040516001600160601b03909116815260200161016a565b6004546001600160a01b0316610180565b6101e0610512565b6040805182518152602092830151928101929092520161016a565b7f00000000000000000000000000000000000000000000000000000000000000006101af565b6040805160208101825260008152905161016a9190610b20565b6101e06105b0565b60065460405190815260200161016a565b7f0000000000000000000000000000000000000000000000000000000000000000610180565b6101af61064e565b610295610290366004610bee565b6106b5565b005b600554600160a01b900460ff1661015e565b61018061072b565b610295610886565b6101af6102c7366004610c6c565b610942565b61015e6102da366004610cbc565b600192915050565b6005546001600160a01b0316610180565b6102956109c9565b905090565b600061030a61072b565b6001600160a01b0316336001600160a01b0316146103495760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103bf5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f00000000006044820152606401610340565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e9190610d20565b6104a45760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b6064820152608401610340565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af11580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fb9190610d42565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a861053f61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a79190610dca565b60600151905090565b60408051808201909152600080825260208201526005546001600160a01b0316633300a8a86105dd61064e565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240160c060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106459190610dca565b60400151905090565b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e90602401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b6008546001600160a01b031633146107195760405162461bcd60e51b815260206004820152602160248201527f4552524f523a504f4c2d3030323a4e4f545f50524f445543545f5345525649436044820152604560f81b6064820152608401610340565b61072584848484610a5b565b50505050565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa158015610794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b89190610d42565b90506001600160601b0381166107ef577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610e4b565b91505090565b61088e61072b565b6001600160a01b0316336001600160a01b0316146108e85760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561092e57600080fd5b505af1158015610725573d6000803e3d6000fd5b6007546040516360458fc560e11b815260009133916001600160a01b039091169063c08b1f8a9061097d908490899089908990600401610e66565b6020604051808303816000875af115801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c09190610d42565b95945050505050565b6109d161072b565b6001600160a01b0316336001600160a01b031614610a2b5760405162461bcd60e51b815260206004820152601760248201527622a92927a91d2923a1169818189d2727aa2fa7aba722a960491b6044820152606401610340565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a790602401610914565b604080516001600160601b038616815260208101839052308183015290517ffa749b7f8c958183586325608c5d122eb3a8beb56a4d6ac2c88b78193e9facb99181900360600190a150505050565b600060208284031215610abb57600080fd5b81356001600160e01b031981168114610ad357600080fd5b9392505050565b6000815180845260005b81811015610b0057602081850181015186830182015201610ae4565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610ad36020830184610ada565b6001600160601b0381168114610b4857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610b7257600080fd5b813567ffffffffffffffff80821115610b8d57610b8d610b4b565b604051601f8301601f19908116603f01168101908282118183101715610bb557610bb5610b4b565b81604052838152866020858801011115610bce57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215610c0457600080fd5b8435610c0f81610b33565b9350602085013567ffffffffffffffff80821115610c2c57600080fd5b610c3888838901610b61565b94506040870135915080821115610c4e57600080fd5b50610c5b87828801610b61565b949793965093946060013593505050565b600080600060608486031215610c8157600080fd5b8335925060208401359150604084013567ffffffffffffffff811115610ca657600080fd5b610cb286828701610b61565b9150509250925092565b60008060408385031215610ccf57600080fd5b823567ffffffffffffffff80821115610ce757600080fd5b610cf386838701610b61565b93506020850135915080821115610d0957600080fd5b50610d1685828601610b61565b9150509250929050565b600060208284031215610d3257600080fd5b81518015158114610ad357600080fd5b600060208284031215610d5457600080fd5b8151610ad381610b33565b80516001600160a01b0381168114610d7657600080fd5b919050565b600060408284031215610d8d57600080fd5b6040516040810181811067ffffffffffffffff82111715610db057610db0610b4b565b604052825181526020928301519281019290925250919050565b600060c08284031215610ddc57600080fd5b6040516080810181811067ffffffffffffffff82111715610dff57610dff610b4b565b6040528251610e0d81610b33565b8152610e1b60208401610d5f565b6020820152610e2d8460408501610d7b565b6040820152610e3f8460808501610d7b565b60608201529392505050565b600060208284031215610e5d57600080fd5b610ad382610d5f565b60018060a01b0385168152836020820152826040820152608060608201526000610e936080830184610ada565b969550505050505056fea2646970667358221220dd362c668025033fedf48f7dbb065353e0ca1f54b8a49aeec1860a87e7ebbc1164736f6c63430008140033",
385
+ "linkReferences": {},
386
+ "deployedLinkReferences": {}
328
387
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/371956c35f778b248bb1774ada1ed516.json"
3
+ "buildInfo": "../../../build-info/ac8b1a0ba35c3a8a508882d70043ad3f.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",
@@ -24,70 +24,11 @@
24
24
  "internalType": "address",
25
25
  "name": "pool",
26
26
  "type": "address"
27
- },
28
- {
29
- "components": [
30
- {
31
- "internalType": "UFixed",
32
- "name": "fractionalFee",
33
- "type": "uint256"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "fixedFee",
38
- "type": "uint256"
39
- }
40
- ],
41
- "internalType": "struct Fee",
42
- "name": "policyFee",
43
- "type": "tuple"
44
- },
45
- {
46
- "components": [
47
- {
48
- "internalType": "UFixed",
49
- "name": "fractionalFee",
50
- "type": "uint256"
51
- },
52
- {
53
- "internalType": "uint256",
54
- "name": "fixedFee",
55
- "type": "uint256"
56
- }
57
- ],
58
- "internalType": "struct Fee",
59
- "name": "processingFee",
60
- "type": "tuple"
61
27
  }
62
28
  ],
63
29
  "stateMutability": "nonpayable",
64
30
  "type": "constructor"
65
31
  },
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
32
  {
92
33
  "inputs": [],
93
34
  "name": "getData",
@@ -101,19 +42,6 @@
101
42
  "stateMutability": "view",
102
43
  "type": "function"
103
44
  },
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
45
  {
118
46
  "inputs": [],
119
47
  "name": "getInstance",
@@ -159,7 +87,7 @@
159
87
  "outputs": [
160
88
  {
161
89
  "internalType": "NftId",
162
- "name": "",
90
+ "name": "nftId",
163
91
  "type": "uint96"
164
92
  }
165
93
  ],
@@ -283,20 +211,75 @@
283
211
  },
284
212
  {
285
213
  "inputs": [],
286
- "name": "isRegisterable",
214
+ "name": "lock",
215
+ "outputs": [],
216
+ "stateMutability": "nonpayable",
217
+ "type": "function"
218
+ },
219
+ {
220
+ "inputs": [],
221
+ "name": "register",
287
222
  "outputs": [
288
223
  {
289
- "internalType": "bool",
290
- "name": "",
291
- "type": "bool"
224
+ "internalType": "NftId",
225
+ "name": "componentId",
226
+ "type": "uint96"
292
227
  }
293
228
  ],
294
- "stateMutability": "pure",
229
+ "stateMutability": "nonpayable",
295
230
  "type": "function"
296
231
  },
297
232
  {
298
- "inputs": [],
299
- "name": "isRegistered",
233
+ "inputs": [
234
+ {
235
+ "components": [
236
+ {
237
+ "internalType": "UFixed",
238
+ "name": "fractionalFee",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "internalType": "uint256",
243
+ "name": "fixedFee",
244
+ "type": "uint256"
245
+ }
246
+ ],
247
+ "internalType": "struct Fee",
248
+ "name": "policyFee",
249
+ "type": "tuple"
250
+ },
251
+ {
252
+ "components": [
253
+ {
254
+ "internalType": "UFixed",
255
+ "name": "fractionalFee",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "fixedFee",
261
+ "type": "uint256"
262
+ }
263
+ ],
264
+ "internalType": "struct Fee",
265
+ "name": "processingFee",
266
+ "type": "tuple"
267
+ }
268
+ ],
269
+ "name": "setFees",
270
+ "outputs": [],
271
+ "stateMutability": "nonpayable",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "bytes4",
278
+ "name": "interfaceId",
279
+ "type": "bytes4"
280
+ }
281
+ ],
282
+ "name": "supportsInterface",
300
283
  "outputs": [
301
284
  {
302
285
  "internalType": "bool",
@@ -309,38 +292,14 @@
309
292
  },
310
293
  {
311
294
  "inputs": [],
312
- "name": "register",
313
- "outputs": [
314
- {
315
- "internalType": "NftId",
316
- "name": "componentId",
317
- "type": "uint96"
318
- }
319
- ],
295
+ "name": "unlock",
296
+ "outputs": [],
320
297
  "stateMutability": "nonpayable",
321
298
  "type": "function"
322
299
  }
323
300
  ],
324
- "bytecode": "0x608060405234801561001057600080fd5b50604051610bad380380610bad83398101604081905261002f916101a5565b600080546001600160a01b038089166001600160a01b031992831617909255600180548216331790556002805483891690831681179091556004805483163017815560058054948916949093169390931790915560408051634288121d60e01b815290519192634288121d9282820192602092908290030181865afa1580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e09190610227565b600680546001600160a01b039283166001600160a01b031991821617909155600780549590921694169390931790925580516008556020908101516009558151600a550151600b555061024b915050565b6001600160a01b038116811461014657600080fd5b50565b60006040828403121561015b57600080fd5b604080519081016001600160401b038111828210171561018b57634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008060008060008061010087890312156101bf57600080fd5b86516101ca81610131565b60208801519096506101db81610131565b60408801519095506101ec81610131565b60608801519094506101fd81610131565b925061020c8860808901610149565b915061021b8860c08901610149565b90509295509295509295565b60006020828403121561023957600080fd5b815161024481610131565b9392505050565b6109538061025a6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635ab1bd5311610097578063bc74aab011610066578063bc74aab0146101d4578063daafed4014610218578063de7b5d1414610245578063fb2cb1011461025657600080fd5b80635ab1bd53146101ac578063644c45e0146101bd57806379e829d0146101c5578063893d20e8146101cc57600080fd5b806321df0da7116100d357806321df0da714610166578063223668441461017757806331b62a3b1461018f5780633bc5de301461019757600080fd5b8063132996041461010557806315dae03e1461012f5780631aa3a0081461013e5780631bdd6b761461015e575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b604051603c8152602001610126565b61014661026c565b6040516001600160601b039091168152602001610126565b6101466104c2565b6005546001600160a01b0316610112565b61017f610534565b6040519015158152602001610126565b610146610620565b61019f610671565b6040516101269190610848565b6000546001600160a01b0316610112565b61014661070f565b600161017f565b610112610740565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b60408051825181526020928301519281019290925201610126565b60408051808201825260008082526020918201528151808301909252600a548252600b54908201526101fd565b6002546001600160a01b0316610112565b6001546001600160a01b0316610112565b905090565b60006102806001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102bf5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103175760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102b6565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610896565b6103e15760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102b6565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f91906108d7565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc91906108f4565b91505090565b60008054600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026791906108f4565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a191906108f4565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610896565b60006106346002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b60606106856002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e691906108f4565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e906024016104f3565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906108f4565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906108d7565b91506001600160a01b038216610844576001546001600160a01b03166104bc565b5090565b600060208083528351808285015260005b8181101561087557858101830151858201604001528201610859565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108a857600080fd5b815180151581146108b857600080fd5b9392505050565b6001600160a01b03811681146108d457600080fd5b50565b6000602082840312156108e957600080fd5b81516108b8816108bf565b60006020828403121561090657600080fd5b81516001600160601b03811681146108b857600080fdfea2646970667358221220ce4ca508b37dbeab6ef1fe6b2720f05ec3a77afe9d078ea5e62994dfb9be135064736f6c63430008140033",
325
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635ab1bd5311610097578063bc74aab011610066578063bc74aab0146101d4578063daafed4014610218578063de7b5d1414610245578063fb2cb1011461025657600080fd5b80635ab1bd53146101ac578063644c45e0146101bd57806379e829d0146101c5578063893d20e8146101cc57600080fd5b806321df0da7116100d357806321df0da714610166578063223668441461017757806331b62a3b1461018f5780633bc5de301461019757600080fd5b8063132996041461010557806315dae03e1461012f5780631aa3a0081461013e5780631bdd6b761461015e575b600080fd5b6004546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b604051603c8152602001610126565b61014661026c565b6040516001600160601b039091168152602001610126565b6101466104c2565b6005546001600160a01b0316610112565b61017f610534565b6040519015158152602001610126565b610146610620565b61019f610671565b6040516101269190610848565b6000546001600160a01b0316610112565b61014661070f565b600161017f565b610112610740565b604080518082018252600080825260209182015281518083019092526008548252600954908201525b60408051825181526020928301519281019290925201610126565b60408051808201825260008082526020918201528151808301909252600a548252600b54908201526101fd565b6002546001600160a01b0316610112565b6001546001600160a01b0316610112565b905090565b60006102806001546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146102bf5760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b6000546001600160a01b03166103175760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5052442d3030313a52454749535452595f5a45524f000000000060448201526064016102b6565b60005460025460405163c3c5a54760e01b81526001600160a01b03918216600482015291169063c3c5a54790602401602060405180830381865afa158015610363573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103879190610896565b6103e15760405162461bcd60e51b815260206004820152602560248201527f4552524f523a5052442d3030323a494e5354414e43455f4e4f545f5245474953604482015264151154915160da1b60648201526084016102b6565b60025460408051636fa2985360e01b815290516000926001600160a01b031691636fa298539160048083019260209291908290030181865afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f91906108d7565b604051632210724360e11b81523060048201529091506001600160a01b03821690634420e486906024016020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc91906108f4565b91505090565b60008054600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa158015610510573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026791906108f4565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa15801561057d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a191906108f4565b6040516330b8415f60e01b81526001600160601b038216600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610896565b60006106346002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610510573d6000803e3d6000fd5b60606106856002546001600160a01b031690565b6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e691906108f4565b604080516001600160601b03909216602083015201604051602081830303815290604052905090565b60008054604051636939560f60e11b81523060048201526001600160a01b039091169063d272ac1e906024016104f3565b60008054604051636939560f60e11b815230600482015282916001600160a01b03169063d272ac1e90602401602060405180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906108f4565b60005460405163df33330b60e01b81526001600160601b03831660048201529192506001600160a01b03169063df33330b90602401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906108d7565b91506001600160a01b038216610844576001546001600160a01b03166104bc565b5090565b600060208083528351808285015260005b8181101561087557858101830151858201604001528201610859565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156108a857600080fd5b815180151581146108b857600080fd5b9392505050565b6001600160a01b03811681146108d457600080fd5b50565b6000602082840312156108e957600080fd5b81516108b8816108bf565b60006020828403121561090657600080fd5b81516001600160601b03811681146108b857600080fdfea2646970667358221220ce4ca508b37dbeab6ef1fe6b2720f05ec3a77afe9d078ea5e62994dfb9be135064736f6c63430008140033",
326
- "linkReferences": {
327
- "contracts/types/NftId.sol": {
328
- "NftIdLib": [
329
- {
330
- "length": 20,
331
- "start": 2076
332
- }
333
- ]
334
- }
335
- },
336
- "deployedLinkReferences": {
337
- "contracts/types/NftId.sol": {
338
- "NftIdLib": [
339
- {
340
- "length": 20,
341
- "start": 1474
342
- }
343
- ]
344
- }
345
- }
301
+ "bytecode": "0x60e06040523480156200001157600080fd5b50604051620015543803806200155483398101604081905262000034916200057c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905583838382826001600160a01b038216620000d15760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f000000000060448201526064015b60405180910390fd5b6001600160a01b03821660808190526040516301ffc9a760e01b81526306ecd8ef60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000121573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001479190620005e0565b620001955760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620000c8565b6001600160601b03811660a081905260805160405163e74d052f60e01b815260048101929092526001600160a01b03169063e74d052f90602401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002139190620005e0565b6200026d5760405162461bcd60e51b815260206004820152602360248201527f4552524f523a5247422d3031323a504152454e545f4e4f545f5245474953544560448201526214915160ea1b6064820152608401620000c8565b3360c052631dfba64760e11b60009081526020527f95e5a2564f7af40498dc043c6da135e06324c5edb1f60c2bf4dcdf2da207fa45805460ff1916600117905550506080516040516305247a1760e51b81526001600160601b03841660048201526000916001600160a01b03169063a48f42e090602401600060405180830381865afa15801562000302573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200032c91908101906200070c565b6060810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152638de54b9b60e01b6004820152919250906301ffc9a790602401602060405180830381865afa15801562000394573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ba9190620005e0565b620003e25760405162461bcd60e51b81526020600482015260006024820152604401620000c8565b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000436573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200045c9190620007e6565b600180546001600160a01b039283166001600160a01b03199182161790915560038054821630179055600480549483169490911693909317835560055460408051634288121d60e01b81529051919092169550634288121d9450818401936020935090918290030181865afa158015620004da573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005009190620007e6565b600680546001600160a01b039283166001600160a01b031991821617909155600780549390921692169190911790555062000806915050565b6001600160a01b03811681146200054f57600080fd5b50565b80516200055f8162000539565b919050565b80516001600160601b03811681146200055f57600080fd5b600080600080608085870312156200059357600080fd5b8451620005a08162000539565b9350620005b06020860162000564565b92506040850151620005c28162000539565b6060860151909250620005d58162000539565b939692955090935050565b600060208284031215620005f357600080fd5b815180151581146200060457600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200064657620006466200060b565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200067757620006776200060b565b604052919050565b600082601f8301126200069157600080fd5b81516001600160401b03811115620006ad57620006ad6200060b565b6020620006c3601f8301601f191682016200064c565b8281528582848701011115620006d857600080fd5b60005b83811015620006f8578581018301518282018401528201620006db565b506000928101909101919091529392505050565b6000602082840312156200071f57600080fd5b81516001600160401b03808211156200073757600080fd5b9083019060c082860312156200074c57600080fd5b6200075662000621565b620007618362000564565b8152620007716020840162000564565b6020820152604083015160ff811681146200078b57600080fd5b60408201526200079e6060840162000552565b6060820152620007b16080840162000552565b608082015260a083015182811115620007c957600080fd5b620007d7878286016200067f565b60a08301525095945050505050565b600060208284031215620007f957600080fd5b8151620006048162000539565b60805160a05160c051610cf46200086060003960006105fc015260006101c1015260008181610201015281816102d80152818161036e015281816104c4015281816105240152818161057d015261063f0152610cf46000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80635ab1bd53116100a2578063b6b412ba11610071578063b6b412ba1461023f578063bc74aab014610252578063daafed4014610267578063de7b5d141461026f578063f83d08ba1461028057600080fd5b80635ab1bd53146101ff578063644c45e014610225578063893d20e81461022d578063a69df4b51461023557600080fd5b80631bdd6b76116100de5780631bdd6b76146101a657806321df0da7146101ae57806331b62a3b146101bf5780633bc5de30146101e557600080fd5b806301ffc9a714610110578063132996041461015257806315dae03e146101775780631aa3a00814610186575b600080fd5b61013d61011e3660046109ac565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610149565b60405160648152602001610149565b61018e61028d565b6040516001600160601b039091168152602001610149565b61018e61049f565b6004546001600160a01b031661015f565b7f000000000000000000000000000000000000000000000000000000000000000061018e565b6040805160208101825260008152905161014991906109dd565b7f000000000000000000000000000000000000000000000000000000000000000061015f565b61018e61050c565b61015f61055b565b61023d6106b8565b005b61023d61024d366004610a92565b610750565b61025a6107f0565b6040516101499190610ac7565b61025a61088f565b6005546001600160a01b031661015f565b61023d61092e565b905090565b600061029761055b565b6001600160a01b0316336001600160a01b0316146102d65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661034c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016102cd565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db9190610ade565b6104315760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016102cd565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561047b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102889190610b1c565b600754604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561047b573d6000803e3d6000fd5b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e906024016104ef565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156105c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e89190610b1c565b90506105f5816000610996565b15610621577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561068e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b29190610b4f565b91505090565b6106c061055b565b6001600160a01b0316336001600160a01b0316146106f05760405162461bcd60e51b81526004016102cd90610b6c565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561073657600080fd5b505af115801561074a573d6000803e3d6000fd5b50505050565b61075861055b565b6001600160a01b0316336001600160a01b0316146107885760405162461bcd60e51b81526004016102cd90610b6c565b600654604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906107ba9085908590600401610ba3565b600060405180830381600087803b1580156107d457600080fd5b505af11580156107e8573d6000803e3d6000fd5b505050505050565b60408051808201909152600080825260208201526005546001600160a01b0316634fd077f561081d61050c565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161012060405180830381865afa158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190610bf9565b60a00151905090565b60408051808201909152600080825260208201526005546001600160a01b0316634fd077f56108bc61050c565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161012060405180830381865afa158015610901573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109259190610bf9565b60c00151905090565b61093661055b565b6001600160a01b0316336001600160a01b0316146109665760405162461bcd60e51b81526004016102cd90610b6c565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a79060240161071c565b6001600160601b03828116908216145b92915050565b6000602082840312156109be57600080fd5b81356001600160e01b0319811681146109d657600080fd5b9392505050565b600060208083528351808285015260005b81811015610a0a578581018301518582016040015282016109ee565b506000604082860101526040601f19601f8301168501019250505092915050565b6040805190810167ffffffffffffffff81118282101715610a5c57634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610a7457600080fd5b610a7c610a2b565b9050813581526020820135602082015292915050565b60008060808385031215610aa557600080fd5b610aaf8484610a62565b9150610abe8460408501610a62565b90509250929050565b8151815260208083015190820152604081016109a6565b600060208284031215610af057600080fd5b815180151581146109d657600080fd5b80516001600160601b0381168114610b1757600080fd5b919050565b600060208284031215610b2e57600080fd5b6109d682610b00565b6001600160a01b0381168114610b4c57600080fd5b50565b600060208284031215610b6157600080fd5b81516109d681610b37565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b8251815260208084015181830152825160408301528201516060820152608081016109d6565b600060408284031215610bdb57600080fd5b610be3610a2b565b9050815181526020820151602082015292915050565b60006101208284031215610c0c57600080fd5b60405160e0810181811067ffffffffffffffff82111715610c3d57634e487b7160e01b600052604160045260246000fd5b604052610c4983610b00565b8152610c5760208401610b00565b6020820152610c6860408401610b00565b60408201526060830151610c7b81610b37565b60608201526080830151610c8e81610b37565b6080820152610ca08460a08501610bc9565b60a0820152610cb28460e08501610bc9565b60c0820152939250505056fea2646970667358221220f743d4ca5f40ffc70c8455b2b9d3b37bc272833eaa55252eca2214d1183da9eb64736f6c63430008140033",
302
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80635ab1bd53116100a2578063b6b412ba11610071578063b6b412ba1461023f578063bc74aab014610252578063daafed4014610267578063de7b5d141461026f578063f83d08ba1461028057600080fd5b80635ab1bd53146101ff578063644c45e014610225578063893d20e81461022d578063a69df4b51461023557600080fd5b80631bdd6b76116100de5780631bdd6b76146101a657806321df0da7146101ae57806331b62a3b146101bf5780633bc5de30146101e557600080fd5b806301ffc9a714610110578063132996041461015257806315dae03e146101775780631aa3a00814610186575b600080fd5b61013d61011e3660046109ac565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610149565b60405160648152602001610149565b61018e61028d565b6040516001600160601b039091168152602001610149565b61018e61049f565b6004546001600160a01b031661015f565b7f000000000000000000000000000000000000000000000000000000000000000061018e565b6040805160208101825260008152905161014991906109dd565b7f000000000000000000000000000000000000000000000000000000000000000061015f565b61018e61050c565b61015f61055b565b61023d6106b8565b005b61023d61024d366004610a92565b610750565b61025a6107f0565b6040516101499190610ac7565b61025a61088f565b6005546001600160a01b031661015f565b61023d61092e565b905090565b600061029761055b565b6001600160a01b0316336001600160a01b0316146102d65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661034c5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a434f422d3030313a52454749535452595f5a45524f000000000060448201526064016102cd565b60055460405163c3c5a54760e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063c3c5a54790602401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db9190610ade565b6104315760405162461bcd60e51b815260206004820152602160248201527f4552524f523a434f423a494e5354414e43455f4e4f545f5245474953544552456044820152601160fa1b60648201526084016102cd565b600154604051632210724360e11b81523060048201526001600160a01b0390911690634420e486906024016020604051808303816000875af115801561047b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102889190610b1c565b600754604051636939560f60e11b81526001600160a01b0391821660048201526000917f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e906024015b602060405180830381865afa15801561047b573d6000803e3d6000fd5b604051636939560f60e11b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d272ac1e906024016104ef565b604051636939560f60e11b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d272ac1e90602401602060405180830381865afa1580156105c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e89190610b1c565b90506105f5816000610996565b15610621577f000000000000000000000000000000000000000000000000000000000000000091505090565b60405163df33330b60e01b81526001600160601b03821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063df33330b90602401602060405180830381865afa15801561068e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b29190610b4f565b91505090565b6106c061055b565b6001600160a01b0316336001600160a01b0316146106f05760405162461bcd60e51b81526004016102cd90610b6c565b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b15801561073657600080fd5b505af115801561074a573d6000803e3d6000fd5b50505050565b61075861055b565b6001600160a01b0316336001600160a01b0316146107885760405162461bcd60e51b81526004016102cd90610b6c565b600654604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba906107ba9085908590600401610ba3565b600060405180830381600087803b1580156107d457600080fd5b505af11580156107e8573d6000803e3d6000fd5b505050505050565b60408051808201909152600080825260208201526005546001600160a01b0316634fd077f561081d61050c565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161012060405180830381865afa158015610862573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108869190610bf9565b60a00151905090565b60408051808201909152600080825260208201526005546001600160a01b0316634fd077f56108bc61050c565b6040516001600160e01b031960e084901b1681526001600160601b03909116600482015260240161012060405180830381865afa158015610901573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109259190610bf9565b60c00151905090565b61093661055b565b6001600160a01b0316336001600160a01b0316146109665760405162461bcd60e51b81526004016102cd90610b6c565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a79060240161071c565b6001600160601b03828116908216145b92915050565b6000602082840312156109be57600080fd5b81356001600160e01b0319811681146109d657600080fd5b9392505050565b600060208083528351808285015260005b81811015610a0a578581018301518582016040015282016109ee565b506000604082860101526040601f19601f8301168501019250505092915050565b6040805190810167ffffffffffffffff81118282101715610a5c57634e487b7160e01b600052604160045260246000fd5b60405290565b600060408284031215610a7457600080fd5b610a7c610a2b565b9050813581526020820135602082015292915050565b60008060808385031215610aa557600080fd5b610aaf8484610a62565b9150610abe8460408501610a62565b90509250929050565b8151815260208083015190820152604081016109a6565b600060208284031215610af057600080fd5b815180151581146109d657600080fd5b80516001600160601b0381168114610b1757600080fd5b919050565b600060208284031215610b2e57600080fd5b6109d682610b00565b6001600160a01b0381168114610b4c57600080fd5b50565b600060208284031215610b6157600080fd5b81516109d681610b37565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b8251815260208084015181830152825160408301528201516060820152608081016109d6565b600060408284031215610bdb57600080fd5b610be3610a2b565b9050815181526020820151602082015292915050565b60006101208284031215610c0c57600080fd5b60405160e0810181811067ffffffffffffffff82111715610c3d57634e487b7160e01b600052604160045260246000fd5b604052610c4983610b00565b8152610c5760208401610b00565b6020820152610c6860408401610b00565b60408201526060830151610c7b81610b37565b60608201526080830151610c8e81610b37565b6080820152610ca08460a08501610bc9565b60a0820152610cb28460e08501610bc9565b60c0820152939250505056fea2646970667358221220f743d4ca5f40ffc70c8455b2b9d3b37bc272833eaa55252eca2214d1183da9eb64736f6c63430008140033",
303
+ "linkReferences": {},
304
+ "deployedLinkReferences": {}
346
305
  }