@etherisc/gif-next 0.0.2-eadf4ad-932 → 0.0.2-eae585a-625

Sign up to get free protection for your applications and to get access to all the features.
Files changed (597) hide show
  1. package/README.md +139 -10
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1075 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +790 -0
  6. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +4 -0
  7. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +843 -0
  8. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +4 -0
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +1664 -0
  10. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.dbg.json +4 -0
  11. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.json +1289 -0
  12. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +4 -0
  13. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +1403 -0
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +790 -0
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +4 -0
  17. package/artifacts/contracts/{instance/module/ISetup.sol/ISetup.json → authorization/IAccess.sol/IAccess.json} +2 -2
  18. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +4 -0
  19. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +1372 -0
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  21. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +455 -0
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +397 -0
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  25. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +646 -0
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  27. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1244 -0
  28. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +4 -0
  29. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +805 -0
  30. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +1 -1
  31. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +174 -601
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +1 -1
  33. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +786 -533
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
  35. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +239 -128
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  37. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +178 -330
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  39. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +622 -178
  40. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +4 -0
  41. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.json +22 -0
  42. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +4 -0
  43. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +1484 -0
  44. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  45. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +805 -0
  46. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  47. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +2053 -0
  48. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  49. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +805 -0
  50. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  51. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  52. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  53. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1439 -0
  54. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  55. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +805 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1171 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1647 -0
  60. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +4 -0
  61. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +805 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  63. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2585 -0
  64. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +4 -0
  65. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +805 -0
  66. package/artifacts/contracts/instance/BaseStore.sol/BaseStore.dbg.json +4 -0
  67. package/artifacts/contracts/instance/BaseStore.sol/BaseStore.json +332 -0
  68. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +4 -0
  69. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +851 -0
  70. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.dbg.json +4 -0
  71. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.json +304 -0
  72. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  73. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +604 -92
  74. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +532 -56
  76. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  77. package/artifacts/contracts/instance/Instance.sol/Instance.json +657 -257
  78. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  79. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +2284 -0
  80. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +4 -0
  81. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +837 -0
  82. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  83. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1833 -761
  84. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +552 -193
  86. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  87. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +171 -94
  88. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +1 -1
  89. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +1548 -1017
  90. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.dbg.json +4 -0
  91. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.json +1539 -0
  92. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +4 -0
  93. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +866 -0
  94. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  95. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  96. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +1 -1
  97. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +0 -53
  98. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +4 -0
  99. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +10 -0
  100. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +4 -0
  101. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +223 -0
  102. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +4 -0
  103. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +192 -0
  104. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +4 -0
  105. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +168 -0
  106. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  107. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  108. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  109. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  110. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  111. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  112. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  113. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  114. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +957 -0
  115. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  116. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +810 -0
  117. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  118. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  119. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  120. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +772 -0
  121. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  122. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +762 -0
  123. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  124. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +873 -0
  125. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  126. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +1042 -0
  127. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  128. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +810 -0
  129. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  130. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +1242 -0
  131. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  132. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +805 -0
  133. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +1 -1
  134. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +550 -400
  135. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
  136. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +233 -102
  137. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +1 -1
  138. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +384 -86
  139. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  140. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +233 -423
  141. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +1 -1
  142. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +749 -377
  143. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +1 -1
  144. package/artifacts/contracts/pool/Pool.sol/Pool.json +247 -629
  145. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  146. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +522 -0
  147. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +1 -1
  148. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +954 -743
  149. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
  150. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +232 -113
  151. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +1 -1
  152. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +370 -252
  153. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
  154. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +192 -89
  155. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  156. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +1159 -0
  157. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  158. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +805 -0
  159. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +1 -1
  160. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +491 -341
  161. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
  162. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +214 -115
  163. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +1 -1
  164. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +320 -9
  165. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +1 -1
  166. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +369 -18
  167. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +1 -1
  168. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +454 -69
  169. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +1 -1
  170. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +217 -75
  171. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  172. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +380 -225
  173. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  174. package/artifacts/contracts/product/{IProductService.sol/IProductService.json → IRiskService.sol/IRiskService.json} +289 -66
  175. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +1 -1
  176. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +507 -384
  177. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  178. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +783 -0
  179. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
  180. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +198 -123
  181. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +1 -1
  182. package/artifacts/contracts/product/PricingService.sol/PricingService.json +261 -333
  183. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +1 -1
  184. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +196 -109
  185. package/artifacts/contracts/product/Product.sol/Product.dbg.json +1 -1
  186. package/artifacts/contracts/product/Product.sol/Product.json +428 -509
  187. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  188. package/artifacts/contracts/product/RiskService.sol/RiskService.json +873 -0
  189. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  190. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +774 -0
  191. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  192. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
  193. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  194. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +456 -51
  195. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  196. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +177 -65
  197. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  198. package/artifacts/contracts/registry/IRelease.sol/IRelease.json +24 -0
  199. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  200. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -18
  201. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  202. package/artifacts/contracts/registry/Registry.sol/Registry.json +962 -174
  203. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  204. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2160 -0
  205. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  206. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1074 -0
  207. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  208. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +242 -196
  209. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  210. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +162 -90
  211. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  212. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2152 -0
  213. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  214. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  215. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  216. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1389 -0
  217. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  218. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +683 -0
  219. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  220. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +361 -125
  221. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +1 -1
  222. package/artifacts/contracts/shared/Component.sol/Component.json +128 -296
  223. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +1 -1
  224. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1076 -156
  225. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  226. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +862 -0
  227. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  228. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +632 -0
  229. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  230. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +24 -0
  231. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  232. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  233. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  234. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  235. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +1 -1
  236. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +129 -135
  237. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  238. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +1175 -0
  239. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  240. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +707 -0
  241. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  242. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +89 -20
  243. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  244. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  245. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  246. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +42 -1
  247. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  248. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +16 -30
  249. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  250. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +173 -0
  251. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  252. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  253. package/artifacts/contracts/shared/IService.sol/IService.json +103 -2
  254. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  255. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  256. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  257. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +795 -0
  258. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  259. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +575 -0
  260. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  261. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  262. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  263. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  264. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  265. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +45 -55
  266. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  267. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +20 -124
  268. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  269. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +148 -90
  270. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  271. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  272. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  273. package/artifacts/contracts/shared/Service.sol/Service.json +96 -102
  274. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  275. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +615 -6
  276. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  277. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +484 -0
  278. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  279. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +172 -0
  280. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  281. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +2757 -0
  282. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +1 -1
  283. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +732 -108
  284. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.dbg.json +4 -0
  285. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.json +50 -0
  286. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  287. package/artifacts/contracts/staking/Staking.sol/Staking.json +3185 -0
  288. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +4 -0
  289. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +470 -0
  290. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  291. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +847 -0
  292. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  293. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +704 -0
  294. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +1 -1
  295. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +818 -241
  296. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +1 -1
  297. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +182 -83
  298. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  299. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +3097 -0
  300. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.dbg.json +4 -0
  301. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.json +309 -0
  302. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  303. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +679 -0
  304. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  305. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +2 -2
  306. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +1 -1
  307. package/artifacts/contracts/type/Amount.sol/AmountLib.json +122 -5
  308. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  309. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +92 -15
  310. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.dbg.json +4 -0
  311. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.json +193 -0
  312. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
  313. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +28 -4
  314. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
  315. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +4 -4
  316. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +1 -1
  317. package/artifacts/contracts/type/Fee.sol/FeeLib.json +119 -58
  318. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +1 -1
  319. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +2 -2
  320. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  321. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  322. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +1 -1
  323. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +66 -4
  324. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  325. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +2 -2
  326. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  327. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +153 -4
  328. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
  329. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +19 -19
  330. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +1 -1
  331. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +4 -4
  332. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  333. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  334. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +1 -1
  335. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +125 -7
  336. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +1 -1
  337. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +121 -23
  338. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +1 -1
  339. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +167 -2
  340. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  341. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +148 -0
  342. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  343. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  344. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +1 -1
  345. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +15 -2
  346. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  347. package/artifacts/contracts/type/String.sol/StrLib.json +180 -0
  348. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +1 -1
  349. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +37 -5
  350. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +1 -1
  351. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +126 -33
  352. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +1 -1
  353. package/artifacts/contracts/type/Version.sol/VersionLib.json +2 -21
  354. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +1 -1
  355. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +120 -2
  356. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  357. package/artifacts/contracts/{shared → upgradeability}/IVersionable.sol/IVersionable.json +11 -1
  358. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  359. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +656 -0
  360. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  361. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +142 -0
  362. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  363. package/artifacts/contracts/{shared → upgradeability}/Versionable.sol/Versionable.json +11 -1
  364. package/contracts/accounting/AccountingService.sol +274 -0
  365. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  366. package/contracts/accounting/IAccountingService.sol +47 -0
  367. package/contracts/authorization/AccessAdmin.sol +780 -0
  368. package/contracts/authorization/AccessAdminLib.sol +396 -0
  369. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  370. package/contracts/authorization/Authorization.sol +169 -0
  371. package/contracts/authorization/IAccess.sol +67 -0
  372. package/contracts/authorization/IAccessAdmin.sol +144 -0
  373. package/contracts/authorization/IAuthorization.sol +26 -0
  374. package/contracts/authorization/IServiceAuthorization.sol +78 -0
  375. package/contracts/authorization/ServiceAuthorization.sol +320 -0
  376. package/contracts/distribution/BasicDistribution.sol +141 -0
  377. package/contracts/distribution/BasicDistributionAuthorization.sol +67 -0
  378. package/contracts/distribution/Distribution.sol +137 -175
  379. package/contracts/distribution/DistributionService.sol +313 -216
  380. package/contracts/distribution/DistributionServiceManager.sol +8 -23
  381. package/contracts/distribution/IDistributionComponent.sol +23 -49
  382. package/contracts/distribution/IDistributionService.sol +61 -33
  383. package/contracts/examples/fire/DamageLevel.sol +59 -0
  384. package/contracts/examples/fire/FirePool.sol +86 -0
  385. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  386. package/contracts/examples/fire/FireProduct.sol +433 -0
  387. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  388. package/contracts/examples/fire/FireUSD.sol +26 -0
  389. package/contracts/examples/unpermissioned/SimpleDistribution.sol +81 -0
  390. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  391. package/contracts/examples/unpermissioned/SimpleOracle.sol +133 -0
  392. package/contracts/examples/unpermissioned/SimplePool.sol +102 -0
  393. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  394. package/contracts/examples/unpermissioned/SimpleProduct.sol +437 -0
  395. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  396. package/contracts/instance/BaseStore.sol +93 -0
  397. package/contracts/instance/BundleSet.sol +130 -0
  398. package/contracts/instance/IBaseStore.sol +37 -0
  399. package/contracts/instance/IInstance.sol +128 -49
  400. package/contracts/instance/IInstanceService.sol +83 -37
  401. package/contracts/instance/Instance.sol +254 -132
  402. package/contracts/instance/InstanceAdmin.sol +379 -0
  403. package/contracts/instance/InstanceAuthorizationV3.sol +275 -0
  404. package/contracts/instance/InstanceReader.sol +507 -241
  405. package/contracts/instance/InstanceService.sol +418 -205
  406. package/contracts/instance/InstanceServiceManager.sol +8 -13
  407. package/contracts/instance/InstanceStore.sol +146 -89
  408. package/contracts/instance/ProductStore.sol +119 -0
  409. package/contracts/instance/RiskSet.sol +126 -0
  410. package/contracts/instance/TargetNames.sol +10 -0
  411. package/contracts/instance/base/BalanceStore.sol +121 -0
  412. package/contracts/instance/base/Cloneable.sol +2 -25
  413. package/contracts/instance/base/ObjectCounter.sol +20 -0
  414. package/contracts/instance/base/ObjectLifecycle.sol +109 -0
  415. package/contracts/instance/base/ObjectSet.sol +77 -0
  416. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  417. package/contracts/instance/module/IBundle.sol +6 -8
  418. package/contracts/instance/module/IComponents.sol +40 -19
  419. package/contracts/instance/module/IDistribution.sol +21 -9
  420. package/contracts/instance/module/IPolicy.sol +57 -30
  421. package/contracts/instance/module/IRisk.sol +5 -0
  422. package/contracts/mock/Dip.sol +26 -0
  423. package/contracts/oracle/BasicOracle.sol +45 -0
  424. package/contracts/oracle/BasicOracleAuthorization.sol +53 -0
  425. package/contracts/oracle/IOracle.sol +41 -0
  426. package/contracts/oracle/IOracleComponent.sol +33 -0
  427. package/contracts/oracle/IOracleService.sol +66 -0
  428. package/contracts/oracle/Oracle.sol +154 -0
  429. package/contracts/oracle/OracleService.sol +310 -0
  430. package/contracts/oracle/OracleServiceManager.sol +39 -0
  431. package/contracts/pool/BasicPool.sol +162 -0
  432. package/contracts/pool/BasicPoolAuthorization.sol +81 -0
  433. package/contracts/pool/BundleService.sol +248 -246
  434. package/contracts/pool/BundleServiceManager.sol +8 -11
  435. package/contracts/pool/IBundleService.sol +47 -49
  436. package/contracts/pool/IPoolComponent.sol +23 -75
  437. package/contracts/pool/IPoolService.sol +112 -56
  438. package/contracts/pool/Pool.sol +200 -169
  439. package/contracts/pool/PoolLib.sol +341 -0
  440. package/contracts/pool/PoolService.sol +477 -267
  441. package/contracts/pool/PoolServiceManager.sol +6 -9
  442. package/contracts/product/ApplicationService.sol +222 -82
  443. package/contracts/product/ApplicationServiceManager.sol +6 -6
  444. package/contracts/product/BasicProduct.sol +49 -0
  445. package/contracts/product/BasicProductAuthorization.sol +63 -0
  446. package/contracts/product/ClaimService.sol +397 -214
  447. package/contracts/product/ClaimServiceManager.sol +6 -6
  448. package/contracts/product/IApplicationService.sol +30 -4
  449. package/contracts/product/IClaimService.sol +52 -9
  450. package/contracts/product/IPolicyService.sol +62 -40
  451. package/contracts/product/IPricingService.sol +14 -11
  452. package/contracts/product/IProductComponent.sol +31 -10
  453. package/contracts/product/IRiskService.sol +48 -0
  454. package/contracts/product/PolicyService.sol +504 -237
  455. package/contracts/product/PolicyServiceLib.sol +139 -0
  456. package/contracts/product/PolicyServiceManager.sol +6 -9
  457. package/contracts/product/PricingService.sol +132 -102
  458. package/contracts/product/PricingServiceManager.sol +6 -9
  459. package/contracts/product/Product.sol +267 -153
  460. package/contracts/product/RiskService.sol +190 -0
  461. package/contracts/product/RiskServiceManager.sol +39 -0
  462. package/contracts/registry/ChainNft.sol +79 -40
  463. package/contracts/registry/IRegistry.sol +98 -34
  464. package/contracts/registry/IRegistryService.sol +10 -6
  465. package/contracts/registry/IRelease.sol +29 -0
  466. package/contracts/registry/ITransferInterceptor.sol +1 -2
  467. package/contracts/registry/Registry.sol +457 -192
  468. package/contracts/registry/RegistryAdmin.sol +191 -0
  469. package/contracts/registry/RegistryAuthorization.sol +336 -0
  470. package/contracts/registry/RegistryService.sol +77 -67
  471. package/contracts/registry/RegistryServiceManager.sol +6 -25
  472. package/contracts/registry/ReleaseAdmin.sol +195 -0
  473. package/contracts/registry/ReleaseLifecycle.sol +32 -0
  474. package/contracts/registry/ReleaseRegistry.sol +525 -0
  475. package/contracts/registry/ServiceAuthorizationV3.sol +342 -0
  476. package/contracts/registry/TokenRegistry.sol +264 -63
  477. package/contracts/shared/Component.sol +126 -183
  478. package/contracts/shared/ComponentService.sol +639 -93
  479. package/contracts/shared/ComponentServiceManager.sol +38 -0
  480. package/contracts/shared/ContractLib.sol +312 -0
  481. package/contracts/shared/IComponent.sol +18 -50
  482. package/contracts/shared/IComponentService.sol +111 -0
  483. package/contracts/shared/IInstanceLinkedComponent.sol +30 -0
  484. package/contracts/{instance/base → shared}/IKeyValueStore.sol +15 -6
  485. package/contracts/{instance/base → shared}/ILifecycle.sol +5 -4
  486. package/contracts/shared/INftOwnable.sol +5 -1
  487. package/contracts/shared/IPolicyHolder.sol +12 -17
  488. package/contracts/shared/IRegisterable.sol +22 -1
  489. package/contracts/shared/IService.sol +11 -6
  490. package/contracts/shared/{ERC165.sol → InitializableERC165.sol} +12 -4
  491. package/contracts/shared/InstanceLinkedComponent.sol +194 -0
  492. package/contracts/shared/KeyValueStore.sol +131 -0
  493. package/contracts/shared/Lifecycle.sol +88 -0
  494. package/contracts/shared/NftIdSet.sol +65 -0
  495. package/contracts/shared/NftOwnable.sol +35 -24
  496. package/contracts/shared/PolicyHolder.sol +19 -50
  497. package/contracts/shared/Registerable.sol +54 -23
  498. package/contracts/shared/RegistryLinked.sol +9 -14
  499. package/contracts/shared/Service.sol +36 -41
  500. package/contracts/shared/TokenHandler.sol +320 -13
  501. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  502. package/contracts/staking/IStaking.sol +367 -0
  503. package/contracts/staking/IStakingService.sol +106 -81
  504. package/contracts/staking/ITargetLimitHandler.sol +17 -0
  505. package/contracts/staking/Staking.sol +798 -0
  506. package/contracts/staking/StakingLib.sol +195 -0
  507. package/contracts/staking/StakingManager.sol +53 -0
  508. package/contracts/staking/StakingReader.sol +171 -0
  509. package/contracts/staking/StakingService.sol +208 -56
  510. package/contracts/staking/StakingServiceManager.sol +14 -8
  511. package/contracts/staking/StakingStore.sol +1368 -0
  512. package/contracts/staking/TargetHandler.sol +132 -0
  513. package/contracts/staking/TargetManagerLib.sol +234 -0
  514. package/contracts/type/AddressSet.sol +1 -1
  515. package/contracts/type/Amount.sol +48 -3
  516. package/contracts/type/Blocknumber.sol +36 -13
  517. package/contracts/type/ChainId.sol +101 -0
  518. package/contracts/type/ClaimId.sol +6 -1
  519. package/contracts/type/Fee.sol +22 -21
  520. package/contracts/type/Key32.sol +2 -2
  521. package/contracts/type/Key32Set.sol +62 -0
  522. package/contracts/type/NftId.sol +21 -16
  523. package/contracts/type/NftIdSet.sol +1 -1
  524. package/contracts/type/ObjectType.sol +204 -59
  525. package/contracts/type/PayoutId.sol +10 -10
  526. package/contracts/type/Referral.sol +2 -1
  527. package/contracts/type/RequestId.sol +75 -0
  528. package/contracts/type/RiskId.sol +39 -7
  529. package/contracts/type/RoleId.sol +122 -81
  530. package/contracts/type/Seconds.sol +67 -1
  531. package/contracts/type/Selector.sol +107 -0
  532. package/contracts/type/StateId.sol +41 -2
  533. package/contracts/type/String.sol +65 -0
  534. package/contracts/type/Timestamp.sol +20 -9
  535. package/contracts/type/UFixed.sol +62 -125
  536. package/contracts/type/Version.sol +58 -7
  537. package/contracts/{shared → upgradeability}/IVersionable.sol +3 -0
  538. package/contracts/{shared → upgradeability}/ProxyManager.sol +101 -50
  539. package/contracts/upgradeability/UpgradableProxyWithAdmin.sol +24 -0
  540. package/contracts/{shared → upgradeability}/Versionable.sol +8 -5
  541. package/package.json +12 -8
  542. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +0 -4
  543. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +0 -778
  544. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  545. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1348
  546. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +0 -4
  547. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +0 -124
  548. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  549. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  550. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  551. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -581
  552. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  553. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -194
  554. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  555. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +0 -256
  556. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  557. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -237
  558. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  559. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  560. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +0 -10
  561. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +0 -4
  562. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +0 -4
  563. package/artifacts/contracts/product/ProductService.sol/ProductService.json +0 -864
  564. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  565. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +0 -679
  566. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  567. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -238
  568. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +0 -4
  569. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +0 -846
  570. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  571. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  572. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  573. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -73
  574. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  575. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  576. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -598
  577. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  578. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  579. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  580. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +0 -4
  581. package/artifacts/contracts/type/UFixed.sol/MathLib.json +0 -10
  582. package/contracts/instance/BundleManager.sol +0 -126
  583. package/contracts/instance/InstanceAccessManager.sol +0 -543
  584. package/contracts/instance/InstanceAuthorizationsLib.sol +0 -308
  585. package/contracts/instance/base/KeyValueStore.sol +0 -169
  586. package/contracts/instance/base/Lifecycle.sol +0 -121
  587. package/contracts/instance/base/ObjectManager.sol +0 -82
  588. package/contracts/instance/module/IAccess.sol +0 -54
  589. package/contracts/instance/module/ISetup.sol +0 -33
  590. package/contracts/instance/module/ITreasury.sol +0 -23
  591. package/contracts/product/IProductService.sol +0 -40
  592. package/contracts/product/ProductService.sol +0 -212
  593. package/contracts/product/ProductServiceManager.sol +0 -42
  594. package/contracts/registry/RegistryAccessManager.sol +0 -132
  595. package/contracts/registry/ReleaseManager.sol +0 -382
  596. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +0 -13
  597. package/contracts/shared/UpgradableProxyWithAdmin.sol +0 -16
