@etherisc/gif-next 0.0.2-e0ff180-567 → 0.0.2-e14821a-976

Sign up to get free protection for your applications and to get access to all the features.
Files changed (739) hide show
  1. package/README.md +153 -22
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1088 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +803 -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 +1416 -0
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +803 -0
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +4 -0
  17. package/artifacts/contracts/{instance/module/ISetup.sol/ISetup.json → authorization/IAccess.sol/IAccess.json} +2 -2
  18. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +4 -0
  19. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +1372 -0
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  21. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +455 -0
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +397 -0
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  25. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +659 -0
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  27. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1247 -0
  28. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +4 -0
  29. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +818 -0
  30. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  31. package/artifacts/contracts/{components/IDistributionComponent.sol/IDistributionComponent.json → distribution/Distribution.sol/Distribution.json} +311 -328
  32. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  33. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1835 -0
  34. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +943 -0
  36. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  37. package/artifacts/contracts/{components/Component.sol/Component.json → distribution/IDistributionComponent.sol/IDistributionComponent.json} +276 -280
  38. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  39. package/artifacts/contracts/{instance/service → distribution}/IDistributionService.sol/IDistributionService.json +534 -340
  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 +1487 -0
  44. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  45. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +818 -0
  46. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  47. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +2056 -0
  48. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  49. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +818 -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 +1442 -0
  54. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  55. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +818 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1174 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1650 -0
  60. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +4 -0
  61. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +818 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  63. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2588 -0
  64. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +4 -0
  65. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +818 -0
  66. package/artifacts/contracts/instance/BaseStore.sol/BaseStore.dbg.json +4 -0
  67. package/artifacts/contracts/instance/{base/IKeyValueStore.sol/IKeyValueStore.json → BaseStore.sol/BaseStore.json} +87 -184
  68. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +4 -0
  69. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +851 -0
  70. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.dbg.json +4 -0
  71. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.json +304 -0
  72. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  73. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +573 -1775
  74. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +530 -71
  76. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  77. package/artifacts/contracts/instance/Instance.sol/Instance.json +639 -2578
  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 +850 -0
  82. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  83. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1866 -636
  84. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +571 -386
  86. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  87. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +216 -172
  88. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  89. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3039 -0
  90. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.dbg.json +4 -0
  91. package/artifacts/contracts/instance/ProductStore.sol/ProductStore.json +3427 -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/{Cloneable.sol → base/Cloneable.sol}/Cloneable.json +1 -54
  98. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +4 -0
  99. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +10 -0
  100. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +4 -0
  101. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +223 -0
  102. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +4 -0
  103. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +192 -0
  104. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +4 -0
  105. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +168 -0
  106. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  107. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  108. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  109. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  110. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  111. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  112. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  113. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  114. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +960 -0
  115. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  116. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +823 -0
  117. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  118. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  119. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  120. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.json +762 -0
  121. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  122. package/artifacts/contracts/{instance/service/IBundleService.sol/IBundleService.json → oracle/IOracleService.sol/IOracleService.json} +328 -225
  123. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  124. package/artifacts/contracts/oracle/Oracle.sol/Oracle.json +876 -0
  125. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  126. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +1055 -0
  127. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  128. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +823 -0
  129. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  130. package/artifacts/contracts/{components/Pool.sol/Pool.json → pool/BasicPool.sol/BasicPool.json} +357 -488
  131. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  132. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +818 -0
  133. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  134. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1464 -0
  135. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  136. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +879 -0
  137. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  138. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +1033 -0
  139. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  140. package/artifacts/contracts/{components/IProductComponent.sol/IProductComponent.json → pool/IPoolComponent.sol/IPoolComponent.json} +349 -284
  141. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  142. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1397 -0
  143. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  144. package/artifacts/contracts/{components/IPoolComponent.sol/IPoolComponent.json → pool/Pool.sol/Pool.json} +382 -418
  145. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  146. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +522 -0
  147. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  148. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1807 -0
  149. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  150. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +879 -0
  151. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  152. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +1062 -0
  153. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  154. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +803 -0
  155. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  156. package/artifacts/contracts/{components/Product.sol/Product.json → product/BasicProduct.sol/BasicProduct.json} +492 -497
  157. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  158. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +818 -0
  159. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  160. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1546 -0
  161. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  162. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +891 -0
  163. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  164. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IApplicationService.sol/IApplicationService.json} +334 -374
  165. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  166. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +1104 -0
  167. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  168. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +1036 -0
  169. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  170. package/artifacts/contracts/{instance/service/IApplicationService.sol/IApplicationService.json → product/IPricingService.sol/IPricingService.json} +185 -155
  171. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  172. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +1006 -0
  173. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  174. package/artifacts/contracts/{instance/service/IPolicyService.sol/IPolicyService.json → product/IRiskService.sol/IRiskService.json} +223 -164
  175. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  176. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1417 -0
  177. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  178. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +783 -0
  179. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  180. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +867 -0
  181. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  182. package/artifacts/contracts/product/PricingService.sol/PricingService.json +958 -0
  183. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  184. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +827 -0
  185. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  186. package/artifacts/contracts/product/Product.sol/Product.json +1120 -0
  187. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  188. package/artifacts/contracts/product/RiskService.sol/RiskService.json +886 -0
  189. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  190. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +787 -0
  191. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  192. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +59 -16
  193. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  194. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +499 -34
  195. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  196. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +315 -109
  197. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  198. package/artifacts/contracts/registry/IRelease.sol/IRelease.json +24 -0
  199. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  200. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -18
  201. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  202. package/artifacts/contracts/registry/Registry.sol/Registry.json +987 -131
  203. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  204. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2160 -0
  205. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  206. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1087 -0
  207. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  208. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +415 -262
  209. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  210. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +227 -111
  211. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  212. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2152 -0
  213. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  214. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  215. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  216. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1389 -0
  217. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  218. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +696 -0
  219. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  220. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +360 -137
  221. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  222. package/artifacts/contracts/{instance/base/ComponentService.sol/ComponentService.json → shared/Component.sol/Component.json} +289 -188
  223. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  224. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1577 -0
  225. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  226. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +875 -0
  227. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  228. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +632 -0
  229. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  230. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +24 -0
  231. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  232. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  233. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  234. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  235. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  236. package/artifacts/contracts/{components → shared}/IComponent.sol/IComponent.json +153 -138
  237. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  238. package/artifacts/contracts/{components/Distribution.sol/Distribution.json → shared/IComponentService.sol/IComponentService.json} +584 -738
  239. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  240. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +697 -0
  241. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  242. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  243. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  244. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +38 -10
  245. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  246. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +59 -13
  247. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  248. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +163 -3
  249. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  250. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +0 -13
  251. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  252. package/artifacts/contracts/shared/IService.sol/IService.json +98 -5
  253. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  254. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +66 -0
  255. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  256. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +798 -0
  257. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  258. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  259. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  260. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  261. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  262. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +57 -67
  263. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  264. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +36 -73
  265. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  266. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +160 -102
  267. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  268. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -28
  269. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  270. package/artifacts/contracts/shared/Service.sol/Service.json +110 -111
  271. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  272. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +635 -8
  273. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  274. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +484 -0
  275. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  276. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +172 -0
  277. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  278. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +2747 -0
  279. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  280. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +1147 -0
  281. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.dbg.json +4 -0
  282. package/artifacts/contracts/staking/ITargetLimitHandler.sol/ITargetLimitHandler.json +50 -0
  283. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  284. package/artifacts/contracts/staking/Staking.sol/Staking.json +3188 -0
  285. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.dbg.json +4 -0
  286. package/artifacts/contracts/staking/StakingLib.sol/StakingLib.json +470 -0
  287. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  288. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +860 -0
  289. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  290. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +704 -0
  291. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  292. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +1357 -0
  293. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  294. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +779 -0
  295. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  296. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +3097 -0
  297. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.dbg.json +4 -0
  298. package/artifacts/contracts/staking/TargetHandler.sol/TargetHandler.json +309 -0
  299. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  300. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +679 -0
  301. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  302. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +10 -0
  303. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  304. package/artifacts/contracts/type/Amount.sol/AmountLib.json +398 -0
  305. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  306. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +251 -0
  307. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.dbg.json +4 -0
  308. package/artifacts/contracts/type/ChainId.sol/ChainIdLib.json +193 -0
  309. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  310. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +203 -0
  311. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  312. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  313. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  314. package/artifacts/contracts/type/Fee.sol/FeeLib.json +373 -0
  315. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  316. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  317. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  318. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  319. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  320. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +228 -0
  321. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  322. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  323. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  324. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +241 -0
  325. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  326. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  327. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  328. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  329. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  330. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  331. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  332. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +204 -0
  333. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  334. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +254 -0
  335. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  336. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +289 -0
  337. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  338. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +148 -0
  339. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  340. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  341. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  342. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +105 -0
  343. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  344. package/artifacts/contracts/type/String.sol/StrLib.json +180 -0
  345. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  346. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +312 -0
  347. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  348. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +572 -0
  349. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  350. package/artifacts/contracts/type/Version.sol/VersionLib.json +158 -0
  351. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  352. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +167 -0
  353. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  354. package/artifacts/contracts/{shared → upgradeability}/IVersionable.sol/IVersionable.json +11 -1
  355. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  356. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +669 -0
  357. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  358. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  359. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  360. package/artifacts/contracts/{shared → upgradeability}/Versionable.sol/Versionable.json +11 -1
  361. package/contracts/accounting/AccountingService.sol +274 -0
  362. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  363. package/contracts/accounting/IAccountingService.sol +47 -0
  364. package/contracts/authorization/AccessAdmin.sol +780 -0
  365. package/contracts/authorization/AccessAdminLib.sol +396 -0
  366. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  367. package/contracts/authorization/Authorization.sol +169 -0
  368. package/contracts/authorization/IAccess.sol +67 -0
  369. package/contracts/authorization/IAccessAdmin.sol +144 -0
  370. package/contracts/authorization/IAuthorization.sol +26 -0
  371. package/contracts/authorization/IServiceAuthorization.sol +78 -0
  372. package/contracts/authorization/ServiceAuthorization.sol +320 -0
  373. package/contracts/distribution/BasicDistribution.sol +140 -0
  374. package/contracts/distribution/BasicDistributionAuthorization.sol +67 -0
  375. package/contracts/distribution/Distribution.sol +245 -0
  376. package/contracts/distribution/DistributionService.sol +465 -0
  377. package/contracts/distribution/DistributionServiceManager.sol +39 -0
  378. package/contracts/distribution/IDistributionComponent.sol +45 -0
  379. package/contracts/distribution/IDistributionService.sol +115 -0
  380. package/contracts/examples/fire/DamageLevel.sol +59 -0
  381. package/contracts/examples/fire/FirePool.sol +86 -0
  382. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  383. package/contracts/examples/fire/FireProduct.sol +433 -0
  384. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  385. package/contracts/examples/fire/FireUSD.sol +26 -0
  386. package/contracts/examples/unpermissioned/SimpleDistribution.sol +81 -0
  387. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  388. package/contracts/examples/unpermissioned/SimpleOracle.sol +133 -0
  389. package/contracts/examples/unpermissioned/SimplePool.sol +102 -0
  390. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  391. package/contracts/examples/unpermissioned/SimpleProduct.sol +437 -0
  392. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  393. package/contracts/instance/BaseStore.sol +93 -0
  394. package/contracts/instance/BundleSet.sol +130 -0
  395. package/contracts/instance/IBaseStore.sol +37 -0
  396. package/contracts/instance/IInstance.sol +131 -73
  397. package/contracts/instance/IInstanceService.sol +86 -39
  398. package/contracts/instance/Instance.sol +248 -224
  399. package/contracts/instance/InstanceAdmin.sol +379 -0
  400. package/contracts/instance/InstanceAuthorizationV3.sol +275 -0
  401. package/contracts/instance/InstanceReader.sol +513 -192
  402. package/contracts/instance/InstanceService.sol +432 -394
  403. package/contracts/instance/InstanceServiceManager.sol +14 -29
  404. package/contracts/instance/InstanceStore.sol +323 -0
  405. package/contracts/instance/ProductStore.sol +290 -0
  406. package/contracts/instance/RiskSet.sol +126 -0
  407. package/contracts/instance/TargetNames.sol +10 -0
  408. package/contracts/instance/base/BalanceStore.sol +121 -0
  409. package/contracts/instance/base/Cloneable.sol +28 -0
  410. package/contracts/instance/base/ObjectCounter.sol +20 -0
  411. package/contracts/instance/base/ObjectLifecycle.sol +109 -0
  412. package/contracts/instance/base/ObjectSet.sol +77 -0
  413. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  414. package/contracts/instance/module/IBundle.sol +9 -11
  415. package/contracts/instance/module/IComponents.sol +43 -24
  416. package/contracts/instance/module/IDistribution.sol +25 -12
  417. package/contracts/instance/module/IPolicy.sol +71 -38
  418. package/contracts/instance/module/IRisk.sol +6 -1
  419. package/contracts/{test/Usdc.sol → mock/Dip.sol} +6 -6
  420. package/contracts/oracle/BasicOracle.sol +44 -0
  421. package/contracts/oracle/BasicOracleAuthorization.sol +53 -0
  422. package/contracts/oracle/IOracle.sol +41 -0
  423. package/contracts/oracle/IOracleComponent.sol +33 -0
  424. package/contracts/oracle/IOracleService.sol +66 -0
  425. package/contracts/oracle/Oracle.sol +152 -0
  426. package/contracts/oracle/OracleService.sol +310 -0
  427. package/contracts/oracle/OracleServiceManager.sol +39 -0
  428. package/contracts/pool/BasicPool.sol +161 -0
  429. package/contracts/pool/BasicPoolAuthorization.sol +81 -0
  430. package/contracts/pool/BundleService.sol +401 -0
  431. package/contracts/pool/BundleServiceManager.sol +39 -0
  432. package/contracts/pool/IBundleService.sol +116 -0
  433. package/contracts/pool/IPoolComponent.sol +62 -0
  434. package/contracts/pool/IPoolService.sol +167 -0
  435. package/contracts/pool/Pool.sol +331 -0
  436. package/contracts/pool/PoolLib.sol +341 -0
  437. package/contracts/pool/PoolService.sol +635 -0
  438. package/contracts/pool/PoolServiceManager.sol +39 -0
  439. package/contracts/product/ApplicationService.sol +343 -0
  440. package/contracts/{instance/service → product}/ApplicationServiceManager.sol +12 -9
  441. package/contracts/product/BasicProduct.sol +48 -0
  442. package/contracts/product/BasicProductAuthorization.sol +63 -0
  443. package/contracts/product/ClaimService.sol +642 -0
  444. package/contracts/{instance/service → product}/ClaimServiceManager.sol +12 -9
  445. package/contracts/{instance/service → product}/IApplicationService.sol +41 -35
  446. package/contracts/product/IClaimService.sol +136 -0
  447. package/contracts/product/IPolicyService.sol +102 -0
  448. package/contracts/product/IPricingService.sol +40 -0
  449. package/contracts/product/IProductComponent.sol +62 -0
  450. package/contracts/product/IRiskService.sol +48 -0
  451. package/contracts/product/PolicyService.sol +680 -0
  452. package/contracts/product/PolicyServiceLib.sol +139 -0
  453. package/contracts/product/PolicyServiceManager.sol +39 -0
  454. package/contracts/product/PricingService.sol +318 -0
  455. package/contracts/product/PricingServiceManager.sol +39 -0
  456. package/contracts/product/Product.sol +491 -0
  457. package/contracts/product/RiskService.sol +189 -0
  458. package/contracts/product/RiskServiceManager.sol +39 -0
  459. package/contracts/registry/ChainNft.sol +79 -40
  460. package/contracts/registry/IRegistry.sol +104 -33
  461. package/contracts/registry/IRegistryService.sol +34 -40
  462. package/contracts/registry/IRelease.sol +29 -0
  463. package/contracts/registry/ITransferInterceptor.sol +1 -2
  464. package/contracts/registry/Registry.sol +469 -200
  465. package/contracts/registry/RegistryAdmin.sol +191 -0
  466. package/contracts/registry/RegistryAuthorization.sol +336 -0
  467. package/contracts/registry/RegistryService.sol +90 -131
  468. package/contracts/registry/RegistryServiceManager.sol +23 -32
  469. package/contracts/registry/ReleaseAdmin.sol +195 -0
  470. package/contracts/registry/ReleaseLifecycle.sol +32 -0
  471. package/contracts/registry/ReleaseRegistry.sol +525 -0
  472. package/contracts/registry/ServiceAuthorizationV3.sol +342 -0
  473. package/contracts/registry/TokenRegistry.sol +265 -64
  474. package/contracts/shared/Component.sol +210 -0
  475. package/contracts/shared/ComponentService.sol +705 -0
  476. package/contracts/shared/ComponentServiceManager.sol +38 -0
  477. package/contracts/shared/ContractLib.sol +312 -0
  478. package/contracts/shared/IComponent.sol +58 -0
  479. package/contracts/shared/IComponentService.sol +111 -0
  480. package/contracts/shared/IInstanceLinkedComponent.sol +30 -0
  481. package/contracts/{instance/base → shared}/ILifecycle.sol +5 -4
  482. package/contracts/shared/INftOwnable.sol +6 -2
  483. package/contracts/shared/IPolicyHolder.sol +23 -14
  484. package/contracts/shared/IRegisterable.sol +22 -1
  485. package/contracts/shared/IRegistryLinked.sol +0 -1
  486. package/contracts/shared/IService.sol +12 -5
  487. package/contracts/shared/InitializableERC165.sol +49 -0
  488. package/contracts/shared/InstanceLinkedComponent.sol +192 -0
  489. package/contracts/shared/Lifecycle.sol +88 -0
  490. package/contracts/shared/NftIdSet.sol +65 -0
  491. package/contracts/shared/NftOwnable.sol +39 -30
  492. package/contracts/shared/PolicyHolder.sol +23 -41
  493. package/contracts/shared/Registerable.sol +54 -22
  494. package/contracts/shared/RegistryLinked.sol +11 -21
  495. package/contracts/shared/Service.sol +36 -41
  496. package/contracts/shared/TokenHandler.sol +322 -13
  497. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  498. package/contracts/staking/IStaking.sol +367 -0
  499. package/contracts/staking/IStakingService.sol +127 -0
  500. package/contracts/staking/ITargetLimitHandler.sol +17 -0
  501. package/contracts/staking/Staking.sol +797 -0
  502. package/contracts/staking/StakingLib.sol +195 -0
  503. package/contracts/staking/StakingManager.sol +53 -0
  504. package/contracts/staking/StakingReader.sol +171 -0
  505. package/contracts/staking/StakingService.sol +320 -0
  506. package/contracts/staking/StakingServiceManager.sol +46 -0
  507. package/contracts/staking/StakingStore.sol +1368 -0
  508. package/contracts/staking/TargetHandler.sol +132 -0
  509. package/contracts/staking/TargetManagerLib.sol +234 -0
  510. package/contracts/{types → type}/AddressSet.sol +1 -1
  511. package/contracts/type/Amount.sol +154 -0
  512. package/contracts/{types → type}/Blocknumber.sol +36 -13
  513. package/contracts/type/ChainId.sol +101 -0
  514. package/contracts/{types → type}/ClaimId.sol +31 -3
  515. package/contracts/{types → type}/Fee.sol +28 -26
  516. package/contracts/{types → type}/Key32.sol +2 -2
  517. package/contracts/type/Key32Set.sol +62 -0
  518. package/contracts/{types → type}/NftId.sol +21 -16
  519. package/contracts/{types → type}/NftIdSet.sol +2 -2
  520. package/contracts/type/ObjectType.sol +307 -0
  521. package/contracts/type/PayoutId.sol +82 -0
  522. package/contracts/{types → type}/Referral.sol +2 -1
  523. package/contracts/type/RequestId.sol +75 -0
  524. package/contracts/type/RiskId.sol +75 -0
  525. package/contracts/type/RoleId.sol +180 -0
  526. package/contracts/type/Seconds.sol +120 -0
  527. package/contracts/type/Selector.sol +107 -0
  528. package/contracts/{types → type}/StateId.sol +47 -4
  529. package/contracts/type/String.sol +65 -0
  530. package/contracts/{types → type}/Timestamp.sol +23 -7
  531. package/contracts/type/UFixed.sol +263 -0
  532. package/contracts/{types → type}/Version.sol +58 -7
  533. package/contracts/{shared → upgradeability}/IVersionable.sol +4 -1
  534. package/contracts/{shared → upgradeability}/ProxyManager.sol +118 -41
  535. package/contracts/upgradeability/UpgradableProxyWithAdmin.sol +28 -0
  536. package/contracts/{shared → upgradeability}/Versionable.sol +9 -6
  537. package/package.json +12 -8
  538. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  539. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  540. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +0 -4
  541. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  542. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  543. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  544. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  545. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  546. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  547. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +0 -1206
  548. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +0 -4
  549. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +0 -778
  550. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +0 -4
  551. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  552. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1330
  553. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  554. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +0 -256
  555. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +0 -4
  556. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  557. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  558. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  559. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -532
  560. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  561. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -194
  562. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  563. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -237
  564. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  565. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  566. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +0 -10
  567. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +0 -4
  568. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +0 -1039
  569. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +0 -4
  570. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +0 -673
  571. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +0 -4
  572. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +0 -1231
  573. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +0 -4
  574. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +0 -721
  575. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +0 -4
  576. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +0 -817
  577. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +0 -4
  578. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +0 -641
  579. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  580. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -1798
  581. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
  582. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -805
  583. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +0 -4
  584. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +0 -4
  585. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +0 -4
  586. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +0 -475
  587. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  588. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +0 -4
  589. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  590. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  591. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +0 -450
  592. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +0 -4
  593. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +0 -1092
  594. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
  595. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -697
  596. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  597. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -1237
  598. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
  599. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -661
  600. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  601. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -840
  602. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  603. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -653
  604. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  605. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -285
  606. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +0 -4
  607. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +0 -559
  608. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  609. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  610. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  611. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -73
  612. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  613. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  614. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -582
  615. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  616. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  617. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  618. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  619. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  620. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  621. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -383
  622. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  623. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  624. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  625. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -596
  626. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  627. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  628. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  629. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  630. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  631. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -104
  632. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  633. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  634. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  635. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +0 -10
  636. package/artifacts/contracts/types/Amount.sol/AmountLib.dbg.json +0 -4
  637. package/artifacts/contracts/types/Amount.sol/AmountLib.json +0 -161
  638. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  639. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +0 -174
  640. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  641. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  642. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +0 -4
  643. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +0 -100
  644. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  645. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +0 -104
  646. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  647. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -288
  648. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  649. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -125
  650. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  651. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -166
  652. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  653. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -33
  654. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  655. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  656. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  657. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +0 -92
  658. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +0 -4
  659. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +0 -100
  660. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  661. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -142
  662. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  663. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +0 -86
  664. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  665. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -156
  666. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +0 -4
  667. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +0 -124
  668. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  669. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +0 -92
  670. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  671. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -267
  672. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  673. package/artifacts/contracts/types/UFixed.sol/MathLib.json +0 -10
  674. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  675. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +0 -479
  676. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  677. package/artifacts/contracts/types/Version.sol/VersionLib.json +0 -177
  678. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  679. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -49
  680. package/contracts/components/Component.sol +0 -253
  681. package/contracts/components/Distribution.sol +0 -280
  682. package/contracts/components/IComponent.sol +0 -76
  683. package/contracts/components/IDistributionComponent.sol +0 -71
  684. package/contracts/components/IPoolComponent.sol +0 -113
  685. package/contracts/components/IProductComponent.sol +0 -40
  686. package/contracts/components/Pool.sol +0 -303
  687. package/contracts/components/Product.sol +0 -293
  688. package/contracts/instance/AccessManagerUpgradeableInitializeable.sol +0 -13
  689. package/contracts/instance/BundleManager.sol +0 -127
  690. package/contracts/instance/Cloneable.sol +0 -51
  691. package/contracts/instance/InstanceAccessManager.sol +0 -527
  692. package/contracts/instance/ObjectManager.sol +0 -82
  693. package/contracts/instance/base/ComponentService.sol +0 -121
  694. package/contracts/instance/base/IKeyValueStore.sol +0 -49
  695. package/contracts/instance/base/KeyValueStore.sol +0 -180
  696. package/contracts/instance/base/Lifecycle.sol +0 -109
  697. package/contracts/instance/module/IAccess.sol +0 -54
  698. package/contracts/instance/module/ISetup.sol +0 -33
  699. package/contracts/instance/module/ITreasury.sol +0 -23
  700. package/contracts/instance/service/ApplicationService.sol +0 -350
  701. package/contracts/instance/service/BundleService.sol +0 -431
  702. package/contracts/instance/service/BundleServiceManager.sol +0 -51
  703. package/contracts/instance/service/ClaimService.sol +0 -151
  704. package/contracts/instance/service/DistributionService.sol +0 -435
  705. package/contracts/instance/service/DistributionServiceManager.sol +0 -51
  706. package/contracts/instance/service/IBundleService.sol +0 -93
  707. package/contracts/instance/service/IClaimService.sol +0 -61
  708. package/contracts/instance/service/IDistributionService.sol +0 -99
  709. package/contracts/instance/service/IPolicyService.sol +0 -72
  710. package/contracts/instance/service/IPoolService.sol +0 -99
  711. package/contracts/instance/service/IProductService.sol +0 -40
  712. package/contracts/instance/service/PolicyService.sol +0 -362
  713. package/contracts/instance/service/PolicyServiceManager.sol +0 -54
  714. package/contracts/instance/service/PoolService.sol +0 -303
  715. package/contracts/instance/service/PoolServiceManager.sol +0 -51
  716. package/contracts/instance/service/ProductService.sol +0 -210
  717. package/contracts/instance/service/ProductServiceManager.sol +0 -54
  718. package/contracts/registry/RegistryAccessManager.sol +0 -216
  719. package/contracts/registry/ReleaseManager.sol +0 -324
  720. package/contracts/shared/ContractDeployerLib.sol +0 -72
  721. package/contracts/shared/ERC165.sol +0 -27
  722. package/contracts/shared/UpgradableProxyWithAdmin.sol +0 -16
  723. package/contracts/test/TestFee.sol +0 -25
  724. package/contracts/test/TestRegisterable.sol +0 -18
  725. package/contracts/test/TestRoleId.sol +0 -14
  726. package/contracts/test/TestService.sol +0 -25
  727. package/contracts/test/TestToken.sol +0 -26
  728. package/contracts/test/TestVersion.sol +0 -44
  729. package/contracts/test/TestVersionable.sol +0 -17
  730. package/contracts/types/Amount.sol +0 -60
  731. package/contracts/types/ChainId.sol +0 -38
  732. package/contracts/types/NumberId.sol +0 -52
  733. package/contracts/types/ObjectType.sol +0 -157
  734. package/contracts/types/PayoutId.sol +0 -54
  735. package/contracts/types/RiskId.sol +0 -43
  736. package/contracts/types/RoleId.sol +0 -97
  737. package/contracts/types/Seconds.sol +0 -54
  738. package/contracts/types/UFixed.sol +0 -326
  739. /package/contracts/{types → type}/DistributorType.sol +0 -0
