@etherisc/gif-next 0.0.2-e875d61-189 → 0.0.2-e8a628e-326

Sign up to get free protection for your applications and to get access to all the features.
Files changed (801) hide show
  1. package/README.md +384 -45
  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/access → authorization}/IAccess.sol/IAccess.json +1 -1
  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 +4 -0
  31. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +949 -0
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  33. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1809 -0
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +930 -0
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  37. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +848 -0
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  39. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +1284 -0
  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 +498 -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 +470 -0
  72. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  73. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +585 -1289
  74. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +1092 -0
  76. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  77. package/artifacts/contracts/instance/Instance.sol/Instance.json +689 -1567
  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 +4 -0
  83. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +2646 -0
  84. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1338 -0
  86. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  87. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +772 -0
  88. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  89. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3378 -0
  90. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.dbg.json +4 -0
  91. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.json +1759 -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 +4 -0
  97. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +137 -0
  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 +4 -0
  107. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  108. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  109. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/IComponents.sol/IComponents.json} +2 -2
  110. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  111. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  112. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  113. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  114. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  115. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  116. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  117. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  118. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  119. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +957 -0
  120. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  121. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +810 -0
  122. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  123. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  124. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  125. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +772 -0
  126. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  127. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.json +762 -0
  128. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  129. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +873 -0
  130. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  131. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +1042 -0
  132. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  133. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +810 -0
  134. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  135. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +1242 -0
  136. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  137. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +805 -0
  138. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  139. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1438 -0
  140. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  141. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +866 -0
  142. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  143. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +1033 -0
  144. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  145. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +905 -0
  146. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  147. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1449 -0
  148. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  149. package/artifacts/contracts/pool/Pool.sol/Pool.json +1025 -0
  150. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  151. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +522 -0
  152. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  153. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1833 -0
  154. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  155. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +866 -0
  156. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  157. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +1036 -0
  158. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  159. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +790 -0
  160. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  161. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.json +1159 -0
  162. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  163. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +805 -0
  164. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  165. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1536 -0
  166. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  167. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +886 -0
  168. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  169. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +804 -0
  170. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  171. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +1104 -0
  172. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  173. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +1036 -0
  174. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  175. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +652 -0
  176. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  177. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +1016 -0
  178. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  179. package/artifacts/contracts/product/IRiskService.sol/IRiskService.json +665 -0
  180. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  181. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1404 -0
  182. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  183. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +783 -0
  184. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  185. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +854 -0
  186. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  187. package/artifacts/contracts/product/PricingService.sol/PricingService.json +932 -0
  188. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  189. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +814 -0
  190. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  191. package/artifacts/contracts/product/Product.sol/Product.json +1117 -0
  192. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  193. package/artifacts/contracts/product/RiskService.sol/RiskService.json +873 -0
  194. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  195. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +774 -0
  196. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  197. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +242 -12
  198. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  199. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +1035 -119
  200. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  201. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +1072 -0
  202. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  203. package/artifacts/contracts/{instance/IInstanceLinked.sol/IInstanceLinked.json → registry/IRelease.sol/IRelease.json} +6 -6
  204. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  205. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +39 -0
  206. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  207. package/artifacts/contracts/registry/Registry.sol/Registry.json +1473 -231
  208. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  209. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2160 -0
  210. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  211. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1074 -0
  212. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  213. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1298 -0
  214. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  215. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +773 -0
  216. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  217. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2152 -0
  218. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  219. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  220. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  221. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1389 -0
  222. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  223. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +683 -0
  224. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  225. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +721 -0
  226. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  227. package/artifacts/contracts/shared/Component.sol/Component.json +705 -0
  228. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  229. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1551 -0
  230. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  231. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +862 -0
  232. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  233. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +632 -0
  234. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  235. package/artifacts/contracts/shared/{IOwnable.sol/IOwnable.json → ContractLib.sol/IInstanceAdminHelper.json} +5 -5
  236. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  237. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  238. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  239. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  240. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  241. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +630 -0
  242. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  243. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +1175 -0
  244. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  245. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +707 -0
  246. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  247. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +165 -178
  248. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  249. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  250. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  251. package/artifacts/contracts/{components/IBaseComponent.sol/IBaseComponent.json → shared/INftOwnable.sol/INftOwnable.json} +62 -70
  252. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  253. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +175 -0
  254. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  255. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +248 -21
  256. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  257. package/artifacts/contracts/{registry → shared}/IRegistryLinked.sol/IRegistryLinked.json +13 -2
  258. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  259. package/artifacts/contracts/{instance/service/IComponentOwnerService.sol/IComponentOwnerService.json → shared/IService.sol/IService.json} +224 -160
  260. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  261. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  262. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  263. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +795 -0
  264. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  265. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +575 -0
  266. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  267. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  268. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  269. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  270. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  271. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +228 -0
  272. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  273. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +198 -0
  274. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  275. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +294 -18
  276. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  277. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +58 -0
  278. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  279. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → shared/Service.sol/Service.json} +239 -234
  280. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  281. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +723 -0
  282. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  283. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +484 -0
  284. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  285. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +172 -0
  286. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  287. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +2757 -0
  288. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  289. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +1147 -0
  290. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.dbg.json +4 -0
  291. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.json +50 -0
  292. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  293. package/artifacts/contracts/staking/Staking.sol/Staking.json +3185 -0
  294. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +4 -0
  295. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +470 -0
  296. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  297. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +847 -0
  298. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  299. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +704 -0
  300. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  301. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +1344 -0
  302. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  303. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +766 -0
  304. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  305. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +3097 -0
  306. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.dbg.json +4 -0
  307. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.json +309 -0
  308. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  309. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +679 -0
  310. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  311. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +10 -0
  312. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  313. package/artifacts/contracts/type/Amount.sol/AmountLib.json +398 -0
  314. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  315. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +251 -0
  316. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.dbg.json +4 -0
  317. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.json +193 -0
  318. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  319. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +203 -0
  320. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  321. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  322. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  323. package/artifacts/contracts/type/Fee.sol/FeeLib.json +373 -0
  324. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  325. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  326. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  327. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  328. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  329. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +228 -0
  330. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  331. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  332. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  333. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +241 -0
  334. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  335. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  336. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  337. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  338. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  339. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  340. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  341. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +204 -0
  342. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  343. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +254 -0
  344. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  345. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +289 -0
  346. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  347. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +148 -0
  348. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  349. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  350. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  351. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +105 -0
  352. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  353. package/artifacts/contracts/type/String.sol/StrLib.json +180 -0
  354. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  355. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +312 -0
  356. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  357. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +572 -0
  358. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  359. package/artifacts/contracts/type/Version.sol/VersionLib.json +158 -0
  360. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  361. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +167 -0
  362. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  363. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.json +65 -0
  364. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  365. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +656 -0
  366. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  367. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +142 -0
  368. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  369. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.json +88 -0
  370. package/contracts/accounting/AccountingService.sol +274 -0
  371. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  372. package/contracts/accounting/IAccountingService.sol +47 -0
  373. package/contracts/authorization/AccessAdmin.sol +780 -0
  374. package/contracts/authorization/AccessAdminLib.sol +396 -0
  375. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  376. package/contracts/authorization/Authorization.sol +169 -0
  377. package/contracts/authorization/IAccess.sol +67 -0
  378. package/contracts/authorization/IAccessAdmin.sol +144 -0
  379. package/contracts/authorization/IAuthorization.sol +26 -0
  380. package/contracts/authorization/IServiceAuthorization.sol +78 -0
  381. package/contracts/authorization/ServiceAuthorization.sol +320 -0
  382. package/contracts/distribution/BasicDistribution.sol +141 -0
  383. package/contracts/distribution/BasicDistributionAuthorization.sol +67 -0
  384. package/contracts/distribution/Distribution.sol +247 -0
  385. package/contracts/distribution/DistributionService.sol +448 -0
  386. package/contracts/distribution/DistributionServiceManager.sol +39 -0
  387. package/contracts/distribution/IDistributionComponent.sol +45 -0
  388. package/contracts/distribution/IDistributionService.sol +115 -0
  389. package/contracts/examples/fire/DamageLevel.sol +59 -0
  390. package/contracts/examples/fire/FirePool.sol +86 -0
  391. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  392. package/contracts/examples/fire/FireProduct.sol +433 -0
  393. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  394. package/contracts/examples/fire/FireUSD.sol +26 -0
  395. package/contracts/examples/unpermissioned/SimpleDistribution.sol +81 -0
  396. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  397. package/contracts/examples/unpermissioned/SimpleOracle.sol +133 -0
  398. package/contracts/examples/unpermissioned/SimplePool.sol +102 -0
  399. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  400. package/contracts/examples/unpermissioned/SimpleProduct.sol +437 -0
  401. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  402. package/contracts/instance/BaseStore.sol +97 -0
  403. package/contracts/instance/BundleSet.sol +130 -0
  404. package/contracts/instance/IBaseStore.sol +43 -0
  405. package/contracts/instance/IInstance.sol +150 -44
  406. package/contracts/instance/IInstanceService.sol +119 -0
  407. package/contracts/instance/Instance.sol +350 -63
  408. package/contracts/instance/InstanceAdmin.sol +379 -0
  409. package/contracts/instance/InstanceAuthorizationV3.sol +275 -0
  410. package/contracts/instance/InstanceReader.sol +634 -0
  411. package/contracts/instance/InstanceService.sol +514 -0
  412. package/contracts/instance/InstanceServiceManager.sol +39 -0
  413. package/contracts/instance/InstanceStore.sol +271 -0
  414. package/contracts/instance/ProductStore.sol +110 -0
  415. package/contracts/instance/RiskSet.sol +126 -0
  416. package/contracts/instance/TargetNames.sol +10 -0
  417. package/contracts/instance/base/BalanceStore.sol +121 -0
  418. package/contracts/instance/base/Cloneable.sol +28 -0
  419. package/contracts/instance/base/ObjectCounter.sol +20 -0
  420. package/contracts/instance/base/ObjectLifecycle.sol +109 -0
  421. package/contracts/instance/base/ObjectSet.sol +77 -0
  422. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  423. package/contracts/instance/module/IBundle.sol +21 -0
  424. package/contracts/instance/module/IComponents.sol +62 -0
  425. package/contracts/instance/module/IDistribution.sol +54 -0
  426. package/contracts/instance/module/IPolicy.sol +105 -0
  427. package/contracts/instance/module/IRisk.sol +16 -0
  428. package/contracts/{test/Usdc.sol → mock/Dip.sol} +6 -6
  429. package/contracts/oracle/BasicOracle.sol +45 -0
  430. package/contracts/oracle/BasicOracleAuthorization.sol +53 -0
  431. package/contracts/oracle/IOracle.sol +41 -0
  432. package/contracts/oracle/IOracleComponent.sol +33 -0
  433. package/contracts/oracle/IOracleService.sol +66 -0
  434. package/contracts/oracle/Oracle.sol +154 -0
  435. package/contracts/oracle/OracleService.sol +310 -0
  436. package/contracts/oracle/OracleServiceManager.sol +39 -0
  437. package/contracts/pool/BasicPool.sol +162 -0
  438. package/contracts/pool/BasicPoolAuthorization.sol +81 -0
  439. package/contracts/pool/BundleService.sol +386 -0
  440. package/contracts/pool/BundleServiceManager.sol +39 -0
  441. package/contracts/pool/IBundleService.sol +116 -0
  442. package/contracts/pool/IPoolComponent.sol +62 -0
  443. package/contracts/pool/IPoolService.sol +170 -0
  444. package/contracts/pool/Pool.sol +333 -0
  445. package/contracts/pool/PoolLib.sol +341 -0
  446. package/contracts/pool/PoolService.sol +614 -0
  447. package/contracts/pool/PoolServiceManager.sol +39 -0
  448. package/contracts/product/ApplicationService.sol +327 -0
  449. package/contracts/product/ApplicationServiceManager.sol +38 -0
  450. package/contracts/product/BasicProduct.sol +49 -0
  451. package/contracts/product/BasicProductAuthorization.sol +63 -0
  452. package/contracts/product/ClaimService.sol +626 -0
  453. package/contracts/product/ClaimServiceManager.sol +38 -0
  454. package/contracts/product/IApplicationService.sol +88 -0
  455. package/contracts/product/IClaimService.sol +136 -0
  456. package/contracts/product/IPolicyService.sol +102 -0
  457. package/contracts/product/IPricingService.sol +40 -0
  458. package/contracts/product/IProductComponent.sol +62 -0
  459. package/contracts/product/IRiskService.sol +48 -0
  460. package/contracts/product/PolicyService.sol +645 -0
  461. package/contracts/product/PolicyServiceLib.sol +139 -0
  462. package/contracts/product/PolicyServiceManager.sol +39 -0
  463. package/contracts/product/PricingService.sol +306 -0
  464. package/contracts/product/PricingServiceManager.sol +39 -0
  465. package/contracts/product/Product.sol +493 -0
  466. package/contracts/product/RiskService.sol +190 -0
  467. package/contracts/product/RiskServiceManager.sol +39 -0
  468. package/contracts/registry/ChainNft.sol +130 -40
  469. package/contracts/registry/IRegistry.sol +144 -29
  470. package/contracts/registry/IRegistryService.sol +62 -0
  471. package/contracts/registry/IRelease.sol +29 -0
  472. package/contracts/registry/ITransferInterceptor.sol +6 -0
  473. package/contracts/registry/Registry.sol +637 -282
  474. package/contracts/registry/RegistryAdmin.sol +191 -0
  475. package/contracts/registry/RegistryAuthorization.sol +336 -0
  476. package/contracts/registry/RegistryService.sol +241 -0
  477. package/contracts/registry/RegistryServiceManager.sol +53 -0
  478. package/contracts/registry/ReleaseAdmin.sol +195 -0
  479. package/contracts/registry/ReleaseLifecycle.sol +32 -0
  480. package/contracts/registry/ReleaseRegistry.sol +525 -0
  481. package/contracts/registry/ServiceAuthorizationV3.sol +342 -0
  482. package/contracts/registry/TokenRegistry.sol +317 -0
  483. package/contracts/shared/Component.sol +214 -0
  484. package/contracts/shared/ComponentService.sol +687 -0
  485. package/contracts/shared/ComponentServiceManager.sol +38 -0
  486. package/contracts/shared/ContractLib.sol +312 -0
  487. package/contracts/shared/IComponent.sol +58 -0
  488. package/contracts/shared/IComponentService.sol +111 -0
  489. package/contracts/shared/IInstanceLinkedComponent.sol +30 -0
  490. package/contracts/shared/IKeyValueStore.sol +62 -0
  491. package/contracts/{instance/base → shared}/ILifecycle.sol +6 -5
  492. package/contracts/shared/INftOwnable.sol +27 -0
  493. package/contracts/shared/IPolicyHolder.sol +35 -0
  494. package/contracts/shared/IRegisterable.sol +31 -19
  495. package/contracts/shared/IRegistryLinked.sol +11 -0
  496. package/contracts/shared/IService.sol +23 -0
  497. package/contracts/shared/InitializableERC165.sol +35 -0
  498. package/contracts/shared/InstanceLinkedComponent.sol +194 -0
  499. package/contracts/shared/KeyValueStore.sol +131 -0
  500. package/contracts/shared/Lifecycle.sol +88 -0
  501. package/contracts/shared/NftIdSet.sol +65 -0
  502. package/contracts/shared/NftOwnable.sol +129 -0
  503. package/contracts/shared/PolicyHolder.sol +63 -0
  504. package/contracts/shared/Registerable.sol +80 -60
  505. package/contracts/shared/RegistryLinked.sol +38 -0
  506. package/contracts/shared/Service.sol +67 -0
  507. package/contracts/shared/TokenHandler.sol +342 -0
  508. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  509. package/contracts/staking/IStaking.sol +367 -0
  510. package/contracts/staking/IStakingService.sol +127 -0
  511. package/contracts/staking/ITargetLimitHandler.sol +17 -0
  512. package/contracts/staking/Staking.sol +798 -0
  513. package/contracts/staking/StakingLib.sol +195 -0
  514. package/contracts/staking/StakingManager.sol +53 -0
  515. package/contracts/staking/StakingReader.sol +171 -0
  516. package/contracts/staking/StakingService.sol +321 -0
  517. package/contracts/staking/StakingServiceManager.sol +46 -0
  518. package/contracts/staking/StakingStore.sol +1368 -0
  519. package/contracts/staking/TargetHandler.sol +132 -0
  520. package/contracts/staking/TargetManagerLib.sol +234 -0
  521. package/contracts/{types → type}/AddressSet.sol +1 -1
  522. package/contracts/type/Amount.sol +154 -0
  523. package/contracts/{types → type}/Blocknumber.sol +36 -12
  524. package/contracts/type/ChainId.sol +101 -0
  525. package/contracts/type/ClaimId.sol +80 -0
  526. package/contracts/type/DistributorType.sol +55 -0
  527. package/contracts/type/Fee.sol +66 -0
  528. package/contracts/{types → type}/Key32.sol +10 -5
  529. package/contracts/type/Key32Set.sol +62 -0
  530. package/contracts/{types → type}/NftId.sol +28 -15
  531. package/contracts/type/NftIdSet.sol +62 -0
  532. package/contracts/type/ObjectType.sol +307 -0
  533. package/contracts/type/PayoutId.sol +82 -0
  534. package/contracts/type/Referral.sol +90 -0
  535. package/contracts/type/RequestId.sol +75 -0
  536. package/contracts/type/RiskId.sol +75 -0
  537. package/contracts/type/RoleId.sol +180 -0
  538. package/contracts/type/Seconds.sol +120 -0
  539. package/contracts/type/Selector.sol +107 -0
  540. package/contracts/{types → type}/StateId.sol +53 -5
  541. package/contracts/type/String.sol +65 -0
  542. package/contracts/{types → type}/Timestamp.sol +39 -19
  543. package/contracts/{types → type}/UFixed.sol +73 -19
  544. package/contracts/type/Version.sol +159 -0
  545. package/contracts/upgradeability/IVersionable.sol +56 -0
  546. package/contracts/upgradeability/ProxyManager.sol +246 -0
  547. package/contracts/upgradeability/UpgradableProxyWithAdmin.sol +24 -0
  548. package/contracts/upgradeability/Versionable.sol +62 -0
  549. package/package.json +13 -8
  550. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  551. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  552. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  553. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  554. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -356
  555. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  556. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -279
  557. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  558. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -455
  559. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  560. package/artifacts/contracts/components/Product.sol/Product.json +0 -348
  561. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  562. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  563. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  564. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  565. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  566. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  567. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  568. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  569. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  570. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  571. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  572. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  573. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  574. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  575. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  576. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  577. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  578. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  579. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  580. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  581. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  582. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  583. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  584. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  585. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  586. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  587. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  588. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  589. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  590. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  591. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  592. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  593. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  594. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  595. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  596. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  597. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  598. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  599. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -81
  600. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  601. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  602. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  603. package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
  604. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  605. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +0 -344
  606. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  607. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -710
  608. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  609. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -169
  610. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  611. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  612. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
  613. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  614. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  615. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  616. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  617. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  618. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  619. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -265
  620. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  621. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  622. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -265
  623. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
  624. package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
  625. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
  626. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.json +0 -10
  627. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
  628. package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.json +0 -10
  629. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  630. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +0 -136
  631. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  632. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  633. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  634. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -136
  635. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  636. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  637. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -273
  638. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  639. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -273
  640. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  641. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  642. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  643. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  644. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  645. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  646. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  647. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  648. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -10
  649. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  650. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -10
  651. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  652. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.json +0 -10
  653. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  654. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -531
  655. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  656. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  657. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  658. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -531
  659. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  660. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -523
  661. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  662. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  663. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +0 -376
  664. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  665. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  666. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -471
  667. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  668. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -673
  669. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  670. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -452
  671. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  672. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  673. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -35
  674. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  675. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  676. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +0 -164
  677. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  678. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +0 -164
  679. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  680. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  681. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  682. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -455
  683. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  684. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -436
  685. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  686. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -137
  687. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  688. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  689. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  690. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -379
  691. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  692. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -338
  693. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  694. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  695. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  696. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -206
  697. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  698. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -338
  699. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  700. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +0 -10
  701. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  702. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +0 -174
  703. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  704. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  705. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  706. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -218
  707. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  708. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -111
  709. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  710. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  711. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  712. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -10
  713. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  714. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +0 -92
  715. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  716. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -30
  717. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  718. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +0 -92
  719. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  720. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -236
  721. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  722. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.json +0 -479
  723. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  724. package/artifacts/contracts/types/Version.sol/VersionLib.json +0 -139
  725. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  726. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -30
  727. package/contracts/components/BaseComponent.sol +0 -94
  728. package/contracts/components/IBaseComponent.sol +0 -19
  729. package/contracts/components/IPoolComponent.sol +0 -57
  730. package/contracts/components/IProductComponent.sol +0 -19
  731. package/contracts/components/Pool.sol +0 -191
  732. package/contracts/components/Product.sol +0 -134
  733. package/contracts/experiment/errors/Require.sol +0 -38
  734. package/contracts/experiment/errors/Revert.sol +0 -44
  735. package/contracts/experiment/inheritance/A.sol +0 -53
  736. package/contracts/experiment/inheritance/B.sol +0 -28
  737. package/contracts/experiment/inheritance/C.sol +0 -34
  738. package/contracts/experiment/inheritance/IA.sol +0 -13
  739. package/contracts/experiment/inheritance/IB.sol +0 -10
  740. package/contracts/experiment/inheritance/IC.sol +0 -12
  741. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  742. package/contracts/experiment/statemachine/ISM.sol +0 -25
  743. package/contracts/experiment/statemachine/README.md +0 -112
  744. package/contracts/experiment/statemachine/SM.sol +0 -57
  745. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  746. package/contracts/experiment/types/TypeA.sol +0 -47
  747. package/contracts/experiment/types/TypeB.sol +0 -29
  748. package/contracts/instance/IInstanceLinked.sol +0 -8
  749. package/contracts/instance/base/ComponentServiceBase.sol +0 -42
  750. package/contracts/instance/base/IInstanceBase.sol +0 -19
  751. package/contracts/instance/base/IKeyValueStore.sol +0 -50
  752. package/contracts/instance/base/IService.sol +0 -15
  753. package/contracts/instance/base/InstanceBase.sol +0 -84
  754. package/contracts/instance/base/KeyValueStore.sol +0 -161
  755. package/contracts/instance/base/Lifecycle.sol +0 -92
  756. package/contracts/instance/base/ModuleBase.sol +0 -46
  757. package/contracts/instance/base/ServiceBase.sol +0 -37
  758. package/contracts/instance/module/access/Access.sol +0 -149
  759. package/contracts/instance/module/access/IAccess.sol +0 -53
  760. package/contracts/instance/module/bundle/BundleModule.sol +0 -135
  761. package/contracts/instance/module/bundle/IBundle.sol +0 -51
  762. package/contracts/instance/module/compensation/CompensationModule.sol +0 -17
  763. package/contracts/instance/module/compensation/ICompensation.sol +0 -10
  764. package/contracts/instance/module/component/ComponentModule.sol +0 -81
  765. package/contracts/instance/module/component/IComponent.sol +0 -29
  766. package/contracts/instance/module/policy/IPolicy.sol +0 -59
  767. package/contracts/instance/module/policy/PolicyModule.sol +0 -89
  768. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  769. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  770. package/contracts/instance/module/risk/IRisk.sol +0 -10
  771. package/contracts/instance/module/risk/RiskModule.sol +0 -17
  772. package/contracts/instance/module/treasury/ITreasury.sol +0 -96
  773. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  774. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -171
  775. package/contracts/instance/service/ComponentOwnerService.sol +0 -155
  776. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  777. package/contracts/instance/service/IPoolService.sol +0 -30
  778. package/contracts/instance/service/IProductService.sol +0 -58
  779. package/contracts/instance/service/PoolService.sol +0 -129
  780. package/contracts/instance/service/ProductService.sol +0 -366
  781. package/contracts/registry/IChainNft.sol +0 -21
  782. package/contracts/registry/IRegistryLinked.sol +0 -8
  783. package/contracts/shared/ERC165.sol +0 -21
  784. package/contracts/shared/IOwnable.sol +0 -6
  785. package/contracts/shared/IVersionable.sol +0 -52
  786. package/contracts/shared/Versionable.sol +0 -89
  787. package/contracts/test/TestFee.sol +0 -25
  788. package/contracts/test/TestPool.sol +0 -24
  789. package/contracts/test/TestProduct.sol +0 -51
  790. package/contracts/test/TestRegisterable.sol +0 -19
  791. package/contracts/test/TestRoleId.sol +0 -14
  792. package/contracts/test/TestService.sol +0 -32
  793. package/contracts/test/TestToken.sol +0 -26
  794. package/contracts/test/TestVersion.sol +0 -44
  795. package/contracts/test/TestVersionable.sol +0 -17
  796. package/contracts/types/ChainId.sol +0 -38
  797. package/contracts/types/Fee.sol +0 -51
  798. package/contracts/types/NftIdSet.sol +0 -60
  799. package/contracts/types/ObjectType.sol +0 -123
  800. package/contracts/types/RoleId.sol +0 -38
  801. package/contracts/types/Version.sol +0 -95