@@ -0,0 +1,1539 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ProductStore",
4
+ "sourceName": "contracts/instance/ProductStore.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "NftId",
48
+ "name": "targetNftId",
49
+ "type": "uint96"
50
+ }
51
+ ],
52
+ "name": "ErrorBalanceStoreTargetAlreadyRegistered",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "targetNftId",
60
+ "type": "uint96"
61
+ }
62
+ ],
63
+ "name": "ErrorBalanceStoreTargetNotRegistered",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "Key32",
70
+ "name": "key",
71
+ "type": "bytes32"
72
+ },
73
+ {
74
+ "internalType": "ObjectType",
75
+ "name": "objectType",
76
+ "type": "uint8"
77
+ }
78
+ ],
79
+ "name": "ErrorBaseStoreAlreadyCreated",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "ObjectType",
86
+ "name": "objectType",
87
+ "type": "uint8"
88
+ }
89
+ ],
90
+ "name": "ErrorBaseStoreNoLifecycle",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [
95
+ {
96
+ "internalType": "Key32",
97
+ "name": "key",
98
+ "type": "bytes32"
99
+ }
100
+ ],
101
+ "name": "ErrorBaseStoreNotExisting",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "Key32",
108
+ "name": "key",
109
+ "type": "bytes32"
110
+ }
111
+ ],
112
+ "name": "ErrorBaseStoreStateZero",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "ObjectType",
119
+ "name": "objectType",
120
+ "type": "uint8"
121
+ }
122
+ ],
123
+ "name": "ErrorBaseStoreTypeUndefined",
124
+ "type": "error"
125
+ },
126
+ {
127
+ "inputs": [
128
+ {
129
+ "internalType": "address",
130
+ "name": "contractAddress",
131
+ "type": "address"
132
+ },
133
+ {
134
+ "internalType": "ObjectType",
135
+ "name": "objectType",
136
+ "type": "uint8"
137
+ },
138
+ {
139
+ "internalType": "StateId",
140
+ "name": "actual",
141
+ "type": "uint8"
142
+ },
143
+ {
144
+ "internalType": "StateId",
145
+ "name": "required",
146
+ "type": "uint8"
147
+ }
148
+ ],
149
+ "name": "ErrorFromStateMissmatch",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [
154
+ {
155
+ "internalType": "address",
156
+ "name": "contractAddress",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "internalType": "ObjectType",
161
+ "name": "objectType",
162
+ "type": "uint8"
163
+ },
164
+ {
165
+ "internalType": "StateId",
166
+ "name": "fromStateId",
167
+ "type": "uint8"
168
+ },
169
+ {
170
+ "internalType": "StateId",
171
+ "name": "toStateId",
172
+ "type": "uint8"
173
+ }
174
+ ],
175
+ "name": "ErrorInvalidStateTransition",
176
+ "type": "error"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "address",
182
+ "name": "contractAddress",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "internalType": "ObjectType",
187
+ "name": "objectType",
188
+ "type": "uint8"
189
+ }
190
+ ],
191
+ "name": "ErrorNoLifecycle",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "InvalidInitialization",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "NotInitializing",
202
+ "type": "error"
203
+ },
204
+ {
205
+ "anonymous": false,
206
+ "inputs": [
207
+ {
208
+ "indexed": false,
209
+ "internalType": "address",
210
+ "name": "authority",
211
+ "type": "address"
212
+ }
213
+ ],
214
+ "name": "AuthorityUpdated",
215
+ "type": "event"
216
+ },
217
+ {
218
+ "anonymous": false,
219
+ "inputs": [
220
+ {
221
+ "indexed": false,
222
+ "internalType": "uint64",
223
+ "name": "version",
224
+ "type": "uint64"
225
+ }
226
+ ],
227
+ "name": "Initialized",
228
+ "type": "event"
229
+ },
230
+ {
231
+ "anonymous": false,
232
+ "inputs": [
233
+ {
234
+ "indexed": false,
235
+ "internalType": "NftId",
236
+ "name": "targetNftId",
237
+ "type": "uint96"
238
+ },
239
+ {
240
+ "indexed": false,
241
+ "internalType": "Amount",
242
+ "name": "addedAmount",
243
+ "type": "uint96"
244
+ },
245
+ {
246
+ "indexed": false,
247
+ "internalType": "Amount",
248
+ "name": "newBalance",
249
+ "type": "uint96"
250
+ },
251
+ {
252
+ "indexed": false,
253
+ "internalType": "Blocknumber",
254
+ "name": "lastUpdatedIn",
255
+ "type": "uint40"
256
+ }
257
+ ],
258
+ "name": "LogBalanceStoreBalanceDecreased",
259
+ "type": "event"
260
+ },
261
+ {
262
+ "anonymous": false,
263
+ "inputs": [
264
+ {
265
+ "indexed": false,
266
+ "internalType": "NftId",
267
+ "name": "targetNftId",
268
+ "type": "uint96"
269
+ },
270
+ {
271
+ "indexed": false,
272
+ "internalType": "Amount",
273
+ "name": "addedAmount",
274
+ "type": "uint96"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "internalType": "Amount",
279
+ "name": "newBalance",
280
+ "type": "uint96"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "internalType": "Blocknumber",
285
+ "name": "lastUpdatedIn",
286
+ "type": "uint40"
287
+ }
288
+ ],
289
+ "name": "LogBalanceStoreBalanceIncreased",
290
+ "type": "event"
291
+ },
292
+ {
293
+ "anonymous": false,
294
+ "inputs": [
295
+ {
296
+ "indexed": false,
297
+ "internalType": "NftId",
298
+ "name": "targetNftId",
299
+ "type": "uint96"
300
+ },
301
+ {
302
+ "indexed": false,
303
+ "internalType": "Amount",
304
+ "name": "addedAmount",
305
+ "type": "uint96"
306
+ },
307
+ {
308
+ "indexed": false,
309
+ "internalType": "Amount",
310
+ "name": "newBalance",
311
+ "type": "uint96"
312
+ },
313
+ {
314
+ "indexed": false,
315
+ "internalType": "Blocknumber",
316
+ "name": "lastUpdatedIn",
317
+ "type": "uint40"
318
+ }
319
+ ],
320
+ "name": "LogBalanceStoreFeesDecreased",
321
+ "type": "event"
322
+ },
323
+ {
324
+ "anonymous": false,
325
+ "inputs": [
326
+ {
327
+ "indexed": false,
328
+ "internalType": "NftId",
329
+ "name": "targetNftId",
330
+ "type": "uint96"
331
+ },
332
+ {
333
+ "indexed": false,
334
+ "internalType": "Amount",
335
+ "name": "addedAmount",
336
+ "type": "uint96"
337
+ },
338
+ {
339
+ "indexed": false,
340
+ "internalType": "Amount",
341
+ "name": "newBalance",
342
+ "type": "uint96"
343
+ },
344
+ {
345
+ "indexed": false,
346
+ "internalType": "Blocknumber",
347
+ "name": "lastUpdatedIn",
348
+ "type": "uint40"
349
+ }
350
+ ],
351
+ "name": "LogBalanceStoreFeesIncreased",
352
+ "type": "event"
353
+ },
354
+ {
355
+ "anonymous": false,
356
+ "inputs": [
357
+ {
358
+ "indexed": false,
359
+ "internalType": "NftId",
360
+ "name": "targetNftId",
361
+ "type": "uint96"
362
+ },
363
+ {
364
+ "indexed": false,
365
+ "internalType": "Amount",
366
+ "name": "addedAmount",
367
+ "type": "uint96"
368
+ },
369
+ {
370
+ "indexed": false,
371
+ "internalType": "Amount",
372
+ "name": "newBalance",
373
+ "type": "uint96"
374
+ },
375
+ {
376
+ "indexed": false,
377
+ "internalType": "Blocknumber",
378
+ "name": "lastUpdatedIn",
379
+ "type": "uint40"
380
+ }
381
+ ],
382
+ "name": "LogBalanceStoreLockedDecreased",
383
+ "type": "event"
384
+ },
385
+ {
386
+ "anonymous": false,
387
+ "inputs": [
388
+ {
389
+ "indexed": false,
390
+ "internalType": "NftId",
391
+ "name": "targetNftId",
392
+ "type": "uint96"
393
+ },
394
+ {
395
+ "indexed": false,
396
+ "internalType": "Amount",
397
+ "name": "addedAmount",
398
+ "type": "uint96"
399
+ },
400
+ {
401
+ "indexed": false,
402
+ "internalType": "Amount",
403
+ "name": "newBalance",
404
+ "type": "uint96"
405
+ },
406
+ {
407
+ "indexed": false,
408
+ "internalType": "Blocknumber",
409
+ "name": "lastUpdatedIn",
410
+ "type": "uint40"
411
+ }
412
+ ],
413
+ "name": "LogBalanceStoreLockedIncreased",
414
+ "type": "event"
415
+ },
416
+ {
417
+ "anonymous": false,
418
+ "inputs": [
419
+ {
420
+ "indexed": false,
421
+ "internalType": "NftId",
422
+ "name": "targetNftId",
423
+ "type": "uint96"
424
+ }
425
+ ],
426
+ "name": "LogBalanceStoreTargetRegistered",
427
+ "type": "event"
428
+ },
429
+ {
430
+ "anonymous": false,
431
+ "inputs": [
432
+ {
433
+ "indexed": false,
434
+ "internalType": "NftId",
435
+ "name": "policyNftId",
436
+ "type": "uint96"
437
+ },
438
+ {
439
+ "indexed": false,
440
+ "internalType": "StateId",
441
+ "name": "state",
442
+ "type": "uint8"
443
+ },
444
+ {
445
+ "indexed": false,
446
+ "internalType": "address",
447
+ "name": "createdBy",
448
+ "type": "address"
449
+ },
450
+ {
451
+ "indexed": false,
452
+ "internalType": "address",
453
+ "name": "txOrigin",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "name": "LogProductStorePolicyInfoCreated",
458
+ "type": "event"
459
+ },
460
+ {
461
+ "anonymous": false,
462
+ "inputs": [
463
+ {
464
+ "indexed": false,
465
+ "internalType": "NftId",
466
+ "name": "policyNftId",
467
+ "type": "uint96"
468
+ },
469
+ {
470
+ "indexed": false,
471
+ "internalType": "StateId",
472
+ "name": "oldState",
473
+ "type": "uint8"
474
+ },
475
+ {
476
+ "indexed": false,
477
+ "internalType": "StateId",
478
+ "name": "newState",
479
+ "type": "uint8"
480
+ },
481
+ {
482
+ "indexed": false,
483
+ "internalType": "address",
484
+ "name": "updatedBy",
485
+ "type": "address"
486
+ },
487
+ {
488
+ "indexed": false,
489
+ "internalType": "address",
490
+ "name": "txOrigin",
491
+ "type": "address"
492
+ },
493
+ {
494
+ "indexed": false,
495
+ "internalType": "Blocknumber",
496
+ "name": "lastUpdatedIn",
497
+ "type": "uint40"
498
+ }
499
+ ],
500
+ "name": "LogProductStorePolicyInfoUpdated",
501
+ "type": "event"
502
+ },
503
+ {
504
+ "inputs": [],
505
+ "name": "authority",
506
+ "outputs": [
507
+ {
508
+ "internalType": "address",
509
+ "name": "",
510
+ "type": "address"
511
+ }
512
+ ],
513
+ "stateMutability": "view",
514
+ "type": "function"
515
+ },
516
+ {
517
+ "inputs": [
518
+ {
519
+ "internalType": "StateId",
520
+ "name": "stateId",
521
+ "type": "uint8"
522
+ },
523
+ {
524
+ "internalType": "ObjectType",
525
+ "name": "objectType",
526
+ "type": "uint8"
527
+ },
528
+ {
529
+ "internalType": "StateId",
530
+ "name": "expectedFromId",
531
+ "type": "uint8"
532
+ },
533
+ {
534
+ "internalType": "StateId",
535
+ "name": "toId",
536
+ "type": "uint8"
537
+ }
538
+ ],
539
+ "name": "checkTransition",
540
+ "outputs": [],
541
+ "stateMutability": "view",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [
546
+ {
547
+ "internalType": "NftId",
548
+ "name": "applicationNftId",
549
+ "type": "uint96"
550
+ },
551
+ {
552
+ "components": [
553
+ {
554
+ "internalType": "NftId",
555
+ "name": "productNftId",
556
+ "type": "uint96"
557
+ },
558
+ {
559
+ "internalType": "NftId",
560
+ "name": "bundleNftId",
561
+ "type": "uint96"
562
+ },
563
+ {
564
+ "internalType": "RiskId",
565
+ "name": "riskId",
566
+ "type": "bytes8"
567
+ },
568
+ {
569
+ "internalType": "Amount",
570
+ "name": "sumInsuredAmount",
571
+ "type": "uint96"
572
+ },
573
+ {
574
+ "internalType": "Amount",
575
+ "name": "premiumAmount",
576
+ "type": "uint96"
577
+ },
578
+ {
579
+ "internalType": "ReferralId",
580
+ "name": "referralId",
581
+ "type": "bytes8"
582
+ },
583
+ {
584
+ "internalType": "uint16",
585
+ "name": "claimsCount",
586
+ "type": "uint16"
587
+ },
588
+ {
589
+ "internalType": "uint16",
590
+ "name": "openClaimsCount",
591
+ "type": "uint16"
592
+ },
593
+ {
594
+ "internalType": "Amount",
595
+ "name": "claimAmount",
596
+ "type": "uint96"
597
+ },
598
+ {
599
+ "internalType": "Amount",
600
+ "name": "payoutAmount",
601
+ "type": "uint96"
602
+ },
603
+ {
604
+ "internalType": "Timestamp",
605
+ "name": "activatedAt",
606
+ "type": "uint40"
607
+ },
608
+ {
609
+ "internalType": "Seconds",
610
+ "name": "lifetime",
611
+ "type": "uint40"
612
+ },
613
+ {
614
+ "internalType": "Timestamp",
615
+ "name": "expiredAt",
616
+ "type": "uint40"
617
+ },
618
+ {
619
+ "internalType": "Timestamp",
620
+ "name": "closedAt",
621
+ "type": "uint40"
622
+ },
623
+ {
624
+ "internalType": "bytes",
625
+ "name": "applicationData",
626
+ "type": "bytes"
627
+ },
628
+ {
629
+ "internalType": "bytes",
630
+ "name": "processData",
631
+ "type": "bytes"
632
+ }
633
+ ],
634
+ "internalType": "struct IPolicy.PolicyInfo",
635
+ "name": "policy",
636
+ "type": "tuple"
637
+ }
638
+ ],
639
+ "name": "createApplication",
640
+ "outputs": [],
641
+ "stateMutability": "nonpayable",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "internalType": "Key32",
648
+ "name": "key32",
649
+ "type": "bytes32"
650
+ }
651
+ ],
652
+ "name": "exists",
653
+ "outputs": [
654
+ {
655
+ "internalType": "bool",
656
+ "name": "",
657
+ "type": "bool"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [
665
+ {
666
+ "internalType": "NftId",
667
+ "name": "targetNftId",
668
+ "type": "uint96"
669
+ }
670
+ ],
671
+ "name": "getAmounts",
672
+ "outputs": [
673
+ {
674
+ "internalType": "Amount",
675
+ "name": "balanceAmount",
676
+ "type": "uint96"
677
+ },
678
+ {
679
+ "internalType": "Amount",
680
+ "name": "lockedAmount",
681
+ "type": "uint96"
682
+ },
683
+ {
684
+ "internalType": "Amount",
685
+ "name": "feeAmount",
686
+ "type": "uint96"
687
+ }
688
+ ],
689
+ "stateMutability": "view",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [
694
+ {
695
+ "internalType": "NftId",
696
+ "name": "targetNftId",
697
+ "type": "uint96"
698
+ }
699
+ ],
700
+ "name": "getBalanceAmount",
701
+ "outputs": [
702
+ {
703
+ "internalType": "Amount",
704
+ "name": "balanceAmount",
705
+ "type": "uint96"
706
+ }
707
+ ],
708
+ "stateMutability": "view",
709
+ "type": "function"
710
+ },
711
+ {
712
+ "inputs": [
713
+ {
714
+ "internalType": "NftId",
715
+ "name": "targetNftId",
716
+ "type": "uint96"
717
+ }
718
+ ],
719
+ "name": "getFeeAmount",
720
+ "outputs": [
721
+ {
722
+ "internalType": "Amount",
723
+ "name": "feeAmount",
724
+ "type": "uint96"
725
+ }
726
+ ],
727
+ "stateMutability": "view",
728
+ "type": "function"
729
+ },
730
+ {
731
+ "inputs": [
732
+ {
733
+ "internalType": "ObjectType",
734
+ "name": "objectType",
735
+ "type": "uint8"
736
+ }
737
+ ],
738
+ "name": "getInitialState",
739
+ "outputs": [
740
+ {
741
+ "internalType": "StateId",
742
+ "name": "",
743
+ "type": "uint8"
744
+ }
745
+ ],
746
+ "stateMutability": "view",
747
+ "type": "function"
748
+ },
749
+ {
750
+ "inputs": [
751
+ {
752
+ "internalType": "NftId",
753
+ "name": "targetNftId",
754
+ "type": "uint96"
755
+ }
756
+ ],
757
+ "name": "getLockedAmount",
758
+ "outputs": [
759
+ {
760
+ "internalType": "Amount",
761
+ "name": "lockedAmount",
762
+ "type": "uint96"
763
+ }
764
+ ],
765
+ "stateMutability": "view",
766
+ "type": "function"
767
+ },
768
+ {
769
+ "inputs": [
770
+ {
771
+ "internalType": "Key32",
772
+ "name": "key32",
773
+ "type": "bytes32"
774
+ }
775
+ ],
776
+ "name": "getMetadata",
777
+ "outputs": [
778
+ {
779
+ "components": [
780
+ {
781
+ "internalType": "ObjectType",
782
+ "name": "objectType",
783
+ "type": "uint8"
784
+ },
785
+ {
786
+ "internalType": "StateId",
787
+ "name": "state",
788
+ "type": "uint8"
789
+ },
790
+ {
791
+ "internalType": "Blocknumber",
792
+ "name": "updatedIn",
793
+ "type": "uint40"
794
+ }
795
+ ],
796
+ "internalType": "struct IBaseStore.Metadata",
797
+ "name": "metadata",
798
+ "type": "tuple"
799
+ }
800
+ ],
801
+ "stateMutability": "view",
802
+ "type": "function"
803
+ },
804
+ {
805
+ "inputs": [
806
+ {
807
+ "internalType": "NftId",
808
+ "name": "policyNftId",
809
+ "type": "uint96"
810
+ }
811
+ ],
812
+ "name": "getPolicy",
813
+ "outputs": [
814
+ {
815
+ "components": [
816
+ {
817
+ "internalType": "NftId",
818
+ "name": "productNftId",
819
+ "type": "uint96"
820
+ },
821
+ {
822
+ "internalType": "NftId",
823
+ "name": "bundleNftId",
824
+ "type": "uint96"
825
+ },
826
+ {
827
+ "internalType": "RiskId",
828
+ "name": "riskId",
829
+ "type": "bytes8"
830
+ },
831
+ {
832
+ "internalType": "Amount",
833
+ "name": "sumInsuredAmount",
834
+ "type": "uint96"
835
+ },
836
+ {
837
+ "internalType": "Amount",
838
+ "name": "premiumAmount",
839
+ "type": "uint96"
840
+ },
841
+ {
842
+ "internalType": "ReferralId",
843
+ "name": "referralId",
844
+ "type": "bytes8"
845
+ },
846
+ {
847
+ "internalType": "uint16",
848
+ "name": "claimsCount",
849
+ "type": "uint16"
850
+ },
851
+ {
852
+ "internalType": "uint16",
853
+ "name": "openClaimsCount",
854
+ "type": "uint16"
855
+ },
856
+ {
857
+ "internalType": "Amount",
858
+ "name": "claimAmount",
859
+ "type": "uint96"
860
+ },
861
+ {
862
+ "internalType": "Amount",
863
+ "name": "payoutAmount",
864
+ "type": "uint96"
865
+ },
866
+ {
867
+ "internalType": "Timestamp",
868
+ "name": "activatedAt",
869
+ "type": "uint40"
870
+ },
871
+ {
872
+ "internalType": "Seconds",
873
+ "name": "lifetime",
874
+ "type": "uint40"
875
+ },
876
+ {
877
+ "internalType": "Timestamp",
878
+ "name": "expiredAt",
879
+ "type": "uint40"
880
+ },
881
+ {
882
+ "internalType": "Timestamp",
883
+ "name": "closedAt",
884
+ "type": "uint40"
885
+ },
886
+ {
887
+ "internalType": "bytes",
888
+ "name": "applicationData",
889
+ "type": "bytes"
890
+ },
891
+ {
892
+ "internalType": "bytes",
893
+ "name": "processData",
894
+ "type": "bytes"
895
+ }
896
+ ],
897
+ "internalType": "struct IPolicy.PolicyInfo",
898
+ "name": "policy",
899
+ "type": "tuple"
900
+ }
901
+ ],
902
+ "stateMutability": "view",
903
+ "type": "function"
904
+ },
905
+ {
906
+ "inputs": [
907
+ {
908
+ "internalType": "Key32",
909
+ "name": "key32",
910
+ "type": "bytes32"
911
+ }
912
+ ],
913
+ "name": "getState",
914
+ "outputs": [
915
+ {
916
+ "internalType": "StateId",
917
+ "name": "state",
918
+ "type": "uint8"
919
+ }
920
+ ],
921
+ "stateMutability": "view",
922
+ "type": "function"
923
+ },
924
+ {
925
+ "inputs": [
926
+ {
927
+ "internalType": "ObjectType",
928
+ "name": "objectType",
929
+ "type": "uint8"
930
+ }
931
+ ],
932
+ "name": "hasLifecycle",
933
+ "outputs": [
934
+ {
935
+ "internalType": "bool",
936
+ "name": "",
937
+ "type": "bool"
938
+ }
939
+ ],
940
+ "stateMutability": "view",
941
+ "type": "function"
942
+ },
943
+ {
944
+ "inputs": [],
945
+ "name": "initialize",
946
+ "outputs": [],
947
+ "stateMutability": "nonpayable",
948
+ "type": "function"
949
+ },
950
+ {
951
+ "inputs": [],
952
+ "name": "isConsumingScheduledOp",
953
+ "outputs": [
954
+ {
955
+ "internalType": "bytes4",
956
+ "name": "",
957
+ "type": "bytes4"
958
+ }
959
+ ],
960
+ "stateMutability": "view",
961
+ "type": "function"
962
+ },
963
+ {
964
+ "inputs": [
965
+ {
966
+ "internalType": "ObjectType",
967
+ "name": "objectType",
968
+ "type": "uint8"
969
+ },
970
+ {
971
+ "internalType": "StateId",
972
+ "name": "fromId",
973
+ "type": "uint8"
974
+ },
975
+ {
976
+ "internalType": "StateId",
977
+ "name": "toId",
978
+ "type": "uint8"
979
+ }
980
+ ],
981
+ "name": "isValidTransition",
982
+ "outputs": [
983
+ {
984
+ "internalType": "bool",
985
+ "name": "",
986
+ "type": "bool"
987
+ }
988
+ ],
989
+ "stateMutability": "view",
990
+ "type": "function"
991
+ },
992
+ {
993
+ "inputs": [
994
+ {
995
+ "internalType": "address",
996
+ "name": "newAuthority",
997
+ "type": "address"
998
+ }
999
+ ],
1000
+ "name": "setAuthority",
1001
+ "outputs": [],
1002
+ "stateMutability": "nonpayable",
1003
+ "type": "function"
1004
+ },
1005
+ {
1006
+ "inputs": [
1007
+ {
1008
+ "internalType": "ObjectType",
1009
+ "name": "objectType",
1010
+ "type": "uint8"
1011
+ },
1012
+ {
1013
+ "internalType": "KeyId",
1014
+ "name": "id",
1015
+ "type": "bytes31"
1016
+ }
1017
+ ],
1018
+ "name": "toKey32",
1019
+ "outputs": [
1020
+ {
1021
+ "internalType": "Key32",
1022
+ "name": "",
1023
+ "type": "bytes32"
1024
+ }
1025
+ ],
1026
+ "stateMutability": "pure",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "internalType": "NftId",
1033
+ "name": "applicationNftId",
1034
+ "type": "uint96"
1035
+ },
1036
+ {
1037
+ "components": [
1038
+ {
1039
+ "internalType": "NftId",
1040
+ "name": "productNftId",
1041
+ "type": "uint96"
1042
+ },
1043
+ {
1044
+ "internalType": "NftId",
1045
+ "name": "bundleNftId",
1046
+ "type": "uint96"
1047
+ },
1048
+ {
1049
+ "internalType": "RiskId",
1050
+ "name": "riskId",
1051
+ "type": "bytes8"
1052
+ },
1053
+ {
1054
+ "internalType": "Amount",
1055
+ "name": "sumInsuredAmount",
1056
+ "type": "uint96"
1057
+ },
1058
+ {
1059
+ "internalType": "Amount",
1060
+ "name": "premiumAmount",
1061
+ "type": "uint96"
1062
+ },
1063
+ {
1064
+ "internalType": "ReferralId",
1065
+ "name": "referralId",
1066
+ "type": "bytes8"
1067
+ },
1068
+ {
1069
+ "internalType": "uint16",
1070
+ "name": "claimsCount",
1071
+ "type": "uint16"
1072
+ },
1073
+ {
1074
+ "internalType": "uint16",
1075
+ "name": "openClaimsCount",
1076
+ "type": "uint16"
1077
+ },
1078
+ {
1079
+ "internalType": "Amount",
1080
+ "name": "claimAmount",
1081
+ "type": "uint96"
1082
+ },
1083
+ {
1084
+ "internalType": "Amount",
1085
+ "name": "payoutAmount",
1086
+ "type": "uint96"
1087
+ },
1088
+ {
1089
+ "internalType": "Timestamp",
1090
+ "name": "activatedAt",
1091
+ "type": "uint40"
1092
+ },
1093
+ {
1094
+ "internalType": "Seconds",
1095
+ "name": "lifetime",
1096
+ "type": "uint40"
1097
+ },
1098
+ {
1099
+ "internalType": "Timestamp",
1100
+ "name": "expiredAt",
1101
+ "type": "uint40"
1102
+ },
1103
+ {
1104
+ "internalType": "Timestamp",
1105
+ "name": "closedAt",
1106
+ "type": "uint40"
1107
+ },
1108
+ {
1109
+ "internalType": "bytes",
1110
+ "name": "applicationData",
1111
+ "type": "bytes"
1112
+ },
1113
+ {
1114
+ "internalType": "bytes",
1115
+ "name": "processData",
1116
+ "type": "bytes"
1117
+ }
1118
+ ],
1119
+ "internalType": "struct IPolicy.PolicyInfo",
1120
+ "name": "policy",
1121
+ "type": "tuple"
1122
+ },
1123
+ {
1124
+ "internalType": "StateId",
1125
+ "name": "newState",
1126
+ "type": "uint8"
1127
+ }
1128
+ ],
1129
+ "name": "updateApplication",
1130
+ "outputs": [],
1131
+ "stateMutability": "nonpayable",
1132
+ "type": "function"
1133
+ },
1134
+ {
1135
+ "inputs": [
1136
+ {
1137
+ "internalType": "NftId",
1138
+ "name": "applicationNftId",
1139
+ "type": "uint96"
1140
+ },
1141
+ {
1142
+ "internalType": "StateId",
1143
+ "name": "newState",
1144
+ "type": "uint8"
1145
+ }
1146
+ ],
1147
+ "name": "updateApplicationState",
1148
+ "outputs": [],
1149
+ "stateMutability": "nonpayable",
1150
+ "type": "function"
1151
+ },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "internalType": "NftId",
1156
+ "name": "policyNftId",
1157
+ "type": "uint96"
1158
+ },
1159
+ {
1160
+ "components": [
1161
+ {
1162
+ "internalType": "NftId",
1163
+ "name": "productNftId",
1164
+ "type": "uint96"
1165
+ },
1166
+ {
1167
+ "internalType": "NftId",
1168
+ "name": "bundleNftId",
1169
+ "type": "uint96"
1170
+ },
1171
+ {
1172
+ "internalType": "RiskId",
1173
+ "name": "riskId",
1174
+ "type": "bytes8"
1175
+ },
1176
+ {
1177
+ "internalType": "Amount",
1178
+ "name": "sumInsuredAmount",
1179
+ "type": "uint96"
1180
+ },
1181
+ {
1182
+ "internalType": "Amount",
1183
+ "name": "premiumAmount",
1184
+ "type": "uint96"
1185
+ },
1186
+ {
1187
+ "internalType": "ReferralId",
1188
+ "name": "referralId",
1189
+ "type": "bytes8"
1190
+ },
1191
+ {
1192
+ "internalType": "uint16",
1193
+ "name": "claimsCount",
1194
+ "type": "uint16"
1195
+ },
1196
+ {
1197
+ "internalType": "uint16",
1198
+ "name": "openClaimsCount",
1199
+ "type": "uint16"
1200
+ },
1201
+ {
1202
+ "internalType": "Amount",
1203
+ "name": "claimAmount",
1204
+ "type": "uint96"
1205
+ },
1206
+ {
1207
+ "internalType": "Amount",
1208
+ "name": "payoutAmount",
1209
+ "type": "uint96"
1210
+ },
1211
+ {
1212
+ "internalType": "Timestamp",
1213
+ "name": "activatedAt",
1214
+ "type": "uint40"
1215
+ },
1216
+ {
1217
+ "internalType": "Seconds",
1218
+ "name": "lifetime",
1219
+ "type": "uint40"
1220
+ },
1221
+ {
1222
+ "internalType": "Timestamp",
1223
+ "name": "expiredAt",
1224
+ "type": "uint40"
1225
+ },
1226
+ {
1227
+ "internalType": "Timestamp",
1228
+ "name": "closedAt",
1229
+ "type": "uint40"
1230
+ },
1231
+ {
1232
+ "internalType": "bytes",
1233
+ "name": "applicationData",
1234
+ "type": "bytes"
1235
+ },
1236
+ {
1237
+ "internalType": "bytes",
1238
+ "name": "processData",
1239
+ "type": "bytes"
1240
+ }
1241
+ ],
1242
+ "internalType": "struct IPolicy.PolicyInfo",
1243
+ "name": "policy",
1244
+ "type": "tuple"
1245
+ },
1246
+ {
1247
+ "internalType": "StateId",
1248
+ "name": "newState",
1249
+ "type": "uint8"
1250
+ }
1251
+ ],
1252
+ "name": "updatePolicy",
1253
+ "outputs": [],
1254
+ "stateMutability": "nonpayable",
1255
+ "type": "function"
1256
+ },
1257
+ {
1258
+ "inputs": [
1259
+ {
1260
+ "internalType": "NftId",
1261
+ "name": "policyNftId",
1262
+ "type": "uint96"
1263
+ },
1264
+ {
1265
+ "components": [
1266
+ {
1267
+ "internalType": "NftId",
1268
+ "name": "productNftId",
1269
+ "type": "uint96"
1270
+ },
1271
+ {
1272
+ "internalType": "NftId",
1273
+ "name": "bundleNftId",
1274
+ "type": "uint96"
1275
+ },
1276
+ {
1277
+ "internalType": "RiskId",
1278
+ "name": "riskId",
1279
+ "type": "bytes8"
1280
+ },
1281
+ {
1282
+ "internalType": "Amount",
1283
+ "name": "sumInsuredAmount",
1284
+ "type": "uint96"
1285
+ },
1286
+ {
1287
+ "internalType": "Amount",
1288
+ "name": "premiumAmount",
1289
+ "type": "uint96"
1290
+ },
1291
+ {
1292
+ "internalType": "ReferralId",
1293
+ "name": "referralId",
1294
+ "type": "bytes8"
1295
+ },
1296
+ {
1297
+ "internalType": "uint16",
1298
+ "name": "claimsCount",
1299
+ "type": "uint16"
1300
+ },
1301
+ {
1302
+ "internalType": "uint16",
1303
+ "name": "openClaimsCount",
1304
+ "type": "uint16"
1305
+ },
1306
+ {
1307
+ "internalType": "Amount",
1308
+ "name": "claimAmount",
1309
+ "type": "uint96"
1310
+ },
1311
+ {
1312
+ "internalType": "Amount",
1313
+ "name": "payoutAmount",
1314
+ "type": "uint96"
1315
+ },
1316
+ {
1317
+ "internalType": "Timestamp",
1318
+ "name": "activatedAt",
1319
+ "type": "uint40"
1320
+ },
1321
+ {
1322
+ "internalType": "Seconds",
1323
+ "name": "lifetime",
1324
+ "type": "uint40"
1325
+ },
1326
+ {
1327
+ "internalType": "Timestamp",
1328
+ "name": "expiredAt",
1329
+ "type": "uint40"
1330
+ },
1331
+ {
1332
+ "internalType": "Timestamp",
1333
+ "name": "closedAt",
1334
+ "type": "uint40"
1335
+ },
1336
+ {
1337
+ "internalType": "bytes",
1338
+ "name": "applicationData",
1339
+ "type": "bytes"
1340
+ },
1341
+ {
1342
+ "internalType": "bytes",
1343
+ "name": "processData",
1344
+ "type": "bytes"
1345
+ }
1346
+ ],
1347
+ "internalType": "struct IPolicy.PolicyInfo",
1348
+ "name": "policy",
1349
+ "type": "tuple"
1350
+ },
1351
+ {
1352
+ "internalType": "StateId",
1353
+ "name": "newState",
1354
+ "type": "uint8"
1355
+ }
1356
+ ],
1357
+ "name": "updatePolicyClaims",
1358
+ "outputs": [],
1359
+ "stateMutability": "nonpayable",
1360
+ "type": "function"
1361
+ },
1362
+ {
1363
+ "inputs": [
1364
+ {
1365
+ "internalType": "NftId",
1366
+ "name": "policyNftId",
1367
+ "type": "uint96"
1368
+ },
1369
+ {
1370
+ "internalType": "StateId",
1371
+ "name": "newState",
1372
+ "type": "uint8"
1373
+ }
1374
+ ],
1375
+ "name": "updatePolicyState",
1376
+ "outputs": [],
1377
+ "stateMutability": "nonpayable",
1378
+ "type": "function"
1379
+ }
1380
+ ],
1381
+ "bytecode": "0x60806040525f6007553480156012575f80fd5b506128ae806100205f395ff3fe608060405234801561000f575f80fd5b5060043610610148575f3560e01c80636c36e7db116100bf578063a5961b4c11610079578063a5961b4c14610388578063bf1db3f91461041f578063bf7e214f14610432578063c75e9a1c14610194578063e9e96c7014610452578063f48016ce1461048f575f80fd5b80636c36e7db146102ee5780637a9e5e4b1461030e5780638129fc1c146103215780638eb9000d146103295780638fb36037146103545780639505838e14610375575f80fd5b8063228e42ec11610110578063228e42ec1461021a578063297023ef1461019457806338a699a41461024557806354f1fa81146102685780635d4345cc146102075780635eede1741461027b575f80fd5b80630232ca491461014c578063036b1ffb1461019457806309648a9d146101a95780630d358181146101e25780630fad0eb114610207575b5f80fd5b61017761015a366004611ef2565b6001600160601b039081165f908152600460205260409020541690565b6040516001600160601b0390911681526020015b60405180910390f35b6101a76101a2366004612198565b6104b0565b005b6101d06101b73660046121f8565b5f90815260066020526040902054610100900460ff1690565b60405160ff909116815260200161018b565b6101d06101f036600461220f565b60ff9081165f908152602081905260409020541690565b6101a761021536600461222a565b6107c2565b610177610228366004611ef2565b6001600160601b039081165f908152600260205260409020541690565b6102586102533660046121f8565b610848565b604051901515815260200161018b565b6101a7610276366004612261565b6108d6565b6102c4610289366004611ef2565b6001600160601b039081165f908152600260209081526040808320546003835281842054600490935292205491831693908316929190911690565b604080516001600160601b039485168152928416602084015292169181019190915260600161018b565b6103016102fc366004611ef2565b610a34565b60405161018b91906122e8565b6101a761031c366004612470565b610cf3565b6101a7610d79565b610177610337366004611ef2565b6001600160601b039081165f908152600360205260409020541690565b61035c610ef3565b6040516001600160e01b0319909116815260200161018b565b6101a761038336600461248b565b610f29565b6103ee6103963660046121f8565b60408051606080820183525f80835260208084018290529284018190529384526006825292829020825193840183525460ff80821685526101008204169184019190915262010000900464ffffffffff169082015290565b60408051825160ff9081168252602080850151909116908201529181015164ffffffffff169082015260600161018b565b61025861042d36600461220f565b61118a565b61043a6111d6565b6040516001600160a01b03909116815260200161018b565b6102586104603660046124d8565b60ff9283165f908152600160209081526040808320948616835293815283822092851682529190915220541690565b6104a261049d366004612515565b6111f1565b60405190815260200161018b565b6104bc335b5f36611279565b5f6104c8846015611377565b90505f6104d582846113c2565b5f8381526006602052604081205491925090610100900460ff1690508460085f8581526020019081526020015f205f820151815f015f6101000a8154816001600160601b0302191690836001600160601b031602179055506020820151815f01600c6101000a8154816001600160601b0302191690836001600160601b031602179055506040820151815f0160186101000a81548167ffffffffffffffff021916908360c01c02179055506060820151816001015f6101000a8154816001600160601b0302191690836001600160601b03160217905550608082015181600101600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060a08201518160010160186101000a81548167ffffffffffffffff021916908360c01c021790555060c0820151816002015f6101000a81548161ffff021916908361ffff16021790555060e08201518160020160026101000a81548161ffff021916908361ffff1602179055506101008201518160020160046101000a8154816001600160601b0302191690836001600160601b031602179055506101208201518160020160106101000a8154816001600160601b0302191690836001600160601b03160217905550610140820151816003015f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101608201518160030160056101000a81548164ffffffffff021916908364ffffffffff16021790555061018082015181600301600a6101000a81548164ffffffffff021916908364ffffffffff1602179055506101a082015181600301600f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101c082015181600401908161075f91906125c8565b506101e0820151600582019061077590826125c8565b509050507fe5effcf96bb744518e09cc69ad226c65cece5fb0047e35c272ac6b34f4a262ee8682863332876040516107b296959493929190612683565b60405180910390a1505050505050565b6107cb336104b5565b5f6107d7836015611377565b90505f6107e482846113c2565b5f8381526006602052604081205491925090610100900460ff1690507fe5effcf96bb744518e09cc69ad226c65cece5fb0047e35c272ac6b34f4a262ee85828633328760405161083996959493929190612683565b60405180910390a15050505050565b5f8181526006602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf906024015b602060405180830381865af41580156108ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d091906126dd565b92915050565b60ff8381165f908152602081905260409081902054905163037c8cb160e51b81529116600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015610938573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095c91906126dd565b1561098a5760405163ea01ac1f60e01b815230600482015260ff841660248201526044015b60405180910390fd5b60ff808516908316146109cb5760405163bae587e160e01b815230600482015260ff8085166024830152808616604483015283166064820152608401610981565b60ff8084165f90815260016020908152604080832088851684528252808320858516845290915290205416610a2e5760405163f33b49a360e01b815230600482015260ff8085166024830152808616604483015282166064820152608401610981565b50505050565b60408051610200810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082018390526101a082018390526101c082018190526101e082015290600890610ac1846015611377565b815260208082019290925260409081015f2081516102008101835281546001600160601b038082168352600160601b8083048216968401969096526001600160c01b0319600160c01b9283900460c090811b821696850196909652600185015480831660608601529687048216608085015291909504841b1660a0820152600282015461ffff8082169483019490945262010000810490931660e082015264010000000083048416610100820152600160801b909204909216610120820152600382015464ffffffffff8082166101408401526501000000000082048116610160840152600160501b82048116610180840152600160781b909104166101a08201526004820180549192916101c084019190610bdc90612547565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0890612547565b8015610c535780601f10610c2a57610100808354040283529160200191610c53565b820191905f5260205f20905b815481529060010190602001808311610c3657829003601f168201915b50505050508152602001600582018054610c6c90612547565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9890612547565b8015610ce35780601f10610cba57610100808354040283529160200191610ce3565b820191905f5260205f20905b815481529060010190602001808311610cc657829003601f168201915b5050505050815250509050919050565b33610cfc6111d6565b6001600160a01b0316816001600160a01b031614610d375760405162d1953b60e31b81526001600160a01b0382166004820152602401610981565b816001600160a01b03163b5f03610d6c576040516361798f2f60e11b81526001600160a01b0383166004820152602401610981565b610d75826115d7565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610dbe5750825b90505f8267ffffffffffffffff166001148015610dda5750303b155b905081158015610de8575080155b15610e065760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e3057845460ff60401b1916600160401b1785555b5f3390505f816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e71573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e9591906126f6565b9050610ea081611637565b610ea861164b565b50508315610eec57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610839565b5050505050565b5f8051602061285983398151915280545f9190600160a01b900460ff16610f1a575f610f23565b638fb3603760e01b5b91505090565b610f32336104b5565b610f3b8261165d565b5f610f47836015611377565b9050610f5281611760565b5f8181526008602090815260409182902084518154928601519386015160c090811c600160c01b9081026001600160c01b036001600160601b03978816600160601b9081026001600160c01b0319988916968a1696909617959095178116919091178555606089015160018601805460808c015160a08d0151871c909502948a16909602959097169088161793909317909216919091179092559084015160028201805460e08701516101008801516101208901518716600160801b026bffffffffffffffffffffffff60801b19919097166401000000000216640100000000600160e01b031961ffff928316620100000263ffffffff199094169290951691909117919091179290921691909117929092179091556101408301516003820180546101608601516101808701516101a088015164ffffffffff908116600160781b0264ffffffffff60781b19928216600160501b029290921669ffffffffffffffffffff60501b19938216650100000000000269ffffffffffffffffffff1990951691909616179290921716929092179190911790556101c0830151839190600482019061110190826125c8565b506101e0820151600582019061111790826125c8565b5050505f818152600660205260409020547ff20995ffc314df588b8ab4c972d20b5572ff246c225c07826e29c6e11c5866a3908490610100900460ff16604080516001600160601b03909316835260ff9091166020830152339082015232606082015260800160405180910390a1505050565b60ff8181165f9081526020819052604080822054905163b2466acf60e01b8152921660048301529073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf90602401610891565b5f80516020612859833981519152546001600160a01b031690565b604051637a400b6760e11b815260ff8316600482015260ff19821660248201525f9073__$4b9aaffa8d044614668dad578b824b8eee$__9063f48016ce906044015b602060405180830381865af415801561124e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112729190612711565b9392505050565b5f805160206128598339815191525f806112b16112946111d6565b87306112a360045f8a8c612728565b6112ac9161274f565b611a0b565b915091508161136f5763ffffffff81161561134c57825460ff60a01b1916600160a01b1783556112df6111d6565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b815260040161130e93929190612787565b5f604051808303815f87803b158015611325575f80fd5b505af1158015611337573d5f803e3d5ffd5b5050845460ff60a01b191685555061136f9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610981565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff821660248201525f9073__$94a2c899be079b00d952d0d84fffaa5c34$__90633889a4c890604401611233565b60405163037c8cb160e51b815260ff821660048201525f9073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015611414573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061143891906126dd565b1561145957604051631260077f60e21b815260048101849052602401610981565b505f82815260066020526040908190208054915163037c8cb160e51b8152610100830460ff16600482018190526201000090930464ffffffffff16929073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af41580156114d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114f491906126dd565b15611515576040516310b1404560e21b815260048101869052602401610981565b60ff8085161461154457815461153190829060ff1681876108d6565b815461ff00191661010060ff8616021782555b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af415801561158b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115af91906127c6565b825464ffffffffff91909116620100000266ffffffffff000019909116179091555092915050565b5f8051602061285983398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b61163f611b13565b61164881611b5c565b50565b611653611b13565b61165b611b6d565b565b6001600160601b0381165f9081526005602052604090819020549051638d38cd4b60e01b815264ffffffffff909116600482015273__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af41580156116cb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116ef91906126dd565b15611718576040516314d5804160e01b81526001600160601b0382166004820152602401610981565b61172181611bc5565b6040516001600160601b03821681527f1c26f28e2d8f145150c4243339c6b20813ea2bbc4e6f19ea2c9905060c0411a99060200160405180910390a150565b604051634b00e98f60e11b8152600481018290525f9073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af41580156117b0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117d491906127e1565b60405163037c8cb160e51b815260ff8216600482015290915073__$0d958e68cba84670b8f4a3f2f2686b1c6b$__90636f91962090602401602060405180830381865af4158015611827573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061184b91906126dd565b1561186e57604051633d61be7d60e11b815260ff82166004820152602401610981565b5f828152600660205260409081902080549151638d38cd4b60e01b81526201000090920464ffffffffff1660048301529073__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af41580156118d9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118fd91906126dd565b1561192757604051637791d47d60e01b81526004810184905260ff83166024820152604401610981565b6119308261118a565b611952576040516391eb5e8760e01b815260ff83166004820152602401610981565b5f73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af415801561199a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119be91906127c6565b60ff9384165f81815260208190526040902054845461ffff19169091179416610100029390931766ffffffffff000019166201000064ffffffffff94909416939093029290921790555050565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611a7991906127fc565b5f60405180830381855afa9150503d805f8114611ab1576040519150601f19603f3d011682016040523d82523d5f602084013e611ab6565b606091505b50915091508115611b08576040815110611ae85780806020019051810190611ade9190612812565b9094509250611b08565b6020815110611b085780806020019051810190611b0591906126dd565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661165b57604051631afcd79f60e31b815260040160405180910390fd5b611b64611b13565b611648816115d7565b611b75611c64565b611b7d611c81565b611b85611cb5565b611b8d611cf9565b611b95611d15565b611b9d611d62565b611ba5611d82565b611bad611d96565b611bb5611dd5565b611bbd611ddf565b61165b611df3565b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af4158015611c0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c3091906127c6565b6001600160601b03919091165f908152600560205260409020805464ffffffffff191664ffffffffff909216919091179055565b611c7160165b6005611e1b565b61165b60165b60055b60c8611e5d565b611c8b600b611c6a565b611c99600b6005606e611e5d565b611ca7600b606e6005611e5d565b61165b600b606e60d2611e5d565b611cc16015600a611e1b565b611cd06015600a5b6014611e5d565b611cdf6015600a5b601e611e5d565b611ced6015600a6028611e5d565b61165b60156028611c7a565b611d06602b5b603c611e1b565b61165b602b5b603c60dc611e5d565b611d21602d6032611e1b565b611d2d602d6032611cc9565b611d3b602d60326033611e5d565b611d47602d6032611cd8565b611d53602d6033611c7a565b61165b602d60335b6048611e5d565b611d6c602e611cff565b611d76602e611d0c565b61165b602e603c611d5b565b611d8c602c611c6a565b61165b602c611c77565b611da0602f611c6a565b611daf602f60055b6046611e5d565b611dbd602f60056007611e5d565b611dc9602f6007611da8565b61165b602f6005611d5b565b61165b600f611c6a565b611de9600c611c6a565b61165b6029611c6a565b611dfd600e611c6a565b611e076017611c6a565b611e116030611c6a565b61165b6031611c6a565b60ff8281165f908152602081905260409020541615611e3c57611e3c612844565b60ff9182165f908152602081905260409020805460ff191691909216179055565b60ff8084165f9081526001602090815260408083208685168452825280832085851684529091529020541615611e9557611e95612844565b60ff9283165f9081526001602081815260408084209587168452948152848320939095168252919093529120805460ff19169091179055565b6001600160601b0381168114611648575f80fd5b8035611eed81611ece565b919050565b5f60208284031215611f02575f80fd5b813561127281611ece565b634e487b7160e01b5f52604160045260245ffd5b604051610200810167ffffffffffffffff81118282101715611f4557611f45611f0d565b60405290565b80356001600160c01b031981168114611eed575f80fd5b803561ffff81168114611eed575f80fd5b64ffffffffff81168114611648575f80fd5b8035611eed81611f73565b5f82601f830112611f9f575f80fd5b813567ffffffffffffffff811115611fb957611fb9611f0d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611fe857611fe8611f0d565b604052818152838201602001851015611fff575f80fd5b816020850160208301375f918101602001919091529392505050565b5f610200828403121561202c575f80fd5b612034611f21565b905061203f82611ee2565b815261204d60208301611ee2565b602082015261205e60408301611f4b565b604082015261206f60608301611ee2565b606082015261208060808301611ee2565b608082015261209160a08301611f4b565b60a08201526120a260c08301611f62565b60c08201526120b360e08301611f62565b60e08201526120c56101008301611ee2565b6101008201526120d86101208301611ee2565b6101208201526120eb6101408301611f85565b6101408201526120fe6101608301611f85565b6101608201526121116101808301611f85565b6101808201526121246101a08301611f85565b6101a08201526101c082013567ffffffffffffffff811115612144575f80fd5b61215084828501611f90565b6101c0830152506101e082013567ffffffffffffffff811115612171575f80fd5b61217d84828501611f90565b6101e08301525092915050565b60ff81168114611648575f80fd5b5f805f606084860312156121aa575f80fd5b83356121b581611ece565b9250602084013567ffffffffffffffff8111156121d0575f80fd5b6121dc8682870161201b565b92505060408401356121ed8161218a565b809150509250925092565b5f60208284031215612208575f80fd5b5035919050565b5f6020828403121561221f575f80fd5b81356112728161218a565b5f806040838503121561223b575f80fd5b823561224681611ece565b915060208301356122568161218a565b809150509250929050565b5f805f8060808587031215612274575f80fd5b843561227f8161218a565b9350602085013561228f8161218a565b9250604085013561229f8161218a565b915060608501356122af8161218a565b939692955090935050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526123026020820183516001600160601b03169052565b5f602083015161231d60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160601b03811660808401525060808301516001600160601b03811660a08401525060a08301516001600160c01b0319811660c08401525060c083015161ffff811660e08401525060e083015161ffff8116610100840152506101008301516001600160601b038116610120840152506101208301516001600160601b0381166101408401525061014083015164ffffffffff81166101608401525061016083015164ffffffffff81166101808401525061018083015164ffffffffff81166101a0840152506101a083015164ffffffffff81166101c0840152506101c08301516102006101e08401526124346102208401826122ba565b90506101e0840151601f198483030161020085015261245382826122ba565b95945050505050565b6001600160a01b0381168114611648575f80fd5b5f60208284031215612480575f80fd5b81356112728161245c565b5f806040838503121561249c575f80fd5b82356124a781611ece565b9150602083013567ffffffffffffffff8111156124c2575f80fd5b6124ce8582860161201b565b9150509250929050565b5f805f606084860312156124ea575f80fd5b83356124f58161218a565b925060208401356125058161218a565b915060408401356121ed8161218a565b5f8060408385031215612526575f80fd5b82356125318161218a565b9150602083013560ff1981168114612256575f80fd5b600181811c9082168061255b57607f821691505b60208210810361257957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156125c357805f5260205f20601f840160051c810160208510156125a45750805b601f840160051c820191505b81811015610eec575f81556001016125b0565b505050565b815167ffffffffffffffff8111156125e2576125e2611f0d565b6125f6816125f08454612547565b8461257f565b6020601f821160018114612628575f83156126115750848201515b5f19600385901b1c1916600184901b178455610eec565b5f84815260208120601f198516915b828110156126575787850151825560209485019460019092019101612637565b508482101561267457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160601b0396909616865260ff94851660208701529290931660408501526001600160a01b039081166060850152909116608083015264ffffffffff1660a082015260c00190565b80518015158114611eed575f80fd5b5f602082840312156126ed575f80fd5b611272826126ce565b5f60208284031215612706575f80fd5b81516112728161245c565b5f60208284031215612721575f80fd5b5051919050565b5f8085851115612736575f80fd5b83861115612742575f80fd5b5050820193919092039150565b80356001600160e01b03198116906004841015612780576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b5f602082840312156127d6575f80fd5b815161127281611f73565b5f602082840312156127f1575f80fd5b81516112728161218a565b5f82518060208501845e5f920191825250919050565b5f8060408385031215612823575f80fd5b61282c836126ce565b9150602083015163ffffffff81168114612256575f80fd5b634e487b7160e01b5f52600160045260245ffdfef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220e9ef51bd807e9451019f1fc883e6f65686019eb3c072d499e9169175bc558bd264736f6c634300081a0033",
1382
+ "deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610148575f3560e01c80636c36e7db116100bf578063a5961b4c11610079578063a5961b4c14610388578063bf1db3f91461041f578063bf7e214f14610432578063c75e9a1c14610194578063e9e96c7014610452578063f48016ce1461048f575f80fd5b80636c36e7db146102ee5780637a9e5e4b1461030e5780638129fc1c146103215780638eb9000d146103295780638fb36037146103545780639505838e14610375575f80fd5b8063228e42ec11610110578063228e42ec1461021a578063297023ef1461019457806338a699a41461024557806354f1fa81146102685780635d4345cc146102075780635eede1741461027b575f80fd5b80630232ca491461014c578063036b1ffb1461019457806309648a9d146101a95780630d358181146101e25780630fad0eb114610207575b5f80fd5b61017761015a366004611ef2565b6001600160601b039081165f908152600460205260409020541690565b6040516001600160601b0390911681526020015b60405180910390f35b6101a76101a2366004612198565b6104b0565b005b6101d06101b73660046121f8565b5f90815260066020526040902054610100900460ff1690565b60405160ff909116815260200161018b565b6101d06101f036600461220f565b60ff9081165f908152602081905260409020541690565b6101a761021536600461222a565b6107c2565b610177610228366004611ef2565b6001600160601b039081165f908152600260205260409020541690565b6102586102533660046121f8565b610848565b604051901515815260200161018b565b6101a7610276366004612261565b6108d6565b6102c4610289366004611ef2565b6001600160601b039081165f908152600260209081526040808320546003835281842054600490935292205491831693908316929190911690565b604080516001600160601b039485168152928416602084015292169181019190915260600161018b565b6103016102fc366004611ef2565b610a34565b60405161018b91906122e8565b6101a761031c366004612470565b610cf3565b6101a7610d79565b610177610337366004611ef2565b6001600160601b039081165f908152600360205260409020541690565b61035c610ef3565b6040516001600160e01b0319909116815260200161018b565b6101a761038336600461248b565b610f29565b6103ee6103963660046121f8565b60408051606080820183525f80835260208084018290529284018190529384526006825292829020825193840183525460ff80821685526101008204169184019190915262010000900464ffffffffff169082015290565b60408051825160ff9081168252602080850151909116908201529181015164ffffffffff169082015260600161018b565b61025861042d36600461220f565b61118a565b61043a6111d6565b6040516001600160a01b03909116815260200161018b565b6102586104603660046124d8565b60ff9283165f908152600160209081526040808320948616835293815283822092851682529190915220541690565b6104a261049d366004612515565b6111f1565b60405190815260200161018b565b6104bc335b5f36611279565b5f6104c8846015611377565b90505f6104d582846113c2565b5f8381526006602052604081205491925090610100900460ff1690508460085f8581526020019081526020015f205f820151815f015f6101000a8154816001600160601b0302191690836001600160601b031602179055506020820151815f01600c6101000a8154816001600160601b0302191690836001600160601b031602179055506040820151815f0160186101000a81548167ffffffffffffffff021916908360c01c02179055506060820151816001015f6101000a8154816001600160601b0302191690836001600160601b03160217905550608082015181600101600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060a08201518160010160186101000a81548167ffffffffffffffff021916908360c01c021790555060c0820151816002015f6101000a81548161ffff021916908361ffff16021790555060e08201518160020160026101000a81548161ffff021916908361ffff1602179055506101008201518160020160046101000a8154816001600160601b0302191690836001600160601b031602179055506101208201518160020160106101000a8154816001600160601b0302191690836001600160601b03160217905550610140820151816003015f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101608201518160030160056101000a81548164ffffffffff021916908364ffffffffff16021790555061018082015181600301600a6101000a81548164ffffffffff021916908364ffffffffff1602179055506101a082015181600301600f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101c082015181600401908161075f91906125c8565b506101e0820151600582019061077590826125c8565b509050507fe5effcf96bb744518e09cc69ad226c65cece5fb0047e35c272ac6b34f4a262ee8682863332876040516107b296959493929190612683565b60405180910390a1505050505050565b6107cb336104b5565b5f6107d7836015611377565b90505f6107e482846113c2565b5f8381526006602052604081205491925090610100900460ff1690507fe5effcf96bb744518e09cc69ad226c65cece5fb0047e35c272ac6b34f4a262ee85828633328760405161083996959493929190612683565b60405180910390a15050505050565b5f8181526006602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf906024015b602060405180830381865af41580156108ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d091906126dd565b92915050565b60ff8381165f908152602081905260409081902054905163037c8cb160e51b81529116600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015610938573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095c91906126dd565b1561098a5760405163ea01ac1f60e01b815230600482015260ff841660248201526044015b60405180910390fd5b60ff808516908316146109cb5760405163bae587e160e01b815230600482015260ff8085166024830152808616604483015283166064820152608401610981565b60ff8084165f90815260016020908152604080832088851684528252808320858516845290915290205416610a2e5760405163f33b49a360e01b815230600482015260ff8085166024830152808616604483015282166064820152608401610981565b50505050565b60408051610200810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082018390526101a082018390526101c082018190526101e082015290600890610ac1846015611377565b815260208082019290925260409081015f2081516102008101835281546001600160601b038082168352600160601b8083048216968401969096526001600160c01b0319600160c01b9283900460c090811b821696850196909652600185015480831660608601529687048216608085015291909504841b1660a0820152600282015461ffff8082169483019490945262010000810490931660e082015264010000000083048416610100820152600160801b909204909216610120820152600382015464ffffffffff8082166101408401526501000000000082048116610160840152600160501b82048116610180840152600160781b909104166101a08201526004820180549192916101c084019190610bdc90612547565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0890612547565b8015610c535780601f10610c2a57610100808354040283529160200191610c53565b820191905f5260205f20905b815481529060010190602001808311610c3657829003601f168201915b50505050508152602001600582018054610c6c90612547565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9890612547565b8015610ce35780601f10610cba57610100808354040283529160200191610ce3565b820191905f5260205f20905b815481529060010190602001808311610cc657829003601f168201915b5050505050815250509050919050565b33610cfc6111d6565b6001600160a01b0316816001600160a01b031614610d375760405162d1953b60e31b81526001600160a01b0382166004820152602401610981565b816001600160a01b03163b5f03610d6c576040516361798f2f60e11b81526001600160a01b0383166004820152602401610981565b610d75826115d7565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610dbe5750825b90505f8267ffffffffffffffff166001148015610dda5750303b155b905081158015610de8575080155b15610e065760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e3057845460ff60401b1916600160401b1785555b5f3390505f816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e71573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e9591906126f6565b9050610ea081611637565b610ea861164b565b50508315610eec57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610839565b5050505050565b5f8051602061285983398151915280545f9190600160a01b900460ff16610f1a575f610f23565b638fb3603760e01b5b91505090565b610f32336104b5565b610f3b8261165d565b5f610f47836015611377565b9050610f5281611760565b5f8181526008602090815260409182902084518154928601519386015160c090811c600160c01b9081026001600160c01b036001600160601b03978816600160601b9081026001600160c01b0319988916968a1696909617959095178116919091178555606089015160018601805460808c015160a08d0151871c909502948a16909602959097169088161793909317909216919091179092559084015160028201805460e08701516101008801516101208901518716600160801b026bffffffffffffffffffffffff60801b19919097166401000000000216640100000000600160e01b031961ffff928316620100000263ffffffff199094169290951691909117919091179290921691909117929092179091556101408301516003820180546101608601516101808701516101a088015164ffffffffff908116600160781b0264ffffffffff60781b19928216600160501b029290921669ffffffffffffffffffff60501b19938216650100000000000269ffffffffffffffffffff1990951691909616179290921716929092179190911790556101c0830151839190600482019061110190826125c8565b506101e0820151600582019061111790826125c8565b5050505f818152600660205260409020547ff20995ffc314df588b8ab4c972d20b5572ff246c225c07826e29c6e11c5866a3908490610100900460ff16604080516001600160601b03909316835260ff9091166020830152339082015232606082015260800160405180910390a1505050565b60ff8181165f9081526020819052604080822054905163b2466acf60e01b8152921660048301529073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf90602401610891565b5f80516020612859833981519152546001600160a01b031690565b604051637a400b6760e11b815260ff8316600482015260ff19821660248201525f9073__$4b9aaffa8d044614668dad578b824b8eee$__9063f48016ce906044015b602060405180830381865af415801561124e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112729190612711565b9392505050565b5f805160206128598339815191525f806112b16112946111d6565b87306112a360045f8a8c612728565b6112ac9161274f565b611a0b565b915091508161136f5763ffffffff81161561134c57825460ff60a01b1916600160a01b1783556112df6111d6565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b815260040161130e93929190612787565b5f604051808303815f87803b158015611325575f80fd5b505af1158015611337573d5f803e3d5ffd5b5050845460ff60a01b191685555061136f9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610981565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff821660248201525f9073__$94a2c899be079b00d952d0d84fffaa5c34$__90633889a4c890604401611233565b60405163037c8cb160e51b815260ff821660048201525f9073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015611414573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061143891906126dd565b1561145957604051631260077f60e21b815260048101849052602401610981565b505f82815260066020526040908190208054915163037c8cb160e51b8152610100830460ff16600482018190526201000090930464ffffffffff16929073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af41580156114d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114f491906126dd565b15611515576040516310b1404560e21b815260048101869052602401610981565b60ff8085161461154457815461153190829060ff1681876108d6565b815461ff00191661010060ff8616021782555b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af415801561158b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115af91906127c6565b825464ffffffffff91909116620100000266ffffffffff000019909116179091555092915050565b5f8051602061285983398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b61163f611b13565b61164881611b5c565b50565b611653611b13565b61165b611b6d565b565b6001600160601b0381165f9081526005602052604090819020549051638d38cd4b60e01b815264ffffffffff909116600482015273__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af41580156116cb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116ef91906126dd565b15611718576040516314d5804160e01b81526001600160601b0382166004820152602401610981565b61172181611bc5565b6040516001600160601b03821681527f1c26f28e2d8f145150c4243339c6b20813ea2bbc4e6f19ea2c9905060c0411a99060200160405180910390a150565b604051634b00e98f60e11b8152600481018290525f9073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af41580156117b0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117d491906127e1565b60405163037c8cb160e51b815260ff8216600482015290915073__$0d958e68cba84670b8f4a3f2f2686b1c6b$__90636f91962090602401602060405180830381865af4158015611827573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061184b91906126dd565b1561186e57604051633d61be7d60e11b815260ff82166004820152602401610981565b5f828152600660205260409081902080549151638d38cd4b60e01b81526201000090920464ffffffffff1660048301529073__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af41580156118d9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118fd91906126dd565b1561192757604051637791d47d60e01b81526004810184905260ff83166024820152604401610981565b6119308261118a565b611952576040516391eb5e8760e01b815260ff83166004820152602401610981565b5f73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af415801561199a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119be91906127c6565b60ff9384165f81815260208190526040902054845461ffff19169091179416610100029390931766ffffffffff000019166201000064ffffffffff94909416939093029290921790555050565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611a7991906127fc565b5f60405180830381855afa9150503d805f8114611ab1576040519150601f19603f3d011682016040523d82523d5f602084013e611ab6565b606091505b50915091508115611b08576040815110611ae85780806020019051810190611ade9190612812565b9094509250611b08565b6020815110611b085780806020019051810190611b0591906126dd565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661165b57604051631afcd79f60e31b815260040160405180910390fd5b611b64611b13565b611648816115d7565b611b75611c64565b611b7d611c81565b611b85611cb5565b611b8d611cf9565b611b95611d15565b611b9d611d62565b611ba5611d82565b611bad611d96565b611bb5611dd5565b611bbd611ddf565b61165b611df3565b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af4158015611c0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c3091906127c6565b6001600160601b03919091165f908152600560205260409020805464ffffffffff191664ffffffffff909216919091179055565b611c7160165b6005611e1b565b61165b60165b60055b60c8611e5d565b611c8b600b611c6a565b611c99600b6005606e611e5d565b611ca7600b606e6005611e5d565b61165b600b606e60d2611e5d565b611cc16015600a611e1b565b611cd06015600a5b6014611e5d565b611cdf6015600a5b601e611e5d565b611ced6015600a6028611e5d565b61165b60156028611c7a565b611d06602b5b603c611e1b565b61165b602b5b603c60dc611e5d565b611d21602d6032611e1b565b611d2d602d6032611cc9565b611d3b602d60326033611e5d565b611d47602d6032611cd8565b611d53602d6033611c7a565b61165b602d60335b6048611e5d565b611d6c602e611cff565b611d76602e611d0c565b61165b602e603c611d5b565b611d8c602c611c6a565b61165b602c611c77565b611da0602f611c6a565b611daf602f60055b6046611e5d565b611dbd602f60056007611e5d565b611dc9602f6007611da8565b61165b602f6005611d5b565b61165b600f611c6a565b611de9600c611c6a565b61165b6029611c6a565b611dfd600e611c6a565b611e076017611c6a565b611e116030611c6a565b61165b6031611c6a565b60ff8281165f908152602081905260409020541615611e3c57611e3c612844565b60ff9182165f908152602081905260409020805460ff191691909216179055565b60ff8084165f9081526001602090815260408083208685168452825280832085851684529091529020541615611e9557611e95612844565b60ff9283165f9081526001602081815260408084209587168452948152848320939095168252919093529120805460ff19169091179055565b6001600160601b0381168114611648575f80fd5b8035611eed81611ece565b919050565b5f60208284031215611f02575f80fd5b813561127281611ece565b634e487b7160e01b5f52604160045260245ffd5b604051610200810167ffffffffffffffff81118282101715611f4557611f45611f0d565b60405290565b80356001600160c01b031981168114611eed575f80fd5b803561ffff81168114611eed575f80fd5b64ffffffffff81168114611648575f80fd5b8035611eed81611f73565b5f82601f830112611f9f575f80fd5b813567ffffffffffffffff811115611fb957611fb9611f0d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611fe857611fe8611f0d565b604052818152838201602001851015611fff575f80fd5b816020850160208301375f918101602001919091529392505050565b5f610200828403121561202c575f80fd5b612034611f21565b905061203f82611ee2565b815261204d60208301611ee2565b602082015261205e60408301611f4b565b604082015261206f60608301611ee2565b606082015261208060808301611ee2565b608082015261209160a08301611f4b565b60a08201526120a260c08301611f62565b60c08201526120b360e08301611f62565b60e08201526120c56101008301611ee2565b6101008201526120d86101208301611ee2565b6101208201526120eb6101408301611f85565b6101408201526120fe6101608301611f85565b6101608201526121116101808301611f85565b6101808201526121246101a08301611f85565b6101a08201526101c082013567ffffffffffffffff811115612144575f80fd5b61215084828501611f90565b6101c0830152506101e082013567ffffffffffffffff811115612171575f80fd5b61217d84828501611f90565b6101e08301525092915050565b60ff81168114611648575f80fd5b5f805f606084860312156121aa575f80fd5b83356121b581611ece565b9250602084013567ffffffffffffffff8111156121d0575f80fd5b6121dc8682870161201b565b92505060408401356121ed8161218a565b809150509250925092565b5f60208284031215612208575f80fd5b5035919050565b5f6020828403121561221f575f80fd5b81356112728161218a565b5f806040838503121561223b575f80fd5b823561224681611ece565b915060208301356122568161218a565b809150509250929050565b5f805f8060808587031215612274575f80fd5b843561227f8161218a565b9350602085013561228f8161218a565b9250604085013561229f8161218a565b915060608501356122af8161218a565b939692955090935050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526123026020820183516001600160601b03169052565b5f602083015161231d60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160601b03811660808401525060808301516001600160601b03811660a08401525060a08301516001600160c01b0319811660c08401525060c083015161ffff811660e08401525060e083015161ffff8116610100840152506101008301516001600160601b038116610120840152506101208301516001600160601b0381166101408401525061014083015164ffffffffff81166101608401525061016083015164ffffffffff81166101808401525061018083015164ffffffffff81166101a0840152506101a083015164ffffffffff81166101c0840152506101c08301516102006101e08401526124346102208401826122ba565b90506101e0840151601f198483030161020085015261245382826122ba565b95945050505050565b6001600160a01b0381168114611648575f80fd5b5f60208284031215612480575f80fd5b81356112728161245c565b5f806040838503121561249c575f80fd5b82356124a781611ece565b9150602083013567ffffffffffffffff8111156124c2575f80fd5b6124ce8582860161201b565b9150509250929050565b5f805f606084860312156124ea575f80fd5b83356124f58161218a565b925060208401356125058161218a565b915060408401356121ed8161218a565b5f8060408385031215612526575f80fd5b82356125318161218a565b9150602083013560ff1981168114612256575f80fd5b600181811c9082168061255b57607f821691505b60208210810361257957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156125c357805f5260205f20601f840160051c810160208510156125a45750805b601f840160051c820191505b81811015610eec575f81556001016125b0565b505050565b815167ffffffffffffffff8111156125e2576125e2611f0d565b6125f6816125f08454612547565b8461257f565b6020601f821160018114612628575f83156126115750848201515b5f19600385901b1c1916600184901b178455610eec565b5f84815260208120601f198516915b828110156126575787850151825560209485019460019092019101612637565b508482101561267457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160601b0396909616865260ff94851660208701529290931660408501526001600160a01b039081166060850152909116608083015264ffffffffff1660a082015260c00190565b80518015158114611eed575f80fd5b5f602082840312156126ed575f80fd5b611272826126ce565b5f60208284031215612706575f80fd5b81516112728161245c565b5f60208284031215612721575f80fd5b5051919050565b5f8085851115612736575f80fd5b83861115612742575f80fd5b5050820193919092039150565b80356001600160e01b03198116906004841015612780576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b5f602082840312156127d6575f80fd5b815161127281611f73565b5f602082840312156127f1575f80fd5b81516112728161218a565b5f82518060208501845e5f920191825250919050565b5f8060408385031215612823575f80fd5b61282c836126ce565b9150602083015163ffffffff81168114612256575f80fd5b634e487b7160e01b5f52600160045260245ffdfef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220e9ef51bd807e9451019f1fc883e6f65686019eb3c072d499e9169175bc558bd264736f6c634300081a0033",
1383
+ "linkReferences": {
1384
+ "contracts/type/Blocknumber.sol": {
1385
+ "BlocknumberLib": [
1386
+ {
1387
+ "length": 20,
1388
+ "start": 5478
1389
+ },
1390
+ {
1391
+ "length": 20,
1392
+ "start": 5811
1393
+ },
1394
+ {
1395
+ "length": 20,
1396
+ "start": 6337
1397
+ },
1398
+ {
1399
+ "length": 20,
1400
+ "start": 6517
1401
+ },
1402
+ {
1403
+ "length": 20,
1404
+ "start": 7143
1405
+ }
1406
+ ]
1407
+ },
1408
+ "contracts/type/Key32.sol": {
1409
+ "Key32Lib": [
1410
+ {
1411
+ "length": 20,
1412
+ "start": 4661
1413
+ },
1414
+ {
1415
+ "length": 20,
1416
+ "start": 6040
1417
+ }
1418
+ ]
1419
+ },
1420
+ "contracts/type/NftId.sol": {
1421
+ "NftIdLib": [
1422
+ {
1423
+ "length": 20,
1424
+ "start": 5056
1425
+ }
1426
+ ]
1427
+ },
1428
+ "contracts/type/ObjectType.sol": {
1429
+ "ObjectTypeLib": [
1430
+ {
1431
+ "length": 20,
1432
+ "start": 6159
1433
+ }
1434
+ ]
1435
+ },
1436
+ "contracts/type/StateId.sol": {
1437
+ "StateIdLib": [
1438
+ {
1439
+ "length": 20,
1440
+ "start": 2195
1441
+ },
1442
+ {
1443
+ "length": 20,
1444
+ "start": 2336
1445
+ },
1446
+ {
1447
+ "length": 20,
1448
+ "start": 4564
1449
+ },
1450
+ {
1451
+ "length": 20,
1452
+ "start": 5116
1453
+ },
1454
+ {
1455
+ "length": 20,
1456
+ "start": 5304
1457
+ }
1458
+ ]
1459
+ }
1460
+ },
1461
+ "deployedLinkReferences": {
1462
+ "contracts/type/Blocknumber.sol": {
1463
+ "BlocknumberLib": [
1464
+ {
1465
+ "length": 20,
1466
+ "start": 5446
1467
+ },
1468
+ {
1469
+ "length": 20,
1470
+ "start": 5779
1471
+ },
1472
+ {
1473
+ "length": 20,
1474
+ "start": 6305
1475
+ },
1476
+ {
1477
+ "length": 20,
1478
+ "start": 6485
1479
+ },
1480
+ {
1481
+ "length": 20,
1482
+ "start": 7111
1483
+ }
1484
+ ]
1485
+ },
1486
+ "contracts/type/Key32.sol": {
1487
+ "Key32Lib": [
1488
+ {
1489
+ "length": 20,
1490
+ "start": 4629
1491
+ },
1492
+ {
1493
+ "length": 20,
1494
+ "start": 6008
1495
+ }
1496
+ ]
1497
+ },
1498
+ "contracts/type/NftId.sol": {
1499
+ "NftIdLib": [
1500
+ {
1501
+ "length": 20,
1502
+ "start": 5024
1503
+ }
1504
+ ]
1505
+ },
1506
+ "contracts/type/ObjectType.sol": {
1507
+ "ObjectTypeLib": [
1508
+ {
1509
+ "length": 20,
1510
+ "start": 6127
1511
+ }
1512
+ ]
1513
+ },
1514
+ "contracts/type/StateId.sol": {
1515
+ "StateIdLib": [
1516
+ {
1517
+ "length": 20,
1518
+ "start": 2163
1519
+ },
1520
+ {
1521
+ "length": 20,
1522
+ "start": 2304
1523
+ },
1524
+ {
1525
+ "length": 20,
1526
+ "start": 4532
1527
+ },
1528
+ {
1529
+ "length": 20,
1530
+ "start": 5084
1531
+ },
1532
+ {
1533
+ "length": 20,
1534
+ "start": 5272
1535
+ }
1536
+ ]
1537
+ }
1538
+ }
1539
+ }