@@ -0,0 +1,1357 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "StakingService",
4
+ "sourceName": "contracts/staking/StakingService.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": "address",
48
+ "name": "authority",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "name": "ErrorAuthorityInvalid",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "nftId",
60
+ "type": "uint96"
61
+ }
62
+ ],
63
+ "name": "ErrorNftOwnableAlreadyLinked",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "contractAddress",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "ErrorNftOwnableContractNotRegistered",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "ErrorNftOwnableInitialOwnerZero",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "NftId",
86
+ "name": "nftId",
87
+ "type": "uint96"
88
+ },
89
+ {
90
+ "internalType": "ObjectType",
91
+ "name": "expectedObjectType",
92
+ "type": "uint8"
93
+ }
94
+ ],
95
+ "name": "ErrorNftOwnableInvalidType",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "account",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "ErrorNftOwnableNotOwner",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [
111
+ {
112
+ "internalType": "address",
113
+ "name": "registryAddress",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "ErrorNotRegistry",
118
+ "type": "error"
119
+ },
120
+ {
121
+ "inputs": [],
122
+ "name": "ErrorRegisterableNotActive",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [
127
+ {
128
+ "internalType": "NftId",
129
+ "name": "targetNftId",
130
+ "type": "uint96"
131
+ },
132
+ {
133
+ "internalType": "address",
134
+ "name": "tokenHandler",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "amount",
140
+ "type": "uint256"
141
+ },
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "allowance",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "name": "ErrorStakingServiceDipAllowanceInsufficient",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "NftId",
155
+ "name": "targetNftId",
156
+ "type": "uint96"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "amount",
161
+ "type": "uint256"
162
+ },
163
+ {
164
+ "internalType": "uint256",
165
+ "name": "balance",
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "name": "ErrorStakingServiceDipBalanceInsufficient",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "NftId",
176
+ "name": "targetNftId",
177
+ "type": "uint96"
178
+ }
179
+ ],
180
+ "name": "ErrorStakingServiceNotActiveTargetNftId",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "stakingAddress",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "name": "ErrorStakingServiceNotStaking",
192
+ "type": "error"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "account",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "ErrorStakingServiceNotStakingOwner",
203
+ "type": "error"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "internalType": "address",
209
+ "name": "stakingAddress",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "ErrorStakingServiceNotSupportingIStaking",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [
218
+ {
219
+ "internalType": "NftId",
220
+ "name": "targetNftId",
221
+ "type": "uint96"
222
+ }
223
+ ],
224
+ "name": "ErrorStakingServiceNotTargetNftId",
225
+ "type": "error"
226
+ },
227
+ {
228
+ "inputs": [
229
+ {
230
+ "internalType": "NftId",
231
+ "name": "targetNftId",
232
+ "type": "uint96"
233
+ }
234
+ ],
235
+ "name": "ErrorStakingServiceTargetUnknown",
236
+ "type": "error"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "ErrorStakingServiceZeroTargetNftId",
241
+ "type": "error"
242
+ },
243
+ {
244
+ "inputs": [],
245
+ "name": "ErrorVersionableInitializeNotImplemented",
246
+ "type": "error"
247
+ },
248
+ {
249
+ "inputs": [],
250
+ "name": "ErrorVersionableUpgradeNotImplemented",
251
+ "type": "error"
252
+ },
253
+ {
254
+ "inputs": [],
255
+ "name": "InvalidInitialization",
256
+ "type": "error"
257
+ },
258
+ {
259
+ "inputs": [],
260
+ "name": "NotInitializing",
261
+ "type": "error"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "ReentrancyGuardReentrantCall",
266
+ "type": "error"
267
+ },
268
+ {
269
+ "anonymous": false,
270
+ "inputs": [
271
+ {
272
+ "indexed": false,
273
+ "internalType": "address",
274
+ "name": "authority",
275
+ "type": "address"
276
+ }
277
+ ],
278
+ "name": "AuthorityUpdated",
279
+ "type": "event"
280
+ },
281
+ {
282
+ "anonymous": false,
283
+ "inputs": [
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint64",
287
+ "name": "version",
288
+ "type": "uint64"
289
+ }
290
+ ],
291
+ "name": "Initialized",
292
+ "type": "event"
293
+ },
294
+ {
295
+ "anonymous": false,
296
+ "inputs": [
297
+ {
298
+ "indexed": false,
299
+ "internalType": "NftId",
300
+ "name": "nftId",
301
+ "type": "uint96"
302
+ },
303
+ {
304
+ "indexed": false,
305
+ "internalType": "address",
306
+ "name": "owner",
307
+ "type": "address"
308
+ }
309
+ ],
310
+ "name": "LogNftOwnableNftLinkedToAddress",
311
+ "type": "event"
312
+ },
313
+ {
314
+ "anonymous": false,
315
+ "inputs": [
316
+ {
317
+ "indexed": false,
318
+ "internalType": "NftId",
319
+ "name": "instanceNftId",
320
+ "type": "uint96"
321
+ },
322
+ {
323
+ "indexed": false,
324
+ "internalType": "uint256",
325
+ "name": "chainId",
326
+ "type": "uint256"
327
+ }
328
+ ],
329
+ "name": "LogStakingServiceInstanceTargetRegistered",
330
+ "type": "event"
331
+ },
332
+ {
333
+ "anonymous": false,
334
+ "inputs": [
335
+ {
336
+ "indexed": false,
337
+ "internalType": "NftId",
338
+ "name": "targetNftId",
339
+ "type": "uint96"
340
+ },
341
+ {
342
+ "indexed": false,
343
+ "internalType": "Seconds",
344
+ "name": "oldLockingDuration",
345
+ "type": "uint40"
346
+ },
347
+ {
348
+ "indexed": false,
349
+ "internalType": "Seconds",
350
+ "name": "lockingDuration",
351
+ "type": "uint40"
352
+ }
353
+ ],
354
+ "name": "LogStakingServiceLockingPeriodSet",
355
+ "type": "event"
356
+ },
357
+ {
358
+ "anonymous": false,
359
+ "inputs": [
360
+ {
361
+ "indexed": false,
362
+ "internalType": "NftId",
363
+ "name": "protocolNftId",
364
+ "type": "uint96"
365
+ }
366
+ ],
367
+ "name": "LogStakingServiceProtocolTargetRegistered",
368
+ "type": "event"
369
+ },
370
+ {
371
+ "anonymous": false,
372
+ "inputs": [
373
+ {
374
+ "indexed": false,
375
+ "internalType": "NftId",
376
+ "name": "targetNftId",
377
+ "type": "uint96"
378
+ },
379
+ {
380
+ "indexed": false,
381
+ "internalType": "UFixed",
382
+ "name": "oldRewardRate",
383
+ "type": "uint160"
384
+ },
385
+ {
386
+ "indexed": false,
387
+ "internalType": "UFixed",
388
+ "name": "rewardRate",
389
+ "type": "uint160"
390
+ }
391
+ ],
392
+ "name": "LogStakingServiceRewardRateSet",
393
+ "type": "event"
394
+ },
395
+ {
396
+ "anonymous": false,
397
+ "inputs": [
398
+ {
399
+ "indexed": false,
400
+ "internalType": "NftId",
401
+ "name": "targetNftId",
402
+ "type": "uint96"
403
+ },
404
+ {
405
+ "indexed": false,
406
+ "internalType": "address",
407
+ "name": "targetOwner",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "indexed": false,
412
+ "internalType": "Amount",
413
+ "name": "dipAmount",
414
+ "type": "uint96"
415
+ },
416
+ {
417
+ "indexed": false,
418
+ "internalType": "Amount",
419
+ "name": "newBalance",
420
+ "type": "uint96"
421
+ }
422
+ ],
423
+ "name": "LogStakingServiceRewardReservesDecreased",
424
+ "type": "event"
425
+ },
426
+ {
427
+ "anonymous": false,
428
+ "inputs": [
429
+ {
430
+ "indexed": false,
431
+ "internalType": "NftId",
432
+ "name": "targetNftId",
433
+ "type": "uint96"
434
+ },
435
+ {
436
+ "indexed": false,
437
+ "internalType": "address",
438
+ "name": "rewardProvider",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "indexed": false,
443
+ "internalType": "Amount",
444
+ "name": "dipAmount",
445
+ "type": "uint96"
446
+ },
447
+ {
448
+ "indexed": false,
449
+ "internalType": "Amount",
450
+ "name": "newBalance",
451
+ "type": "uint96"
452
+ }
453
+ ],
454
+ "name": "LogStakingServiceRewardReservesIncreased",
455
+ "type": "event"
456
+ },
457
+ {
458
+ "anonymous": false,
459
+ "inputs": [
460
+ {
461
+ "indexed": false,
462
+ "internalType": "NftId",
463
+ "name": "stakeNftId",
464
+ "type": "uint96"
465
+ },
466
+ {
467
+ "indexed": false,
468
+ "internalType": "address",
469
+ "name": "stakeOwner",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "indexed": false,
474
+ "internalType": "Amount",
475
+ "name": "rewardsClaimedAmount",
476
+ "type": "uint96"
477
+ }
478
+ ],
479
+ "name": "LogStakingServiceRewardsClaimed",
480
+ "type": "event"
481
+ },
482
+ {
483
+ "anonymous": false,
484
+ "inputs": [
485
+ {
486
+ "indexed": false,
487
+ "internalType": "NftId",
488
+ "name": "stakeNftId",
489
+ "type": "uint96"
490
+ }
491
+ ],
492
+ "name": "LogStakingServiceRewardsUpdated",
493
+ "type": "event"
494
+ },
495
+ {
496
+ "anonymous": false,
497
+ "inputs": [
498
+ {
499
+ "indexed": false,
500
+ "internalType": "NftId",
501
+ "name": "stakeNftId",
502
+ "type": "uint96"
503
+ },
504
+ {
505
+ "indexed": false,
506
+ "internalType": "NftId",
507
+ "name": "targetNftId",
508
+ "type": "uint96"
509
+ },
510
+ {
511
+ "indexed": false,
512
+ "internalType": "address",
513
+ "name": "owner",
514
+ "type": "address"
515
+ },
516
+ {
517
+ "indexed": false,
518
+ "internalType": "Amount",
519
+ "name": "stakedAmount",
520
+ "type": "uint96"
521
+ }
522
+ ],
523
+ "name": "LogStakingServiceStakeCreated",
524
+ "type": "event"
525
+ },
526
+ {
527
+ "anonymous": false,
528
+ "inputs": [
529
+ {
530
+ "indexed": false,
531
+ "internalType": "NftId",
532
+ "name": "stakeNftId",
533
+ "type": "uint96"
534
+ },
535
+ {
536
+ "indexed": false,
537
+ "internalType": "address",
538
+ "name": "owner",
539
+ "type": "address"
540
+ },
541
+ {
542
+ "indexed": false,
543
+ "internalType": "Amount",
544
+ "name": "stakedAmount",
545
+ "type": "uint96"
546
+ },
547
+ {
548
+ "indexed": false,
549
+ "internalType": "Amount",
550
+ "name": "stakeBalance",
551
+ "type": "uint96"
552
+ }
553
+ ],
554
+ "name": "LogStakingServiceStakeIncreased",
555
+ "type": "event"
556
+ },
557
+ {
558
+ "anonymous": false,
559
+ "inputs": [
560
+ {
561
+ "indexed": false,
562
+ "internalType": "NftId",
563
+ "name": "stakeNftId",
564
+ "type": "uint96"
565
+ },
566
+ {
567
+ "indexed": false,
568
+ "internalType": "NftId",
569
+ "name": "targetNftId",
570
+ "type": "uint96"
571
+ },
572
+ {
573
+ "indexed": false,
574
+ "internalType": "address",
575
+ "name": "stakeOwner",
576
+ "type": "address"
577
+ }
578
+ ],
579
+ "name": "LogStakingServiceStakeObjectCreated",
580
+ "type": "event"
581
+ },
582
+ {
583
+ "anonymous": false,
584
+ "inputs": [
585
+ {
586
+ "indexed": false,
587
+ "internalType": "address",
588
+ "name": "stakeOwner",
589
+ "type": "address"
590
+ },
591
+ {
592
+ "indexed": true,
593
+ "internalType": "NftId",
594
+ "name": "stakeNftId",
595
+ "type": "uint96"
596
+ },
597
+ {
598
+ "indexed": false,
599
+ "internalType": "NftId",
600
+ "name": "newStakeNftId",
601
+ "type": "uint96"
602
+ },
603
+ {
604
+ "indexed": true,
605
+ "internalType": "NftId",
606
+ "name": "newTargetNftId",
607
+ "type": "uint96"
608
+ },
609
+ {
610
+ "indexed": true,
611
+ "internalType": "Amount",
612
+ "name": "newStakeBalance",
613
+ "type": "uint96"
614
+ }
615
+ ],
616
+ "name": "LogStakingServiceStakeRestaked",
617
+ "type": "event"
618
+ },
619
+ {
620
+ "anonymous": false,
621
+ "inputs": [
622
+ {
623
+ "indexed": false,
624
+ "internalType": "NftId",
625
+ "name": "stakeNftId",
626
+ "type": "uint96"
627
+ },
628
+ {
629
+ "indexed": false,
630
+ "internalType": "address",
631
+ "name": "stakeOwner",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "indexed": false,
636
+ "internalType": "Amount",
637
+ "name": "totalAmount",
638
+ "type": "uint96"
639
+ }
640
+ ],
641
+ "name": "LogStakingServiceUnstaked",
642
+ "type": "event"
643
+ },
644
+ {
645
+ "inputs": [],
646
+ "name": "INITIALIZABLE_ERC165_STORAGE_LOCATION_V3_0",
647
+ "outputs": [
648
+ {
649
+ "internalType": "bytes32",
650
+ "name": "",
651
+ "type": "bytes32"
652
+ }
653
+ ],
654
+ "stateMutability": "view",
655
+ "type": "function"
656
+ },
657
+ {
658
+ "inputs": [],
659
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V3_0",
660
+ "outputs": [
661
+ {
662
+ "internalType": "bytes32",
663
+ "name": "",
664
+ "type": "bytes32"
665
+ }
666
+ ],
667
+ "stateMutability": "view",
668
+ "type": "function"
669
+ },
670
+ {
671
+ "inputs": [],
672
+ "name": "REGISTERABLE_STORAGE_LOCATION_V3_0",
673
+ "outputs": [
674
+ {
675
+ "internalType": "bytes32",
676
+ "name": "",
677
+ "type": "bytes32"
678
+ }
679
+ ],
680
+ "stateMutability": "view",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [],
685
+ "name": "STAKING_SERVICE_STORAGE_LOCATION_V3_0",
686
+ "outputs": [
687
+ {
688
+ "internalType": "bytes32",
689
+ "name": "",
690
+ "type": "bytes32"
691
+ }
692
+ ],
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [
698
+ {
699
+ "internalType": "contract IERC20Metadata",
700
+ "name": "token",
701
+ "type": "address"
702
+ },
703
+ {
704
+ "internalType": "Amount",
705
+ "name": "amount",
706
+ "type": "uint96"
707
+ }
708
+ ],
709
+ "name": "approveTokenHandler",
710
+ "outputs": [],
711
+ "stateMutability": "nonpayable",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [],
716
+ "name": "authority",
717
+ "outputs": [
718
+ {
719
+ "internalType": "address",
720
+ "name": "",
721
+ "type": "address"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [
729
+ {
730
+ "internalType": "NftId",
731
+ "name": "targetNftId",
732
+ "type": "uint96"
733
+ },
734
+ {
735
+ "internalType": "Seconds",
736
+ "name": "initialLockingPeriod",
737
+ "type": "uint40"
738
+ },
739
+ {
740
+ "internalType": "UFixed",
741
+ "name": "initialRewardRate",
742
+ "type": "uint160"
743
+ }
744
+ ],
745
+ "name": "createInstanceTarget",
746
+ "outputs": [],
747
+ "stateMutability": "nonpayable",
748
+ "type": "function"
749
+ },
750
+ {
751
+ "inputs": [
752
+ {
753
+ "internalType": "NftId",
754
+ "name": "targetNftId",
755
+ "type": "uint96"
756
+ },
757
+ {
758
+ "internalType": "address",
759
+ "name": "stakeOwner",
760
+ "type": "address"
761
+ }
762
+ ],
763
+ "name": "createStakeObject",
764
+ "outputs": [
765
+ {
766
+ "internalType": "NftId",
767
+ "name": "stakeNftId",
768
+ "type": "uint96"
769
+ }
770
+ ],
771
+ "stateMutability": "nonpayable",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "inputs": [],
776
+ "name": "getDipToken",
777
+ "outputs": [
778
+ {
779
+ "internalType": "contract IERC20Metadata",
780
+ "name": "dip",
781
+ "type": "address"
782
+ }
783
+ ],
784
+ "stateMutability": "view",
785
+ "type": "function"
786
+ },
787
+ {
788
+ "inputs": [],
789
+ "name": "getDomain",
790
+ "outputs": [
791
+ {
792
+ "internalType": "ObjectType",
793
+ "name": "serviceDomain",
794
+ "type": "uint8"
795
+ }
796
+ ],
797
+ "stateMutability": "pure",
798
+ "type": "function"
799
+ },
800
+ {
801
+ "inputs": [],
802
+ "name": "getInitialInfo",
803
+ "outputs": [
804
+ {
805
+ "components": [
806
+ {
807
+ "internalType": "NftId",
808
+ "name": "nftId",
809
+ "type": "uint96"
810
+ },
811
+ {
812
+ "internalType": "NftId",
813
+ "name": "parentNftId",
814
+ "type": "uint96"
815
+ },
816
+ {
817
+ "internalType": "ObjectType",
818
+ "name": "objectType",
819
+ "type": "uint8"
820
+ },
821
+ {
822
+ "internalType": "bool",
823
+ "name": "isInterceptor",
824
+ "type": "bool"
825
+ },
826
+ {
827
+ "internalType": "address",
828
+ "name": "objectAddress",
829
+ "type": "address"
830
+ },
831
+ {
832
+ "internalType": "address",
833
+ "name": "initialOwner",
834
+ "type": "address"
835
+ },
836
+ {
837
+ "internalType": "bytes",
838
+ "name": "data",
839
+ "type": "bytes"
840
+ }
841
+ ],
842
+ "internalType": "struct IRegistry.ObjectInfo",
843
+ "name": "info",
844
+ "type": "tuple"
845
+ }
846
+ ],
847
+ "stateMutability": "view",
848
+ "type": "function"
849
+ },
850
+ {
851
+ "inputs": [],
852
+ "name": "getNftId",
853
+ "outputs": [
854
+ {
855
+ "internalType": "NftId",
856
+ "name": "",
857
+ "type": "uint96"
858
+ }
859
+ ],
860
+ "stateMutability": "view",
861
+ "type": "function"
862
+ },
863
+ {
864
+ "inputs": [],
865
+ "name": "getOwner",
866
+ "outputs": [
867
+ {
868
+ "internalType": "address",
869
+ "name": "",
870
+ "type": "address"
871
+ }
872
+ ],
873
+ "stateMutability": "view",
874
+ "type": "function"
875
+ },
876
+ {
877
+ "inputs": [],
878
+ "name": "getRegistry",
879
+ "outputs": [
880
+ {
881
+ "internalType": "contract IRegistry",
882
+ "name": "",
883
+ "type": "address"
884
+ }
885
+ ],
886
+ "stateMutability": "view",
887
+ "type": "function"
888
+ },
889
+ {
890
+ "inputs": [],
891
+ "name": "getRelease",
892
+ "outputs": [
893
+ {
894
+ "internalType": "VersionPart",
895
+ "name": "release",
896
+ "type": "uint8"
897
+ }
898
+ ],
899
+ "stateMutability": "view",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [],
904
+ "name": "getRoleId",
905
+ "outputs": [
906
+ {
907
+ "internalType": "RoleId",
908
+ "name": "serviceRoleId",
909
+ "type": "uint64"
910
+ }
911
+ ],
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [],
917
+ "name": "getStaking",
918
+ "outputs": [
919
+ {
920
+ "internalType": "contract IStaking",
921
+ "name": "staking",
922
+ "type": "address"
923
+ }
924
+ ],
925
+ "stateMutability": "view",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [],
930
+ "name": "getTokenHandler",
931
+ "outputs": [
932
+ {
933
+ "internalType": "contract TokenHandler",
934
+ "name": "tokenHandler",
935
+ "type": "address"
936
+ }
937
+ ],
938
+ "stateMutability": "view",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [],
943
+ "name": "getVersion",
944
+ "outputs": [
945
+ {
946
+ "internalType": "Version",
947
+ "name": "",
948
+ "type": "uint24"
949
+ }
950
+ ],
951
+ "stateMutability": "pure",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [
956
+ {
957
+ "internalType": "address",
958
+ "name": "activatedBy",
959
+ "type": "address"
960
+ },
961
+ {
962
+ "internalType": "bytes",
963
+ "name": "data",
964
+ "type": "bytes"
965
+ }
966
+ ],
967
+ "name": "initializeVersionable",
968
+ "outputs": [],
969
+ "stateMutability": "nonpayable",
970
+ "type": "function"
971
+ },
972
+ {
973
+ "inputs": [],
974
+ "name": "isActive",
975
+ "outputs": [
976
+ {
977
+ "internalType": "bool",
978
+ "name": "active",
979
+ "type": "bool"
980
+ }
981
+ ],
982
+ "stateMutability": "view",
983
+ "type": "function"
984
+ },
985
+ {
986
+ "inputs": [],
987
+ "name": "isConsumingScheduledOp",
988
+ "outputs": [
989
+ {
990
+ "internalType": "bytes4",
991
+ "name": "",
992
+ "type": "bytes4"
993
+ }
994
+ ],
995
+ "stateMutability": "view",
996
+ "type": "function"
997
+ },
998
+ {
999
+ "inputs": [],
1000
+ "name": "linkToRegisteredNftId",
1001
+ "outputs": [
1002
+ {
1003
+ "internalType": "NftId",
1004
+ "name": "nftId",
1005
+ "type": "uint96"
1006
+ }
1007
+ ],
1008
+ "stateMutability": "nonpayable",
1009
+ "type": "function"
1010
+ },
1011
+ {
1012
+ "inputs": [
1013
+ {
1014
+ "internalType": "Amount",
1015
+ "name": "dipAmount",
1016
+ "type": "uint96"
1017
+ },
1018
+ {
1019
+ "internalType": "address",
1020
+ "name": "stakeOwner",
1021
+ "type": "address"
1022
+ }
1023
+ ],
1024
+ "name": "pullDipToken",
1025
+ "outputs": [],
1026
+ "stateMutability": "nonpayable",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "internalType": "Amount",
1033
+ "name": "dipAmount",
1034
+ "type": "uint96"
1035
+ },
1036
+ {
1037
+ "internalType": "address",
1038
+ "name": "stakeOwner",
1039
+ "type": "address"
1040
+ }
1041
+ ],
1042
+ "name": "pushDipToken",
1043
+ "outputs": [],
1044
+ "stateMutability": "nonpayable",
1045
+ "type": "function"
1046
+ },
1047
+ {
1048
+ "inputs": [
1049
+ {
1050
+ "internalType": "NftId",
1051
+ "name": "instanceNftId",
1052
+ "type": "uint96"
1053
+ },
1054
+ {
1055
+ "internalType": "address",
1056
+ "name": "rewardProvider",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "internalType": "Amount",
1061
+ "name": "dipAmount",
1062
+ "type": "uint96"
1063
+ }
1064
+ ],
1065
+ "name": "refillInstanceRewardReserves",
1066
+ "outputs": [
1067
+ {
1068
+ "internalType": "Amount",
1069
+ "name": "newBalance",
1070
+ "type": "uint96"
1071
+ }
1072
+ ],
1073
+ "stateMutability": "nonpayable",
1074
+ "type": "function"
1075
+ },
1076
+ {
1077
+ "inputs": [
1078
+ {
1079
+ "internalType": "address",
1080
+ "name": "newAuthority",
1081
+ "type": "address"
1082
+ }
1083
+ ],
1084
+ "name": "setAuthority",
1085
+ "outputs": [],
1086
+ "stateMutability": "nonpayable",
1087
+ "type": "function"
1088
+ },
1089
+ {
1090
+ "inputs": [
1091
+ {
1092
+ "internalType": "NftId",
1093
+ "name": "instanceNftId",
1094
+ "type": "uint96"
1095
+ },
1096
+ {
1097
+ "internalType": "Seconds",
1098
+ "name": "lockingPeriod",
1099
+ "type": "uint40"
1100
+ }
1101
+ ],
1102
+ "name": "setInstanceLockingPeriod",
1103
+ "outputs": [],
1104
+ "stateMutability": "nonpayable",
1105
+ "type": "function"
1106
+ },
1107
+ {
1108
+ "inputs": [
1109
+ {
1110
+ "internalType": "NftId",
1111
+ "name": "instanceNftId",
1112
+ "type": "uint96"
1113
+ },
1114
+ {
1115
+ "internalType": "Amount",
1116
+ "name": "maxStakingAmount",
1117
+ "type": "uint96"
1118
+ }
1119
+ ],
1120
+ "name": "setInstanceMaxStakedAmount",
1121
+ "outputs": [],
1122
+ "stateMutability": "nonpayable",
1123
+ "type": "function"
1124
+ },
1125
+ {
1126
+ "inputs": [
1127
+ {
1128
+ "internalType": "NftId",
1129
+ "name": "instanceNftId",
1130
+ "type": "uint96"
1131
+ },
1132
+ {
1133
+ "internalType": "UFixed",
1134
+ "name": "rewardRate",
1135
+ "type": "uint160"
1136
+ }
1137
+ ],
1138
+ "name": "setInstanceRewardRate",
1139
+ "outputs": [],
1140
+ "stateMutability": "nonpayable",
1141
+ "type": "function"
1142
+ },
1143
+ {
1144
+ "inputs": [
1145
+ {
1146
+ "internalType": "NftId",
1147
+ "name": "targetNftId",
1148
+ "type": "uint96"
1149
+ },
1150
+ {
1151
+ "internalType": "address",
1152
+ "name": "token",
1153
+ "type": "address"
1154
+ },
1155
+ {
1156
+ "internalType": "Amount",
1157
+ "name": "amount",
1158
+ "type": "uint96"
1159
+ }
1160
+ ],
1161
+ "name": "setTotalValueLocked",
1162
+ "outputs": [],
1163
+ "stateMutability": "nonpayable",
1164
+ "type": "function"
1165
+ },
1166
+ {
1167
+ "inputs": [
1168
+ {
1169
+ "internalType": "bytes4",
1170
+ "name": "interfaceId",
1171
+ "type": "bytes4"
1172
+ }
1173
+ ],
1174
+ "name": "supportsInterface",
1175
+ "outputs": [
1176
+ {
1177
+ "internalType": "bool",
1178
+ "name": "",
1179
+ "type": "bool"
1180
+ }
1181
+ ],
1182
+ "stateMutability": "view",
1183
+ "type": "function"
1184
+ },
1185
+ {
1186
+ "inputs": [
1187
+ {
1188
+ "internalType": "bytes",
1189
+ "name": "data",
1190
+ "type": "bytes"
1191
+ }
1192
+ ],
1193
+ "name": "upgradeVersionable",
1194
+ "outputs": [],
1195
+ "stateMutability": "nonpayable",
1196
+ "type": "function"
1197
+ },
1198
+ {
1199
+ "inputs": [
1200
+ {
1201
+ "internalType": "NftId",
1202
+ "name": "instanceNftId",
1203
+ "type": "uint96"
1204
+ },
1205
+ {
1206
+ "internalType": "Amount",
1207
+ "name": "dipAmount",
1208
+ "type": "uint96"
1209
+ }
1210
+ ],
1211
+ "name": "withdrawInstanceRewardReserves",
1212
+ "outputs": [
1213
+ {
1214
+ "internalType": "Amount",
1215
+ "name": "newBalance",
1216
+ "type": "uint96"
1217
+ }
1218
+ ],
1219
+ "stateMutability": "nonpayable",
1220
+ "type": "function"
1221
+ }
1222
+ ],
1223
+ "bytecode": "0x6080604052348015600e575f80fd5b5060156019565b60c9565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161560685760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b039081161460c65780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612f25806100d65f395ff3fe608060405234801561000f575f80fd5b50600436106101fd575f3560e01c806376b707b711610114578063b68d1809116100a9578063cb91455011610079578063cb914550146104b2578063db1e36e7146104c5578063dec3bdde146104d8578063f11bcbe7146104eb578063f71c4cef146104f3575f80fd5b8063b68d18091461047c578063bf7e214f14610483578063c26efb051461048b578063c725889f1461049e575f80fd5b80638fb36037116100e45780638fb36037146103fa578063943bd1971461041b5780639478004c1461042e578063b4f273bd14610455575f80fd5b806376b707b7146103bd5780637a9e5e4b146103d75780637b1391a6146103ea578063893d20e8146103f2575f80fd5b8063419197fe1161019557806355298fbc1161016557806355298fbc1461033b5780635ab1bd531461035d578063644c45e01461036d5780636c741e781461038a57806375cd3105146103aa575f80fd5b8063419197fe146102e257806343d752d3146102f557806349bb9e4b146103155780634bae314b14610328575f80fd5b806321ece657116101d057806321ece6571461029f57806322f3e2d4146102b2578063329d6e74146102ba5780633e0dbe80146102cf575f80fd5b806301ffc9a7146102015780630d8e6e2c1461024e5780630fec111c1461026a578063138461e01461027f575b5f80fd5b61023961020f366004612593565b6001600160e01b0319165f9081525f80516020612eb0833981519152602052604090205460ff1690565b60405190151581526020015b60405180910390f35b610256610506565b60405162ffffff9091168152602001610245565b61027261058d565b60405161024591906125ef565b610287610747565b6040516001600160601b039091168152602001610245565b6102876102ad366004612697565b610751565b6102396108b5565b6102cd6102c83660046127b2565b61092c565b005b6102876102dd3660046127f7565b610a76565b6102cd6102f0366004612823565b610c5a565b6102fd610cfc565b6040516001600160a01b039091168152602001610245565b6102cd61032336600461283f565b610d17565b6102cd610336366004612697565b610e13565b61034f5f80516020612eb083398151915281565b604051908152602001610245565b5f546001600160a01b03166102fd565b5f80516020612e90833981519152546001600160601b0316610287565b610392610e71565b6040516001600160401b039091168152602001610245565b6102cd6103b83660046128a4565b610efd565b6103c5610fe5565b60405160ff9091168152602001610245565b6102cd6103e53660046128ea565b61104d565b6102fd6110d3565b6102fd6110ee565b61040261121e565b6040516001600160e01b03199091168152602001610245565b6102cd610429366004612905565b611253565b61034f7f5744a630cd832cc833bbcbacd41a5b85ea7e62a359f2b0312fec3efecead170081565b61034f7f66ed5788a8bec6ff1e7b389e8e939876404dd6c85eb5e16ebccc687f21cd620081565b60036103c5565b6102fd611261565b6102cd6104993660046127f7565b61127c565b61034f5f80516020612e9083398151915281565b6102cd6104c03660046127f7565b6112da565b6102cd6104d3366004612942565b611354565b6102876104e6366004612905565b6113b7565b6102fd611519565b6102cd6105013660046127f7565b611534565b604051632efe011360e01b8152600360048201525f60248201819052604482018190529073__$8eede297b65ed5a56eb3f84d8232ae93f5$__90632efe011390606401602060405180830381865af4158015610564573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105889190612975565b905090565b6040805160e0810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f66ed5788a8bec6ff1e7b389e8e939876404dd6c85eb5e16ebccc687f21cd620090506040518060e0016040528073__$94a2c899be079b00d952d0d84fffaa5c34$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015610639573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061065d91906129a2565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016106a56110ee565b6001600160a01b031681526020018260010180546106c2906129bd565b80601f01602080910402602001604051908101604052809291908181526020018280546106ee906129bd565b80156107395780601f1061071057610100808354040283529160200191610739565b820191905f5260205f20905b81548152906001019060200180831161071c57829003601f168201915b505050505081525091505090565b5f610588306115ae565b5f61075e335b5f36611802565b61076983600a6118f8565b5f610772611a2b565b90505f6107865f546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03871660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa1580156107d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f79190612a00565b600183015460405163ec0407d960e01b81529192506001600160a01b03169063ec0407d99061082e90889088908690600401612a1b565b6020604051808303815f875af115801561084a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086e91906129a2565b92507f1cbf8b37af4df8c27db081983bda17400796238db4d1edf44edacf559b3a25d7858286866040516108a59493929190612a47565b60405180910390a1505092915050565b5f6108be611261565b60405163a166aa8960e01b81523060048201526001600160a01b03919091169063a166aa8990602401602060405180830381865afa158015610902573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109269190612a8a565b15905090565b73__$8eede297b65ed5a56eb3f84d8232ae93f5$__63a123b37c61094e610506565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af415801561098c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b09190612ab7565b5f80516020612ed08339815191528054600160401b900460ff16806109e2575080546001600160401b03808416911610155b15610a005760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610a2a83611a4f565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b5f610a8033610757565b610a88611a2b565b600101546001600160a01b03163314610abb57604051637dbf3cff60e11b81523360048201526024015b60405180910390fd5b5f610ac4611a2b565b80546040805160e0810180835263bc1b392d60e01b905290519293506001600160a01b0390911691638105cc7f9190819073__$94a2c899be079b00d952d0d84fffaa5c34$__9063bc1b392d9060e4808501916020918187030181865af4158015610b31573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b5591906129a2565b6001600160601b03168152602001876001600160601b03168152602001610b7a601e90565b60ff1681526020015f151581526020015f6001600160a01b03168152602001866001600160a01b0316815260200160405180602001604052805f8152508152506040518263ffffffff1660e01b8152600401610bd691906125ef565b6020604051808303815f875af1158015610bf2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c1691906129a2565b91507f96325e799dd5dfa602546e55b37c9efdf3ff38c000bd677d4e75541033eef442828585604051610c4b93929190612a1b565b60405180910390a15092915050565b610c62611a2b565b600101546001600160a01b03163314610c9057604051637dbf3cff60e11b8152336004820152602401610ab2565b610c98611a2b565b6003015460405163ea0b3c7360e01b81526001600160a01b039091169063ea0b3c7390610ccb9085908590600401612ad2565b5f604051808303815f87803b158015610ce2575f80fd5b505af1158015610cf4573d5f803e3d5ffd5b505050505050565b5f610d05611a2b565b600301546001600160a01b0316919050565b5f80516020612ed08339815191528054600160401b810460ff1615906001600160401b03165f81158015610d485750825b90505f826001600160401b03166001148015610d635750303b155b905081158015610d71575080155b15610d8f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610db957845460ff60401b1916600160401b1785555b610dc38787611a70565b8315610e0a57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b610e1c33610757565b610e2782600a6118f8565b610e2f611a2b565b60010154604051631b4e1ff960e21b81526001600160601b038085166004830152831660248201526001600160a01b0390911690636d387fe490604401610ccb565b5f73__$1d92393fa9ccd763988368ce8a1cb90d26$__63645ceefe6003610e96610fe5565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865af4158015610ed9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105889190612ab7565b610f0633610757565b46610f0f611a2b565b600101546001600160a01b03166344dcf73085600a6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff16602482015264ffffffffff861660448201526001600160a01b03851660648201526084015f604051808303815f87803b158015610f86575f80fd5b505af1158015610f98573d5f803e3d5ffd5b5050604080516001600160601b0388168152602081018590527f471a2845289928aa76c379fe01dc0310ebf5000e7a977935811e173bdda224bd935001905060405180910390a150505050565b5f610fee611261565b6001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611029573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105889190612b0d565b33611056611261565b6001600160a01b0316816001600160a01b0316146110915760405162d1953b60e31b81526001600160a01b0382166004820152602401610ab2565b816001600160a01b03163b5f036110c6576040516361798f2f60e11b81526001600160a01b0383166004820152602401610ab2565b6110cf82611ced565b5050565b5f6110dc611a2b565b600101546001600160a01b0316919050565b5f805f80516020612e9083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561115a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061117e9190612a8a565b15611208575f546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa1580156111de573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112029190612a00565b91505090565b54600160601b90046001600160a01b0316919050565b5f80516020612e7083398151915280545f9190600160a01b900460ff16611245575f611202565b638fb3603760e01b91505090565b61125c33610757565b505050565b5f80516020612e70833981519152546001600160a01b031690565b61128533610757565b61129082600a6118f8565b611298611a2b565b60010154604051630345861d60e01b81526001600160601b03841660048201526001600160a01b03838116602483015290911690630345861d90604401610ccb565b6112e333610757565b6112eb611a2b565b600101546001600160a01b0316331461131957604051637dbf3cff60e11b8152336004820152602401610ab2565b611321611a2b565b600301546040516333f6af9b60e11b81526001600160a01b03909116906367ed5f3690610ccb9084908690600401612ad2565b61135d33610757565b61136882600a6118f8565b611370611a2b565b60010154604051635ecf260f60e01b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b0390911690635ecf260f90604401610ccb565b5f6113c133610757565b6113cc84600a6118f8565b5f6113d5611a2b565b90505f6113e95f546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03881660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611436573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061145a9190612a00565b600183015460405163d43a262360e01b81529192506001600160a01b03169063d43a26239061149190899088908690600401612a1b565b6020604051808303815f875af11580156114ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114d191906129a2565b92507fcf86366087b008a90b57f4e7b955b94599f589d7267649942abfd34305fe5b2f868686866040516115089493929190612a47565b60405180910390a150509392505050565b5f611522611a2b565b600201546001600160a01b0316919050565b61153d33610757565b611545611a2b565b600101546001600160a01b0316331461157357604051637dbf3cff60e11b8152336004820152602401610ab2565b61157b611a2b565b60030154604051630f3f86bd60e31b81526001600160a01b03909116906379fc35e890610ccb9084908690600401612ad2565b5f805f80516020612e9083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561161a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061163e9190612a8a565b1561166a5780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610ab2565b5f546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa1580156116bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116df9190612a8a565b6117075760405163b9304b0d60e01b81526001600160a01b0384166004820152602401610ab2565b5f546001600160a01b0316604051632f2a35f760e11b81526001600160a01b0385811660048301529190911690635e546bee90602401602060405180830381865afa158015611758573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061177c91906129a2565b81546bffffffffffffffffffffffff19166001600160601b039190911690811782557f88857b75cbef7f257c9d5a473e28aaf6a91cc28f717f60f2cda3bcf5623d7b54906117c86110ee565b604080516001600160601b0390931683526001600160a01b0390911660208301520160405180910390a1546001600160601b031692915050565b5f80516020612e708339815191525f8061183a61181d611261565b873061182c60045f8a8c612b28565b61183591612b4f565b611d4d565b9150915081610cf45763ffffffff8116156118d557825460ff60a01b1916600160a01b178355611868611261565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b815260040161189793929190612b87565b5f604051808303815f87803b1580156118ae575f80fd5b505af11580156118c0573d5f803e3d5ffd5b5050845460ff60a01b1916855550610cf49050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610ab2565b60405163037c8cb160e51b815260ff8216600482015273__$0d958e68cba84670b8f4a3f2f2686b1c6b$__90636f91962090602401602060405180830381865af4158015611948573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061196c9190612a8a565b806119f957505f546001600160a01b0316604051635b12715d60e11b81526001600160601b038416600482015260ff831660248201526001600160a01b03919091169063b624e2ba90604401602060405180830381865afa1580156119d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119f79190612a8a565b155b156110cf5760405163d711af7560e01b81526001600160601b038316600482015260ff82166024820152604401610ab2565b7f5744a630cd832cc833bbcbacd41a5b85ea7e62a359f2b0312fec3efecead170090565b611a57611e55565b60405163502ec37160e01b815260040160405180910390fd5b5f80516020612ed08339815191528054600160401b810460ff1615906001600160401b03165f81158015611aa15750825b90505f826001600160401b03166001148015611abc5750303b155b905081158015611aca575080155b15611ae85760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611b1257845460ff60401b1916600160401b1785555b5f805f88806020019051810190611b299190612bc6565b925092509250611b3a83838c611e8d565b5f611b43611a2b565b9050611b4f6002611f2a565b81546001600160a01b0319166001600160a01b0391909116178155611b7382611fb1565b6001820180546001600160a01b0319166001600160a01b03929092169182179055604080516321df0da760e01b815290516321df0da7916004808201926020929091908290030181865afa158015611bcd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bf19190612a00565b6002820180546001600160a01b0319166001600160a01b039283161790556001820154604080516343d752d360e01b8152905191909216916343d752d39160048083019260209291908290030181865afa158015611c51573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c759190612a00565b6003820180546001600160a01b0319166001600160a01b0392909216919091179055611ca763c6c96fe160e01b61221d565b505050508315610e0a57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610e01565b5f80516020612e7083398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611dbb9190612c05565b5f60405180830381855afa9150503d805f8114611df3576040519150601f19603f3d011682016040523d82523d5f602084013e611df8565b606091505b50915091508115611e4a576040815110611e2a5780806020019051810190611e209190612c1b565b9094509250611e4a565b6020815110611e4a5780806020019051810190611e479190612a8a565b93505b505094509492505050565b5f80516020612ed083398151915254600160401b900460ff16611e8b57604051631afcd79f60e31b815260040160405180910390fd5b565b611e95611e55565b611e9d61225a565b611f1a8383846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ede573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f0291906129a2565b60085f8660405180602001604052805f81525061226a565b61125c63daf9067160e01b61221d565b5f80546001600160a01b031663d39e604383611f44610fe5565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611f87573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fab9190612a00565b92915050565b5f80611fc45f546001600160a01b031690565b6040516308b09a5f60e41b81526001600160a01b0385811660048301529190911690638b09a5f0906024015f60405180830381865afa158015612009573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526120309190810190612c9a565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561208c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120b09190612a8a565b15612101576120d181604001516120c5600390565b60ff9081169116141590565b156120fa57604051637dbf3cff60e11b81526001600160a01b0384166004820152602401610ab2565b5090919050565b6040516301ffc9a760e01b8152632a9e68e360e11b60048201526001600160a01b038416906301ffc9a790602401602060405180830381865afa15801561214a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216e9190612a8a565b61219657604051632bf4d8e560e21b81526001600160a01b0384166004820152602401610ab2565b3361219f611a2b565b5460405163c4c79d8b60e01b81526001600160a01b03868116600483015283811660248301529091169063c4c79d8b906044015f604051808303815f875af11580156121ed573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526122149190810190612c9a565b50929392505050565b612225611e55565b6001600160e01b031981165f9081525f80516020612eb083398151915260205260409020805460ff1916600117905550565b50565b612262611e55565b611e8b6123b1565b612272611e55565b604051632330f24760e01b81526001600160a01b038816600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90632330f24790602401602060405180830381865af41580156122c8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122ec9190612a8a565b6123145760405163cf6935e560e01b81526001600160a01b0388166004820152602401610ab2565b61231d876123df565b61232786836123f0565b5f7f66ed5788a8bec6ff1e7b389e8e939876404dd6c85eb5e16ebccc687f21cd620080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016123968382612db5565b506123a7634a531f3360e01b61221d565b5050505050505050565b6123b9611e55565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055565b6123e7611e55565b61225781612466565b6123f8611e55565b612400612477565b612409826124c8565b6001600160a01b0381166124305760405163f17ef42d60e01b815260040160405180910390fd5b5f80516020612e9083398151915280546001600160601b0316600160601b6001600160a01b039093169290920291909117905550565b61246e611e55565b61225781611ced565b61247f611e55565b6301ffc9a760e01b5f525f80516020612eb08339815191526020527f7449848146f4dbd52693c0731b5cd097b0a676ddfe6ffc213ebb4853f36e5619805460ff19166001179055565b6124d0611e55565b604051633334d16b60e01b81526001600160a01b038216600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90633334d16b90602401602060405180830381865af4158015612526573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061254a9190612a8a565b6125725760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ab2565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f602082840312156125a3575f80fd5b81356001600160e01b0319811681146125ba575f80fd5b9392505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526001600160601b0382511660208201526001600160601b03602083015116604082015260ff60408301511660608201525f6060830151612637608084018215159052565b5060808301516001600160a01b03811660a08401525060a08301516001600160a01b03811660c08401525060c083015160e08084015261267b6101008401826125c1565b949350505050565b6001600160601b0381168114612257575f80fd5b5f80604083850312156126a8575f80fd5b82356126b381612683565b915060208301356126c381612683565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b60405160e081016001600160401b0381118282101715612704576127046126ce565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612732576127326126ce565b604052919050565b5f6001600160401b03821115612752576127526126ce565b50601f01601f191660200190565b5f82601f83011261276f575f80fd5b813561278261277d8261273a565b61270a565b818152846020838601011115612796575f80fd5b816020850160208301375f918101602001919091529392505050565b5f602082840312156127c2575f80fd5b81356001600160401b038111156127d7575f80fd5b61267b84828501612760565b6001600160a01b0381168114612257575f80fd5b5f8060408385031215612808575f80fd5b823561281381612683565b915060208301356126c3816127e3565b5f8060408385031215612834575f80fd5b82356126b3816127e3565b5f8060408385031215612850575f80fd5b823561285b816127e3565b915060208301356001600160401b03811115612875575f80fd5b61288185828601612760565b9150509250929050565b803564ffffffffff8116811461289f575f80fd5b919050565b5f805f606084860312156128b6575f80fd5b83356128c181612683565b92506128cf6020850161288b565b915060408401356128df816127e3565b809150509250925092565b5f602082840312156128fa575f80fd5b81356125ba816127e3565b5f805f60608486031215612917575f80fd5b833561292281612683565b92506020840135612932816127e3565b915060408401356128df81612683565b5f8060408385031215612953575f80fd5b823561295e81612683565b915061296c6020840161288b565b90509250929050565b5f60208284031215612985575f80fd5b815162ffffff811681146125ba575f80fd5b805161289f81612683565b5f602082840312156129b2575f80fd5b81516125ba81612683565b600181811c908216806129d157607f821691505b6020821081036129ef57634e487b7160e01b5f52602260045260245ffd5b50919050565b805161289f816127e3565b5f60208284031215612a10575f80fd5b81516125ba816127e3565b6001600160601b0393841681529190921660208201526001600160a01b03909116604082015260600190565b6001600160601b0394851681526001600160a01b039390931660208401529083166040830152909116606082015260800190565b8051801515811461289f575f80fd5b5f60208284031215612a9a575f80fd5b6125ba82612a7b565b6001600160401b0381168114612257575f80fd5b5f60208284031215612ac7575f80fd5b81516125ba81612aa3565b6001600160a01b039290921682526001600160601b0316602082015260400190565b60ff81168114612257575f80fd5b805161289f81612af4565b5f60208284031215612b1d575f80fd5b81516125ba81612af4565b5f8085851115612b36575f80fd5b83861115612b42575f80fd5b5050820193919092039150565b80356001600160e01b03198116906004841015612b80576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b5f805f60608486031215612bd8575f80fd5b8351612be3816127e3565b6020850151909350612bf4816127e3565b60408501519092506128df816127e3565b5f82518060208501845e5f920191825250919050565b5f8060408385031215612c2c575f80fd5b612c3583612a7b565b9150602083015163ffffffff811681146126c3575f80fd5b5f82601f830112612c5c575f80fd5b8151612c6a61277d8261273a565b818152846020838601011115612c7e575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215612caa575f80fd5b81516001600160401b03811115612cbf575f80fd5b820160e08185031215612cd0575f80fd5b612cd86126e2565b612ce182612997565b8152612cef60208301612997565b6020820152612d0060408301612b02565b6040820152612d1160608301612a7b565b6060820152612d22608083016129f5565b6080820152612d3360a083016129f5565b60a082015260c08201516001600160401b03811115612d50575f80fd5b612d5c86828501612c4d565b60c083015250949350505050565b601f82111561125c57805f5260205f20601f840160051c81016020851015612d8f5750805b601f840160051c820191505b81811015612dae575f8155600101612d9b565b5050505050565b81516001600160401b03811115612dce57612dce6126ce565b612de281612ddc84546129bd565b84612d6a565b6020601f821160018114612e14575f8315612dfd5750848201515b5f19600385901b1c1916600184901b178455612dae565b5f84815260208120601f198516915b82811015612e435787850151825560209485019460019092019101612e23565b5084821015612e6057868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0075a854a54bf614cac5ba72c2235143229b43a26f8eb448270fb97a467532e3002c5de3b4947d23a15785cdf804e1e581a3c5f54c0357f66e3f442def0f390100f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220561c4f578247a4e92c68a6d6d9ccd048450aaace9e2bcb616101c144c15b36fb64736f6c634300081a0033",
1224
+ "deployedBytecode": "0x608060405234801561000f575f80fd5b50600436106101fd575f3560e01c806376b707b711610114578063b68d1809116100a9578063cb91455011610079578063cb914550146104b2578063db1e36e7146104c5578063dec3bdde146104d8578063f11bcbe7146104eb578063f71c4cef146104f3575f80fd5b8063b68d18091461047c578063bf7e214f14610483578063c26efb051461048b578063c725889f1461049e575f80fd5b80638fb36037116100e45780638fb36037146103fa578063943bd1971461041b5780639478004c1461042e578063b4f273bd14610455575f80fd5b806376b707b7146103bd5780637a9e5e4b146103d75780637b1391a6146103ea578063893d20e8146103f2575f80fd5b8063419197fe1161019557806355298fbc1161016557806355298fbc1461033b5780635ab1bd531461035d578063644c45e01461036d5780636c741e781461038a57806375cd3105146103aa575f80fd5b8063419197fe146102e257806343d752d3146102f557806349bb9e4b146103155780634bae314b14610328575f80fd5b806321ece657116101d057806321ece6571461029f57806322f3e2d4146102b2578063329d6e74146102ba5780633e0dbe80146102cf575f80fd5b806301ffc9a7146102015780630d8e6e2c1461024e5780630fec111c1461026a578063138461e01461027f575b5f80fd5b61023961020f366004612593565b6001600160e01b0319165f9081525f80516020612eb0833981519152602052604090205460ff1690565b60405190151581526020015b60405180910390f35b610256610506565b60405162ffffff9091168152602001610245565b61027261058d565b60405161024591906125ef565b610287610747565b6040516001600160601b039091168152602001610245565b6102876102ad366004612697565b610751565b6102396108b5565b6102cd6102c83660046127b2565b61092c565b005b6102876102dd3660046127f7565b610a76565b6102cd6102f0366004612823565b610c5a565b6102fd610cfc565b6040516001600160a01b039091168152602001610245565b6102cd61032336600461283f565b610d17565b6102cd610336366004612697565b610e13565b61034f5f80516020612eb083398151915281565b604051908152602001610245565b5f546001600160a01b03166102fd565b5f80516020612e90833981519152546001600160601b0316610287565b610392610e71565b6040516001600160401b039091168152602001610245565b6102cd6103b83660046128a4565b610efd565b6103c5610fe5565b60405160ff9091168152602001610245565b6102cd6103e53660046128ea565b61104d565b6102fd6110d3565b6102fd6110ee565b61040261121e565b6040516001600160e01b03199091168152602001610245565b6102cd610429366004612905565b611253565b61034f7f5744a630cd832cc833bbcbacd41a5b85ea7e62a359f2b0312fec3efecead170081565b61034f7f66ed5788a8bec6ff1e7b389e8e939876404dd6c85eb5e16ebccc687f21cd620081565b60036103c5565b6102fd611261565b6102cd6104993660046127f7565b61127c565b61034f5f80516020612e9083398151915281565b6102cd6104c03660046127f7565b6112da565b6102cd6104d3366004612942565b611354565b6102876104e6366004612905565b6113b7565b6102fd611519565b6102cd6105013660046127f7565b611534565b604051632efe011360e01b8152600360048201525f60248201819052604482018190529073__$8eede297b65ed5a56eb3f84d8232ae93f5$__90632efe011390606401602060405180830381865af4158015610564573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105889190612975565b905090565b6040805160e0810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f66ed5788a8bec6ff1e7b389e8e939876404dd6c85eb5e16ebccc687f21cd620090506040518060e0016040528073__$94a2c899be079b00d952d0d84fffaa5c34$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015610639573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061065d91906129a2565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016106a56110ee565b6001600160a01b031681526020018260010180546106c2906129bd565b80601f01602080910402602001604051908101604052809291908181526020018280546106ee906129bd565b80156107395780601f1061071057610100808354040283529160200191610739565b820191905f5260205f20905b81548152906001019060200180831161071c57829003601f168201915b505050505081525091505090565b5f610588306115ae565b5f61075e335b5f36611802565b61076983600a6118f8565b5f610772611a2b565b90505f6107865f546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03871660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa1580156107d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f79190612a00565b600183015460405163ec0407d960e01b81529192506001600160a01b03169063ec0407d99061082e90889088908690600401612a1b565b6020604051808303815f875af115801561084a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061086e91906129a2565b92507f1cbf8b37af4df8c27db081983bda17400796238db4d1edf44edacf559b3a25d7858286866040516108a59493929190612a47565b60405180910390a1505092915050565b5f6108be611261565b60405163a166aa8960e01b81523060048201526001600160a01b03919091169063a166aa8990602401602060405180830381865afa158015610902573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109269190612a8a565b15905090565b73__$8eede297b65ed5a56eb3f84d8232ae93f5$__63a123b37c61094e610506565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af415801561098c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b09190612ab7565b5f80516020612ed08339815191528054600160401b900460ff16806109e2575080546001600160401b03808416911610155b15610a005760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610a2a83611a4f565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b5f610a8033610757565b610a88611a2b565b600101546001600160a01b03163314610abb57604051637dbf3cff60e11b81523360048201526024015b60405180910390fd5b5f610ac4611a2b565b80546040805160e0810180835263bc1b392d60e01b905290519293506001600160a01b0390911691638105cc7f9190819073__$94a2c899be079b00d952d0d84fffaa5c34$__9063bc1b392d9060e4808501916020918187030181865af4158015610b31573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b5591906129a2565b6001600160601b03168152602001876001600160601b03168152602001610b7a601e90565b60ff1681526020015f151581526020015f6001600160a01b03168152602001866001600160a01b0316815260200160405180602001604052805f8152508152506040518263ffffffff1660e01b8152600401610bd691906125ef565b6020604051808303815f875af1158015610bf2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c1691906129a2565b91507f96325e799dd5dfa602546e55b37c9efdf3ff38c000bd677d4e75541033eef442828585604051610c4b93929190612a1b565b60405180910390a15092915050565b610c62611a2b565b600101546001600160a01b03163314610c9057604051637dbf3cff60e11b8152336004820152602401610ab2565b610c98611a2b565b6003015460405163ea0b3c7360e01b81526001600160a01b039091169063ea0b3c7390610ccb9085908590600401612ad2565b5f604051808303815f87803b158015610ce2575f80fd5b505af1158015610cf4573d5f803e3d5ffd5b505050505050565b5f610d05611a2b565b600301546001600160a01b0316919050565b5f80516020612ed08339815191528054600160401b810460ff1615906001600160401b03165f81158015610d485750825b90505f826001600160401b03166001148015610d635750303b155b905081158015610d71575080155b15610d8f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610db957845460ff60401b1916600160401b1785555b610dc38787611a70565b8315610e0a57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b610e1c33610757565b610e2782600a6118f8565b610e2f611a2b565b60010154604051631b4e1ff960e21b81526001600160601b038085166004830152831660248201526001600160a01b0390911690636d387fe490604401610ccb565b5f73__$1d92393fa9ccd763988368ce8a1cb90d26$__63645ceefe6003610e96610fe5565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865af4158015610ed9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105889190612ab7565b610f0633610757565b46610f0f611a2b565b600101546001600160a01b03166344dcf73085600a6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff16602482015264ffffffffff861660448201526001600160a01b03851660648201526084015f604051808303815f87803b158015610f86575f80fd5b505af1158015610f98573d5f803e3d5ffd5b5050604080516001600160601b0388168152602081018590527f471a2845289928aa76c379fe01dc0310ebf5000e7a977935811e173bdda224bd935001905060405180910390a150505050565b5f610fee611261565b6001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611029573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105889190612b0d565b33611056611261565b6001600160a01b0316816001600160a01b0316146110915760405162d1953b60e31b81526001600160a01b0382166004820152602401610ab2565b816001600160a01b03163b5f036110c6576040516361798f2f60e11b81526001600160a01b0383166004820152602401610ab2565b6110cf82611ced565b5050565b5f6110dc611a2b565b600101546001600160a01b0316919050565b5f805f80516020612e9083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561115a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061117e9190612a8a565b15611208575f546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa1580156111de573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112029190612a00565b91505090565b54600160601b90046001600160a01b0316919050565b5f80516020612e7083398151915280545f9190600160a01b900460ff16611245575f611202565b638fb3603760e01b91505090565b61125c33610757565b505050565b5f80516020612e70833981519152546001600160a01b031690565b61128533610757565b61129082600a6118f8565b611298611a2b565b60010154604051630345861d60e01b81526001600160601b03841660048201526001600160a01b03838116602483015290911690630345861d90604401610ccb565b6112e333610757565b6112eb611a2b565b600101546001600160a01b0316331461131957604051637dbf3cff60e11b8152336004820152602401610ab2565b611321611a2b565b600301546040516333f6af9b60e11b81526001600160a01b03909116906367ed5f3690610ccb9084908690600401612ad2565b61135d33610757565b61136882600a6118f8565b611370611a2b565b60010154604051635ecf260f60e01b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b0390911690635ecf260f90604401610ccb565b5f6113c133610757565b6113cc84600a6118f8565b5f6113d5611a2b565b90505f6113e95f546001600160a01b031690565b604051631c5da14d60e11b81526001600160601b03881660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611436573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061145a9190612a00565b600183015460405163d43a262360e01b81529192506001600160a01b03169063d43a26239061149190899088908690600401612a1b565b6020604051808303815f875af11580156114ad573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114d191906129a2565b92507fcf86366087b008a90b57f4e7b955b94599f589d7267649942abfd34305fe5b2f868686866040516115089493929190612a47565b60405180910390a150509392505050565b5f611522611a2b565b600201546001600160a01b0316919050565b61153d33610757565b611545611a2b565b600101546001600160a01b0316331461157357604051637dbf3cff60e11b8152336004820152602401610ab2565b61157b611a2b565b60030154604051630f3f86bd60e31b81526001600160a01b03909116906379fc35e890610ccb9084908690600401612ad2565b5f805f80516020612e9083398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561161a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061163e9190612a8a565b1561166a5780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610ab2565b5f546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa1580156116bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116df9190612a8a565b6117075760405163b9304b0d60e01b81526001600160a01b0384166004820152602401610ab2565b5f546001600160a01b0316604051632f2a35f760e11b81526001600160a01b0385811660048301529190911690635e546bee90602401602060405180830381865afa158015611758573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061177c91906129a2565b81546bffffffffffffffffffffffff19166001600160601b039190911690811782557f88857b75cbef7f257c9d5a473e28aaf6a91cc28f717f60f2cda3bcf5623d7b54906117c86110ee565b604080516001600160601b0390931683526001600160a01b0390911660208301520160405180910390a1546001600160601b031692915050565b5f80516020612e708339815191525f8061183a61181d611261565b873061182c60045f8a8c612b28565b61183591612b4f565b611d4d565b9150915081610cf45763ffffffff8116156118d557825460ff60a01b1916600160a01b178355611868611261565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b815260040161189793929190612b87565b5f604051808303815f87803b1580156118ae575f80fd5b505af11580156118c0573d5f803e3d5ffd5b5050845460ff60a01b1916855550610cf49050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610ab2565b60405163037c8cb160e51b815260ff8216600482015273__$0d958e68cba84670b8f4a3f2f2686b1c6b$__90636f91962090602401602060405180830381865af4158015611948573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061196c9190612a8a565b806119f957505f546001600160a01b0316604051635b12715d60e11b81526001600160601b038416600482015260ff831660248201526001600160a01b03919091169063b624e2ba90604401602060405180830381865afa1580156119d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119f79190612a8a565b155b156110cf5760405163d711af7560e01b81526001600160601b038316600482015260ff82166024820152604401610ab2565b7f5744a630cd832cc833bbcbacd41a5b85ea7e62a359f2b0312fec3efecead170090565b611a57611e55565b60405163502ec37160e01b815260040160405180910390fd5b5f80516020612ed08339815191528054600160401b810460ff1615906001600160401b03165f81158015611aa15750825b90505f826001600160401b03166001148015611abc5750303b155b905081158015611aca575080155b15611ae85760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315611b1257845460ff60401b1916600160401b1785555b5f805f88806020019051810190611b299190612bc6565b925092509250611b3a83838c611e8d565b5f611b43611a2b565b9050611b4f6002611f2a565b81546001600160a01b0319166001600160a01b0391909116178155611b7382611fb1565b6001820180546001600160a01b0319166001600160a01b03929092169182179055604080516321df0da760e01b815290516321df0da7916004808201926020929091908290030181865afa158015611bcd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bf19190612a00565b6002820180546001600160a01b0319166001600160a01b039283161790556001820154604080516343d752d360e01b8152905191909216916343d752d39160048083019260209291908290030181865afa158015611c51573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c759190612a00565b6003820180546001600160a01b0319166001600160a01b0392909216919091179055611ca763c6c96fe160e01b61221d565b505050508315610e0a57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610e01565b5f80516020612e7083398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611dbb9190612c05565b5f60405180830381855afa9150503d805f8114611df3576040519150601f19603f3d011682016040523d82523d5f602084013e611df8565b606091505b50915091508115611e4a576040815110611e2a5780806020019051810190611e209190612c1b565b9094509250611e4a565b6020815110611e4a5780806020019051810190611e479190612a8a565b93505b505094509492505050565b5f80516020612ed083398151915254600160401b900460ff16611e8b57604051631afcd79f60e31b815260040160405180910390fd5b565b611e95611e55565b611e9d61225a565b611f1a8383846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ede573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f0291906129a2565b60085f8660405180602001604052805f81525061226a565b61125c63daf9067160e01b61221d565b5f80546001600160a01b031663d39e604383611f44610fe5565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611f87573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fab9190612a00565b92915050565b5f80611fc45f546001600160a01b031690565b6040516308b09a5f60e41b81526001600160a01b0385811660048301529190911690638b09a5f0906024015f60405180830381865afa158015612009573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526120309190810190612c9a565b80516040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561208c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120b09190612a8a565b15612101576120d181604001516120c5600390565b60ff9081169116141590565b156120fa57604051637dbf3cff60e11b81526001600160a01b0384166004820152602401610ab2565b5090919050565b6040516301ffc9a760e01b8152632a9e68e360e11b60048201526001600160a01b038416906301ffc9a790602401602060405180830381865afa15801561214a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061216e9190612a8a565b61219657604051632bf4d8e560e21b81526001600160a01b0384166004820152602401610ab2565b3361219f611a2b565b5460405163c4c79d8b60e01b81526001600160a01b03868116600483015283811660248301529091169063c4c79d8b906044015f604051808303815f875af11580156121ed573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526122149190810190612c9a565b50929392505050565b612225611e55565b6001600160e01b031981165f9081525f80516020612eb083398151915260205260409020805460ff1916600117905550565b50565b612262611e55565b611e8b6123b1565b612272611e55565b604051632330f24760e01b81526001600160a01b038816600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90632330f24790602401602060405180830381865af41580156122c8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122ec9190612a8a565b6123145760405163cf6935e560e01b81526001600160a01b0388166004820152602401610ab2565b61231d876123df565b61232786836123f0565b5f7f66ed5788a8bec6ff1e7b389e8e939876404dd6c85eb5e16ebccc687f21cd620080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016123968382612db5565b506123a7634a531f3360e01b61221d565b5050505050505050565b6123b9611e55565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055565b6123e7611e55565b61225781612466565b6123f8611e55565b612400612477565b612409826124c8565b6001600160a01b0381166124305760405163f17ef42d60e01b815260040160405180910390fd5b5f80516020612e9083398151915280546001600160601b0316600160601b6001600160a01b039093169290920291909117905550565b61246e611e55565b61225781611ced565b61247f611e55565b6301ffc9a760e01b5f525f80516020612eb08339815191526020527f7449848146f4dbd52693c0731b5cd097b0a676ddfe6ffc213ebb4853f36e5619805460ff19166001179055565b6124d0611e55565b604051633334d16b60e01b81526001600160a01b038216600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90633334d16b90602401602060405180830381865af4158015612526573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061254a9190612a8a565b6125725760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ab2565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f602082840312156125a3575f80fd5b81356001600160e01b0319811681146125ba575f80fd5b9392505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526001600160601b0382511660208201526001600160601b03602083015116604082015260ff60408301511660608201525f6060830151612637608084018215159052565b5060808301516001600160a01b03811660a08401525060a08301516001600160a01b03811660c08401525060c083015160e08084015261267b6101008401826125c1565b949350505050565b6001600160601b0381168114612257575f80fd5b5f80604083850312156126a8575f80fd5b82356126b381612683565b915060208301356126c381612683565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b60405160e081016001600160401b0381118282101715612704576127046126ce565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612732576127326126ce565b604052919050565b5f6001600160401b03821115612752576127526126ce565b50601f01601f191660200190565b5f82601f83011261276f575f80fd5b813561278261277d8261273a565b61270a565b818152846020838601011115612796575f80fd5b816020850160208301375f918101602001919091529392505050565b5f602082840312156127c2575f80fd5b81356001600160401b038111156127d7575f80fd5b61267b84828501612760565b6001600160a01b0381168114612257575f80fd5b5f8060408385031215612808575f80fd5b823561281381612683565b915060208301356126c3816127e3565b5f8060408385031215612834575f80fd5b82356126b3816127e3565b5f8060408385031215612850575f80fd5b823561285b816127e3565b915060208301356001600160401b03811115612875575f80fd5b61288185828601612760565b9150509250929050565b803564ffffffffff8116811461289f575f80fd5b919050565b5f805f606084860312156128b6575f80fd5b83356128c181612683565b92506128cf6020850161288b565b915060408401356128df816127e3565b809150509250925092565b5f602082840312156128fa575f80fd5b81356125ba816127e3565b5f805f60608486031215612917575f80fd5b833561292281612683565b92506020840135612932816127e3565b915060408401356128df81612683565b5f8060408385031215612953575f80fd5b823561295e81612683565b915061296c6020840161288b565b90509250929050565b5f60208284031215612985575f80fd5b815162ffffff811681146125ba575f80fd5b805161289f81612683565b5f602082840312156129b2575f80fd5b81516125ba81612683565b600181811c908216806129d157607f821691505b6020821081036129ef57634e487b7160e01b5f52602260045260245ffd5b50919050565b805161289f816127e3565b5f60208284031215612a10575f80fd5b81516125ba816127e3565b6001600160601b0393841681529190921660208201526001600160a01b03909116604082015260600190565b6001600160601b0394851681526001600160a01b039390931660208401529083166040830152909116606082015260800190565b8051801515811461289f575f80fd5b5f60208284031215612a9a575f80fd5b6125ba82612a7b565b6001600160401b0381168114612257575f80fd5b5f60208284031215612ac7575f80fd5b81516125ba81612aa3565b6001600160a01b039290921682526001600160601b0316602082015260400190565b60ff81168114612257575f80fd5b805161289f81612af4565b5f60208284031215612b1d575f80fd5b81516125ba81612af4565b5f8085851115612b36575f80fd5b83861115612b42575f80fd5b5050820193919092039150565b80356001600160e01b03198116906004841015612b80576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b5f805f60608486031215612bd8575f80fd5b8351612be3816127e3565b6020850151909350612bf4816127e3565b60408501519092506128df816127e3565b5f82518060208501845e5f920191825250919050565b5f8060408385031215612c2c575f80fd5b612c3583612a7b565b9150602083015163ffffffff811681146126c3575f80fd5b5f82601f830112612c5c575f80fd5b8151612c6a61277d8261273a565b818152846020838601011115612c7e575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215612caa575f80fd5b81516001600160401b03811115612cbf575f80fd5b820160e08185031215612cd0575f80fd5b612cd86126e2565b612ce182612997565b8152612cef60208301612997565b6020820152612d0060408301612b02565b6040820152612d1160608301612a7b565b6060820152612d22608083016129f5565b6080820152612d3360a083016129f5565b60a082015260c08201516001600160401b03811115612d50575f80fd5b612d5c86828501612c4d565b60c083015250949350505050565b601f82111561125c57805f5260205f20601f840160051c81016020851015612d8f5750805b601f840160051c820191505b81811015612dae575f8155600101612d9b565b5050505050565b81516001600160401b03811115612dce57612dce6126ce565b612de281612ddc84546129bd565b84612d6a565b6020601f821160018114612e14575f8315612dfd5750848201515b5f19600385901b1c1916600184901b178455612dae565b5f84815260208120601f198516915b82811015612e435787850151825560209485019460019092019101612e23565b5084821015612e6057868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a0075a854a54bf614cac5ba72c2235143229b43a26f8eb448270fb97a467532e3002c5de3b4947d23a15785cdf804e1e581a3c5f54c0357f66e3f442def0f390100f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220561c4f578247a4e92c68a6d6d9ccd048450aaace9e2bcb616101c144c15b36fb64736f6c634300081a0033",
1225
+ "linkReferences": {
1226
+ "contracts/shared/ContractLib.sol": {
1227
+ "ContractLib": [
1228
+ {
1229
+ "length": 20,
1230
+ "start": 9062
1231
+ },
1232
+ {
1233
+ "length": 20,
1234
+ "start": 9668
1235
+ }
1236
+ ]
1237
+ },
1238
+ "contracts/type/NftId.sol": {
1239
+ "NftIdLib": [
1240
+ {
1241
+ "length": 20,
1242
+ "start": 1738
1243
+ },
1244
+ {
1245
+ "length": 20,
1246
+ "start": 3021
1247
+ },
1248
+ {
1249
+ "length": 20,
1250
+ "start": 4600
1251
+ },
1252
+ {
1253
+ "length": 20,
1254
+ "start": 5816
1255
+ },
1256
+ {
1257
+ "length": 20,
1258
+ "start": 8490
1259
+ }
1260
+ ]
1261
+ },
1262
+ "contracts/type/ObjectType.sol": {
1263
+ "ObjectTypeLib": [
1264
+ {
1265
+ "length": 20,
1266
+ "start": 6630
1267
+ }
1268
+ ]
1269
+ },
1270
+ "contracts/type/RoleId.sol": {
1271
+ "RoleIdLib": [
1272
+ {
1273
+ "length": 20,
1274
+ "start": 3914
1275
+ }
1276
+ ]
1277
+ },
1278
+ "contracts/type/Version.sol": {
1279
+ "VersionLib": [
1280
+ {
1281
+ "length": 20,
1282
+ "start": 1538
1283
+ },
1284
+ {
1285
+ "length": 20,
1286
+ "start": 2564
1287
+ }
1288
+ ]
1289
+ }
1290
+ },
1291
+ "deployedLinkReferences": {
1292
+ "contracts/shared/ContractLib.sol": {
1293
+ "ContractLib": [
1294
+ {
1295
+ "length": 20,
1296
+ "start": 8848
1297
+ },
1298
+ {
1299
+ "length": 20,
1300
+ "start": 9454
1301
+ }
1302
+ ]
1303
+ },
1304
+ "contracts/type/NftId.sol": {
1305
+ "NftIdLib": [
1306
+ {
1307
+ "length": 20,
1308
+ "start": 1524
1309
+ },
1310
+ {
1311
+ "length": 20,
1312
+ "start": 2807
1313
+ },
1314
+ {
1315
+ "length": 20,
1316
+ "start": 4386
1317
+ },
1318
+ {
1319
+ "length": 20,
1320
+ "start": 5602
1321
+ },
1322
+ {
1323
+ "length": 20,
1324
+ "start": 8276
1325
+ }
1326
+ ]
1327
+ },
1328
+ "contracts/type/ObjectType.sol": {
1329
+ "ObjectTypeLib": [
1330
+ {
1331
+ "length": 20,
1332
+ "start": 6416
1333
+ }
1334
+ ]
1335
+ },
1336
+ "contracts/type/RoleId.sol": {
1337
+ "RoleIdLib": [
1338
+ {
1339
+ "length": 20,
1340
+ "start": 3700
1341
+ }
1342
+ ]
1343
+ },
1344
+ "contracts/type/Version.sol": {
1345
+ "VersionLib": [
1346
+ {
1347
+ "length": 20,
1348
+ "start": 1324
1349
+ },
1350
+ {
1351
+ "length": 20,
1352
+ "start": 2350
1353
+ }
1354
+ ]
1355
+ }
1356
+ }
1357
+ }