@@ -0,0 +1,1759 @@
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": "ObjectType",
435
+ "name": "objectType",
436
+ "type": "uint8"
437
+ },
438
+ {
439
+ "indexed": false,
440
+ "internalType": "KeyId",
441
+ "name": "keyId",
442
+ "type": "bytes31"
443
+ },
444
+ {
445
+ "indexed": false,
446
+ "internalType": "StateId",
447
+ "name": "state",
448
+ "type": "uint8"
449
+ },
450
+ {
451
+ "indexed": false,
452
+ "internalType": "address",
453
+ "name": "createdBy",
454
+ "type": "address"
455
+ },
456
+ {
457
+ "indexed": false,
458
+ "internalType": "address",
459
+ "name": "txOrigin",
460
+ "type": "address"
461
+ }
462
+ ],
463
+ "name": "LogBaseStoreInfoCreated",
464
+ "type": "event"
465
+ },
466
+ {
467
+ "anonymous": false,
468
+ "inputs": [
469
+ {
470
+ "indexed": false,
471
+ "internalType": "ObjectType",
472
+ "name": "objectType",
473
+ "type": "uint8"
474
+ },
475
+ {
476
+ "indexed": false,
477
+ "internalType": "KeyId",
478
+ "name": "keyId",
479
+ "type": "bytes31"
480
+ },
481
+ {
482
+ "indexed": false,
483
+ "internalType": "StateId",
484
+ "name": "state",
485
+ "type": "uint8"
486
+ },
487
+ {
488
+ "indexed": false,
489
+ "internalType": "address",
490
+ "name": "updatedBy",
491
+ "type": "address"
492
+ },
493
+ {
494
+ "indexed": false,
495
+ "internalType": "address",
496
+ "name": "txOrigin",
497
+ "type": "address"
498
+ },
499
+ {
500
+ "indexed": false,
501
+ "internalType": "Blocknumber",
502
+ "name": "lastUpdatedIn",
503
+ "type": "uint40"
504
+ }
505
+ ],
506
+ "name": "LogBaseStoreInfoUpdated",
507
+ "type": "event"
508
+ },
509
+ {
510
+ "anonymous": false,
511
+ "inputs": [
512
+ {
513
+ "indexed": false,
514
+ "internalType": "ObjectType",
515
+ "name": "objectType",
516
+ "type": "uint8"
517
+ },
518
+ {
519
+ "indexed": false,
520
+ "internalType": "KeyId",
521
+ "name": "keyId",
522
+ "type": "bytes31"
523
+ },
524
+ {
525
+ "indexed": false,
526
+ "internalType": "StateId",
527
+ "name": "state",
528
+ "type": "uint8"
529
+ },
530
+ {
531
+ "indexed": false,
532
+ "internalType": "address",
533
+ "name": "createdBy",
534
+ "type": "address"
535
+ },
536
+ {
537
+ "indexed": false,
538
+ "internalType": "address",
539
+ "name": "txOrigin",
540
+ "type": "address"
541
+ }
542
+ ],
543
+ "name": "LogBaseStoreMetadataCreated",
544
+ "type": "event"
545
+ },
546
+ {
547
+ "anonymous": false,
548
+ "inputs": [
549
+ {
550
+ "indexed": false,
551
+ "internalType": "ObjectType",
552
+ "name": "objectType",
553
+ "type": "uint8"
554
+ },
555
+ {
556
+ "indexed": false,
557
+ "internalType": "KeyId",
558
+ "name": "keyId",
559
+ "type": "bytes31"
560
+ },
561
+ {
562
+ "indexed": false,
563
+ "internalType": "StateId",
564
+ "name": "stateOld",
565
+ "type": "uint8"
566
+ },
567
+ {
568
+ "indexed": false,
569
+ "internalType": "StateId",
570
+ "name": "stateNew",
571
+ "type": "uint8"
572
+ },
573
+ {
574
+ "indexed": false,
575
+ "internalType": "address",
576
+ "name": "updatedBy",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "indexed": false,
581
+ "internalType": "address",
582
+ "name": "txOrigin",
583
+ "type": "address"
584
+ },
585
+ {
586
+ "indexed": false,
587
+ "internalType": "Blocknumber",
588
+ "name": "lastUpdatedIn",
589
+ "type": "uint40"
590
+ }
591
+ ],
592
+ "name": "LogBaseStoreStateUpdated",
593
+ "type": "event"
594
+ },
595
+ {
596
+ "anonymous": false,
597
+ "inputs": [
598
+ {
599
+ "indexed": false,
600
+ "internalType": "ObjectType",
601
+ "name": "objectType",
602
+ "type": "uint8"
603
+ },
604
+ {
605
+ "indexed": false,
606
+ "internalType": "KeyId",
607
+ "name": "keyId",
608
+ "type": "bytes31"
609
+ },
610
+ {
611
+ "indexed": false,
612
+ "internalType": "StateId",
613
+ "name": "state",
614
+ "type": "uint8"
615
+ },
616
+ {
617
+ "indexed": false,
618
+ "internalType": "address",
619
+ "name": "createdBy",
620
+ "type": "address"
621
+ },
622
+ {
623
+ "indexed": false,
624
+ "internalType": "address",
625
+ "name": "txOrigin",
626
+ "type": "address"
627
+ }
628
+ ],
629
+ "name": "LogProductStoreInfoCreated",
630
+ "type": "event"
631
+ },
632
+ {
633
+ "anonymous": false,
634
+ "inputs": [
635
+ {
636
+ "indexed": false,
637
+ "internalType": "ObjectType",
638
+ "name": "objectType",
639
+ "type": "uint8"
640
+ },
641
+ {
642
+ "indexed": false,
643
+ "internalType": "KeyId",
644
+ "name": "keyId",
645
+ "type": "bytes31"
646
+ },
647
+ {
648
+ "indexed": false,
649
+ "internalType": "StateId",
650
+ "name": "state",
651
+ "type": "uint8"
652
+ },
653
+ {
654
+ "indexed": false,
655
+ "internalType": "address",
656
+ "name": "updatedBy",
657
+ "type": "address"
658
+ },
659
+ {
660
+ "indexed": false,
661
+ "internalType": "address",
662
+ "name": "txOrigin",
663
+ "type": "address"
664
+ },
665
+ {
666
+ "indexed": false,
667
+ "internalType": "Blocknumber",
668
+ "name": "lastUpdatedIn",
669
+ "type": "uint40"
670
+ }
671
+ ],
672
+ "name": "LogProductStoreInfoUpdated",
673
+ "type": "event"
674
+ },
675
+ {
676
+ "inputs": [],
677
+ "name": "authority",
678
+ "outputs": [
679
+ {
680
+ "internalType": "address",
681
+ "name": "",
682
+ "type": "address"
683
+ }
684
+ ],
685
+ "stateMutability": "view",
686
+ "type": "function"
687
+ },
688
+ {
689
+ "inputs": [
690
+ {
691
+ "internalType": "StateId",
692
+ "name": "stateId",
693
+ "type": "uint8"
694
+ },
695
+ {
696
+ "internalType": "ObjectType",
697
+ "name": "objectType",
698
+ "type": "uint8"
699
+ },
700
+ {
701
+ "internalType": "StateId",
702
+ "name": "expectedFromId",
703
+ "type": "uint8"
704
+ },
705
+ {
706
+ "internalType": "StateId",
707
+ "name": "toId",
708
+ "type": "uint8"
709
+ }
710
+ ],
711
+ "name": "checkTransition",
712
+ "outputs": [],
713
+ "stateMutability": "view",
714
+ "type": "function"
715
+ },
716
+ {
717
+ "inputs": [
718
+ {
719
+ "internalType": "NftId",
720
+ "name": "applicationNftId",
721
+ "type": "uint96"
722
+ },
723
+ {
724
+ "components": [
725
+ {
726
+ "internalType": "NftId",
727
+ "name": "productNftId",
728
+ "type": "uint96"
729
+ },
730
+ {
731
+ "internalType": "NftId",
732
+ "name": "bundleNftId",
733
+ "type": "uint96"
734
+ },
735
+ {
736
+ "internalType": "RiskId",
737
+ "name": "riskId",
738
+ "type": "bytes8"
739
+ },
740
+ {
741
+ "internalType": "Amount",
742
+ "name": "sumInsuredAmount",
743
+ "type": "uint96"
744
+ },
745
+ {
746
+ "internalType": "Amount",
747
+ "name": "premiumAmount",
748
+ "type": "uint96"
749
+ },
750
+ {
751
+ "internalType": "ReferralId",
752
+ "name": "referralId",
753
+ "type": "bytes8"
754
+ },
755
+ {
756
+ "internalType": "uint16",
757
+ "name": "claimsCount",
758
+ "type": "uint16"
759
+ },
760
+ {
761
+ "internalType": "uint16",
762
+ "name": "openClaimsCount",
763
+ "type": "uint16"
764
+ },
765
+ {
766
+ "internalType": "Amount",
767
+ "name": "claimAmount",
768
+ "type": "uint96"
769
+ },
770
+ {
771
+ "internalType": "Amount",
772
+ "name": "payoutAmount",
773
+ "type": "uint96"
774
+ },
775
+ {
776
+ "internalType": "Timestamp",
777
+ "name": "activatedAt",
778
+ "type": "uint40"
779
+ },
780
+ {
781
+ "internalType": "Seconds",
782
+ "name": "lifetime",
783
+ "type": "uint40"
784
+ },
785
+ {
786
+ "internalType": "Timestamp",
787
+ "name": "expiredAt",
788
+ "type": "uint40"
789
+ },
790
+ {
791
+ "internalType": "Timestamp",
792
+ "name": "closedAt",
793
+ "type": "uint40"
794
+ },
795
+ {
796
+ "internalType": "bytes",
797
+ "name": "applicationData",
798
+ "type": "bytes"
799
+ },
800
+ {
801
+ "internalType": "bytes",
802
+ "name": "processData",
803
+ "type": "bytes"
804
+ }
805
+ ],
806
+ "internalType": "struct IPolicy.PolicyInfo",
807
+ "name": "policy",
808
+ "type": "tuple"
809
+ }
810
+ ],
811
+ "name": "createApplication",
812
+ "outputs": [],
813
+ "stateMutability": "nonpayable",
814
+ "type": "function"
815
+ },
816
+ {
817
+ "inputs": [
818
+ {
819
+ "internalType": "Key32",
820
+ "name": "key32",
821
+ "type": "bytes32"
822
+ }
823
+ ],
824
+ "name": "exists",
825
+ "outputs": [
826
+ {
827
+ "internalType": "bool",
828
+ "name": "",
829
+ "type": "bool"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [
837
+ {
838
+ "internalType": "NftId",
839
+ "name": "targetNftId",
840
+ "type": "uint96"
841
+ }
842
+ ],
843
+ "name": "getAmounts",
844
+ "outputs": [
845
+ {
846
+ "internalType": "Amount",
847
+ "name": "balanceAmount",
848
+ "type": "uint96"
849
+ },
850
+ {
851
+ "internalType": "Amount",
852
+ "name": "lockedAmount",
853
+ "type": "uint96"
854
+ },
855
+ {
856
+ "internalType": "Amount",
857
+ "name": "feeAmount",
858
+ "type": "uint96"
859
+ }
860
+ ],
861
+ "stateMutability": "view",
862
+ "type": "function"
863
+ },
864
+ {
865
+ "inputs": [
866
+ {
867
+ "internalType": "NftId",
868
+ "name": "targetNftId",
869
+ "type": "uint96"
870
+ }
871
+ ],
872
+ "name": "getBalanceAmount",
873
+ "outputs": [
874
+ {
875
+ "internalType": "Amount",
876
+ "name": "balanceAmount",
877
+ "type": "uint96"
878
+ }
879
+ ],
880
+ "stateMutability": "view",
881
+ "type": "function"
882
+ },
883
+ {
884
+ "inputs": [
885
+ {
886
+ "internalType": "NftId",
887
+ "name": "targetNftId",
888
+ "type": "uint96"
889
+ }
890
+ ],
891
+ "name": "getFeeAmount",
892
+ "outputs": [
893
+ {
894
+ "internalType": "Amount",
895
+ "name": "feeAmount",
896
+ "type": "uint96"
897
+ }
898
+ ],
899
+ "stateMutability": "view",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [
904
+ {
905
+ "internalType": "ObjectType",
906
+ "name": "objectType",
907
+ "type": "uint8"
908
+ }
909
+ ],
910
+ "name": "getInitialState",
911
+ "outputs": [
912
+ {
913
+ "internalType": "StateId",
914
+ "name": "",
915
+ "type": "uint8"
916
+ }
917
+ ],
918
+ "stateMutability": "view",
919
+ "type": "function"
920
+ },
921
+ {
922
+ "inputs": [
923
+ {
924
+ "internalType": "NftId",
925
+ "name": "targetNftId",
926
+ "type": "uint96"
927
+ }
928
+ ],
929
+ "name": "getLockedAmount",
930
+ "outputs": [
931
+ {
932
+ "internalType": "Amount",
933
+ "name": "lockedAmount",
934
+ "type": "uint96"
935
+ }
936
+ ],
937
+ "stateMutability": "view",
938
+ "type": "function"
939
+ },
940
+ {
941
+ "inputs": [
942
+ {
943
+ "internalType": "Key32",
944
+ "name": "key32",
945
+ "type": "bytes32"
946
+ }
947
+ ],
948
+ "name": "getMetadata",
949
+ "outputs": [
950
+ {
951
+ "components": [
952
+ {
953
+ "internalType": "ObjectType",
954
+ "name": "objectType",
955
+ "type": "uint8"
956
+ },
957
+ {
958
+ "internalType": "StateId",
959
+ "name": "state",
960
+ "type": "uint8"
961
+ },
962
+ {
963
+ "internalType": "Blocknumber",
964
+ "name": "updatedIn",
965
+ "type": "uint40"
966
+ }
967
+ ],
968
+ "internalType": "struct IBaseStore.Metadata",
969
+ "name": "metadata",
970
+ "type": "tuple"
971
+ }
972
+ ],
973
+ "stateMutability": "view",
974
+ "type": "function"
975
+ },
976
+ {
977
+ "inputs": [
978
+ {
979
+ "internalType": "NftId",
980
+ "name": "policyNftId",
981
+ "type": "uint96"
982
+ }
983
+ ],
984
+ "name": "getPolicy",
985
+ "outputs": [
986
+ {
987
+ "components": [
988
+ {
989
+ "internalType": "NftId",
990
+ "name": "productNftId",
991
+ "type": "uint96"
992
+ },
993
+ {
994
+ "internalType": "NftId",
995
+ "name": "bundleNftId",
996
+ "type": "uint96"
997
+ },
998
+ {
999
+ "internalType": "RiskId",
1000
+ "name": "riskId",
1001
+ "type": "bytes8"
1002
+ },
1003
+ {
1004
+ "internalType": "Amount",
1005
+ "name": "sumInsuredAmount",
1006
+ "type": "uint96"
1007
+ },
1008
+ {
1009
+ "internalType": "Amount",
1010
+ "name": "premiumAmount",
1011
+ "type": "uint96"
1012
+ },
1013
+ {
1014
+ "internalType": "ReferralId",
1015
+ "name": "referralId",
1016
+ "type": "bytes8"
1017
+ },
1018
+ {
1019
+ "internalType": "uint16",
1020
+ "name": "claimsCount",
1021
+ "type": "uint16"
1022
+ },
1023
+ {
1024
+ "internalType": "uint16",
1025
+ "name": "openClaimsCount",
1026
+ "type": "uint16"
1027
+ },
1028
+ {
1029
+ "internalType": "Amount",
1030
+ "name": "claimAmount",
1031
+ "type": "uint96"
1032
+ },
1033
+ {
1034
+ "internalType": "Amount",
1035
+ "name": "payoutAmount",
1036
+ "type": "uint96"
1037
+ },
1038
+ {
1039
+ "internalType": "Timestamp",
1040
+ "name": "activatedAt",
1041
+ "type": "uint40"
1042
+ },
1043
+ {
1044
+ "internalType": "Seconds",
1045
+ "name": "lifetime",
1046
+ "type": "uint40"
1047
+ },
1048
+ {
1049
+ "internalType": "Timestamp",
1050
+ "name": "expiredAt",
1051
+ "type": "uint40"
1052
+ },
1053
+ {
1054
+ "internalType": "Timestamp",
1055
+ "name": "closedAt",
1056
+ "type": "uint40"
1057
+ },
1058
+ {
1059
+ "internalType": "bytes",
1060
+ "name": "applicationData",
1061
+ "type": "bytes"
1062
+ },
1063
+ {
1064
+ "internalType": "bytes",
1065
+ "name": "processData",
1066
+ "type": "bytes"
1067
+ }
1068
+ ],
1069
+ "internalType": "struct IPolicy.PolicyInfo",
1070
+ "name": "policy",
1071
+ "type": "tuple"
1072
+ }
1073
+ ],
1074
+ "stateMutability": "view",
1075
+ "type": "function"
1076
+ },
1077
+ {
1078
+ "inputs": [
1079
+ {
1080
+ "internalType": "Key32",
1081
+ "name": "key32",
1082
+ "type": "bytes32"
1083
+ }
1084
+ ],
1085
+ "name": "getState",
1086
+ "outputs": [
1087
+ {
1088
+ "internalType": "StateId",
1089
+ "name": "state",
1090
+ "type": "uint8"
1091
+ }
1092
+ ],
1093
+ "stateMutability": "view",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [
1098
+ {
1099
+ "internalType": "ObjectType",
1100
+ "name": "objectType",
1101
+ "type": "uint8"
1102
+ }
1103
+ ],
1104
+ "name": "hasLifecycle",
1105
+ "outputs": [
1106
+ {
1107
+ "internalType": "bool",
1108
+ "name": "",
1109
+ "type": "bool"
1110
+ }
1111
+ ],
1112
+ "stateMutability": "view",
1113
+ "type": "function"
1114
+ },
1115
+ {
1116
+ "inputs": [],
1117
+ "name": "initialize",
1118
+ "outputs": [],
1119
+ "stateMutability": "nonpayable",
1120
+ "type": "function"
1121
+ },
1122
+ {
1123
+ "inputs": [],
1124
+ "name": "isConsumingScheduledOp",
1125
+ "outputs": [
1126
+ {
1127
+ "internalType": "bytes4",
1128
+ "name": "",
1129
+ "type": "bytes4"
1130
+ }
1131
+ ],
1132
+ "stateMutability": "view",
1133
+ "type": "function"
1134
+ },
1135
+ {
1136
+ "inputs": [
1137
+ {
1138
+ "internalType": "ObjectType",
1139
+ "name": "objectType",
1140
+ "type": "uint8"
1141
+ },
1142
+ {
1143
+ "internalType": "StateId",
1144
+ "name": "fromId",
1145
+ "type": "uint8"
1146
+ },
1147
+ {
1148
+ "internalType": "StateId",
1149
+ "name": "toId",
1150
+ "type": "uint8"
1151
+ }
1152
+ ],
1153
+ "name": "isValidTransition",
1154
+ "outputs": [
1155
+ {
1156
+ "internalType": "bool",
1157
+ "name": "",
1158
+ "type": "bool"
1159
+ }
1160
+ ],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [
1166
+ {
1167
+ "internalType": "address",
1168
+ "name": "newAuthority",
1169
+ "type": "address"
1170
+ }
1171
+ ],
1172
+ "name": "setAuthority",
1173
+ "outputs": [],
1174
+ "stateMutability": "nonpayable",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "inputs": [
1179
+ {
1180
+ "internalType": "ObjectType",
1181
+ "name": "objectType",
1182
+ "type": "uint8"
1183
+ },
1184
+ {
1185
+ "internalType": "KeyId",
1186
+ "name": "id",
1187
+ "type": "bytes31"
1188
+ }
1189
+ ],
1190
+ "name": "toKey32",
1191
+ "outputs": [
1192
+ {
1193
+ "internalType": "Key32",
1194
+ "name": "",
1195
+ "type": "bytes32"
1196
+ }
1197
+ ],
1198
+ "stateMutability": "pure",
1199
+ "type": "function"
1200
+ },
1201
+ {
1202
+ "inputs": [
1203
+ {
1204
+ "internalType": "NftId",
1205
+ "name": "applicationNftId",
1206
+ "type": "uint96"
1207
+ },
1208
+ {
1209
+ "components": [
1210
+ {
1211
+ "internalType": "NftId",
1212
+ "name": "productNftId",
1213
+ "type": "uint96"
1214
+ },
1215
+ {
1216
+ "internalType": "NftId",
1217
+ "name": "bundleNftId",
1218
+ "type": "uint96"
1219
+ },
1220
+ {
1221
+ "internalType": "RiskId",
1222
+ "name": "riskId",
1223
+ "type": "bytes8"
1224
+ },
1225
+ {
1226
+ "internalType": "Amount",
1227
+ "name": "sumInsuredAmount",
1228
+ "type": "uint96"
1229
+ },
1230
+ {
1231
+ "internalType": "Amount",
1232
+ "name": "premiumAmount",
1233
+ "type": "uint96"
1234
+ },
1235
+ {
1236
+ "internalType": "ReferralId",
1237
+ "name": "referralId",
1238
+ "type": "bytes8"
1239
+ },
1240
+ {
1241
+ "internalType": "uint16",
1242
+ "name": "claimsCount",
1243
+ "type": "uint16"
1244
+ },
1245
+ {
1246
+ "internalType": "uint16",
1247
+ "name": "openClaimsCount",
1248
+ "type": "uint16"
1249
+ },
1250
+ {
1251
+ "internalType": "Amount",
1252
+ "name": "claimAmount",
1253
+ "type": "uint96"
1254
+ },
1255
+ {
1256
+ "internalType": "Amount",
1257
+ "name": "payoutAmount",
1258
+ "type": "uint96"
1259
+ },
1260
+ {
1261
+ "internalType": "Timestamp",
1262
+ "name": "activatedAt",
1263
+ "type": "uint40"
1264
+ },
1265
+ {
1266
+ "internalType": "Seconds",
1267
+ "name": "lifetime",
1268
+ "type": "uint40"
1269
+ },
1270
+ {
1271
+ "internalType": "Timestamp",
1272
+ "name": "expiredAt",
1273
+ "type": "uint40"
1274
+ },
1275
+ {
1276
+ "internalType": "Timestamp",
1277
+ "name": "closedAt",
1278
+ "type": "uint40"
1279
+ },
1280
+ {
1281
+ "internalType": "bytes",
1282
+ "name": "applicationData",
1283
+ "type": "bytes"
1284
+ },
1285
+ {
1286
+ "internalType": "bytes",
1287
+ "name": "processData",
1288
+ "type": "bytes"
1289
+ }
1290
+ ],
1291
+ "internalType": "struct IPolicy.PolicyInfo",
1292
+ "name": "policy",
1293
+ "type": "tuple"
1294
+ },
1295
+ {
1296
+ "internalType": "StateId",
1297
+ "name": "newState",
1298
+ "type": "uint8"
1299
+ }
1300
+ ],
1301
+ "name": "updateApplication",
1302
+ "outputs": [],
1303
+ "stateMutability": "nonpayable",
1304
+ "type": "function"
1305
+ },
1306
+ {
1307
+ "inputs": [
1308
+ {
1309
+ "internalType": "NftId",
1310
+ "name": "applicationNftId",
1311
+ "type": "uint96"
1312
+ },
1313
+ {
1314
+ "internalType": "StateId",
1315
+ "name": "newState",
1316
+ "type": "uint8"
1317
+ }
1318
+ ],
1319
+ "name": "updateApplicationState",
1320
+ "outputs": [],
1321
+ "stateMutability": "nonpayable",
1322
+ "type": "function"
1323
+ },
1324
+ {
1325
+ "inputs": [
1326
+ {
1327
+ "internalType": "NftId",
1328
+ "name": "policyNftId",
1329
+ "type": "uint96"
1330
+ },
1331
+ {
1332
+ "components": [
1333
+ {
1334
+ "internalType": "NftId",
1335
+ "name": "productNftId",
1336
+ "type": "uint96"
1337
+ },
1338
+ {
1339
+ "internalType": "NftId",
1340
+ "name": "bundleNftId",
1341
+ "type": "uint96"
1342
+ },
1343
+ {
1344
+ "internalType": "RiskId",
1345
+ "name": "riskId",
1346
+ "type": "bytes8"
1347
+ },
1348
+ {
1349
+ "internalType": "Amount",
1350
+ "name": "sumInsuredAmount",
1351
+ "type": "uint96"
1352
+ },
1353
+ {
1354
+ "internalType": "Amount",
1355
+ "name": "premiumAmount",
1356
+ "type": "uint96"
1357
+ },
1358
+ {
1359
+ "internalType": "ReferralId",
1360
+ "name": "referralId",
1361
+ "type": "bytes8"
1362
+ },
1363
+ {
1364
+ "internalType": "uint16",
1365
+ "name": "claimsCount",
1366
+ "type": "uint16"
1367
+ },
1368
+ {
1369
+ "internalType": "uint16",
1370
+ "name": "openClaimsCount",
1371
+ "type": "uint16"
1372
+ },
1373
+ {
1374
+ "internalType": "Amount",
1375
+ "name": "claimAmount",
1376
+ "type": "uint96"
1377
+ },
1378
+ {
1379
+ "internalType": "Amount",
1380
+ "name": "payoutAmount",
1381
+ "type": "uint96"
1382
+ },
1383
+ {
1384
+ "internalType": "Timestamp",
1385
+ "name": "activatedAt",
1386
+ "type": "uint40"
1387
+ },
1388
+ {
1389
+ "internalType": "Seconds",
1390
+ "name": "lifetime",
1391
+ "type": "uint40"
1392
+ },
1393
+ {
1394
+ "internalType": "Timestamp",
1395
+ "name": "expiredAt",
1396
+ "type": "uint40"
1397
+ },
1398
+ {
1399
+ "internalType": "Timestamp",
1400
+ "name": "closedAt",
1401
+ "type": "uint40"
1402
+ },
1403
+ {
1404
+ "internalType": "bytes",
1405
+ "name": "applicationData",
1406
+ "type": "bytes"
1407
+ },
1408
+ {
1409
+ "internalType": "bytes",
1410
+ "name": "processData",
1411
+ "type": "bytes"
1412
+ }
1413
+ ],
1414
+ "internalType": "struct IPolicy.PolicyInfo",
1415
+ "name": "policy",
1416
+ "type": "tuple"
1417
+ },
1418
+ {
1419
+ "internalType": "StateId",
1420
+ "name": "newState",
1421
+ "type": "uint8"
1422
+ }
1423
+ ],
1424
+ "name": "updatePolicy",
1425
+ "outputs": [],
1426
+ "stateMutability": "nonpayable",
1427
+ "type": "function"
1428
+ },
1429
+ {
1430
+ "inputs": [
1431
+ {
1432
+ "internalType": "NftId",
1433
+ "name": "policyNftId",
1434
+ "type": "uint96"
1435
+ },
1436
+ {
1437
+ "components": [
1438
+ {
1439
+ "internalType": "NftId",
1440
+ "name": "productNftId",
1441
+ "type": "uint96"
1442
+ },
1443
+ {
1444
+ "internalType": "NftId",
1445
+ "name": "bundleNftId",
1446
+ "type": "uint96"
1447
+ },
1448
+ {
1449
+ "internalType": "RiskId",
1450
+ "name": "riskId",
1451
+ "type": "bytes8"
1452
+ },
1453
+ {
1454
+ "internalType": "Amount",
1455
+ "name": "sumInsuredAmount",
1456
+ "type": "uint96"
1457
+ },
1458
+ {
1459
+ "internalType": "Amount",
1460
+ "name": "premiumAmount",
1461
+ "type": "uint96"
1462
+ },
1463
+ {
1464
+ "internalType": "ReferralId",
1465
+ "name": "referralId",
1466
+ "type": "bytes8"
1467
+ },
1468
+ {
1469
+ "internalType": "uint16",
1470
+ "name": "claimsCount",
1471
+ "type": "uint16"
1472
+ },
1473
+ {
1474
+ "internalType": "uint16",
1475
+ "name": "openClaimsCount",
1476
+ "type": "uint16"
1477
+ },
1478
+ {
1479
+ "internalType": "Amount",
1480
+ "name": "claimAmount",
1481
+ "type": "uint96"
1482
+ },
1483
+ {
1484
+ "internalType": "Amount",
1485
+ "name": "payoutAmount",
1486
+ "type": "uint96"
1487
+ },
1488
+ {
1489
+ "internalType": "Timestamp",
1490
+ "name": "activatedAt",
1491
+ "type": "uint40"
1492
+ },
1493
+ {
1494
+ "internalType": "Seconds",
1495
+ "name": "lifetime",
1496
+ "type": "uint40"
1497
+ },
1498
+ {
1499
+ "internalType": "Timestamp",
1500
+ "name": "expiredAt",
1501
+ "type": "uint40"
1502
+ },
1503
+ {
1504
+ "internalType": "Timestamp",
1505
+ "name": "closedAt",
1506
+ "type": "uint40"
1507
+ },
1508
+ {
1509
+ "internalType": "bytes",
1510
+ "name": "applicationData",
1511
+ "type": "bytes"
1512
+ },
1513
+ {
1514
+ "internalType": "bytes",
1515
+ "name": "processData",
1516
+ "type": "bytes"
1517
+ }
1518
+ ],
1519
+ "internalType": "struct IPolicy.PolicyInfo",
1520
+ "name": "policy",
1521
+ "type": "tuple"
1522
+ },
1523
+ {
1524
+ "internalType": "StateId",
1525
+ "name": "newState",
1526
+ "type": "uint8"
1527
+ }
1528
+ ],
1529
+ "name": "updatePolicyClaims",
1530
+ "outputs": [],
1531
+ "stateMutability": "nonpayable",
1532
+ "type": "function"
1533
+ },
1534
+ {
1535
+ "inputs": [
1536
+ {
1537
+ "internalType": "NftId",
1538
+ "name": "policyNftId",
1539
+ "type": "uint96"
1540
+ },
1541
+ {
1542
+ "internalType": "StateId",
1543
+ "name": "newState",
1544
+ "type": "uint8"
1545
+ }
1546
+ ],
1547
+ "name": "updatePolicyState",
1548
+ "outputs": [],
1549
+ "stateMutability": "nonpayable",
1550
+ "type": "function"
1551
+ }
1552
+ ],
1553
+ "bytecode": "0x60806040525f6007553480156012575f80fd5b50612bbc806100205f395ff3fe608060405234801561000f575f80fd5b5060043610610148575f3560e01c80636c36e7db116100bf578063a5961b4c11610079578063a5961b4c14610388578063bf1db3f91461041f578063bf7e214f14610432578063c75e9a1c14610194578063e9e96c7014610452578063f48016ce1461048f575f80fd5b80636c36e7db146102ee5780637a9e5e4b1461030e5780638129fc1c146103215780638eb9000d146103295780638fb36037146103545780639505838e14610375575f80fd5b8063228e42ec11610110578063228e42ec1461021a578063297023ef1461019457806338a699a41461024557806354f1fa81146102685780635d4345cc146102075780635eede1741461027b575f80fd5b80630232ca491461014c578063036b1ffb1461019457806309648a9d146101a95780630d358181146101e25780630fad0eb114610207575b5f80fd5b61017761015a3660046121f2565b6001600160601b039081165f908152600460205260409020541690565b6040516001600160601b0390911681526020015b60405180910390f35b6101a76101a2366004612498565b6104b0565b005b6101d06101b73660046124f8565b5f90815260066020526040902054610100900460ff1690565b60405160ff909116815260200161018b565b6101d06101f036600461250f565b60ff9081165f908152602081905260409020541690565b6101a761021536600461252a565b61084e565b6101776102283660046121f2565b6001600160601b039081165f908152600260205260409020541690565b6102586102533660046124f8565b610870565b604051901515815260200161018b565b6101a7610276366004612561565b6108fe565b6102c46102893660046121f2565b6001600160601b039081165f908152600260209081526040808320546003835281842054600490935292205491831693908316929190911690565b604080516001600160601b039485168152928416602084015292169181019190915260600161018b565b6103016102fc3660046121f2565b610a5c565b60405161018b91906125e8565b6101a761031c366004612770565b610d1b565b6101a7610da1565b6101776103373660046121f2565b6001600160601b039081165f908152600360205260409020541690565b61035c610f1b565b6040516001600160e01b0319909116815260200161018b565b6101a761038336600461278b565b610f51565b6103ee6103963660046124f8565b60408051606080820183525f80835260208084018290529284018190529384526006825292829020825193840183525460ff80821685526101008204169184019190915262010000900464ffffffffff169082015290565b60408051825160ff9081168252602080850151909116908201529181015164ffffffffff169082015260600161018b565b61025861042d36600461250f565b61121c565b61043a611268565b6040516001600160a01b03909116815260200161018b565b6102586104603660046127d8565b60ff9283165f908152600160209081526040808320948616835293815283822092851682529190915220541690565b6104a261049d366004612824565b611283565b60405190815260200161018b565b6104bc335b5f3661130b565b5f6104c8846015611409565b90505f6104d58284611454565b90508360085f8481526020019081526020015f205f820151815f015f6101000a8154816001600160601b0302191690836001600160601b031602179055506020820151815f01600c6101000a8154816001600160601b0302191690836001600160601b031602179055506040820151815f0160186101000a81548167ffffffffffffffff021916908360c01c02179055506060820151816001015f6101000a8154816001600160601b0302191690836001600160601b03160217905550608082015181600101600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060a08201518160010160186101000a81548167ffffffffffffffff021916908360c01c021790555060c0820151816002015f6101000a81548161ffff021916908361ffff16021790555060e08201518160020160026101000a81548161ffff021916908361ffff1602179055506101008201518160020160046101000a8154816001600160601b0302191690836001600160601b031602179055506101208201518160020160106101000a8154816001600160601b0302191690836001600160601b03160217905550610140820151816003015f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101608201518160030160056101000a81548164ffffffffff021916908364ffffffffff16021790555061018082015181600301600a6101000a81548164ffffffffff021916908364ffffffffff1602179055506101a082015181600301600f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101c082015181600401908161074591906128cc565b506101e0820151600582019061075b90826128cc565b509050507fed426205a5233306a53e069e92c8dac3c77596236fbc23640310dec886874433610788601590565b60405163205466cf60e11b81526001600160601b038816600482015273__$94a2c899be079b00d952d0d84fffaa5c34$__906340a8cd9e90602401602060405180830381865af41580156107de573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108029190612987565b6040805160ff938416815260ff1990921660208301529186169181019190915233606082015232608082015264ffffffffff831660a082015260c0015b60405180910390a15050505050565b610857336104b5565b61086b610865836015611409565b82611454565b505050565b5f8181526006602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf906024015b602060405180830381865af41580156108d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f891906129b1565b92915050565b60ff8381165f908152602081905260409081902054905163037c8cb160e51b81529116600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015610960573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098491906129b1565b156109b25760405163ea01ac1f60e01b815230600482015260ff841660248201526044015b60405180910390fd5b60ff808516908316146109f35760405163bae587e160e01b815230600482015260ff80851660248301528086166044830152831660648201526084016109a9565b60ff8084165f90815260016020908152604080832088851684528252808320858516845290915290205416610a565760405163f33b49a360e01b815230600482015260ff80851660248301528086166044830152821660648201526084016109a9565b50505050565b60408051610200810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082018390526101a082018390526101c082018190526101e082015290600890610ae9846015611409565b815260208082019290925260409081015f2081516102008101835281546001600160601b038082168352600160601b8083048216968401969096526001600160c01b0319600160c01b9283900460c090811b821696850196909652600185015480831660608601529687048216608085015291909504841b1660a0820152600282015461ffff8082169483019490945262010000810490931660e082015264010000000083048416610100820152600160801b909204909216610120820152600382015464ffffffffff8082166101408401526501000000000082048116610160840152600160501b82048116610180840152600160781b909104166101a08201526004820180549192916101c084019190610c0490612850565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3090612850565b8015610c7b5780601f10610c5257610100808354040283529160200191610c7b565b820191905f5260205f20905b815481529060010190602001808311610c5e57829003601f168201915b50505050508152602001600582018054610c9490612850565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc090612850565b8015610d0b5780601f10610ce257610100808354040283529160200191610d0b565b820191905f5260205f20905b815481529060010190602001808311610cee57829003601f168201915b5050505050815250509050919050565b33610d24611268565b6001600160a01b0316816001600160a01b031614610d5f5760405162d1953b60e31b81526001600160a01b03821660048201526024016109a9565b816001600160a01b03163b5f03610d94576040516361798f2f60e11b81526001600160a01b03831660048201526024016109a9565b610d9d826117b8565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610de65750825b90505f8267ffffffffffffffff166001148015610e025750303b155b905081158015610e10575080155b15610e2e5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e5857845460ff60401b1916600160401b1785555b5f3390505f816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ebd91906129ca565b9050610ec881611818565b610ed061182c565b50508315610f1457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200161083f565b5050505050565b5f80516020612b6783398151915280545f9190600160a01b900460ff16610f42575f610f4b565b638fb3603760e01b5b91505090565b610f5a336104b5565b610f638261183e565b5f610f6f836015611409565b9050610f7a81611941565b5f8181526008602090815260409182902084518154928601519386015160c090811c600160c01b9081026001600160c01b036001600160601b03978816600160601b9081026001600160c01b0319988916968a1696909617959095178116919091178555606089015160018601805460808c015160a08d0151871c909502948a16909602959097169088161793909317909216919091179092559084015160028201805460e08701516101008801516101208901518716600160801b026bffffffffffffffffffffffff60801b19919097166401000000000216640100000000600160e01b031961ffff928316620100000263ffffffff199094169290951691909117919091179290921691909117929092179091556101408301516003820180546101608601516101808701516101a088015164ffffffffff908116600160781b0264ffffffffff60781b19928216600160501b029290921669ffffffffffffffffffff60501b19938216650100000000000269ffffffffffffffffffff1990951691909616179290921716929092179190911790556101c0830151839190600482019061112990826128cc565b506101e0820151600582019061113f90826128cc565b509050507fa5b14fadc476b5efb23bb6746fdbab861da268f6567c45170b7e0ed85846a38a61116c601590565b60405163205466cf60e11b81526001600160601b038616600482015273__$94a2c899be079b00d952d0d84fffaa5c34$__906340a8cd9e90602401602060405180830381865af41580156111c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e69190612987565b5f84815260066020526040902054610100900460ff16333260405161120f9594939291906129e5565b60405180910390a1505050565b60ff8181165f9081526020819052604080822054905163b2466acf60e01b8152921660048301529073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf906024016108b9565b5f80516020612b67833981519152546001600160a01b031690565b604051637a400b6760e11b815260ff8316600482015260ff19821660248201525f9073__$4b9aaffa8d044614668dad578b824b8eee$__9063f48016ce906044015b602060405180830381865af41580156112e0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113049190612a1f565b9392505050565b5f80516020612b678339815191525f80611343611326611268565b873061133560045f8a8c612a36565b61133e91612a5d565b611d0b565b91509150816114015763ffffffff8116156113de57825460ff60a01b1916600160a01b178355611371611268565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b81526004016113a093929190612a95565b5f604051808303815f87803b1580156113b7575f80fd5b505af11580156113c9573d5f803e3d5ffd5b5050845460ff60a01b19168555506114019050565b60405162d1953b60e31b81526001600160a01b03871660048201526024016109a9565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff821660248201525f9073__$94a2c899be079b00d952d0d84fffaa5c34$__90633889a4c8906044016112c5565b60405163037c8cb160e51b815260ff821660048201525f9073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af41580156114a6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114ca91906129b1565b156114eb57604051631260077f60e21b8152600481018490526024016109a9565b505f82815260066020526040908190208054915163037c8cb160e51b8152610100830460ff16600482018190526201000090930464ffffffffff16929073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015611562573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061158691906129b1565b156115a7576040516310b1404560e21b8152600481018690526024016109a9565b60ff808516146117255781546115c390829060ff1681876108fe565b815461ff00191661010060ff861602178255604051634b00e98f60e11b8152600481018690527f84506304f95067670fb71bf9a5ee4e3fe45572216d62b28f8fda7716e1374a3a9073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af4158015611645573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116699190612ad4565b604051630713cfad60e31b81526004810188905273__$4b9aaffa8d044614668dad578b824b8eee$__9063389e7d6890602401602060405180830381865af41580156116b7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116db9190612987565b6040805160ff938416815260ff1990921660208301528285169082015290861660608201523360808201523260a082015264ffffffffff851660c082015260e00160405180910390a15b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af415801561176c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117909190612aef565b825464ffffffffff91909116620100000266ffffffffff000019909116179091555092915050565b5f80516020612b6783398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611820611e13565b61182981611e5c565b50565b611834611e13565b61183c611e6d565b565b6001600160601b0381165f9081526005602052604090819020549051638d38cd4b60e01b815264ffffffffff909116600482015273__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af41580156118ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118d091906129b1565b156118f9576040516314d5804160e01b81526001600160601b03821660048201526024016109a9565b61190281611ec5565b6040516001600160601b03821681527f1c26f28e2d8f145150c4243339c6b20813ea2bbc4e6f19ea2c9905060c0411a99060200160405180910390a150565b604051634b00e98f60e11b8152600481018290525f9073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af4158015611991573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119b59190612ad4565b60405163037c8cb160e51b815260ff8216600482015290915073__$0d958e68cba84670b8f4a3f2f2686b1c6b$__90636f91962090602401602060405180830381865af4158015611a08573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a2c91906129b1565b15611a4f57604051633d61be7d60e11b815260ff821660048201526024016109a9565b5f828152600660205260409081902080549151638d38cd4b60e01b81526201000090920464ffffffffff1660048301529073__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af4158015611aba573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ade91906129b1565b15611b0857604051637791d47d60e01b81526004810184905260ff831660248201526044016109a9565b611b118261121c565b611b33576040516391eb5e8760e01b815260ff831660048201526024016109a9565b5f73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af4158015611b7b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b9f9190612aef565b60ff8085165f908152602081905260408120549293509116835460ff86811661ffff1990921691909117610100918316919091021766ffffffffff000019166201000064ffffffffff851602178455604051634b00e98f60e11b8152600481018790529091507f639b364b2f86951e3b326144e1001a789e555ab733d63541d72d71fee11acfe79073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af4158015611c61573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c859190612ad4565b604051630713cfad60e31b81526004810188905273__$4b9aaffa8d044614668dad578b824b8eee$__9063389e7d6890602401602060405180830381865af4158015611cd3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cf79190612987565b83333260405161083f9594939291906129e5565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611d799190612b0a565b5f60405180830381855afa9150503d805f8114611db1576040519150601f19603f3d011682016040523d82523d5f602084013e611db6565b606091505b50915091508115611e08576040815110611de85780806020019051810190611dde9190612b20565b9094509250611e08565b6020815110611e085780806020019051810190611e0591906129b1565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661183c57604051631afcd79f60e31b815260040160405180910390fd5b611e64611e13565b611829816117b8565b611e75611f64565b611e7d611f81565b611e85611fb5565b611e8d611ff9565b611e95612015565b611e9d612062565b611ea5612082565b611ead612096565b611eb56120d5565b611ebd6120df565b61183c6120f3565b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af4158015611f0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f309190612aef565b6001600160601b03919091165f908152600560205260409020805464ffffffffff191664ffffffffff909216919091179055565b611f7160165b600561211b565b61183c60165b60055b60c861215d565b611f8b600b611f6a565b611f99600b6005606e61215d565b611fa7600b606e600561215d565b61183c600b606e60d261215d565b611fc16015600a61211b565b611fd06015600a5b601461215d565b611fdf6015600a5b601e61215d565b611fed6015600a602861215d565b61183c60156028611f7a565b612006602b5b603c61211b565b61183c602b5b603c60dc61215d565b612021602d603261211b565b61202d602d6032611fc9565b61203b602d6032603361215d565b612047602d6032611fd8565b612053602d6033611f7a565b61183c602d60335b604861215d565b61206c602e611fff565b612076602e61200c565b61183c602e603c61205b565b61208c602c611f6a565b61183c602c611f77565b6120a0602f611f6a565b6120af602f60055b604661215d565b6120bd602f6005600761215d565b6120c9602f60076120a8565b61183c602f600561205b565b61183c600f611f6a565b6120e9600c611f6a565b61183c6029611f6a565b6120fd600e611f6a565b6121076017611f6a565b6121116030611f6a565b61183c6031611f6a565b60ff8281165f90815260208190526040902054161561213c5761213c612b52565b60ff9182165f908152602081905260409020805460ff191691909216179055565b60ff8084165f908152600160209081526040808320868516845282528083208585168452909152902054161561219557612195612b52565b60ff9283165f9081526001602081815260408084209587168452948152848320939095168252919093529120805460ff19169091179055565b6001600160601b0381168114611829575f80fd5b80356121ed816121ce565b919050565b5f60208284031215612202575f80fd5b8135611304816121ce565b634e487b7160e01b5f52604160045260245ffd5b604051610200810167ffffffffffffffff811182821017156122455761224561220d565b60405290565b80356001600160c01b0319811681146121ed575f80fd5b803561ffff811681146121ed575f80fd5b64ffffffffff81168114611829575f80fd5b80356121ed81612273565b5f82601f83011261229f575f80fd5b813567ffffffffffffffff8111156122b9576122b961220d565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156122e8576122e861220d565b6040528181528382016020018510156122ff575f80fd5b816020850160208301375f918101602001919091529392505050565b5f610200828403121561232c575f80fd5b612334612221565b905061233f826121e2565b815261234d602083016121e2565b602082015261235e6040830161224b565b604082015261236f606083016121e2565b6060820152612380608083016121e2565b608082015261239160a0830161224b565b60a08201526123a260c08301612262565b60c08201526123b360e08301612262565b60e08201526123c561010083016121e2565b6101008201526123d861012083016121e2565b6101208201526123eb6101408301612285565b6101408201526123fe6101608301612285565b6101608201526124116101808301612285565b6101808201526124246101a08301612285565b6101a08201526101c082013567ffffffffffffffff811115612444575f80fd5b61245084828501612290565b6101c0830152506101e082013567ffffffffffffffff811115612471575f80fd5b61247d84828501612290565b6101e08301525092915050565b60ff81168114611829575f80fd5b5f805f606084860312156124aa575f80fd5b83356124b5816121ce565b9250602084013567ffffffffffffffff8111156124d0575f80fd5b6124dc8682870161231b565b92505060408401356124ed8161248a565b809150509250925092565b5f60208284031215612508575f80fd5b5035919050565b5f6020828403121561251f575f80fd5b81356113048161248a565b5f806040838503121561253b575f80fd5b8235612546816121ce565b915060208301356125568161248a565b809150509250929050565b5f805f8060808587031215612574575f80fd5b843561257f8161248a565b9350602085013561258f8161248a565b9250604085013561259f8161248a565b915060608501356125af8161248a565b939692955090935050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526126026020820183516001600160601b03169052565b5f602083015161261d60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160601b03811660808401525060808301516001600160601b03811660a08401525060a08301516001600160c01b0319811660c08401525060c083015161ffff811660e08401525060e083015161ffff8116610100840152506101008301516001600160601b038116610120840152506101208301516001600160601b0381166101408401525061014083015164ffffffffff81166101608401525061016083015164ffffffffff81166101808401525061018083015164ffffffffff81166101a0840152506101a083015164ffffffffff81166101c0840152506101c08301516102006101e08401526127346102208401826125ba565b90506101e0840151601f198483030161020085015261275382826125ba565b95945050505050565b6001600160a01b0381168114611829575f80fd5b5f60208284031215612780575f80fd5b81356113048161275c565b5f806040838503121561279c575f80fd5b82356127a7816121ce565b9150602083013567ffffffffffffffff8111156127c2575f80fd5b6127ce8582860161231b565b9150509250929050565b5f805f606084860312156127ea575f80fd5b83356127f58161248a565b925060208401356128058161248a565b915060408401356124ed8161248a565b60ff1981168114611829575f80fd5b5f8060408385031215612835575f80fd5b82356128408161248a565b9150602083013561255681612815565b600181811c9082168061286457607f821691505b60208210810361288257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561086b57805f5260205f20601f840160051c810160208510156128ad5750805b601f840160051c820191505b81811015610f14575f81556001016128b9565b815167ffffffffffffffff8111156128e6576128e661220d565b6128fa816128f48454612850565b84612888565b6020601f82116001811461292c575f83156129155750848201515b5f19600385901b1c1916600184901b178455610f14565b5f84815260208120601f198516915b8281101561295b578785015182556020948501946001909201910161293b565b508482101561297857868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f60208284031215612997575f80fd5b815161130481612815565b805180151581146121ed575f80fd5b5f602082840312156129c1575f80fd5b611304826129a2565b5f602082840312156129da575f80fd5b81516113048161275c565b60ff958616815260ff199490941660208501529190931660408301526001600160a01b039283166060830152909116608082015260a00190565b5f60208284031215612a2f575f80fd5b5051919050565b5f8085851115612a44575f80fd5b83861115612a50575f80fd5b5050820193919092039150565b80356001600160e01b03198116906004841015612a8e576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b5f60208284031215612ae4575f80fd5b81516113048161248a565b5f60208284031215612aff575f80fd5b815161130481612273565b5f82518060208501845e5f920191825250919050565b5f8060408385031215612b31575f80fd5b612b3a836129a2565b9150602083015163ffffffff81168114612556575f80fd5b634e487b7160e01b5f52600160045260245ffdfef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220d98784476d8d2564b3ef735f8b489d62956491c0557045d8d9219c01e741feb464736f6c634300081a0033",
1554
+ "deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610148575f3560e01c80636c36e7db116100bf578063a5961b4c11610079578063a5961b4c14610388578063bf1db3f91461041f578063bf7e214f14610432578063c75e9a1c14610194578063e9e96c7014610452578063f48016ce1461048f575f80fd5b80636c36e7db146102ee5780637a9e5e4b1461030e5780638129fc1c146103215780638eb9000d146103295780638fb36037146103545780639505838e14610375575f80fd5b8063228e42ec11610110578063228e42ec1461021a578063297023ef1461019457806338a699a41461024557806354f1fa81146102685780635d4345cc146102075780635eede1741461027b575f80fd5b80630232ca491461014c578063036b1ffb1461019457806309648a9d146101a95780630d358181146101e25780630fad0eb114610207575b5f80fd5b61017761015a3660046121f2565b6001600160601b039081165f908152600460205260409020541690565b6040516001600160601b0390911681526020015b60405180910390f35b6101a76101a2366004612498565b6104b0565b005b6101d06101b73660046124f8565b5f90815260066020526040902054610100900460ff1690565b60405160ff909116815260200161018b565b6101d06101f036600461250f565b60ff9081165f908152602081905260409020541690565b6101a761021536600461252a565b61084e565b6101776102283660046121f2565b6001600160601b039081165f908152600260205260409020541690565b6102586102533660046124f8565b610870565b604051901515815260200161018b565b6101a7610276366004612561565b6108fe565b6102c46102893660046121f2565b6001600160601b039081165f908152600260209081526040808320546003835281842054600490935292205491831693908316929190911690565b604080516001600160601b039485168152928416602084015292169181019190915260600161018b565b6103016102fc3660046121f2565b610a5c565b60405161018b91906125e8565b6101a761031c366004612770565b610d1b565b6101a7610da1565b6101776103373660046121f2565b6001600160601b039081165f908152600360205260409020541690565b61035c610f1b565b6040516001600160e01b0319909116815260200161018b565b6101a761038336600461278b565b610f51565b6103ee6103963660046124f8565b60408051606080820183525f80835260208084018290529284018190529384526006825292829020825193840183525460ff80821685526101008204169184019190915262010000900464ffffffffff169082015290565b60408051825160ff9081168252602080850151909116908201529181015164ffffffffff169082015260600161018b565b61025861042d36600461250f565b61121c565b61043a611268565b6040516001600160a01b03909116815260200161018b565b6102586104603660046127d8565b60ff9283165f908152600160209081526040808320948616835293815283822092851682529190915220541690565b6104a261049d366004612824565b611283565b60405190815260200161018b565b6104bc335b5f3661130b565b5f6104c8846015611409565b90505f6104d58284611454565b90508360085f8481526020019081526020015f205f820151815f015f6101000a8154816001600160601b0302191690836001600160601b031602179055506020820151815f01600c6101000a8154816001600160601b0302191690836001600160601b031602179055506040820151815f0160186101000a81548167ffffffffffffffff021916908360c01c02179055506060820151816001015f6101000a8154816001600160601b0302191690836001600160601b03160217905550608082015181600101600c6101000a8154816001600160601b0302191690836001600160601b0316021790555060a08201518160010160186101000a81548167ffffffffffffffff021916908360c01c021790555060c0820151816002015f6101000a81548161ffff021916908361ffff16021790555060e08201518160020160026101000a81548161ffff021916908361ffff1602179055506101008201518160020160046101000a8154816001600160601b0302191690836001600160601b031602179055506101208201518160020160106101000a8154816001600160601b0302191690836001600160601b03160217905550610140820151816003015f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101608201518160030160056101000a81548164ffffffffff021916908364ffffffffff16021790555061018082015181600301600a6101000a81548164ffffffffff021916908364ffffffffff1602179055506101a082015181600301600f6101000a81548164ffffffffff021916908364ffffffffff1602179055506101c082015181600401908161074591906128cc565b506101e0820151600582019061075b90826128cc565b509050507fed426205a5233306a53e069e92c8dac3c77596236fbc23640310dec886874433610788601590565b60405163205466cf60e11b81526001600160601b038816600482015273__$94a2c899be079b00d952d0d84fffaa5c34$__906340a8cd9e90602401602060405180830381865af41580156107de573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108029190612987565b6040805160ff938416815260ff1990921660208301529186169181019190915233606082015232608082015264ffffffffff831660a082015260c0015b60405180910390a15050505050565b610857336104b5565b61086b610865836015611409565b82611454565b505050565b5f8181526006602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf906024015b602060405180830381865af41580156108d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f891906129b1565b92915050565b60ff8381165f908152602081905260409081902054905163037c8cb160e51b81529116600482015273__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015610960573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098491906129b1565b156109b25760405163ea01ac1f60e01b815230600482015260ff841660248201526044015b60405180910390fd5b60ff808516908316146109f35760405163bae587e160e01b815230600482015260ff80851660248301528086166044830152831660648201526084016109a9565b60ff8084165f90815260016020908152604080832088851684528252808320858516845290915290205416610a565760405163f33b49a360e01b815230600482015260ff80851660248301528086166044830152821660648201526084016109a9565b50505050565b60408051610200810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082018390526101a082018390526101c082018190526101e082015290600890610ae9846015611409565b815260208082019290925260409081015f2081516102008101835281546001600160601b038082168352600160601b8083048216968401969096526001600160c01b0319600160c01b9283900460c090811b821696850196909652600185015480831660608601529687048216608085015291909504841b1660a0820152600282015461ffff8082169483019490945262010000810490931660e082015264010000000083048416610100820152600160801b909204909216610120820152600382015464ffffffffff8082166101408401526501000000000082048116610160840152600160501b82048116610180840152600160781b909104166101a08201526004820180549192916101c084019190610c0490612850565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3090612850565b8015610c7b5780601f10610c5257610100808354040283529160200191610c7b565b820191905f5260205f20905b815481529060010190602001808311610c5e57829003601f168201915b50505050508152602001600582018054610c9490612850565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc090612850565b8015610d0b5780601f10610ce257610100808354040283529160200191610d0b565b820191905f5260205f20905b815481529060010190602001808311610cee57829003601f168201915b5050505050815250509050919050565b33610d24611268565b6001600160a01b0316816001600160a01b031614610d5f5760405162d1953b60e31b81526001600160a01b03821660048201526024016109a9565b816001600160a01b03163b5f03610d94576040516361798f2f60e11b81526001600160a01b03831660048201526024016109a9565b610d9d826117b8565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610de65750825b90505f8267ffffffffffffffff166001148015610e025750303b155b905081158015610e10575080155b15610e2e5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e5857845460ff60401b1916600160401b1785555b5f3390505f816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ebd91906129ca565b9050610ec881611818565b610ed061182c565b50508315610f1457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200161083f565b5050505050565b5f80516020612b6783398151915280545f9190600160a01b900460ff16610f42575f610f4b565b638fb3603760e01b5b91505090565b610f5a336104b5565b610f638261183e565b5f610f6f836015611409565b9050610f7a81611941565b5f8181526008602090815260409182902084518154928601519386015160c090811c600160c01b9081026001600160c01b036001600160601b03978816600160601b9081026001600160c01b0319988916968a1696909617959095178116919091178555606089015160018601805460808c015160a08d0151871c909502948a16909602959097169088161793909317909216919091179092559084015160028201805460e08701516101008801516101208901518716600160801b026bffffffffffffffffffffffff60801b19919097166401000000000216640100000000600160e01b031961ffff928316620100000263ffffffff199094169290951691909117919091179290921691909117929092179091556101408301516003820180546101608601516101808701516101a088015164ffffffffff908116600160781b0264ffffffffff60781b19928216600160501b029290921669ffffffffffffffffffff60501b19938216650100000000000269ffffffffffffffffffff1990951691909616179290921716929092179190911790556101c0830151839190600482019061112990826128cc565b506101e0820151600582019061113f90826128cc565b509050507fa5b14fadc476b5efb23bb6746fdbab861da268f6567c45170b7e0ed85846a38a61116c601590565b60405163205466cf60e11b81526001600160601b038616600482015273__$94a2c899be079b00d952d0d84fffaa5c34$__906340a8cd9e90602401602060405180830381865af41580156111c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e69190612987565b5f84815260066020526040902054610100900460ff16333260405161120f9594939291906129e5565b60405180910390a1505050565b60ff8181165f9081526020819052604080822054905163b2466acf60e01b8152921660048301529073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__9063b2466acf906024016108b9565b5f80516020612b67833981519152546001600160a01b031690565b604051637a400b6760e11b815260ff8316600482015260ff19821660248201525f9073__$4b9aaffa8d044614668dad578b824b8eee$__9063f48016ce906044015b602060405180830381865af41580156112e0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113049190612a1f565b9392505050565b5f80516020612b678339815191525f80611343611326611268565b873061133560045f8a8c612a36565b61133e91612a5d565b611d0b565b91509150816114015763ffffffff8116156113de57825460ff60a01b1916600160a01b178355611371611268565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b81526004016113a093929190612a95565b5f604051808303815f87803b1580156113b7575f80fd5b505af11580156113c9573d5f803e3d5ffd5b5050845460ff60a01b19168555506114019050565b60405162d1953b60e31b81526001600160a01b03871660048201526024016109a9565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff821660248201525f9073__$94a2c899be079b00d952d0d84fffaa5c34$__90633889a4c8906044016112c5565b60405163037c8cb160e51b815260ff821660048201525f9073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af41580156114a6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114ca91906129b1565b156114eb57604051631260077f60e21b8152600481018490526024016109a9565b505f82815260066020526040908190208054915163037c8cb160e51b8152610100830460ff16600482018190526201000090930464ffffffffff16929073__$2e1fcf62e7a1b3c2a33bdf2228c171b2be$__90636f91962090602401602060405180830381865af4158015611562573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061158691906129b1565b156115a7576040516310b1404560e21b8152600481018690526024016109a9565b60ff808516146117255781546115c390829060ff1681876108fe565b815461ff00191661010060ff861602178255604051634b00e98f60e11b8152600481018690527f84506304f95067670fb71bf9a5ee4e3fe45572216d62b28f8fda7716e1374a3a9073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af4158015611645573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116699190612ad4565b604051630713cfad60e31b81526004810188905273__$4b9aaffa8d044614668dad578b824b8eee$__9063389e7d6890602401602060405180830381865af41580156116b7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116db9190612987565b6040805160ff938416815260ff1990921660208301528285169082015290861660608201523360808201523260a082015264ffffffffff851660c082015260e00160405180910390a15b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af415801561176c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117909190612aef565b825464ffffffffff91909116620100000266ffffffffff000019909116179091555092915050565b5f80516020612b6783398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611820611e13565b61182981611e5c565b50565b611834611e13565b61183c611e6d565b565b6001600160601b0381165f9081526005602052604090819020549051638d38cd4b60e01b815264ffffffffff909116600482015273__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af41580156118ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118d091906129b1565b156118f9576040516314d5804160e01b81526001600160601b03821660048201526024016109a9565b61190281611ec5565b6040516001600160601b03821681527f1c26f28e2d8f145150c4243339c6b20813ea2bbc4e6f19ea2c9905060c0411a99060200160405180910390a150565b604051634b00e98f60e11b8152600481018290525f9073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af4158015611991573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119b59190612ad4565b60405163037c8cb160e51b815260ff8216600482015290915073__$0d958e68cba84670b8f4a3f2f2686b1c6b$__90636f91962090602401602060405180830381865af4158015611a08573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a2c91906129b1565b15611a4f57604051633d61be7d60e11b815260ff821660048201526024016109a9565b5f828152600660205260409081902080549151638d38cd4b60e01b81526201000090920464ffffffffff1660048301529073__$f55ca14f1ddce1b88fe30d23ae45f595f4$__90638d38cd4b90602401602060405180830381865af4158015611aba573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ade91906129b1565b15611b0857604051637791d47d60e01b81526004810184905260ff831660248201526044016109a9565b611b118261121c565b611b33576040516391eb5e8760e01b815260ff831660048201526024016109a9565b5f73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af4158015611b7b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b9f9190612aef565b60ff8085165f908152602081905260408120549293509116835460ff86811661ffff1990921691909117610100918316919091021766ffffffffff000019166201000064ffffffffff851602178455604051634b00e98f60e11b8152600481018790529091507f639b364b2f86951e3b326144e1001a789e555ab733d63541d72d71fee11acfe79073__$4b9aaffa8d044614668dad578b824b8eee$__90639601d31e90602401602060405180830381865af4158015611c61573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c859190612ad4565b604051630713cfad60e31b81526004810188905273__$4b9aaffa8d044614668dad578b824b8eee$__9063389e7d6890602401602060405180830381865af4158015611cd3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cf79190612987565b83333260405161083f9594939291906129e5565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611d799190612b0a565b5f60405180830381855afa9150503d805f8114611db1576040519150601f19603f3d011682016040523d82523d5f602084013e611db6565b606091505b50915091508115611e08576040815110611de85780806020019051810190611dde9190612b20565b9094509250611e08565b6020815110611e085780806020019051810190611e0591906129b1565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661183c57604051631afcd79f60e31b815260040160405180910390fd5b611e64611e13565b611829816117b8565b611e75611f64565b611e7d611f81565b611e85611fb5565b611e8d611ff9565b611e95612015565b611e9d612062565b611ea5612082565b611ead612096565b611eb56120d5565b611ebd6120df565b61183c6120f3565b73__$f55ca14f1ddce1b88fe30d23ae45f595f4$__639fa6a6e36040518163ffffffff1660e01b8152600401602060405180830381865af4158015611f0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f309190612aef565b6001600160601b03919091165f908152600560205260409020805464ffffffffff191664ffffffffff909216919091179055565b611f7160165b600561211b565b61183c60165b60055b60c861215d565b611f8b600b611f6a565b611f99600b6005606e61215d565b611fa7600b606e600561215d565b61183c600b606e60d261215d565b611fc16015600a61211b565b611fd06015600a5b601461215d565b611fdf6015600a5b601e61215d565b611fed6015600a602861215d565b61183c60156028611f7a565b612006602b5b603c61211b565b61183c602b5b603c60dc61215d565b612021602d603261211b565b61202d602d6032611fc9565b61203b602d6032603361215d565b612047602d6032611fd8565b612053602d6033611f7a565b61183c602d60335b604861215d565b61206c602e611fff565b612076602e61200c565b61183c602e603c61205b565b61208c602c611f6a565b61183c602c611f77565b6120a0602f611f6a565b6120af602f60055b604661215d565b6120bd602f6005600761215d565b6120c9602f60076120a8565b61183c602f600561205b565b61183c600f611f6a565b6120e9600c611f6a565b61183c6029611f6a565b6120fd600e611f6a565b6121076017611f6a565b6121116030611f6a565b61183c6031611f6a565b60ff8281165f90815260208190526040902054161561213c5761213c612b52565b60ff9182165f908152602081905260409020805460ff191691909216179055565b60ff8084165f908152600160209081526040808320868516845282528083208585168452909152902054161561219557612195612b52565b60ff9283165f9081526001602081815260408084209587168452948152848320939095168252919093529120805460ff19169091179055565b6001600160601b0381168114611829575f80fd5b80356121ed816121ce565b919050565b5f60208284031215612202575f80fd5b8135611304816121ce565b634e487b7160e01b5f52604160045260245ffd5b604051610200810167ffffffffffffffff811182821017156122455761224561220d565b60405290565b80356001600160c01b0319811681146121ed575f80fd5b803561ffff811681146121ed575f80fd5b64ffffffffff81168114611829575f80fd5b80356121ed81612273565b5f82601f83011261229f575f80fd5b813567ffffffffffffffff8111156122b9576122b961220d565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156122e8576122e861220d565b6040528181528382016020018510156122ff575f80fd5b816020850160208301375f918101602001919091529392505050565b5f610200828403121561232c575f80fd5b612334612221565b905061233f826121e2565b815261234d602083016121e2565b602082015261235e6040830161224b565b604082015261236f606083016121e2565b6060820152612380608083016121e2565b608082015261239160a0830161224b565b60a08201526123a260c08301612262565b60c08201526123b360e08301612262565b60e08201526123c561010083016121e2565b6101008201526123d861012083016121e2565b6101208201526123eb6101408301612285565b6101408201526123fe6101608301612285565b6101608201526124116101808301612285565b6101808201526124246101a08301612285565b6101a08201526101c082013567ffffffffffffffff811115612444575f80fd5b61245084828501612290565b6101c0830152506101e082013567ffffffffffffffff811115612471575f80fd5b61247d84828501612290565b6101e08301525092915050565b60ff81168114611829575f80fd5b5f805f606084860312156124aa575f80fd5b83356124b5816121ce565b9250602084013567ffffffffffffffff8111156124d0575f80fd5b6124dc8682870161231b565b92505060408401356124ed8161248a565b809150509250925092565b5f60208284031215612508575f80fd5b5035919050565b5f6020828403121561251f575f80fd5b81356113048161248a565b5f806040838503121561253b575f80fd5b8235612546816121ce565b915060208301356125568161248a565b809150509250929050565b5f805f8060808587031215612574575f80fd5b843561257f8161248a565b9350602085013561258f8161248a565b9250604085013561259f8161248a565b915060608501356125af8161248a565b939692955090935050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526126026020820183516001600160601b03169052565b5f602083015161261d60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160601b03811660808401525060808301516001600160601b03811660a08401525060a08301516001600160c01b0319811660c08401525060c083015161ffff811660e08401525060e083015161ffff8116610100840152506101008301516001600160601b038116610120840152506101208301516001600160601b0381166101408401525061014083015164ffffffffff81166101608401525061016083015164ffffffffff81166101808401525061018083015164ffffffffff81166101a0840152506101a083015164ffffffffff81166101c0840152506101c08301516102006101e08401526127346102208401826125ba565b90506101e0840151601f198483030161020085015261275382826125ba565b95945050505050565b6001600160a01b0381168114611829575f80fd5b5f60208284031215612780575f80fd5b81356113048161275c565b5f806040838503121561279c575f80fd5b82356127a7816121ce565b9150602083013567ffffffffffffffff8111156127c2575f80fd5b6127ce8582860161231b565b9150509250929050565b5f805f606084860312156127ea575f80fd5b83356127f58161248a565b925060208401356128058161248a565b915060408401356124ed8161248a565b60ff1981168114611829575f80fd5b5f8060408385031215612835575f80fd5b82356128408161248a565b9150602083013561255681612815565b600181811c9082168061286457607f821691505b60208210810361288257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561086b57805f5260205f20601f840160051c810160208510156128ad5750805b601f840160051c820191505b81811015610f14575f81556001016128b9565b815167ffffffffffffffff8111156128e6576128e661220d565b6128fa816128f48454612850565b84612888565b6020601f82116001811461292c575f83156129155750848201515b5f19600385901b1c1916600184901b178455610f14565b5f84815260208120601f198516915b8281101561295b578785015182556020948501946001909201910161293b565b508482101561297857868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f60208284031215612997575f80fd5b815161130481612815565b805180151581146121ed575f80fd5b5f602082840312156129c1575f80fd5b611304826129a2565b5f602082840312156129da575f80fd5b81516113048161275c565b60ff958616815260ff199490941660208501529190931660408301526001600160a01b039283166060830152909116608082015260a00190565b5f60208284031215612a2f575f80fd5b5051919050565b5f8085851115612a44575f80fd5b83861115612a50575f80fd5b5050820193919092039150565b80356001600160e01b03198116906004841015612a8e576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b5f60208284031215612ae4575f80fd5b81516113048161248a565b5f60208284031215612aff575f80fd5b815161130481612273565b5f82518060208501845e5f920191825250919050565b5f8060408385031215612b31575f80fd5b612b3a836129a2565b9150602083015163ffffffff81168114612556575f80fd5b634e487b7160e01b5f52600160045260245ffdfef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220d98784476d8d2564b3ef735f8b489d62956491c0557045d8d9219c01e741feb464736f6c634300081a0033",
1555
+ "linkReferences": {
1556
+ "contracts/type/Blocknumber.sol": {
1557
+ "BlocknumberLib": [
1558
+ {
1559
+ "length": 20,
1560
+ "start": 5959
1561
+ },
1562
+ {
1563
+ "length": 20,
1564
+ "start": 6292
1565
+ },
1566
+ {
1567
+ "length": 20,
1568
+ "start": 6818
1569
+ },
1570
+ {
1571
+ "length": 20,
1572
+ "start": 6998
1573
+ },
1574
+ {
1575
+ "length": 20,
1576
+ "start": 7911
1577
+ }
1578
+ ]
1579
+ },
1580
+ "contracts/type/Key32.sol": {
1581
+ "Key32Lib": [
1582
+ {
1583
+ "length": 20,
1584
+ "start": 4807
1585
+ },
1586
+ {
1587
+ "length": 20,
1588
+ "start": 5677
1589
+ },
1590
+ {
1591
+ "length": 20,
1592
+ "start": 5791
1593
+ },
1594
+ {
1595
+ "length": 20,
1596
+ "start": 6521
1597
+ },
1598
+ {
1599
+ "length": 20,
1600
+ "start": 7241
1601
+ },
1602
+ {
1603
+ "length": 20,
1604
+ "start": 7355
1605
+ }
1606
+ ]
1607
+ },
1608
+ "contracts/type/NftId.sol": {
1609
+ "NftIdLib": [
1610
+ {
1611
+ "length": 20,
1612
+ "start": 1990
1613
+ },
1614
+ {
1615
+ "length": 20,
1616
+ "start": 4522
1617
+ },
1618
+ {
1619
+ "length": 20,
1620
+ "start": 5202
1621
+ }
1622
+ ]
1623
+ },
1624
+ "contracts/type/ObjectType.sol": {
1625
+ "ObjectTypeLib": [
1626
+ {
1627
+ "length": 20,
1628
+ "start": 6640
1629
+ }
1630
+ ]
1631
+ },
1632
+ "contracts/type/StateId.sol": {
1633
+ "StateIdLib": [
1634
+ {
1635
+ "length": 20,
1636
+ "start": 2235
1637
+ },
1638
+ {
1639
+ "length": 20,
1640
+ "start": 2376
1641
+ },
1642
+ {
1643
+ "length": 20,
1644
+ "start": 4710
1645
+ },
1646
+ {
1647
+ "length": 20,
1648
+ "start": 5262
1649
+ },
1650
+ {
1651
+ "length": 20,
1652
+ "start": 5450
1653
+ }
1654
+ ]
1655
+ }
1656
+ },
1657
+ "deployedLinkReferences": {
1658
+ "contracts/type/Blocknumber.sol": {
1659
+ "BlocknumberLib": [
1660
+ {
1661
+ "length": 20,
1662
+ "start": 5927
1663
+ },
1664
+ {
1665
+ "length": 20,
1666
+ "start": 6260
1667
+ },
1668
+ {
1669
+ "length": 20,
1670
+ "start": 6786
1671
+ },
1672
+ {
1673
+ "length": 20,
1674
+ "start": 6966
1675
+ },
1676
+ {
1677
+ "length": 20,
1678
+ "start": 7879
1679
+ }
1680
+ ]
1681
+ },
1682
+ "contracts/type/Key32.sol": {
1683
+ "Key32Lib": [
1684
+ {
1685
+ "length": 20,
1686
+ "start": 4775
1687
+ },
1688
+ {
1689
+ "length": 20,
1690
+ "start": 5645
1691
+ },
1692
+ {
1693
+ "length": 20,
1694
+ "start": 5759
1695
+ },
1696
+ {
1697
+ "length": 20,
1698
+ "start": 6489
1699
+ },
1700
+ {
1701
+ "length": 20,
1702
+ "start": 7209
1703
+ },
1704
+ {
1705
+ "length": 20,
1706
+ "start": 7323
1707
+ }
1708
+ ]
1709
+ },
1710
+ "contracts/type/NftId.sol": {
1711
+ "NftIdLib": [
1712
+ {
1713
+ "length": 20,
1714
+ "start": 1958
1715
+ },
1716
+ {
1717
+ "length": 20,
1718
+ "start": 4490
1719
+ },
1720
+ {
1721
+ "length": 20,
1722
+ "start": 5170
1723
+ }
1724
+ ]
1725
+ },
1726
+ "contracts/type/ObjectType.sol": {
1727
+ "ObjectTypeLib": [
1728
+ {
1729
+ "length": 20,
1730
+ "start": 6608
1731
+ }
1732
+ ]
1733
+ },
1734
+ "contracts/type/StateId.sol": {
1735
+ "StateIdLib": [
1736
+ {
1737
+ "length": 20,
1738
+ "start": 2203
1739
+ },
1740
+ {
1741
+ "length": 20,
1742
+ "start": 2344
1743
+ },
1744
+ {
1745
+ "length": 20,
1746
+ "start": 4678
1747
+ },
1748
+ {
1749
+ "length": 20,
1750
+ "start": 5230
1751
+ },
1752
+ {
1753
+ "length": 20,
1754
+ "start": 5418
1755
+ }
1756
+ ]
1757
+ }
1758
+ }
1759
+ }