@etherisc/gif-next 0.0.2-c9b0563-536 → 0.0.2-c9f64c2-575

Sign up to get free protection for your applications and to get access to all the features.
Files changed (759) hide show
  1. package/README.md +85 -23
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1007 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +744 -0
  6. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +4 -0
  7. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +791 -0
  8. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +4 -0
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +1494 -0
  10. package/artifacts/contracts/authorization/AccessAdmin.sol/IAccessManagedChecker.dbg.json +4 -0
  11. package/artifacts/contracts/authorization/AccessAdmin.sol/IAccessManagedChecker.json +24 -0
  12. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.dbg.json +4 -0
  13. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.json +673 -0
  14. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +1403 -0
  16. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +4 -0
  17. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +615 -0
  18. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +4 -0
  19. package/artifacts/contracts/{instance/module/ISetup.sol/ISetup.json → authorization/IAccess.sol/IAccess.json} +2 -2
  20. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +4 -0
  21. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +1224 -0
  22. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +382 -0
  24. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  25. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +167 -0
  26. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  27. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +253 -0
  28. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  29. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1322 -0
  30. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +4 -0
  31. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +644 -0
  32. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  33. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1016 -0
  34. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  35. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1509 -0
  36. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  37. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +864 -0
  38. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  39. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +915 -0
  40. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  41. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +1008 -0
  42. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.dbg.json +4 -0
  43. package/artifacts/contracts/examples/fire/DamageLevel.sol/DamageLevelLib.json +22 -0
  44. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.dbg.json +4 -0
  45. package/artifacts/contracts/examples/fire/FirePool.sol/FirePool.json +1475 -0
  46. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.dbg.json +4 -0
  47. package/artifacts/contracts/examples/fire/FirePoolAuthorization.sol/FirePoolAuthorization.json +644 -0
  48. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  49. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +2032 -0
  50. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.dbg.json +4 -0
  51. package/artifacts/contracts/examples/fire/FireProductAuthorization.sol/FireProductAuthorization.json +644 -0
  52. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  53. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  54. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  55. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +1479 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.dbg.json +4 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol/SimpleDistributionAuthorization.json +644 -0
  58. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  59. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +1195 -0
  60. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.dbg.json +4 -0
  61. package/artifacts/contracts/examples/unpermissioned/SimplePool.sol/SimplePool.json +1655 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.dbg.json +4 -0
  63. package/artifacts/contracts/examples/unpermissioned/SimplePoolAuthorization.sol/SimplePoolAuthorization.json +644 -0
  64. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  65. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +2432 -0
  66. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.dbg.json +4 -0
  67. package/artifacts/contracts/examples/unpermissioned/SimpleProductAuthorization.sol/SimpleProductAuthorization.json +644 -0
  68. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +4 -0
  69. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +851 -0
  70. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  71. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +334 -1496
  72. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  73. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +388 -185
  74. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  75. package/artifacts/contracts/instance/Instance.sol/Instance.json +447 -2505
  76. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  77. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +2036 -0
  78. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +4 -0
  79. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +716 -0
  80. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  81. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1617 -569
  82. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  83. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +443 -447
  84. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  85. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +366 -105
  86. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  87. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3718 -0
  88. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.dbg.json +4 -0
  89. package/artifacts/contracts/instance/RiskSet.sol/RiskSet.json +853 -0
  90. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  91. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  92. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  93. package/artifacts/contracts/instance/{Cloneable.sol → base/Cloneable.sol}/Cloneable.json +1 -49
  94. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.dbg.json +4 -0
  95. package/artifacts/contracts/instance/base/ObjectCounter.sol/ObjectCounter.json +10 -0
  96. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.dbg.json +4 -0
  97. package/artifacts/contracts/instance/base/ObjectLifecycle.sol/ObjectLifecycle.json +223 -0
  98. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.dbg.json +4 -0
  99. package/artifacts/contracts/instance/base/ObjectSet.sol/ObjectSet.json +192 -0
  100. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.dbg.json +4 -0
  101. package/artifacts/contracts/instance/base/ObjectSetHelperLib.sol/ObjectSetHelperLib.json +168 -0
  102. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  103. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  104. package/artifacts/contracts/instance/module/{ITreasury.sol/ITreasury.json → IComponents.sol/IComponents.json} +2 -2
  105. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  106. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  107. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  108. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  109. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  110. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.dbg.json +4 -0
  111. package/artifacts/contracts/oracle/BasicOracle.sol/BasicOracle.json +959 -0
  112. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.dbg.json +4 -0
  113. package/artifacts/contracts/oracle/BasicOracleAuthorization.sol/BasicOracleAuthorization.json +632 -0
  114. package/artifacts/contracts/oracle/IOracle.sol/IOracle.dbg.json +4 -0
  115. package/artifacts/contracts/oracle/IOracle.sol/IOracle.json +52 -0
  116. package/artifacts/contracts/oracle/IOracleComponent.sol/IOracleComponent.dbg.json +4 -0
  117. package/artifacts/contracts/{components/IPoolComponent.sol/IPoolComponent.json → oracle/IOracleComponent.sol/IOracleComponent.json} +345 -284
  118. package/artifacts/contracts/oracle/IOracleService.sol/IOracleService.dbg.json +4 -0
  119. package/artifacts/contracts/{instance/service/IPolicyService.sol/IPolicyService.json → oracle/IOracleService.sol/IOracleService.json} +310 -343
  120. package/artifacts/contracts/oracle/Oracle.sol/Oracle.dbg.json +4 -0
  121. package/artifacts/contracts/{components/Distribution.sol/Distribution.json → oracle/Oracle.sol/Oracle.json} +323 -297
  122. package/artifacts/contracts/oracle/OracleService.sol/OracleService.dbg.json +4 -0
  123. package/artifacts/contracts/oracle/OracleService.sol/OracleService.json +997 -0
  124. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.dbg.json +4 -0
  125. package/artifacts/contracts/oracle/OracleServiceManager.sol/OracleServiceManager.json +764 -0
  126. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.dbg.json +4 -0
  127. package/artifacts/contracts/pool/BasicPool.sol/BasicPool.json +1252 -0
  128. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.dbg.json +4 -0
  129. package/artifacts/contracts/pool/BasicPoolAuthorization.sol/BasicPoolAuthorization.json +644 -0
  130. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  131. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1261 -0
  132. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  133. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +800 -0
  134. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  135. package/artifacts/contracts/{instance/service → pool}/IBundleService.sol/IBundleService.json +435 -270
  136. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  137. package/artifacts/contracts/{components/Pool.sol/Pool.json → pool/IPoolComponent.sol/IPoolComponent.json} +344 -351
  138. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  139. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1230 -0
  140. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  141. package/artifacts/contracts/pool/Pool.sol/Pool.json +1027 -0
  142. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.dbg.json +4 -0
  143. package/artifacts/contracts/pool/PoolLib.sol/PoolLib.json +456 -0
  144. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  145. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1574 -0
  146. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  147. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +808 -0
  148. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  149. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +813 -0
  150. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  151. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +728 -0
  152. package/artifacts/contracts/product/BasicProduct.sol/BasicProduct.dbg.json +4 -0
  153. package/artifacts/contracts/{components/IProductComponent.sol/IProductComponent.json → product/BasicProduct.sol/BasicProduct.json} +668 -255
  154. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.dbg.json +4 -0
  155. package/artifacts/contracts/product/BasicProductAuthorization.sol/BasicProductAuthorization.json +644 -0
  156. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  157. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1496 -0
  158. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  159. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +848 -0
  160. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  161. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → product/IApplicationService.sol/IApplicationService.json} +286 -220
  162. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  163. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +1064 -0
  164. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  165. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +981 -0
  166. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  167. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IPricingService.sol/IPricingService.json} +311 -203
  168. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  169. package/artifacts/contracts/{components/Product.sol/Product.json → product/IProductComponent.sol/IProductComponent.json} +450 -381
  170. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  171. package/artifacts/contracts/{instance/service/IDistributionService.sol/IDistributionService.json → product/IRiskService.sol/IRiskService.json} +174 -156
  172. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  173. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1333 -0
  174. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.dbg.json +4 -0
  175. package/artifacts/contracts/product/PolicyServiceLib.sol/PolicyServiceLib.json +293 -0
  176. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  177. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +808 -0
  178. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  179. package/artifacts/contracts/product/PricingService.sol/PricingService.json +930 -0
  180. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  181. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +784 -0
  182. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  183. package/artifacts/contracts/product/Product.sol/Product.json +1119 -0
  184. package/artifacts/contracts/product/RiskService.sol/RiskService.dbg.json +4 -0
  185. package/artifacts/contracts/product/RiskService.sol/RiskService.json +659 -0
  186. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.dbg.json +4 -0
  187. package/artifacts/contracts/product/RiskServiceManager.sol/RiskServiceManager.json +732 -0
  188. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  189. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +72 -16
  190. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  191. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +513 -27
  192. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  193. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +284 -222
  194. package/artifacts/contracts/registry/IRelease.sol/IRelease.dbg.json +4 -0
  195. package/artifacts/contracts/registry/IRelease.sol/IRelease.json +24 -0
  196. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  197. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +5 -0
  198. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  199. package/artifacts/contracts/registry/Registry.sol/Registry.json +996 -119
  200. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  201. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2018 -0
  202. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  203. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +878 -0
  204. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  205. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +347 -278
  206. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  207. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +361 -90
  208. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  209. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +1954 -0
  210. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.dbg.json +4 -0
  211. package/artifacts/contracts/registry/ReleaseLifecycle.sol/ReleaseLifecycle.json +205 -0
  212. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.dbg.json +4 -0
  213. package/artifacts/contracts/registry/ReleaseRegistry.sol/ReleaseRegistry.json +1337 -0
  214. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  215. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +272 -0
  216. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  217. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +350 -83
  218. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  219. package/artifacts/contracts/{instance/base/ComponentService.sol/ComponentService.json → shared/Component.sol/Component.json} +318 -214
  220. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  221. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1532 -0
  222. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  223. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +812 -0
  224. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +4 -0
  225. package/artifacts/contracts/{components/IComponent.sol/IComponent.json → shared/ComponentVerifyingService.sol/ComponentVerifyingService.json} +178 -148
  226. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.dbg.json +4 -0
  227. package/artifacts/contracts/shared/ContractLib.sol/ContractLib.json +597 -0
  228. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.dbg.json +4 -0
  229. package/artifacts/contracts/shared/ContractLib.sol/IInstanceAdminHelper.json +24 -0
  230. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.dbg.json +4 -0
  231. package/artifacts/contracts/shared/ContractLib.sol/ITargetHelper.json +30 -0
  232. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.dbg.json +4 -0
  233. package/artifacts/contracts/shared/ContractLib.sol/ITokenRegistryHelper.json +40 -0
  234. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  235. package/artifacts/contracts/{components/Component.sol/Component.json → shared/IComponent.sol/IComponent.json} +192 -216
  236. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  237. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +1180 -0
  238. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  239. package/artifacts/contracts/{components/IDistributionComponent.sol/IDistributionComponent.json → shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json} +287 -226
  240. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  241. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +95 -14
  242. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  243. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +35 -4
  244. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  245. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +46 -26
  246. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  247. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +175 -0
  248. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  249. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +143 -10
  250. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  251. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  252. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  253. package/artifacts/contracts/shared/IService.sol/IService.json +124 -141
  254. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.dbg.json +4 -0
  255. package/artifacts/contracts/shared/InitializableERC165.sol/InitializableERC165.json +53 -0
  256. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  257. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +797 -0
  258. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  259. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +538 -0
  260. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  261. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +174 -0
  262. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.dbg.json +4 -0
  263. package/artifacts/contracts/shared/NftIdSet.sol/NftIdSet.json +306 -0
  264. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  265. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +74 -36
  266. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  267. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +198 -0
  268. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  269. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +156 -60
  270. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  271. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +58 -0
  272. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  273. package/artifacts/contracts/shared/Service.sol/Service.json +142 -165
  274. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  275. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +635 -8
  276. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.dbg.json +4 -0
  277. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandlerBase.json +484 -0
  278. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.dbg.json +4 -0
  279. package/artifacts/contracts/shared/TokenHandlerDeployerLib.sol/TokenHandlerDeployerLib.json +172 -0
  280. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  281. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1465 -0
  282. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  283. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +1096 -0
  284. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.dbg.json +4 -0
  285. package/artifacts/contracts/staking/StakeManagerLib.sol/StakeManagerLib.json +440 -0
  286. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  287. package/artifacts/contracts/staking/Staking.sol/Staking.json +1849 -0
  288. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.dbg.json +4 -0
  289. package/artifacts/contracts/staking/StakingLifecycle.sol/StakingLifecycle.json +205 -0
  290. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  291. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +788 -0
  292. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  293. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +587 -0
  294. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  295. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +1301 -0
  296. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  297. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +732 -0
  298. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.dbg.json +4 -0
  299. package/artifacts/contracts/staking/StakingStore.sol/StakingStore.json +2283 -0
  300. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  301. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +607 -0
  302. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  303. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +10 -0
  304. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  305. package/artifacts/contracts/type/Amount.sol/AmountLib.json +398 -0
  306. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  307. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +225 -0
  308. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  309. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +203 -0
  310. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  311. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  312. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  313. package/artifacts/contracts/type/Fee.sol/FeeLib.json +317 -0
  314. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  315. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  316. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.dbg.json +4 -0
  317. package/artifacts/contracts/type/Key32Set.sol/LibKey32Set.json +33 -0
  318. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  319. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +228 -0
  320. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  321. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  322. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  323. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +241 -0
  324. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  325. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  326. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  327. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  328. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.dbg.json +4 -0
  329. package/artifacts/contracts/type/RequestId.sol/RequestIdLib.json +204 -0
  330. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  331. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +204 -0
  332. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  333. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +433 -0
  334. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  335. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +246 -0
  336. package/artifacts/contracts/type/Selector.sol/SelectorLib.dbg.json +4 -0
  337. package/artifacts/contracts/type/Selector.sol/SelectorLib.json +148 -0
  338. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.dbg.json +4 -0
  339. package/artifacts/contracts/type/Selector.sol/SelectorSetLib.json +10 -0
  340. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  341. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +105 -0
  342. package/artifacts/contracts/type/String.sol/StrLib.dbg.json +4 -0
  343. package/artifacts/contracts/type/String.sol/StrLib.json +132 -0
  344. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  345. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +312 -0
  346. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  347. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +548 -0
  348. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  349. package/artifacts/contracts/type/Version.sol/VersionLib.json +158 -0
  350. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  351. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +167 -0
  352. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.dbg.json +4 -0
  353. package/artifacts/contracts/upgradeability/IVersionable.sol/IVersionable.json +55 -0
  354. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  355. package/artifacts/contracts/upgradeability/ProxyManager.sol/ProxyManager.json +618 -0
  356. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  357. package/artifacts/contracts/upgradeability/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  358. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.dbg.json +4 -0
  359. package/artifacts/contracts/upgradeability/Versionable.sol/Versionable.json +78 -0
  360. package/contracts/accounting/AccountingService.sol +262 -0
  361. package/contracts/accounting/AccountingServiceManager.sol +38 -0
  362. package/contracts/accounting/IAccountingService.sol +45 -0
  363. package/contracts/authorization/AccessAdmin.sol +704 -0
  364. package/contracts/authorization/AccessAdminLib.sol +183 -0
  365. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  366. package/contracts/authorization/Authorization.sol +365 -0
  367. package/contracts/authorization/IAccess.sol +49 -0
  368. package/contracts/authorization/IAccessAdmin.sol +170 -0
  369. package/contracts/authorization/IAuthorization.sol +80 -0
  370. package/contracts/authorization/IServiceAuthorization.sol +40 -0
  371. package/contracts/authorization/ServiceAuthorization.sol +106 -0
  372. package/contracts/distribution/BasicDistribution.sol +141 -0
  373. package/contracts/distribution/BasicDistributionAuthorization.sol +60 -0
  374. package/contracts/distribution/Distribution.sol +289 -0
  375. package/contracts/distribution/DistributionService.sol +358 -0
  376. package/contracts/distribution/DistributionServiceManager.sol +39 -0
  377. package/contracts/distribution/IDistributionComponent.sol +52 -0
  378. package/contracts/distribution/IDistributionService.sol +101 -0
  379. package/contracts/examples/fire/DamageLevel.sol +59 -0
  380. package/contracts/examples/fire/FirePool.sol +90 -0
  381. package/contracts/examples/fire/FirePoolAuthorization.sol +35 -0
  382. package/contracts/examples/fire/FireProduct.sol +437 -0
  383. package/contracts/examples/fire/FireProductAuthorization.sol +45 -0
  384. package/contracts/examples/fire/FireUSD.sol +26 -0
  385. package/contracts/examples/unpermissioned/SimpleDistribution.sol +57 -0
  386. package/contracts/examples/unpermissioned/SimpleDistributionAuthorization.sol +28 -0
  387. package/contracts/examples/unpermissioned/SimpleOracle.sol +137 -0
  388. package/contracts/examples/unpermissioned/SimplePool.sol +106 -0
  389. package/contracts/examples/unpermissioned/SimplePoolAuthorization.sol +28 -0
  390. package/contracts/examples/unpermissioned/SimpleProduct.sol +377 -0
  391. package/contracts/examples/unpermissioned/SimpleProductAuthorization.sol +28 -0
  392. package/contracts/instance/BundleSet.sol +130 -0
  393. package/contracts/instance/IInstance.sol +82 -51
  394. package/contracts/instance/IInstanceService.sol +64 -22
  395. package/contracts/instance/Instance.sol +211 -191
  396. package/contracts/instance/InstanceAdmin.sol +450 -0
  397. package/contracts/instance/InstanceAuthorizationV3.sol +235 -0
  398. package/contracts/instance/InstanceReader.sol +408 -64
  399. package/contracts/instance/InstanceService.sol +344 -329
  400. package/contracts/instance/InstanceServiceManager.sol +14 -29
  401. package/contracts/instance/InstanceStore.sol +298 -0
  402. package/contracts/instance/RiskSet.sol +118 -0
  403. package/contracts/instance/base/BalanceStore.sol +123 -0
  404. package/contracts/instance/{Cloneable.sol → base/Cloneable.sol} +4 -22
  405. package/contracts/instance/base/ObjectCounter.sol +20 -0
  406. package/contracts/instance/base/ObjectLifecycle.sol +113 -0
  407. package/contracts/instance/base/ObjectSet.sol +77 -0
  408. package/contracts/instance/base/ObjectSetHelperLib.sol +30 -0
  409. package/contracts/instance/module/IBundle.sol +8 -8
  410. package/contracts/instance/module/IComponents.sol +51 -0
  411. package/contracts/instance/module/IDistribution.sol +8 -5
  412. package/contracts/instance/module/IPolicy.sol +59 -19
  413. package/contracts/instance/module/IRisk.sol +4 -1
  414. package/contracts/{test/TestToken.sol → mock/Dip.sol} +6 -6
  415. package/contracts/oracle/BasicOracle.sol +47 -0
  416. package/contracts/oracle/BasicOracleAuthorization.sol +37 -0
  417. package/contracts/oracle/IOracle.sol +36 -0
  418. package/contracts/oracle/IOracleComponent.sol +33 -0
  419. package/contracts/oracle/IOracleService.sol +66 -0
  420. package/contracts/oracle/Oracle.sol +156 -0
  421. package/contracts/oracle/OracleService.sol +310 -0
  422. package/contracts/oracle/OracleServiceManager.sol +39 -0
  423. package/contracts/pool/BasicPool.sol +175 -0
  424. package/contracts/pool/BasicPoolAuthorization.sol +76 -0
  425. package/contracts/pool/BundleService.sol +395 -0
  426. package/contracts/pool/BundleServiceManager.sol +39 -0
  427. package/contracts/pool/IBundleService.sol +115 -0
  428. package/contracts/pool/IPoolComponent.sol +62 -0
  429. package/contracts/pool/IPoolService.sol +165 -0
  430. package/contracts/pool/Pool.sol +345 -0
  431. package/contracts/pool/PoolLib.sol +216 -0
  432. package/contracts/pool/PoolService.sol +757 -0
  433. package/contracts/pool/PoolServiceManager.sol +39 -0
  434. package/contracts/product/ApplicationService.sol +259 -0
  435. package/contracts/product/ApplicationServiceManager.sol +38 -0
  436. package/contracts/product/BasicProduct.sol +51 -0
  437. package/contracts/product/BasicProductAuthorization.sol +56 -0
  438. package/contracts/product/ClaimService.sol +632 -0
  439. package/contracts/product/ClaimServiceManager.sol +38 -0
  440. package/contracts/product/IApplicationService.sol +66 -0
  441. package/contracts/product/IClaimService.sol +135 -0
  442. package/contracts/product/IPolicyService.sol +95 -0
  443. package/contracts/product/IPricingService.sol +39 -0
  444. package/contracts/product/IProductComponent.sol +62 -0
  445. package/contracts/product/IRiskService.sol +30 -0
  446. package/contracts/product/PolicyService.sol +664 -0
  447. package/contracts/product/PolicyServiceLib.sol +65 -0
  448. package/contracts/product/PolicyServiceManager.sol +39 -0
  449. package/contracts/product/PricingService.sol +304 -0
  450. package/contracts/product/PricingServiceManager.sol +39 -0
  451. package/contracts/product/Product.sol +469 -0
  452. package/contracts/product/RiskService.sol +144 -0
  453. package/contracts/product/RiskServiceManager.sol +39 -0
  454. package/contracts/registry/ChainNft.sol +83 -36
  455. package/contracts/registry/IRegistry.sol +98 -30
  456. package/contracts/registry/IRegistryService.sol +38 -41
  457. package/contracts/registry/IRelease.sol +26 -0
  458. package/contracts/registry/ITransferInterceptor.sol +1 -1
  459. package/contracts/registry/Registry.sol +485 -207
  460. package/contracts/registry/RegistryAdmin.sol +258 -0
  461. package/contracts/registry/RegistryAuthorization.sol +266 -0
  462. package/contracts/registry/RegistryService.sol +118 -139
  463. package/contracts/registry/RegistryServiceManager.sol +24 -33
  464. package/contracts/registry/ReleaseAdmin.sol +253 -0
  465. package/contracts/registry/ReleaseLifecycle.sol +32 -0
  466. package/contracts/registry/ReleaseRegistry.sol +517 -0
  467. package/contracts/registry/ServiceAuthorizationV3.sol +329 -0
  468. package/contracts/registry/TokenRegistry.sol +263 -62
  469. package/contracts/shared/Component.sol +227 -0
  470. package/contracts/shared/ComponentService.sol +689 -0
  471. package/contracts/shared/ComponentServiceManager.sol +38 -0
  472. package/contracts/shared/ComponentVerifyingService.sol +128 -0
  473. package/contracts/shared/ContractLib.sol +281 -0
  474. package/contracts/shared/IComponent.sol +61 -0
  475. package/contracts/shared/IComponentService.sol +110 -0
  476. package/contracts/shared/IInstanceLinkedComponent.sol +30 -0
  477. package/contracts/{instance/base → shared}/IKeyValueStore.sol +16 -11
  478. package/contracts/{instance/base → shared}/ILifecycle.sol +5 -4
  479. package/contracts/shared/INftOwnable.sol +15 -12
  480. package/contracts/shared/IPolicyHolder.sol +35 -0
  481. package/contracts/shared/IRegisterable.sol +24 -2
  482. package/contracts/shared/IRegistryLinked.sol +11 -0
  483. package/contracts/shared/IService.sol +12 -5
  484. package/contracts/shared/InitializableERC165.sol +35 -0
  485. package/contracts/shared/InstanceLinkedComponent.sol +197 -0
  486. package/contracts/shared/KeyValueStore.sol +131 -0
  487. package/contracts/shared/Lifecycle.sol +88 -0
  488. package/contracts/shared/NftIdSet.sol +65 -0
  489. package/contracts/shared/NftOwnable.sol +75 -87
  490. package/contracts/shared/PolicyHolder.sol +62 -0
  491. package/contracts/shared/Registerable.sol +49 -29
  492. package/contracts/shared/RegistryLinked.sol +38 -0
  493. package/contracts/shared/Service.sol +39 -34
  494. package/contracts/shared/TokenHandler.sol +327 -12
  495. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  496. package/contracts/staking/IStaking.sol +169 -0
  497. package/contracts/staking/IStakingService.sol +165 -0
  498. package/contracts/staking/StakeManagerLib.sol +224 -0
  499. package/contracts/staking/Staking.sol +526 -0
  500. package/contracts/staking/StakingLifecycle.sol +23 -0
  501. package/contracts/staking/StakingManager.sol +52 -0
  502. package/contracts/staking/StakingReader.sol +190 -0
  503. package/contracts/staking/StakingService.sol +430 -0
  504. package/contracts/staking/StakingServiceManager.sol +45 -0
  505. package/contracts/staking/StakingStore.sol +605 -0
  506. package/contracts/staking/TargetManagerLib.sol +211 -0
  507. package/contracts/{types → type}/AddressSet.sol +1 -1
  508. package/contracts/type/Amount.sol +150 -0
  509. package/contracts/{types → type}/Blocknumber.sol +27 -3
  510. package/contracts/type/ClaimId.sol +80 -0
  511. package/contracts/{types → type}/DistributorType.sol +2 -2
  512. package/contracts/{types → type}/Fee.sol +33 -23
  513. package/contracts/{types → type}/Key32.sol +2 -2
  514. package/contracts/type/Key32Set.sol +62 -0
  515. package/contracts/{types → type}/NftId.sol +28 -15
  516. package/contracts/{types → type}/NftIdSet.sol +2 -2
  517. package/contracts/type/ObjectType.sol +294 -0
  518. package/contracts/type/PayoutId.sol +82 -0
  519. package/contracts/{types → type}/Referral.sol +6 -1
  520. package/contracts/type/RequestId.sol +75 -0
  521. package/contracts/type/RiskId.sol +75 -0
  522. package/contracts/type/RoleId.sol +182 -0
  523. package/contracts/type/Seconds.sol +101 -0
  524. package/contracts/type/Selector.sol +107 -0
  525. package/contracts/{types → type}/StateId.sol +48 -4
  526. package/contracts/type/String.sol +53 -0
  527. package/contracts/{types → type}/Timestamp.sol +33 -19
  528. package/contracts/{types → type}/UFixed.sol +41 -121
  529. package/contracts/{types → type}/Version.sol +59 -7
  530. package/contracts/{shared → upgradeability}/IVersionable.sol +5 -48
  531. package/contracts/upgradeability/ProxyManager.sol +232 -0
  532. package/contracts/{shared → upgradeability}/UpgradableProxyWithAdmin.sol +1 -3
  533. package/contracts/upgradeability/Versionable.sol +59 -0
  534. package/package.json +12 -8
  535. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  536. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  537. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +0 -4
  538. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  539. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  540. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  541. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  542. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  543. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  544. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  545. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  546. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  547. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  548. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  549. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  550. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  551. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  552. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  553. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  554. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  555. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  556. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  557. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  558. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  559. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  560. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  561. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  562. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  563. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  564. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  565. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  566. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  567. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  568. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  569. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  570. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  571. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  572. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  573. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  574. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  575. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  576. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  577. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  578. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  579. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  580. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  581. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  582. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +0 -4
  583. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +0 -764
  584. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +0 -4
  585. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  586. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1034
  587. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  588. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +0 -261
  589. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +0 -4
  590. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  591. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  592. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  593. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -502
  594. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  595. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -169
  596. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  597. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -254
  598. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  599. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  600. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +0 -4
  601. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +0 -1102
  602. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +0 -4
  603. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +0 -449
  604. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  605. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -772
  606. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
  607. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -437
  608. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +0 -4
  609. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  610. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +0 -4
  611. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  612. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  613. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +0 -4
  614. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +0 -1227
  615. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
  616. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -505
  617. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  618. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -806
  619. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
  620. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -437
  621. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  622. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -856
  623. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  624. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -437
  625. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  626. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -285
  627. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +0 -4
  628. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +0 -547
  629. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  630. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  631. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  632. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -35
  633. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  634. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +0 -205
  635. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  636. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -362
  637. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  638. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  639. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  640. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +0 -228
  641. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  642. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  643. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  644. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -313
  645. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  646. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  647. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  648. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -608
  649. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  650. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  651. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  652. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  653. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  654. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -286
  655. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  656. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  657. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  658. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +0 -10
  659. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  660. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +0 -174
  661. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  662. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  663. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  664. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +0 -104
  665. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  666. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  667. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  668. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -125
  669. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  670. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  671. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  672. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -33
  673. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  674. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  675. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  676. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +0 -92
  677. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  678. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -123
  679. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  680. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +0 -86
  681. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  682. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -156
  683. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  684. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +0 -92
  685. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  686. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -249
  687. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  688. package/artifacts/contracts/types/UFixed.sol/MathLib.json +0 -10
  689. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  690. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +0 -479
  691. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  692. package/artifacts/contracts/types/Version.sol/VersionLib.json +0 -177
  693. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  694. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -49
  695. package/contracts/components/Component.sol +0 -216
  696. package/contracts/components/Distribution.sol +0 -153
  697. package/contracts/components/IComponent.sol +0 -43
  698. package/contracts/components/IDistributionComponent.sol +0 -47
  699. package/contracts/components/IPoolComponent.sol +0 -51
  700. package/contracts/components/IProductComponent.sol +0 -39
  701. package/contracts/components/Pool.sol +0 -208
  702. package/contracts/components/Product.sol +0 -266
  703. package/contracts/experiment/cloning/Cloner.sol +0 -47
  704. package/contracts/experiment/errors/Require.sol +0 -38
  705. package/contracts/experiment/errors/Revert.sol +0 -44
  706. package/contracts/experiment/inheritance/A.sol +0 -53
  707. package/contracts/experiment/inheritance/B.sol +0 -28
  708. package/contracts/experiment/inheritance/C.sol +0 -34
  709. package/contracts/experiment/inheritance/IA.sol +0 -13
  710. package/contracts/experiment/inheritance/IB.sol +0 -10
  711. package/contracts/experiment/inheritance/IC.sol +0 -12
  712. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  713. package/contracts/experiment/statemachine/ISM.sol +0 -25
  714. package/contracts/experiment/statemachine/SM.sol +0 -57
  715. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  716. package/contracts/experiment/types/TypeA.sol +0 -47
  717. package/contracts/experiment/types/TypeB.sol +0 -29
  718. package/contracts/instance/BundleManager.sol +0 -125
  719. package/contracts/instance/InstanceAccessManager.sol +0 -298
  720. package/contracts/instance/ObjectManager.sol +0 -84
  721. package/contracts/instance/base/ComponentService.sol +0 -134
  722. package/contracts/instance/base/KeyValueStore.sol +0 -172
  723. package/contracts/instance/base/Lifecycle.sol +0 -100
  724. package/contracts/instance/module/IAccess.sol +0 -48
  725. package/contracts/instance/module/ISetup.sol +0 -46
  726. package/contracts/instance/module/ITreasury.sol +0 -23
  727. package/contracts/instance/service/BundleService.sol +0 -293
  728. package/contracts/instance/service/BundleServiceManager.sol +0 -51
  729. package/contracts/instance/service/DistributionService.sol +0 -106
  730. package/contracts/instance/service/DistributionServiceManager.sol +0 -51
  731. package/contracts/instance/service/IBundleService.sol +0 -44
  732. package/contracts/instance/service/IDistributionService.sol +0 -12
  733. package/contracts/instance/service/IPolicyService.sol +0 -94
  734. package/contracts/instance/service/IPoolService.sol +0 -20
  735. package/contracts/instance/service/IProductService.sol +0 -40
  736. package/contracts/instance/service/PolicyService.sol +0 -538
  737. package/contracts/instance/service/PolicyServiceManager.sol +0 -54
  738. package/contracts/instance/service/PoolService.sol +0 -110
  739. package/contracts/instance/service/PoolServiceManager.sol +0 -51
  740. package/contracts/instance/service/ProductService.sol +0 -233
  741. package/contracts/instance/service/ProductServiceManager.sol +0 -54
  742. package/contracts/registry/RegistryAccessManager.sol +0 -216
  743. package/contracts/registry/ReleaseManager.sol +0 -332
  744. package/contracts/shared/ContractDeployerLib.sol +0 -72
  745. package/contracts/shared/ERC165.sol +0 -25
  746. package/contracts/shared/ProxyManager.sol +0 -94
  747. package/contracts/shared/Versionable.sol +0 -147
  748. package/contracts/test/TestFee.sol +0 -25
  749. package/contracts/test/TestRegisterable.sol +0 -18
  750. package/contracts/test/TestRoleId.sol +0 -14
  751. package/contracts/test/TestService.sol +0 -25
  752. package/contracts/test/TestVersion.sol +0 -44
  753. package/contracts/test/TestVersionable.sol +0 -17
  754. package/contracts/test/Usdc.sol +0 -26
  755. package/contracts/types/ChainId.sol +0 -38
  756. package/contracts/types/NumberId.sol +0 -52
  757. package/contracts/types/ObjectType.sol +0 -152
  758. package/contracts/types/RiskId.sol +0 -43
  759. package/contracts/types/RoleId.sol +0 -90
@@ -45,306 +45,253 @@
45
45
  "inputs": [
46
46
  {
47
47
  "internalType": "address",
48
- "name": "registry",
48
+ "name": "authority",
49
49
  "type": "address"
50
- },
51
- {
52
- "internalType": "NftId",
53
- "name": "nftId",
54
- "type": "uint96"
55
50
  }
56
51
  ],
57
- "name": "ErrorAlreadyLinked",
52
+ "name": "ErrorAuthorityInvalid",
58
53
  "type": "error"
59
54
  },
60
55
  {
61
56
  "inputs": [
62
57
  {
63
58
  "internalType": "address",
64
- "name": "contractAddress",
59
+ "name": "instanceBundleSet",
65
60
  "type": "address"
66
61
  }
67
62
  ],
68
- "name": "ErrorContractNotRegistered",
63
+ "name": "ErrorInstanceBundleSetAlreadySet",
69
64
  "type": "error"
70
65
  },
71
66
  {
72
67
  "inputs": [
73
68
  {
74
- "internalType": "ObjectType",
75
- "name": "objectType",
76
- "type": "uint8"
77
- },
78
- {
79
- "internalType": "StateId",
80
- "name": "fromStateId",
81
- "type": "uint8"
82
- },
83
- {
84
- "internalType": "StateId",
85
- "name": "toStateId",
86
- "type": "uint8"
69
+ "internalType": "address",
70
+ "name": "instanceAuthority",
71
+ "type": "address"
87
72
  }
88
73
  ],
89
- "name": "ErrorInvalidStateTransition",
74
+ "name": "ErrorInstanceBundleSetAuthorityMismatch",
90
75
  "type": "error"
91
76
  },
92
77
  {
93
78
  "inputs": [
94
79
  {
95
- "internalType": "NftId",
96
- "name": "nftId",
97
- "type": "uint96"
98
- },
99
- {
100
- "internalType": "ObjectType",
101
- "name": "objectType",
102
- "type": "uint8"
80
+ "internalType": "address",
81
+ "name": "instance",
82
+ "type": "address"
103
83
  }
104
84
  ],
105
- "name": "ErrorNoLifecycle",
85
+ "name": "ErrorInstanceBundleSetInstanceMismatch",
106
86
  "type": "error"
107
87
  },
108
88
  {
109
89
  "inputs": [
110
90
  {
111
91
  "internalType": "address",
112
- "name": "account",
92
+ "name": "InstanceAdmin",
113
93
  "type": "address"
114
94
  }
115
95
  ],
116
- "name": "ErrorNotOwner",
96
+ "name": "ErrorInstanceInstanceAdminAlreadySet",
117
97
  "type": "error"
118
98
  },
119
99
  {
120
100
  "inputs": [
121
101
  {
122
102
  "internalType": "address",
123
- "name": "registryAddress",
103
+ "name": "instanceAuthority",
124
104
  "type": "address"
125
105
  }
126
106
  ],
127
- "name": "ErrorNotRegistry",
107
+ "name": "ErrorInstanceInstanceAdminAuthorityMismatch",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "ErrorInstanceInstanceAdminZero",
128
113
  "type": "error"
129
114
  },
130
115
  {
131
116
  "inputs": [
132
117
  {
133
118
  "internalType": "address",
134
- "name": "registryAddress",
119
+ "name": "instanceAuthority",
135
120
  "type": "address"
136
121
  }
137
122
  ],
138
- "name": "ErrorRegisterableNotRegistry",
139
- "type": "error"
140
- },
141
- {
142
- "inputs": [],
143
- "name": "ErrorRegistryAddressZero",
123
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
144
124
  "type": "error"
145
125
  },
146
126
  {
147
127
  "inputs": [
148
128
  {
149
129
  "internalType": "address",
150
- "name": "registry",
130
+ "name": "instanceStore",
151
131
  "type": "address"
152
132
  }
153
133
  ],
154
- "name": "ErrorRegistryAlreadyInitialized",
134
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
155
135
  "type": "error"
156
136
  },
157
137
  {
158
- "inputs": [],
159
- "name": "ErrorRegistryNotInitialized",
138
+ "inputs": [
139
+ {
140
+ "internalType": "address",
141
+ "name": "instanceAuthority",
142
+ "type": "address"
143
+ }
144
+ ],
145
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
160
146
  "type": "error"
161
147
  },
162
148
  {
163
- "inputs": [],
164
- "name": "InvalidInitialization",
149
+ "inputs": [
150
+ {
151
+ "internalType": "address",
152
+ "name": "instanceRiskSet",
153
+ "type": "address"
154
+ }
155
+ ],
156
+ "name": "ErrorInstanceRiskSetAlreadySet",
165
157
  "type": "error"
166
158
  },
167
159
  {
168
- "inputs": [],
169
- "name": "NotInitializing",
160
+ "inputs": [
161
+ {
162
+ "internalType": "address",
163
+ "name": "instanceAuthority",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "name": "ErrorInstanceRiskSetAuthorityMismatch",
170
168
  "type": "error"
171
169
  },
172
170
  {
173
- "anonymous": false,
174
171
  "inputs": [
175
172
  {
176
- "indexed": false,
177
173
  "internalType": "address",
178
- "name": "authority",
174
+ "name": "instance",
179
175
  "type": "address"
180
176
  }
181
177
  ],
182
- "name": "AuthorityUpdated",
183
- "type": "event"
178
+ "name": "ErrorInstanceRiskSetInstanceMismatch",
179
+ "type": "error"
184
180
  },
185
181
  {
186
- "anonymous": false,
187
182
  "inputs": [
188
183
  {
189
- "indexed": false,
190
- "internalType": "uint64",
191
- "name": "version",
192
- "type": "uint64"
184
+ "internalType": "NftId",
185
+ "name": "nftId",
186
+ "type": "uint96"
193
187
  }
194
188
  ],
195
- "name": "Initialized",
196
- "type": "event"
189
+ "name": "ErrorNftOwnableAlreadyLinked",
190
+ "type": "error"
197
191
  },
198
192
  {
199
- "anonymous": false,
200
193
  "inputs": [
201
194
  {
202
- "indexed": false,
203
- "internalType": "ObjectType",
204
- "name": "objectType",
205
- "type": "uint8"
206
- },
207
- {
208
- "indexed": false,
209
- "internalType": "KeyId",
210
- "name": "keyId",
211
- "type": "bytes31"
212
- },
213
- {
214
- "indexed": false,
215
- "internalType": "StateId",
216
- "name": "state",
217
- "type": "uint8"
218
- },
219
- {
220
- "indexed": false,
221
- "internalType": "address",
222
- "name": "createdBy",
223
- "type": "address"
224
- },
225
- {
226
- "indexed": false,
227
195
  "internalType": "address",
228
- "name": "txOrigin",
196
+ "name": "contractAddress",
229
197
  "type": "address"
230
198
  }
231
199
  ],
232
- "name": "LogInfoCreated",
233
- "type": "event"
200
+ "name": "ErrorNftOwnableContractNotRegistered",
201
+ "type": "error"
202
+ },
203
+ {
204
+ "inputs": [],
205
+ "name": "ErrorNftOwnableInitialOwnerZero",
206
+ "type": "error"
234
207
  },
235
208
  {
236
- "anonymous": false,
237
209
  "inputs": [
238
210
  {
239
- "indexed": false,
240
- "internalType": "ObjectType",
241
- "name": "objectType",
242
- "type": "uint8"
243
- },
244
- {
245
- "indexed": false,
246
- "internalType": "KeyId",
247
- "name": "keyId",
248
- "type": "bytes31"
211
+ "internalType": "NftId",
212
+ "name": "nftId",
213
+ "type": "uint96"
249
214
  },
250
215
  {
251
- "indexed": false,
252
- "internalType": "StateId",
253
- "name": "state",
216
+ "internalType": "ObjectType",
217
+ "name": "expectedObjectType",
254
218
  "type": "uint8"
255
- },
219
+ }
220
+ ],
221
+ "name": "ErrorNftOwnableInvalidType",
222
+ "type": "error"
223
+ },
224
+ {
225
+ "inputs": [
256
226
  {
257
- "indexed": false,
258
227
  "internalType": "address",
259
- "name": "updatedBy",
228
+ "name": "account",
260
229
  "type": "address"
261
- },
230
+ }
231
+ ],
232
+ "name": "ErrorNftOwnableNotOwner",
233
+ "type": "error"
234
+ },
235
+ {
236
+ "inputs": [
262
237
  {
263
- "indexed": false,
264
238
  "internalType": "address",
265
- "name": "txOrigin",
239
+ "name": "registryAddress",
266
240
  "type": "address"
267
- },
268
- {
269
- "indexed": false,
270
- "internalType": "Blocknumber",
271
- "name": "lastUpdatedIn",
272
- "type": "uint32"
273
241
  }
274
242
  ],
275
- "name": "LogInfoUpdated",
276
- "type": "event"
243
+ "name": "ErrorNotRegistry",
244
+ "type": "error"
245
+ },
246
+ {
247
+ "inputs": [],
248
+ "name": "ErrorRegisterableNotActive",
249
+ "type": "error"
250
+ },
251
+ {
252
+ "inputs": [],
253
+ "name": "InvalidInitialization",
254
+ "type": "error"
255
+ },
256
+ {
257
+ "inputs": [],
258
+ "name": "NotInitializing",
259
+ "type": "error"
277
260
  },
278
261
  {
279
262
  "anonymous": false,
280
263
  "inputs": [
281
- {
282
- "indexed": false,
283
- "internalType": "ObjectType",
284
- "name": "objectType",
285
- "type": "uint8"
286
- },
287
- {
288
- "indexed": false,
289
- "internalType": "KeyId",
290
- "name": "keyId",
291
- "type": "bytes31"
292
- },
293
- {
294
- "indexed": false,
295
- "internalType": "StateId",
296
- "name": "stateOld",
297
- "type": "uint8"
298
- },
299
- {
300
- "indexed": false,
301
- "internalType": "StateId",
302
- "name": "stateNew",
303
- "type": "uint8"
304
- },
305
- {
306
- "indexed": false,
307
- "internalType": "address",
308
- "name": "updatedBy",
309
- "type": "address"
310
- },
311
264
  {
312
265
  "indexed": false,
313
266
  "internalType": "address",
314
- "name": "txOrigin",
267
+ "name": "authority",
315
268
  "type": "address"
316
- },
317
- {
318
- "indexed": false,
319
- "internalType": "Blocknumber",
320
- "name": "lastUpdatedIn",
321
- "type": "uint32"
322
269
  }
323
270
  ],
324
- "name": "LogStateUpdated",
271
+ "name": "AuthorityUpdated",
325
272
  "type": "event"
326
273
  },
327
274
  {
328
- "inputs": [],
329
- "name": "ADMIN_ROLE",
330
- "outputs": [
275
+ "anonymous": false,
276
+ "inputs": [
331
277
  {
278
+ "indexed": false,
332
279
  "internalType": "uint64",
333
- "name": "",
280
+ "name": "version",
334
281
  "type": "uint64"
335
282
  }
336
283
  ],
337
- "stateMutability": "view",
338
- "type": "function"
284
+ "name": "Initialized",
285
+ "type": "event"
339
286
  },
340
287
  {
341
288
  "inputs": [],
342
- "name": "CUSTOM_ROLE_ID_MIN",
289
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
343
290
  "outputs": [
344
291
  {
345
- "internalType": "uint64",
292
+ "internalType": "bytes32",
346
293
  "name": "",
347
- "type": "uint64"
294
+ "type": "bytes32"
348
295
  }
349
296
  ],
350
297
  "stateMutability": "view",
@@ -352,12 +299,12 @@
352
299
  },
353
300
  {
354
301
  "inputs": [],
355
- "name": "EXECUTION_DELAY",
302
+ "name": "REGISTERABLE_LOCATION_V1",
356
303
  "outputs": [
357
304
  {
358
- "internalType": "uint32",
305
+ "internalType": "bytes32",
359
306
  "name": "",
360
- "type": "uint32"
307
+ "type": "bytes32"
361
308
  }
362
309
  ],
363
310
  "stateMutability": "view",
@@ -365,49 +312,70 @@
365
312
  },
366
313
  {
367
314
  "inputs": [],
368
- "name": "GIF_MAJOR_VERSION",
315
+ "name": "authority",
369
316
  "outputs": [
370
317
  {
371
- "internalType": "uint256",
318
+ "internalType": "address",
372
319
  "name": "",
373
- "type": "uint256"
320
+ "type": "address"
374
321
  }
375
322
  ],
376
323
  "stateMutability": "view",
377
324
  "type": "function"
378
325
  },
379
326
  {
380
- "inputs": [],
381
- "name": "PUBLIC_ROLE",
327
+ "inputs": [
328
+ {
329
+ "internalType": "string",
330
+ "name": "roleName",
331
+ "type": "string"
332
+ },
333
+ {
334
+ "internalType": "string",
335
+ "name": "adminName",
336
+ "type": "string"
337
+ }
338
+ ],
339
+ "name": "createRole",
382
340
  "outputs": [
383
341
  {
384
- "internalType": "uint64",
385
- "name": "",
342
+ "internalType": "RoleId",
343
+ "name": "roleId",
344
+ "type": "uint64"
345
+ },
346
+ {
347
+ "internalType": "RoleId",
348
+ "name": "admin",
386
349
  "type": "uint64"
387
350
  }
388
351
  ],
389
- "stateMutability": "view",
352
+ "stateMutability": "nonpayable",
390
353
  "type": "function"
391
354
  },
392
355
  {
393
- "inputs": [],
394
- "name": "REGISTERABLE_LOCATION_V1",
395
- "outputs": [
356
+ "inputs": [
396
357
  {
397
- "internalType": "bytes32",
398
- "name": "",
399
- "type": "bytes32"
358
+ "internalType": "address",
359
+ "name": "target",
360
+ "type": "address"
361
+ },
362
+ {
363
+ "internalType": "string",
364
+ "name": "name",
365
+ "type": "string"
400
366
  }
401
367
  ],
402
- "stateMutability": "view",
368
+ "name": "createTarget",
369
+ "outputs": [],
370
+ "stateMutability": "nonpayable",
403
371
  "type": "function"
404
372
  },
405
373
  {
406
374
  "inputs": [],
407
- "name": "authority",
375
+ "name": "getBundleSet",
408
376
  "outputs": [
409
377
  {
410
- "internalType": "address",
378
+ "internalType": "contract BundleSet",
411
379
  "name": "",
412
380
  "type": "address"
413
381
  }
@@ -416,1586 +384,192 @@
416
384
  "type": "function"
417
385
  },
418
386
  {
419
- "inputs": [
420
- {
421
- "internalType": "ObjectType",
422
- "name": "objectType",
423
- "type": "uint8"
424
- },
425
- {
426
- "internalType": "StateId",
427
- "name": "fromId",
428
- "type": "uint8"
429
- },
430
- {
431
- "internalType": "StateId",
432
- "name": "toId",
433
- "type": "uint8"
434
- }
435
- ],
436
- "name": "checkTransition",
437
- "outputs": [],
438
- "stateMutability": "view",
439
- "type": "function"
440
- },
441
- {
442
- "inputs": [
443
- {
444
- "internalType": "NftId",
445
- "name": "bundleNftId",
446
- "type": "uint96"
447
- },
387
+ "inputs": [],
388
+ "name": "getInitialInfo",
389
+ "outputs": [
448
390
  {
449
391
  "components": [
450
392
  {
451
393
  "internalType": "NftId",
452
- "name": "poolNftId",
394
+ "name": "nftId",
453
395
  "type": "uint96"
454
396
  },
455
- {
456
- "components": [
457
- {
458
- "internalType": "UFixed",
459
- "name": "fractionalFee",
460
- "type": "uint256"
461
- },
462
- {
463
- "internalType": "uint256",
464
- "name": "fixedFee",
465
- "type": "uint256"
466
- }
467
- ],
468
- "internalType": "struct Fee",
469
- "name": "fee",
470
- "type": "tuple"
471
- },
472
- {
473
- "internalType": "bytes",
474
- "name": "filter",
475
- "type": "bytes"
476
- },
477
- {
478
- "internalType": "uint256",
479
- "name": "capitalAmount",
480
- "type": "uint256"
481
- },
482
- {
483
- "internalType": "uint256",
484
- "name": "lockedAmount",
485
- "type": "uint256"
486
- },
487
- {
488
- "internalType": "uint256",
489
- "name": "balanceAmount",
490
- "type": "uint256"
491
- },
492
- {
493
- "internalType": "uint256",
494
- "name": "lifetime",
495
- "type": "uint256"
496
- },
497
- {
498
- "internalType": "Timestamp",
499
- "name": "expiredAt",
500
- "type": "uint40"
501
- },
502
- {
503
- "internalType": "Timestamp",
504
- "name": "closedAt",
505
- "type": "uint40"
506
- }
507
- ],
508
- "internalType": "struct IBundle.BundleInfo",
509
- "name": "bundle",
510
- "type": "tuple"
511
- }
512
- ],
513
- "name": "createBundle",
514
- "outputs": [],
515
- "stateMutability": "nonpayable",
516
- "type": "function"
517
- },
518
- {
519
- "inputs": [
520
- {
521
- "internalType": "NftId",
522
- "name": "policyNftId",
523
- "type": "uint96"
524
- },
525
- {
526
- "internalType": "NumberId",
527
- "name": "claimId",
528
- "type": "uint32"
529
- },
530
- {
531
- "components": [
532
- {
533
- "internalType": "uint256",
534
- "name": "claimAmount",
535
- "type": "uint256"
536
- },
537
- {
538
- "internalType": "uint256",
539
- "name": "paidAmount",
540
- "type": "uint256"
541
- },
542
- {
543
- "internalType": "bytes",
544
- "name": "data",
545
- "type": "bytes"
546
- },
547
- {
548
- "internalType": "Timestamp",
549
- "name": "closedAt",
550
- "type": "uint40"
551
- }
552
- ],
553
- "internalType": "struct IPolicy.ClaimInfo",
554
- "name": "claim",
555
- "type": "tuple"
556
- }
557
- ],
558
- "name": "createClaim",
559
- "outputs": [],
560
- "stateMutability": "nonpayable",
561
- "type": "function"
562
- },
563
- {
564
- "inputs": [
565
- {
566
- "internalType": "NftId",
567
- "name": "distributionNftId",
568
- "type": "uint96"
569
- },
570
- {
571
- "components": [
572
397
  {
573
398
  "internalType": "NftId",
574
- "name": "productNftId",
399
+ "name": "parentNftId",
575
400
  "type": "uint96"
576
401
  },
577
402
  {
578
- "internalType": "contract TokenHandler",
579
- "name": "tokenHandler",
580
- "type": "address"
581
- },
582
- {
583
- "components": [
584
- {
585
- "internalType": "UFixed",
586
- "name": "fractionalFee",
587
- "type": "uint256"
588
- },
589
- {
590
- "internalType": "uint256",
591
- "name": "fixedFee",
592
- "type": "uint256"
593
- }
594
- ],
595
- "internalType": "struct Fee",
596
- "name": "distributionFee",
597
- "type": "tuple"
403
+ "internalType": "ObjectType",
404
+ "name": "objectType",
405
+ "type": "uint8"
598
406
  },
599
407
  {
600
408
  "internalType": "bool",
601
- "name": "isIntercepting",
409
+ "name": "isInterceptor",
602
410
  "type": "bool"
603
411
  },
604
412
  {
605
413
  "internalType": "address",
606
- "name": "wallet",
414
+ "name": "objectAddress",
607
415
  "type": "address"
608
- }
609
- ],
610
- "internalType": "struct ISetup.DistributionSetupInfo",
611
- "name": "setup",
612
- "type": "tuple"
613
- }
614
- ],
615
- "name": "createDistributionSetup",
616
- "outputs": [],
617
- "stateMutability": "nonpayable",
618
- "type": "function"
619
- },
620
- {
621
- "inputs": [
622
- {
623
- "internalType": "NftId",
624
- "name": "policyNftId",
625
- "type": "uint96"
626
- },
627
- {
628
- "internalType": "NumberId",
629
- "name": "payoutId",
630
- "type": "uint32"
631
- },
632
- {
633
- "components": [
634
- {
635
- "internalType": "NumberId",
636
- "name": "claimId",
637
- "type": "uint32"
638
- },
639
- {
640
- "internalType": "uint256",
641
- "name": "amount",
642
- "type": "uint256"
643
- },
644
- {
645
- "internalType": "bytes",
646
- "name": "data",
647
- "type": "bytes"
648
- },
649
- {
650
- "internalType": "Timestamp",
651
- "name": "paidAt",
652
- "type": "uint40"
653
- }
654
- ],
655
- "internalType": "struct IPolicy.PayoutInfo",
656
- "name": "payout",
657
- "type": "tuple"
658
- }
659
- ],
660
- "name": "createDistributor",
661
- "outputs": [],
662
- "stateMutability": "nonpayable",
663
- "type": "function"
664
- },
665
- {
666
- "inputs": [
667
- {
668
- "internalType": "NftId",
669
- "name": "policyNftId",
670
- "type": "uint96"
671
- },
672
- {
673
- "internalType": "NumberId",
674
- "name": "payoutId",
675
- "type": "uint32"
676
- },
677
- {
678
- "components": [
679
- {
680
- "internalType": "NumberId",
681
- "name": "claimId",
682
- "type": "uint32"
683
- },
684
- {
685
- "internalType": "uint256",
686
- "name": "amount",
687
- "type": "uint256"
688
- },
689
- {
690
- "internalType": "bytes",
691
- "name": "data",
692
- "type": "bytes"
693
- },
694
- {
695
- "internalType": "Timestamp",
696
- "name": "paidAt",
697
- "type": "uint40"
698
- }
699
- ],
700
- "internalType": "struct IPolicy.PayoutInfo",
701
- "name": "payout",
702
- "type": "tuple"
703
- }
704
- ],
705
- "name": "createDistributorType",
706
- "outputs": [],
707
- "stateMutability": "nonpayable",
708
- "type": "function"
709
- },
710
- {
711
- "inputs": [
712
- {
713
- "internalType": "NftId",
714
- "name": "policyNftId",
715
- "type": "uint96"
716
- },
717
- {
718
- "internalType": "NumberId",
719
- "name": "payoutId",
720
- "type": "uint32"
721
- },
722
- {
723
- "components": [
724
- {
725
- "internalType": "NumberId",
726
- "name": "claimId",
727
- "type": "uint32"
728
416
  },
729
417
  {
730
- "internalType": "uint256",
731
- "name": "amount",
732
- "type": "uint256"
418
+ "internalType": "address",
419
+ "name": "initialOwner",
420
+ "type": "address"
733
421
  },
734
422
  {
735
423
  "internalType": "bytes",
736
424
  "name": "data",
737
425
  "type": "bytes"
738
- },
739
- {
740
- "internalType": "Timestamp",
741
- "name": "paidAt",
742
- "type": "uint40"
743
- }
744
- ],
745
- "internalType": "struct IPolicy.PayoutInfo",
746
- "name": "payout",
747
- "type": "tuple"
748
- }
749
- ],
750
- "name": "createPayout",
751
- "outputs": [],
752
- "stateMutability": "nonpayable",
753
- "type": "function"
754
- },
755
- {
756
- "inputs": [
757
- {
758
- "internalType": "NftId",
759
- "name": "policyNftId",
760
- "type": "uint96"
761
- },
762
- {
763
- "components": [
764
- {
765
- "internalType": "NftId",
766
- "name": "productNftId",
767
- "type": "uint96"
768
- },
769
- {
770
- "internalType": "NftId",
771
- "name": "bundleNftId",
772
- "type": "uint96"
773
- },
774
- {
775
- "internalType": "ReferralId",
776
- "name": "referralId",
777
- "type": "bytes8"
778
- },
779
- {
780
- "internalType": "RiskId",
781
- "name": "riskId",
782
- "type": "bytes8"
783
- },
784
- {
785
- "internalType": "uint256",
786
- "name": "sumInsuredAmount",
787
- "type": "uint256"
788
- },
789
- {
790
- "internalType": "uint256",
791
- "name": "premiumAmount",
792
- "type": "uint256"
793
- },
794
- {
795
- "internalType": "uint256",
796
- "name": "premiumPaidAmount",
797
- "type": "uint256"
798
- },
799
- {
800
- "internalType": "uint256",
801
- "name": "lifetime",
802
- "type": "uint256"
803
- },
804
- {
805
- "internalType": "bytes",
806
- "name": "applicationData",
807
- "type": "bytes"
808
- },
809
- {
810
- "internalType": "bytes",
811
- "name": "policyData",
812
- "type": "bytes"
813
- },
814
- {
815
- "internalType": "uint16",
816
- "name": "claimsCount",
817
- "type": "uint16"
818
- },
819
- {
820
- "internalType": "uint16",
821
- "name": "openClaimsCount",
822
- "type": "uint16"
823
- },
824
- {
825
- "internalType": "uint256",
826
- "name": "payoutAmount",
827
- "type": "uint256"
828
- },
829
- {
830
- "internalType": "Timestamp",
831
- "name": "activatedAt",
832
- "type": "uint40"
833
- },
834
- {
835
- "internalType": "Timestamp",
836
- "name": "expiredAt",
837
- "type": "uint40"
838
- },
839
- {
840
- "internalType": "Timestamp",
841
- "name": "closedAt",
842
- "type": "uint40"
843
426
  }
844
427
  ],
845
- "internalType": "struct IPolicy.PolicyInfo",
846
- "name": "policy",
428
+ "internalType": "struct IRegistry.ObjectInfo",
429
+ "name": "info",
847
430
  "type": "tuple"
848
431
  }
849
- ],
850
- "name": "createPolicy",
851
- "outputs": [],
852
- "stateMutability": "nonpayable",
853
- "type": "function"
854
- },
855
- {
856
- "inputs": [
857
- {
858
- "internalType": "NftId",
859
- "name": "poolNftId",
860
- "type": "uint96"
861
- },
862
- {
863
- "components": [
864
- {
865
- "internalType": "NftId",
866
- "name": "productNftId",
867
- "type": "uint96"
868
- },
869
- {
870
- "internalType": "contract TokenHandler",
871
- "name": "tokenHandler",
872
- "type": "address"
873
- },
874
- {
875
- "internalType": "UFixed",
876
- "name": "collateralizationLevel",
877
- "type": "uint256"
878
- },
879
- {
880
- "components": [
881
- {
882
- "internalType": "UFixed",
883
- "name": "fractionalFee",
884
- "type": "uint256"
885
- },
886
- {
887
- "internalType": "uint256",
888
- "name": "fixedFee",
889
- "type": "uint256"
890
- }
891
- ],
892
- "internalType": "struct Fee",
893
- "name": "poolFee",
894
- "type": "tuple"
895
- },
896
- {
897
- "components": [
898
- {
899
- "internalType": "UFixed",
900
- "name": "fractionalFee",
901
- "type": "uint256"
902
- },
903
- {
904
- "internalType": "uint256",
905
- "name": "fixedFee",
906
- "type": "uint256"
907
- }
908
- ],
909
- "internalType": "struct Fee",
910
- "name": "stakingFee",
911
- "type": "tuple"
912
- },
913
- {
914
- "components": [
915
- {
916
- "internalType": "UFixed",
917
- "name": "fractionalFee",
918
- "type": "uint256"
919
- },
920
- {
921
- "internalType": "uint256",
922
- "name": "fixedFee",
923
- "type": "uint256"
924
- }
925
- ],
926
- "internalType": "struct Fee",
927
- "name": "performanceFee",
928
- "type": "tuple"
929
- },
930
- {
931
- "internalType": "bool",
932
- "name": "isIntercepting",
933
- "type": "bool"
934
- },
935
- {
936
- "internalType": "bool",
937
- "name": "isConfirmingApplication",
938
- "type": "bool"
939
- },
940
- {
941
- "internalType": "address",
942
- "name": "wallet",
943
- "type": "address"
944
- }
945
- ],
946
- "internalType": "struct ISetup.PoolSetupInfo",
947
- "name": "setup",
948
- "type": "tuple"
949
- }
950
- ],
951
- "name": "createPoolSetup",
952
- "outputs": [],
953
- "stateMutability": "nonpayable",
954
- "type": "function"
955
- },
956
- {
957
- "inputs": [
958
- {
959
- "internalType": "NftId",
960
- "name": "productNftId",
961
- "type": "uint96"
962
- },
963
- {
964
- "components": [
965
- {
966
- "internalType": "contract IERC20Metadata",
967
- "name": "token",
968
- "type": "address"
969
- },
970
- {
971
- "internalType": "contract TokenHandler",
972
- "name": "tokenHandler",
973
- "type": "address"
974
- },
975
- {
976
- "internalType": "NftId",
977
- "name": "distributionNftId",
978
- "type": "uint96"
979
- },
980
- {
981
- "internalType": "NftId",
982
- "name": "poolNftId",
983
- "type": "uint96"
984
- },
985
- {
986
- "components": [
987
- {
988
- "internalType": "UFixed",
989
- "name": "fractionalFee",
990
- "type": "uint256"
991
- },
992
- {
993
- "internalType": "uint256",
994
- "name": "fixedFee",
995
- "type": "uint256"
996
- }
997
- ],
998
- "internalType": "struct Fee",
999
- "name": "distributionFee",
1000
- "type": "tuple"
1001
- },
1002
- {
1003
- "components": [
1004
- {
1005
- "internalType": "UFixed",
1006
- "name": "fractionalFee",
1007
- "type": "uint256"
1008
- },
1009
- {
1010
- "internalType": "uint256",
1011
- "name": "fixedFee",
1012
- "type": "uint256"
1013
- }
1014
- ],
1015
- "internalType": "struct Fee",
1016
- "name": "productFee",
1017
- "type": "tuple"
1018
- },
1019
- {
1020
- "components": [
1021
- {
1022
- "internalType": "UFixed",
1023
- "name": "fractionalFee",
1024
- "type": "uint256"
1025
- },
1026
- {
1027
- "internalType": "uint256",
1028
- "name": "fixedFee",
1029
- "type": "uint256"
1030
- }
1031
- ],
1032
- "internalType": "struct Fee",
1033
- "name": "processingFee",
1034
- "type": "tuple"
1035
- },
1036
- {
1037
- "components": [
1038
- {
1039
- "internalType": "UFixed",
1040
- "name": "fractionalFee",
1041
- "type": "uint256"
1042
- },
1043
- {
1044
- "internalType": "uint256",
1045
- "name": "fixedFee",
1046
- "type": "uint256"
1047
- }
1048
- ],
1049
- "internalType": "struct Fee",
1050
- "name": "poolFee",
1051
- "type": "tuple"
1052
- },
1053
- {
1054
- "components": [
1055
- {
1056
- "internalType": "UFixed",
1057
- "name": "fractionalFee",
1058
- "type": "uint256"
1059
- },
1060
- {
1061
- "internalType": "uint256",
1062
- "name": "fixedFee",
1063
- "type": "uint256"
1064
- }
1065
- ],
1066
- "internalType": "struct Fee",
1067
- "name": "stakingFee",
1068
- "type": "tuple"
1069
- },
1070
- {
1071
- "components": [
1072
- {
1073
- "internalType": "UFixed",
1074
- "name": "fractionalFee",
1075
- "type": "uint256"
1076
- },
1077
- {
1078
- "internalType": "uint256",
1079
- "name": "fixedFee",
1080
- "type": "uint256"
1081
- }
1082
- ],
1083
- "internalType": "struct Fee",
1084
- "name": "performanceFee",
1085
- "type": "tuple"
1086
- },
1087
- {
1088
- "internalType": "bool",
1089
- "name": "isIntercepting",
1090
- "type": "bool"
1091
- },
1092
- {
1093
- "internalType": "address",
1094
- "name": "wallet",
1095
- "type": "address"
1096
- }
1097
- ],
1098
- "internalType": "struct ISetup.ProductSetupInfo",
1099
- "name": "setup",
1100
- "type": "tuple"
1101
- }
1102
- ],
1103
- "name": "createProductSetup",
1104
- "outputs": [],
1105
- "stateMutability": "nonpayable",
1106
- "type": "function"
1107
- },
1108
- {
1109
- "inputs": [
1110
- {
1111
- "internalType": "NftId",
1112
- "name": "policyNftId",
1113
- "type": "uint96"
1114
- },
1115
- {
1116
- "internalType": "NumberId",
1117
- "name": "payoutId",
1118
- "type": "uint32"
1119
- },
1120
- {
1121
- "components": [
1122
- {
1123
- "internalType": "NumberId",
1124
- "name": "claimId",
1125
- "type": "uint32"
1126
- },
1127
- {
1128
- "internalType": "uint256",
1129
- "name": "amount",
1130
- "type": "uint256"
1131
- },
1132
- {
1133
- "internalType": "bytes",
1134
- "name": "data",
1135
- "type": "bytes"
1136
- },
1137
- {
1138
- "internalType": "Timestamp",
1139
- "name": "paidAt",
1140
- "type": "uint40"
1141
- }
1142
- ],
1143
- "internalType": "struct IPolicy.PayoutInfo",
1144
- "name": "payout",
1145
- "type": "tuple"
1146
- }
1147
- ],
1148
- "name": "createReferral",
1149
- "outputs": [],
1150
- "stateMutability": "nonpayable",
1151
- "type": "function"
1152
- },
1153
- {
1154
- "inputs": [
1155
- {
1156
- "internalType": "RiskId",
1157
- "name": "riskId",
1158
- "type": "bytes8"
1159
- },
1160
- {
1161
- "components": [
1162
- {
1163
- "internalType": "NftId",
1164
- "name": "productNftId",
1165
- "type": "uint96"
1166
- },
1167
- {
1168
- "internalType": "bytes",
1169
- "name": "data",
1170
- "type": "bytes"
1171
- }
1172
- ],
1173
- "internalType": "struct IRisk.RiskInfo",
1174
- "name": "risk",
1175
- "type": "tuple"
1176
- }
1177
- ],
1178
- "name": "createRisk",
1179
- "outputs": [],
1180
- "stateMutability": "nonpayable",
1181
- "type": "function"
1182
- },
1183
- {
1184
- "inputs": [
1185
- {
1186
- "internalType": "Key32",
1187
- "name": "key32",
1188
- "type": "bytes32"
1189
- }
1190
- ],
1191
- "name": "exists",
1192
- "outputs": [
1193
- {
1194
- "internalType": "bool",
1195
- "name": "",
1196
- "type": "bool"
1197
- }
1198
- ],
1199
- "stateMutability": "view",
1200
- "type": "function"
1201
- },
1202
- {
1203
- "inputs": [
1204
- {
1205
- "internalType": "Key32",
1206
- "name": "key32",
1207
- "type": "bytes32"
1208
- }
1209
- ],
1210
- "name": "get",
1211
- "outputs": [
1212
- {
1213
- "components": [
1214
- {
1215
- "components": [
1216
- {
1217
- "internalType": "ObjectType",
1218
- "name": "objectType",
1219
- "type": "uint8"
1220
- },
1221
- {
1222
- "internalType": "StateId",
1223
- "name": "state",
1224
- "type": "uint8"
1225
- },
1226
- {
1227
- "internalType": "address",
1228
- "name": "updatedBy",
1229
- "type": "address"
1230
- },
1231
- {
1232
- "internalType": "Blocknumber",
1233
- "name": "updatedIn",
1234
- "type": "uint32"
1235
- },
1236
- {
1237
- "internalType": "Blocknumber",
1238
- "name": "createdIn",
1239
- "type": "uint32"
1240
- }
1241
- ],
1242
- "internalType": "struct IKeyValueStore.Metadata",
1243
- "name": "metadata",
1244
- "type": "tuple"
1245
- },
1246
- {
1247
- "internalType": "bytes",
1248
- "name": "data",
1249
- "type": "bytes"
1250
- }
1251
- ],
1252
- "internalType": "struct IKeyValueStore.Value",
1253
- "name": "value",
1254
- "type": "tuple"
1255
- }
1256
- ],
1257
- "stateMutability": "view",
1258
- "type": "function"
1259
- },
1260
- {
1261
- "inputs": [],
1262
- "name": "getBundleManager",
1263
- "outputs": [
1264
- {
1265
- "internalType": "contract BundleManager",
1266
- "name": "",
1267
- "type": "address"
1268
- }
1269
- ],
1270
- "stateMutability": "view",
1271
- "type": "function"
1272
- },
1273
- {
1274
- "inputs": [],
1275
- "name": "getBundleService",
1276
- "outputs": [
1277
- {
1278
- "internalType": "contract IBundleService",
1279
- "name": "",
1280
- "type": "address"
1281
- }
1282
- ],
1283
- "stateMutability": "view",
1284
- "type": "function"
1285
- },
1286
- {
1287
- "inputs": [
1288
- {
1289
- "internalType": "Key32",
1290
- "name": "key32",
1291
- "type": "bytes32"
1292
- }
1293
- ],
1294
- "name": "getData",
1295
- "outputs": [
1296
- {
1297
- "internalType": "bytes",
1298
- "name": "data",
1299
- "type": "bytes"
1300
- }
1301
- ],
1302
- "stateMutability": "view",
1303
- "type": "function"
1304
- },
1305
- {
1306
- "inputs": [],
1307
- "name": "getDistributionService",
1308
- "outputs": [
1309
- {
1310
- "internalType": "contract IDistributionService",
1311
- "name": "",
1312
- "type": "address"
1313
- }
1314
- ],
1315
- "stateMutability": "view",
1316
- "type": "function"
1317
- },
1318
- {
1319
- "inputs": [],
1320
- "name": "getInitialInfo",
1321
- "outputs": [
1322
- {
1323
- "components": [
1324
- {
1325
- "internalType": "NftId",
1326
- "name": "nftId",
1327
- "type": "uint96"
1328
- },
1329
- {
1330
- "internalType": "NftId",
1331
- "name": "parentNftId",
1332
- "type": "uint96"
1333
- },
1334
- {
1335
- "internalType": "ObjectType",
1336
- "name": "objectType",
1337
- "type": "uint8"
1338
- },
1339
- {
1340
- "internalType": "bool",
1341
- "name": "isInterceptor",
1342
- "type": "bool"
1343
- },
1344
- {
1345
- "internalType": "address",
1346
- "name": "objectAddress",
1347
- "type": "address"
1348
- },
1349
- {
1350
- "internalType": "address",
1351
- "name": "initialOwner",
1352
- "type": "address"
1353
- },
1354
- {
1355
- "internalType": "bytes",
1356
- "name": "data",
1357
- "type": "bytes"
1358
- }
1359
- ],
1360
- "internalType": "struct IRegistry.ObjectInfo",
1361
- "name": "info",
1362
- "type": "tuple"
1363
- }
1364
- ],
1365
- "stateMutability": "view",
1366
- "type": "function"
1367
- },
1368
- {
1369
- "inputs": [],
1370
- "name": "getInitialOwner",
1371
- "outputs": [
1372
- {
1373
- "internalType": "address",
1374
- "name": "",
1375
- "type": "address"
1376
- }
1377
- ],
1378
- "stateMutability": "view",
1379
- "type": "function"
1380
- },
1381
- {
1382
- "inputs": [
1383
- {
1384
- "internalType": "ObjectType",
1385
- "name": "objectType",
1386
- "type": "uint8"
1387
- }
1388
- ],
1389
- "name": "getInitialState",
1390
- "outputs": [
1391
- {
1392
- "internalType": "StateId",
1393
- "name": "",
1394
- "type": "uint8"
1395
- }
1396
- ],
1397
- "stateMutability": "view",
1398
- "type": "function"
1399
- },
1400
- {
1401
- "inputs": [],
1402
- "name": "getInstanceReader",
1403
- "outputs": [
1404
- {
1405
- "internalType": "contract InstanceReader",
1406
- "name": "",
1407
- "type": "address"
1408
- }
1409
- ],
1410
- "stateMutability": "view",
1411
- "type": "function"
1412
- },
1413
- {
1414
- "inputs": [],
1415
- "name": "getMajorVersion",
1416
- "outputs": [
1417
- {
1418
- "internalType": "VersionPart",
1419
- "name": "majorVersion",
1420
- "type": "uint8"
1421
- }
1422
- ],
1423
- "stateMutability": "pure",
1424
- "type": "function"
1425
- },
1426
- {
1427
- "inputs": [
1428
- {
1429
- "internalType": "Key32",
1430
- "name": "key32",
1431
- "type": "bytes32"
1432
- }
1433
- ],
1434
- "name": "getMetadata",
1435
- "outputs": [
1436
- {
1437
- "components": [
1438
- {
1439
- "internalType": "ObjectType",
1440
- "name": "objectType",
1441
- "type": "uint8"
1442
- },
1443
- {
1444
- "internalType": "StateId",
1445
- "name": "state",
1446
- "type": "uint8"
1447
- },
1448
- {
1449
- "internalType": "address",
1450
- "name": "updatedBy",
1451
- "type": "address"
1452
- },
1453
- {
1454
- "internalType": "Blocknumber",
1455
- "name": "updatedIn",
1456
- "type": "uint32"
1457
- },
1458
- {
1459
- "internalType": "Blocknumber",
1460
- "name": "createdIn",
1461
- "type": "uint32"
1462
- }
1463
- ],
1464
- "internalType": "struct IKeyValueStore.Metadata",
1465
- "name": "metadata",
1466
- "type": "tuple"
1467
- }
1468
- ],
1469
- "stateMutability": "view",
1470
- "type": "function"
1471
- },
1472
- {
1473
- "inputs": [],
1474
- "name": "getNftId",
1475
- "outputs": [
1476
- {
1477
- "internalType": "NftId",
1478
- "name": "",
1479
- "type": "uint96"
1480
- }
1481
- ],
1482
- "stateMutability": "view",
1483
- "type": "function"
1484
- },
1485
- {
1486
- "inputs": [],
1487
- "name": "getOwner",
1488
- "outputs": [
1489
- {
1490
- "internalType": "address",
1491
- "name": "",
1492
- "type": "address"
1493
- }
1494
- ],
1495
- "stateMutability": "view",
1496
- "type": "function"
1497
- },
1498
- {
1499
- "inputs": [],
1500
- "name": "getPolicyService",
1501
- "outputs": [
1502
- {
1503
- "internalType": "contract IPolicyService",
1504
- "name": "",
1505
- "type": "address"
1506
- }
1507
- ],
1508
- "stateMutability": "view",
1509
- "type": "function"
1510
- },
1511
- {
1512
- "inputs": [],
1513
- "name": "getPoolService",
1514
- "outputs": [
1515
- {
1516
- "internalType": "contract IPoolService",
1517
- "name": "",
1518
- "type": "address"
1519
- }
1520
- ],
1521
- "stateMutability": "view",
1522
- "type": "function"
1523
- },
1524
- {
1525
- "inputs": [],
1526
- "name": "getProductService",
1527
- "outputs": [
1528
- {
1529
- "internalType": "contract IProductService",
1530
- "name": "",
1531
- "type": "address"
1532
- }
1533
- ],
1534
- "stateMutability": "view",
1535
- "type": "function"
1536
- },
1537
- {
1538
- "inputs": [],
1539
- "name": "getRegistry",
1540
- "outputs": [
1541
- {
1542
- "internalType": "contract IRegistry",
1543
- "name": "",
1544
- "type": "address"
1545
- }
1546
- ],
1547
- "stateMutability": "view",
1548
- "type": "function"
1549
- },
1550
- {
1551
- "inputs": [
1552
- {
1553
- "internalType": "Key32",
1554
- "name": "key32",
1555
- "type": "bytes32"
1556
- }
1557
- ],
1558
- "name": "getState",
1559
- "outputs": [
1560
- {
1561
- "internalType": "StateId",
1562
- "name": "state",
1563
- "type": "uint8"
1564
- }
1565
- ],
1566
- "stateMutability": "view",
1567
- "type": "function"
1568
- },
1569
- {
1570
- "inputs": [
1571
- {
1572
- "internalType": "ObjectType",
1573
- "name": "objectType",
1574
- "type": "uint8"
1575
- }
1576
- ],
1577
- "name": "hasLifecycle",
1578
- "outputs": [
1579
- {
1580
- "internalType": "bool",
1581
- "name": "",
1582
- "type": "bool"
1583
- }
1584
- ],
1585
- "stateMutability": "view",
1586
- "type": "function"
1587
- },
1588
- {
1589
- "inputs": [
1590
- {
1591
- "internalType": "address",
1592
- "name": "accessManagerAddress",
1593
- "type": "address"
1594
- },
1595
- {
1596
- "internalType": "address",
1597
- "name": "registryAddress",
1598
- "type": "address"
1599
- },
1600
- {
1601
- "internalType": "NftId",
1602
- "name": "registryNftId",
1603
- "type": "uint96"
1604
- },
1605
- {
1606
- "internalType": "address",
1607
- "name": "initialOwner",
1608
- "type": "address"
1609
- }
1610
- ],
1611
- "name": "initialize",
1612
- "outputs": [],
1613
- "stateMutability": "nonpayable",
1614
- "type": "function"
1615
- },
1616
- {
1617
- "inputs": [],
1618
- "name": "isConsumingScheduledOp",
1619
- "outputs": [
1620
- {
1621
- "internalType": "bytes4",
1622
- "name": "",
1623
- "type": "bytes4"
1624
- }
1625
- ],
1626
- "stateMutability": "view",
1627
- "type": "function"
1628
- },
1629
- {
1630
- "inputs": [
1631
- {
1632
- "internalType": "ObjectType",
1633
- "name": "objectType",
1634
- "type": "uint8"
1635
- },
1636
- {
1637
- "internalType": "StateId",
1638
- "name": "fromId",
1639
- "type": "uint8"
1640
- },
1641
- {
1642
- "internalType": "StateId",
1643
- "name": "toId",
1644
- "type": "uint8"
1645
- }
1646
- ],
1647
- "name": "isValidTransition",
1648
- "outputs": [
1649
- {
1650
- "internalType": "bool",
1651
- "name": "",
1652
- "type": "bool"
1653
- }
1654
- ],
1655
- "stateMutability": "view",
1656
- "type": "function"
1657
- },
1658
- {
1659
- "inputs": [],
1660
- "name": "linkToRegisteredNftId",
1661
- "outputs": [],
1662
- "stateMutability": "nonpayable",
1663
- "type": "function"
1664
- },
1665
- {
1666
- "inputs": [
1667
- {
1668
- "internalType": "address",
1669
- "name": "newAuthority",
1670
- "type": "address"
1671
- }
1672
- ],
1673
- "name": "setAuthority",
1674
- "outputs": [],
1675
- "stateMutability": "nonpayable",
432
+ ],
433
+ "stateMutability": "view",
1676
434
  "type": "function"
1677
435
  },
1678
436
  {
1679
- "inputs": [
437
+ "inputs": [],
438
+ "name": "getInstanceAdmin",
439
+ "outputs": [
1680
440
  {
1681
- "internalType": "contract BundleManager",
1682
- "name": "bundleManager",
441
+ "internalType": "contract InstanceAdmin",
442
+ "name": "",
1683
443
  "type": "address"
1684
444
  }
1685
445
  ],
1686
- "name": "setBundleManager",
1687
- "outputs": [],
1688
- "stateMutability": "nonpayable",
446
+ "stateMutability": "view",
1689
447
  "type": "function"
1690
448
  },
1691
449
  {
1692
- "inputs": [
450
+ "inputs": [],
451
+ "name": "getInstanceReader",
452
+ "outputs": [
1693
453
  {
1694
454
  "internalType": "contract InstanceReader",
1695
- "name": "instanceReader",
455
+ "name": "",
1696
456
  "type": "address"
1697
457
  }
1698
458
  ],
1699
- "name": "setInstanceReader",
1700
- "outputs": [],
1701
- "stateMutability": "nonpayable",
459
+ "stateMutability": "view",
1702
460
  "type": "function"
1703
461
  },
1704
462
  {
1705
- "inputs": [
1706
- {
1707
- "internalType": "bytes4",
1708
- "name": "interfaceId",
1709
- "type": "bytes4"
1710
- }
1711
- ],
1712
- "name": "supportsInterface",
463
+ "inputs": [],
464
+ "name": "getInstanceStore",
1713
465
  "outputs": [
1714
466
  {
1715
- "internalType": "bool",
467
+ "internalType": "contract InstanceStore",
1716
468
  "name": "",
1717
- "type": "bool"
469
+ "type": "address"
1718
470
  }
1719
471
  ],
1720
472
  "stateMutability": "view",
1721
473
  "type": "function"
1722
474
  },
1723
475
  {
1724
- "inputs": [
1725
- {
1726
- "internalType": "NftId",
1727
- "name": "bundleNftId",
1728
- "type": "uint96"
1729
- }
1730
- ],
1731
- "name": "toBundleKey32",
476
+ "inputs": [],
477
+ "name": "getNftId",
1732
478
  "outputs": [
1733
479
  {
1734
- "internalType": "Key32",
480
+ "internalType": "NftId",
1735
481
  "name": "",
1736
- "type": "bytes32"
482
+ "type": "uint96"
1737
483
  }
1738
484
  ],
1739
- "stateMutability": "pure",
485
+ "stateMutability": "view",
1740
486
  "type": "function"
1741
487
  },
1742
488
  {
1743
- "inputs": [
1744
- {
1745
- "internalType": "ObjectType",
1746
- "name": "objectType",
1747
- "type": "uint8"
1748
- },
1749
- {
1750
- "internalType": "KeyId",
1751
- "name": "id",
1752
- "type": "bytes31"
1753
- }
1754
- ],
1755
- "name": "toKey32",
489
+ "inputs": [],
490
+ "name": "getOwner",
1756
491
  "outputs": [
1757
492
  {
1758
- "internalType": "Key32",
493
+ "internalType": "address",
1759
494
  "name": "",
1760
- "type": "bytes32"
495
+ "type": "address"
1761
496
  }
1762
497
  ],
1763
- "stateMutability": "pure",
498
+ "stateMutability": "view",
1764
499
  "type": "function"
1765
500
  },
1766
501
  {
1767
502
  "inputs": [
1768
503
  {
1769
- "internalType": "NftId",
1770
- "name": "policyNftId",
1771
- "type": "uint96"
504
+ "internalType": "uint256",
505
+ "name": "idx",
506
+ "type": "uint256"
1772
507
  }
1773
508
  ],
1774
- "name": "toPolicyKey32",
509
+ "name": "getProductNftId",
1775
510
  "outputs": [
1776
- {
1777
- "internalType": "Key32",
1778
- "name": "",
1779
- "type": "bytes32"
1780
- }
1781
- ],
1782
- "stateMutability": "pure",
1783
- "type": "function"
1784
- },
1785
- {
1786
- "inputs": [
1787
511
  {
1788
512
  "internalType": "NftId",
1789
- "name": "bundleNftId",
513
+ "name": "productNftId",
1790
514
  "type": "uint96"
1791
- },
1792
- {
1793
- "components": [
1794
- {
1795
- "internalType": "NftId",
1796
- "name": "poolNftId",
1797
- "type": "uint96"
1798
- },
1799
- {
1800
- "components": [
1801
- {
1802
- "internalType": "UFixed",
1803
- "name": "fractionalFee",
1804
- "type": "uint256"
1805
- },
1806
- {
1807
- "internalType": "uint256",
1808
- "name": "fixedFee",
1809
- "type": "uint256"
1810
- }
1811
- ],
1812
- "internalType": "struct Fee",
1813
- "name": "fee",
1814
- "type": "tuple"
1815
- },
1816
- {
1817
- "internalType": "bytes",
1818
- "name": "filter",
1819
- "type": "bytes"
1820
- },
1821
- {
1822
- "internalType": "uint256",
1823
- "name": "capitalAmount",
1824
- "type": "uint256"
1825
- },
1826
- {
1827
- "internalType": "uint256",
1828
- "name": "lockedAmount",
1829
- "type": "uint256"
1830
- },
1831
- {
1832
- "internalType": "uint256",
1833
- "name": "balanceAmount",
1834
- "type": "uint256"
1835
- },
1836
- {
1837
- "internalType": "uint256",
1838
- "name": "lifetime",
1839
- "type": "uint256"
1840
- },
1841
- {
1842
- "internalType": "Timestamp",
1843
- "name": "expiredAt",
1844
- "type": "uint40"
1845
- },
1846
- {
1847
- "internalType": "Timestamp",
1848
- "name": "closedAt",
1849
- "type": "uint40"
1850
- }
1851
- ],
1852
- "internalType": "struct IBundle.BundleInfo",
1853
- "name": "bundle",
1854
- "type": "tuple"
1855
- },
1856
- {
1857
- "internalType": "StateId",
1858
- "name": "newState",
1859
- "type": "uint8"
1860
515
  }
1861
516
  ],
1862
- "name": "updateBundle",
1863
- "outputs": [],
1864
- "stateMutability": "nonpayable",
517
+ "stateMutability": "view",
1865
518
  "type": "function"
1866
519
  },
1867
520
  {
1868
- "inputs": [
1869
- {
1870
- "internalType": "NftId",
1871
- "name": "bundleNftId",
1872
- "type": "uint96"
1873
- },
521
+ "inputs": [],
522
+ "name": "getRegistry",
523
+ "outputs": [
1874
524
  {
1875
- "internalType": "StateId",
1876
- "name": "newState",
1877
- "type": "uint8"
525
+ "internalType": "contract IRegistry",
526
+ "name": "",
527
+ "type": "address"
1878
528
  }
1879
529
  ],
1880
- "name": "updateBundleState",
1881
- "outputs": [],
1882
- "stateMutability": "nonpayable",
530
+ "stateMutability": "view",
1883
531
  "type": "function"
1884
532
  },
1885
533
  {
1886
- "inputs": [
1887
- {
1888
- "internalType": "NftId",
1889
- "name": "policyNftId",
1890
- "type": "uint96"
1891
- },
1892
- {
1893
- "internalType": "NumberId",
1894
- "name": "claimId",
1895
- "type": "uint32"
1896
- },
1897
- {
1898
- "components": [
1899
- {
1900
- "internalType": "uint256",
1901
- "name": "claimAmount",
1902
- "type": "uint256"
1903
- },
1904
- {
1905
- "internalType": "uint256",
1906
- "name": "paidAmount",
1907
- "type": "uint256"
1908
- },
1909
- {
1910
- "internalType": "bytes",
1911
- "name": "data",
1912
- "type": "bytes"
1913
- },
1914
- {
1915
- "internalType": "Timestamp",
1916
- "name": "closedAt",
1917
- "type": "uint40"
1918
- }
1919
- ],
1920
- "internalType": "struct IPolicy.ClaimInfo",
1921
- "name": "claim",
1922
- "type": "tuple"
1923
- },
534
+ "inputs": [],
535
+ "name": "getRelease",
536
+ "outputs": [
1924
537
  {
1925
- "internalType": "StateId",
1926
- "name": "newState",
538
+ "internalType": "VersionPart",
539
+ "name": "release",
1927
540
  "type": "uint8"
1928
541
  }
1929
542
  ],
1930
- "name": "updateClaim",
1931
- "outputs": [],
1932
- "stateMutability": "nonpayable",
543
+ "stateMutability": "view",
1933
544
  "type": "function"
1934
545
  },
1935
546
  {
1936
- "inputs": [
1937
- {
1938
- "internalType": "NftId",
1939
- "name": "policyNftId",
1940
- "type": "uint96"
1941
- },
1942
- {
1943
- "internalType": "NumberId",
1944
- "name": "payoutId",
1945
- "type": "uint32"
1946
- },
1947
- {
1948
- "components": [
1949
- {
1950
- "internalType": "NumberId",
1951
- "name": "claimId",
1952
- "type": "uint32"
1953
- },
1954
- {
1955
- "internalType": "uint256",
1956
- "name": "amount",
1957
- "type": "uint256"
1958
- },
1959
- {
1960
- "internalType": "bytes",
1961
- "name": "data",
1962
- "type": "bytes"
1963
- },
1964
- {
1965
- "internalType": "Timestamp",
1966
- "name": "paidAt",
1967
- "type": "uint40"
1968
- }
1969
- ],
1970
- "internalType": "struct IPolicy.PayoutInfo",
1971
- "name": "payout",
1972
- "type": "tuple"
1973
- },
547
+ "inputs": [],
548
+ "name": "getRiskSet",
549
+ "outputs": [
1974
550
  {
1975
- "internalType": "StateId",
1976
- "name": "newState",
1977
- "type": "uint8"
551
+ "internalType": "contract RiskSet",
552
+ "name": "",
553
+ "type": "address"
1978
554
  }
1979
555
  ],
1980
- "name": "updateClaim",
1981
- "outputs": [],
1982
- "stateMutability": "nonpayable",
556
+ "stateMutability": "view",
1983
557
  "type": "function"
1984
558
  },
1985
559
  {
1986
560
  "inputs": [
1987
561
  {
1988
- "internalType": "NftId",
1989
- "name": "policyNftId",
1990
- "type": "uint96"
562
+ "internalType": "RoleId",
563
+ "name": "roleId",
564
+ "type": "uint64"
1991
565
  },
1992
566
  {
1993
- "internalType": "StateId",
1994
- "name": "newState",
1995
- "type": "uint8"
567
+ "internalType": "address",
568
+ "name": "account",
569
+ "type": "address"
1996
570
  }
1997
571
  ],
1998
- "name": "updateClaimState",
572
+ "name": "grantRole",
1999
573
  "outputs": [],
2000
574
  "stateMutability": "nonpayable",
2001
575
  "type": "function"
@@ -2003,480 +577,209 @@
2003
577
  {
2004
578
  "inputs": [
2005
579
  {
2006
- "internalType": "NftId",
2007
- "name": "distributionNftId",
2008
- "type": "uint96"
580
+ "internalType": "contract InstanceAdmin",
581
+ "name": "instanceAdmin",
582
+ "type": "address"
2009
583
  },
2010
584
  {
2011
- "components": [
2012
- {
2013
- "internalType": "NftId",
2014
- "name": "productNftId",
2015
- "type": "uint96"
2016
- },
2017
- {
2018
- "internalType": "contract TokenHandler",
2019
- "name": "tokenHandler",
2020
- "type": "address"
2021
- },
2022
- {
2023
- "components": [
2024
- {
2025
- "internalType": "UFixed",
2026
- "name": "fractionalFee",
2027
- "type": "uint256"
2028
- },
2029
- {
2030
- "internalType": "uint256",
2031
- "name": "fixedFee",
2032
- "type": "uint256"
2033
- }
2034
- ],
2035
- "internalType": "struct Fee",
2036
- "name": "distributionFee",
2037
- "type": "tuple"
2038
- },
2039
- {
2040
- "internalType": "bool",
2041
- "name": "isIntercepting",
2042
- "type": "bool"
2043
- },
2044
- {
2045
- "internalType": "address",
2046
- "name": "wallet",
2047
- "type": "address"
2048
- }
2049
- ],
2050
- "internalType": "struct ISetup.DistributionSetupInfo",
2051
- "name": "setup",
2052
- "type": "tuple"
585
+ "internalType": "contract InstanceStore",
586
+ "name": "instanceStore",
587
+ "type": "address"
2053
588
  },
2054
589
  {
2055
- "internalType": "StateId",
2056
- "name": "newState",
2057
- "type": "uint8"
2058
- }
2059
- ],
2060
- "name": "updateDistributionSetup",
2061
- "outputs": [],
2062
- "stateMutability": "nonpayable",
2063
- "type": "function"
2064
- },
2065
- {
2066
- "inputs": [
2067
- {
2068
- "internalType": "NftId",
2069
- "name": "distributionNftId",
2070
- "type": "uint96"
590
+ "internalType": "contract BundleSet",
591
+ "name": "bundleSet",
592
+ "type": "address"
2071
593
  },
2072
594
  {
2073
- "internalType": "StateId",
2074
- "name": "newState",
2075
- "type": "uint8"
2076
- }
2077
- ],
2078
- "name": "updateDistributionSetupState",
2079
- "outputs": [],
2080
- "stateMutability": "nonpayable",
2081
- "type": "function"
2082
- },
2083
- {
2084
- "inputs": [
2085
- {
2086
- "internalType": "NftId",
2087
- "name": "policyNftId",
2088
- "type": "uint96"
595
+ "internalType": "contract RiskSet",
596
+ "name": "riskSet",
597
+ "type": "address"
2089
598
  },
2090
599
  {
2091
- "internalType": "NumberId",
2092
- "name": "payoutId",
2093
- "type": "uint32"
600
+ "internalType": "contract InstanceReader",
601
+ "name": "instanceReader",
602
+ "type": "address"
2094
603
  },
2095
604
  {
2096
- "components": [
2097
- {
2098
- "internalType": "NumberId",
2099
- "name": "claimId",
2100
- "type": "uint32"
2101
- },
2102
- {
2103
- "internalType": "uint256",
2104
- "name": "amount",
2105
- "type": "uint256"
2106
- },
2107
- {
2108
- "internalType": "bytes",
2109
- "name": "data",
2110
- "type": "bytes"
2111
- },
2112
- {
2113
- "internalType": "Timestamp",
2114
- "name": "paidAt",
2115
- "type": "uint40"
2116
- }
2117
- ],
2118
- "internalType": "struct IPolicy.PayoutInfo",
2119
- "name": "payout",
2120
- "type": "tuple"
605
+ "internalType": "contract IRegistry",
606
+ "name": "registry",
607
+ "type": "address"
2121
608
  },
2122
609
  {
2123
- "internalType": "StateId",
2124
- "name": "newState",
610
+ "internalType": "VersionPart",
611
+ "name": "release",
2125
612
  "type": "uint8"
613
+ },
614
+ {
615
+ "internalType": "address",
616
+ "name": "initialOwner",
617
+ "type": "address"
2126
618
  }
2127
619
  ],
2128
- "name": "updateDistributor",
620
+ "name": "initialize",
2129
621
  "outputs": [],
2130
622
  "stateMutability": "nonpayable",
2131
623
  "type": "function"
2132
624
  },
2133
625
  {
2134
- "inputs": [
2135
- {
2136
- "internalType": "NftId",
2137
- "name": "policyNftId",
2138
- "type": "uint96"
2139
- },
626
+ "inputs": [],
627
+ "name": "isActive",
628
+ "outputs": [
2140
629
  {
2141
- "internalType": "StateId",
2142
- "name": "newState",
2143
- "type": "uint8"
630
+ "internalType": "bool",
631
+ "name": "active",
632
+ "type": "bool"
2144
633
  }
2145
634
  ],
2146
- "name": "updateDistributorState",
2147
- "outputs": [],
2148
- "stateMutability": "nonpayable",
635
+ "stateMutability": "view",
2149
636
  "type": "function"
2150
637
  },
2151
638
  {
2152
- "inputs": [
2153
- {
2154
- "internalType": "NftId",
2155
- "name": "policyNftId",
2156
- "type": "uint96"
2157
- },
2158
- {
2159
- "internalType": "NumberId",
2160
- "name": "payoutId",
2161
- "type": "uint32"
2162
- },
639
+ "inputs": [],
640
+ "name": "isConsumingScheduledOp",
641
+ "outputs": [
2163
642
  {
2164
- "components": [
2165
- {
2166
- "internalType": "NumberId",
2167
- "name": "claimId",
2168
- "type": "uint32"
2169
- },
2170
- {
2171
- "internalType": "uint256",
2172
- "name": "amount",
2173
- "type": "uint256"
2174
- },
2175
- {
2176
- "internalType": "bytes",
2177
- "name": "data",
2178
- "type": "bytes"
2179
- },
2180
- {
2181
- "internalType": "Timestamp",
2182
- "name": "paidAt",
2183
- "type": "uint40"
2184
- }
2185
- ],
2186
- "internalType": "struct IPolicy.PayoutInfo",
2187
- "name": "payout",
2188
- "type": "tuple"
2189
- },
643
+ "internalType": "bytes4",
644
+ "name": "",
645
+ "type": "bytes4"
646
+ }
647
+ ],
648
+ "stateMutability": "view",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [],
653
+ "name": "isInstanceLocked",
654
+ "outputs": [
2190
655
  {
2191
- "internalType": "StateId",
2192
- "name": "newState",
2193
- "type": "uint8"
656
+ "internalType": "bool",
657
+ "name": "",
658
+ "type": "bool"
2194
659
  }
2195
660
  ],
2196
- "name": "updateDistributorType",
2197
- "outputs": [],
2198
- "stateMutability": "nonpayable",
661
+ "stateMutability": "view",
2199
662
  "type": "function"
2200
663
  },
2201
664
  {
2202
665
  "inputs": [
2203
666
  {
2204
- "internalType": "NftId",
2205
- "name": "policyNftId",
2206
- "type": "uint96"
2207
- },
667
+ "internalType": "address",
668
+ "name": "target",
669
+ "type": "address"
670
+ }
671
+ ],
672
+ "name": "isTargetLocked",
673
+ "outputs": [
2208
674
  {
2209
- "internalType": "StateId",
2210
- "name": "newState",
2211
- "type": "uint8"
675
+ "internalType": "bool",
676
+ "name": "",
677
+ "type": "bool"
2212
678
  }
2213
679
  ],
2214
- "name": "updateDistributorTypeState",
2215
- "outputs": [],
2216
- "stateMutability": "nonpayable",
680
+ "stateMutability": "view",
2217
681
  "type": "function"
2218
682
  },
2219
683
  {
2220
- "inputs": [
684
+ "inputs": [],
685
+ "name": "linkToRegisteredNftId",
686
+ "outputs": [
2221
687
  {
2222
688
  "internalType": "NftId",
2223
- "name": "policyNftId",
689
+ "name": "nftId",
2224
690
  "type": "uint96"
2225
- },
2226
- {
2227
- "internalType": "StateId",
2228
- "name": "newState",
2229
- "type": "uint8"
2230
691
  }
2231
692
  ],
2232
- "name": "updatePayoutState",
2233
- "outputs": [],
2234
693
  "stateMutability": "nonpayable",
2235
694
  "type": "function"
2236
695
  },
2237
696
  {
2238
697
  "inputs": [
2239
698
  {
2240
- "internalType": "NftId",
2241
- "name": "policyNftId",
2242
- "type": "uint96"
699
+ "internalType": "address",
700
+ "name": "from",
701
+ "type": "address"
2243
702
  },
2244
703
  {
2245
- "components": [
2246
- {
2247
- "internalType": "NftId",
2248
- "name": "productNftId",
2249
- "type": "uint96"
2250
- },
2251
- {
2252
- "internalType": "NftId",
2253
- "name": "bundleNftId",
2254
- "type": "uint96"
2255
- },
2256
- {
2257
- "internalType": "ReferralId",
2258
- "name": "referralId",
2259
- "type": "bytes8"
2260
- },
2261
- {
2262
- "internalType": "RiskId",
2263
- "name": "riskId",
2264
- "type": "bytes8"
2265
- },
2266
- {
2267
- "internalType": "uint256",
2268
- "name": "sumInsuredAmount",
2269
- "type": "uint256"
2270
- },
2271
- {
2272
- "internalType": "uint256",
2273
- "name": "premiumAmount",
2274
- "type": "uint256"
2275
- },
2276
- {
2277
- "internalType": "uint256",
2278
- "name": "premiumPaidAmount",
2279
- "type": "uint256"
2280
- },
2281
- {
2282
- "internalType": "uint256",
2283
- "name": "lifetime",
2284
- "type": "uint256"
2285
- },
2286
- {
2287
- "internalType": "bytes",
2288
- "name": "applicationData",
2289
- "type": "bytes"
2290
- },
2291
- {
2292
- "internalType": "bytes",
2293
- "name": "policyData",
2294
- "type": "bytes"
2295
- },
2296
- {
2297
- "internalType": "uint16",
2298
- "name": "claimsCount",
2299
- "type": "uint16"
2300
- },
2301
- {
2302
- "internalType": "uint16",
2303
- "name": "openClaimsCount",
2304
- "type": "uint16"
2305
- },
2306
- {
2307
- "internalType": "uint256",
2308
- "name": "payoutAmount",
2309
- "type": "uint256"
2310
- },
2311
- {
2312
- "internalType": "Timestamp",
2313
- "name": "activatedAt",
2314
- "type": "uint40"
2315
- },
2316
- {
2317
- "internalType": "Timestamp",
2318
- "name": "expiredAt",
2319
- "type": "uint40"
2320
- },
2321
- {
2322
- "internalType": "Timestamp",
2323
- "name": "closedAt",
2324
- "type": "uint40"
2325
- }
2326
- ],
2327
- "internalType": "struct IPolicy.PolicyInfo",
2328
- "name": "policy",
2329
- "type": "tuple"
704
+ "internalType": "address",
705
+ "name": "to",
706
+ "type": "address"
2330
707
  },
2331
708
  {
2332
- "internalType": "StateId",
2333
- "name": "newState",
2334
- "type": "uint8"
709
+ "internalType": "uint256",
710
+ "name": "tokenId",
711
+ "type": "uint256"
712
+ },
713
+ {
714
+ "internalType": "address",
715
+ "name": "operator",
716
+ "type": "address"
2335
717
  }
2336
718
  ],
2337
- "name": "updatePolicy",
719
+ "name": "nftTransferFrom",
2338
720
  "outputs": [],
2339
721
  "stateMutability": "nonpayable",
2340
722
  "type": "function"
2341
723
  },
724
+ {
725
+ "inputs": [],
726
+ "name": "products",
727
+ "outputs": [
728
+ {
729
+ "internalType": "uint256",
730
+ "name": "productCount",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "stateMutability": "view",
735
+ "type": "function"
736
+ },
2342
737
  {
2343
738
  "inputs": [
2344
739
  {
2345
- "internalType": "NftId",
2346
- "name": "policyNftId",
740
+ "internalType": "Amount",
741
+ "name": "dipAmount",
2347
742
  "type": "uint96"
2348
- },
2349
- {
2350
- "internalType": "StateId",
2351
- "name": "newState",
2352
- "type": "uint8"
2353
743
  }
2354
744
  ],
2355
- "name": "updatePolicyState",
745
+ "name": "refillStakingRewardReserves",
2356
746
  "outputs": [],
2357
747
  "stateMutability": "nonpayable",
2358
748
  "type": "function"
2359
749
  },
2360
750
  {
2361
751
  "inputs": [
752
+ {
753
+ "internalType": "address",
754
+ "name": "product",
755
+ "type": "address"
756
+ }
757
+ ],
758
+ "name": "registerProduct",
759
+ "outputs": [
2362
760
  {
2363
761
  "internalType": "NftId",
2364
- "name": "poolNftId",
762
+ "name": "productNftId",
2365
763
  "type": "uint96"
2366
- },
2367
- {
2368
- "components": [
2369
- {
2370
- "internalType": "NftId",
2371
- "name": "productNftId",
2372
- "type": "uint96"
2373
- },
2374
- {
2375
- "internalType": "contract TokenHandler",
2376
- "name": "tokenHandler",
2377
- "type": "address"
2378
- },
2379
- {
2380
- "internalType": "UFixed",
2381
- "name": "collateralizationLevel",
2382
- "type": "uint256"
2383
- },
2384
- {
2385
- "components": [
2386
- {
2387
- "internalType": "UFixed",
2388
- "name": "fractionalFee",
2389
- "type": "uint256"
2390
- },
2391
- {
2392
- "internalType": "uint256",
2393
- "name": "fixedFee",
2394
- "type": "uint256"
2395
- }
2396
- ],
2397
- "internalType": "struct Fee",
2398
- "name": "poolFee",
2399
- "type": "tuple"
2400
- },
2401
- {
2402
- "components": [
2403
- {
2404
- "internalType": "UFixed",
2405
- "name": "fractionalFee",
2406
- "type": "uint256"
2407
- },
2408
- {
2409
- "internalType": "uint256",
2410
- "name": "fixedFee",
2411
- "type": "uint256"
2412
- }
2413
- ],
2414
- "internalType": "struct Fee",
2415
- "name": "stakingFee",
2416
- "type": "tuple"
2417
- },
2418
- {
2419
- "components": [
2420
- {
2421
- "internalType": "UFixed",
2422
- "name": "fractionalFee",
2423
- "type": "uint256"
2424
- },
2425
- {
2426
- "internalType": "uint256",
2427
- "name": "fixedFee",
2428
- "type": "uint256"
2429
- }
2430
- ],
2431
- "internalType": "struct Fee",
2432
- "name": "performanceFee",
2433
- "type": "tuple"
2434
- },
2435
- {
2436
- "internalType": "bool",
2437
- "name": "isIntercepting",
2438
- "type": "bool"
2439
- },
2440
- {
2441
- "internalType": "bool",
2442
- "name": "isConfirmingApplication",
2443
- "type": "bool"
2444
- },
2445
- {
2446
- "internalType": "address",
2447
- "name": "wallet",
2448
- "type": "address"
2449
- }
2450
- ],
2451
- "internalType": "struct ISetup.PoolSetupInfo",
2452
- "name": "setup",
2453
- "type": "tuple"
2454
- },
2455
- {
2456
- "internalType": "StateId",
2457
- "name": "newState",
2458
- "type": "uint8"
2459
764
  }
2460
765
  ],
2461
- "name": "updatePoolSetup",
2462
- "outputs": [],
2463
766
  "stateMutability": "nonpayable",
2464
767
  "type": "function"
2465
768
  },
2466
769
  {
2467
770
  "inputs": [
2468
771
  {
2469
- "internalType": "NftId",
2470
- "name": "poolNftId",
2471
- "type": "uint96"
772
+ "internalType": "RoleId",
773
+ "name": "roleId",
774
+ "type": "uint64"
2472
775
  },
2473
776
  {
2474
- "internalType": "StateId",
2475
- "name": "newState",
2476
- "type": "uint8"
777
+ "internalType": "address",
778
+ "name": "account",
779
+ "type": "address"
2477
780
  }
2478
781
  ],
2479
- "name": "updatePoolSetupState",
782
+ "name": "revokeRole",
2480
783
  "outputs": [],
2481
784
  "stateMutability": "nonpayable",
2482
785
  "type": "function"
@@ -2484,156 +787,12 @@
2484
787
  {
2485
788
  "inputs": [
2486
789
  {
2487
- "internalType": "NftId",
2488
- "name": "productNftId",
2489
- "type": "uint96"
2490
- },
2491
- {
2492
- "components": [
2493
- {
2494
- "internalType": "contract IERC20Metadata",
2495
- "name": "token",
2496
- "type": "address"
2497
- },
2498
- {
2499
- "internalType": "contract TokenHandler",
2500
- "name": "tokenHandler",
2501
- "type": "address"
2502
- },
2503
- {
2504
- "internalType": "NftId",
2505
- "name": "distributionNftId",
2506
- "type": "uint96"
2507
- },
2508
- {
2509
- "internalType": "NftId",
2510
- "name": "poolNftId",
2511
- "type": "uint96"
2512
- },
2513
- {
2514
- "components": [
2515
- {
2516
- "internalType": "UFixed",
2517
- "name": "fractionalFee",
2518
- "type": "uint256"
2519
- },
2520
- {
2521
- "internalType": "uint256",
2522
- "name": "fixedFee",
2523
- "type": "uint256"
2524
- }
2525
- ],
2526
- "internalType": "struct Fee",
2527
- "name": "distributionFee",
2528
- "type": "tuple"
2529
- },
2530
- {
2531
- "components": [
2532
- {
2533
- "internalType": "UFixed",
2534
- "name": "fractionalFee",
2535
- "type": "uint256"
2536
- },
2537
- {
2538
- "internalType": "uint256",
2539
- "name": "fixedFee",
2540
- "type": "uint256"
2541
- }
2542
- ],
2543
- "internalType": "struct Fee",
2544
- "name": "productFee",
2545
- "type": "tuple"
2546
- },
2547
- {
2548
- "components": [
2549
- {
2550
- "internalType": "UFixed",
2551
- "name": "fractionalFee",
2552
- "type": "uint256"
2553
- },
2554
- {
2555
- "internalType": "uint256",
2556
- "name": "fixedFee",
2557
- "type": "uint256"
2558
- }
2559
- ],
2560
- "internalType": "struct Fee",
2561
- "name": "processingFee",
2562
- "type": "tuple"
2563
- },
2564
- {
2565
- "components": [
2566
- {
2567
- "internalType": "UFixed",
2568
- "name": "fractionalFee",
2569
- "type": "uint256"
2570
- },
2571
- {
2572
- "internalType": "uint256",
2573
- "name": "fixedFee",
2574
- "type": "uint256"
2575
- }
2576
- ],
2577
- "internalType": "struct Fee",
2578
- "name": "poolFee",
2579
- "type": "tuple"
2580
- },
2581
- {
2582
- "components": [
2583
- {
2584
- "internalType": "UFixed",
2585
- "name": "fractionalFee",
2586
- "type": "uint256"
2587
- },
2588
- {
2589
- "internalType": "uint256",
2590
- "name": "fixedFee",
2591
- "type": "uint256"
2592
- }
2593
- ],
2594
- "internalType": "struct Fee",
2595
- "name": "stakingFee",
2596
- "type": "tuple"
2597
- },
2598
- {
2599
- "components": [
2600
- {
2601
- "internalType": "UFixed",
2602
- "name": "fractionalFee",
2603
- "type": "uint256"
2604
- },
2605
- {
2606
- "internalType": "uint256",
2607
- "name": "fixedFee",
2608
- "type": "uint256"
2609
- }
2610
- ],
2611
- "internalType": "struct Fee",
2612
- "name": "performanceFee",
2613
- "type": "tuple"
2614
- },
2615
- {
2616
- "internalType": "bool",
2617
- "name": "isIntercepting",
2618
- "type": "bool"
2619
- },
2620
- {
2621
- "internalType": "address",
2622
- "name": "wallet",
2623
- "type": "address"
2624
- }
2625
- ],
2626
- "internalType": "struct ISetup.ProductSetupInfo",
2627
- "name": "setup",
2628
- "type": "tuple"
2629
- },
2630
- {
2631
- "internalType": "StateId",
2632
- "name": "newState",
2633
- "type": "uint8"
790
+ "internalType": "address",
791
+ "name": "newAuthority",
792
+ "type": "address"
2634
793
  }
2635
794
  ],
2636
- "name": "updateProductSetup",
795
+ "name": "setAuthority",
2637
796
  "outputs": [],
2638
797
  "stateMutability": "nonpayable",
2639
798
  "type": "function"
@@ -2641,17 +800,12 @@
2641
800
  {
2642
801
  "inputs": [
2643
802
  {
2644
- "internalType": "NftId",
2645
- "name": "productNftId",
2646
- "type": "uint96"
2647
- },
2648
- {
2649
- "internalType": "StateId",
2650
- "name": "newState",
2651
- "type": "uint8"
803
+ "internalType": "bool",
804
+ "name": "locked",
805
+ "type": "bool"
2652
806
  }
2653
807
  ],
2654
- "name": "updateProductSetupState",
808
+ "name": "setInstanceLocked",
2655
809
  "outputs": [],
2656
810
  "stateMutability": "nonpayable",
2657
811
  "type": "function"
@@ -2659,49 +813,12 @@
2659
813
  {
2660
814
  "inputs": [
2661
815
  {
2662
- "internalType": "NftId",
2663
- "name": "policyNftId",
2664
- "type": "uint96"
2665
- },
2666
- {
2667
- "internalType": "NumberId",
2668
- "name": "payoutId",
2669
- "type": "uint32"
2670
- },
2671
- {
2672
- "components": [
2673
- {
2674
- "internalType": "NumberId",
2675
- "name": "claimId",
2676
- "type": "uint32"
2677
- },
2678
- {
2679
- "internalType": "uint256",
2680
- "name": "amount",
2681
- "type": "uint256"
2682
- },
2683
- {
2684
- "internalType": "bytes",
2685
- "name": "data",
2686
- "type": "bytes"
2687
- },
2688
- {
2689
- "internalType": "Timestamp",
2690
- "name": "paidAt",
2691
- "type": "uint40"
2692
- }
2693
- ],
2694
- "internalType": "struct IPolicy.PayoutInfo",
2695
- "name": "payout",
2696
- "type": "tuple"
2697
- },
2698
- {
2699
- "internalType": "StateId",
2700
- "name": "newState",
2701
- "type": "uint8"
816
+ "internalType": "contract InstanceReader",
817
+ "name": "instanceReader",
818
+ "type": "address"
2702
819
  }
2703
820
  ],
2704
- "name": "updateReferral",
821
+ "name": "setInstanceReader",
2705
822
  "outputs": [],
2706
823
  "stateMutability": "nonpayable",
2707
824
  "type": "function"
@@ -2709,17 +826,25 @@
2709
826
  {
2710
827
  "inputs": [
2711
828
  {
2712
- "internalType": "NftId",
2713
- "name": "policyNftId",
2714
- "type": "uint96"
2715
- },
829
+ "internalType": "Seconds",
830
+ "name": "stakeLockingPeriod",
831
+ "type": "uint40"
832
+ }
833
+ ],
834
+ "name": "setStakingLockingPeriod",
835
+ "outputs": [],
836
+ "stateMutability": "nonpayable",
837
+ "type": "function"
838
+ },
839
+ {
840
+ "inputs": [
2716
841
  {
2717
- "internalType": "StateId",
2718
- "name": "newState",
2719
- "type": "uint8"
842
+ "internalType": "UFixed",
843
+ "name": "rewardRate",
844
+ "type": "uint256"
2720
845
  }
2721
846
  ],
2722
- "name": "updateReferralState",
847
+ "name": "setStakingRewardRate",
2723
848
  "outputs": [],
2724
849
  "stateMutability": "nonpayable",
2725
850
  "type": "function"
@@ -2727,34 +852,22 @@
2727
852
  {
2728
853
  "inputs": [
2729
854
  {
2730
- "internalType": "RiskId",
2731
- "name": "riskId",
2732
- "type": "bytes8"
855
+ "internalType": "string",
856
+ "name": "targetName",
857
+ "type": "string"
2733
858
  },
2734
859
  {
2735
- "components": [
2736
- {
2737
- "internalType": "NftId",
2738
- "name": "productNftId",
2739
- "type": "uint96"
2740
- },
2741
- {
2742
- "internalType": "bytes",
2743
- "name": "data",
2744
- "type": "bytes"
2745
- }
2746
- ],
2747
- "internalType": "struct IRisk.RiskInfo",
2748
- "name": "risk",
2749
- "type": "tuple"
860
+ "internalType": "bytes4[]",
861
+ "name": "selectors",
862
+ "type": "bytes4[]"
2750
863
  },
2751
864
  {
2752
- "internalType": "StateId",
2753
- "name": "newState",
2754
- "type": "uint8"
865
+ "internalType": "RoleId",
866
+ "name": "roleId",
867
+ "type": "uint64"
2755
868
  }
2756
869
  ],
2757
- "name": "updateRisk",
870
+ "name": "setTargetFunctionRole",
2758
871
  "outputs": [],
2759
872
  "stateMutability": "nonpayable",
2760
873
  "type": "function"
@@ -2762,296 +875,125 @@
2762
875
  {
2763
876
  "inputs": [
2764
877
  {
2765
- "internalType": "RiskId",
2766
- "name": "riskId",
2767
- "type": "bytes8"
878
+ "internalType": "address",
879
+ "name": "target",
880
+ "type": "address"
2768
881
  },
2769
882
  {
2770
- "internalType": "StateId",
2771
- "name": "newState",
2772
- "type": "uint8"
883
+ "internalType": "bool",
884
+ "name": "locked",
885
+ "type": "bool"
2773
886
  }
2774
887
  ],
2775
- "name": "updateRiskState",
888
+ "name": "setTargetLocked",
2776
889
  "outputs": [],
2777
890
  "stateMutability": "nonpayable",
2778
891
  "type": "function"
2779
- }
2780
- ],
2781
- "bytecode": "0x60806040523480156200001157600080fd5b50620000546301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600280546001600160a01b031916331790556200007062000094565b6200007a6200024b565b6200008462000385565b6200008e620005f2565b6200076b565b60dc600090815260036020527fa093975c0a88af8b2bf4799c5b4be14d42fc326c2a331b9f3fb3caecbaa5104f805460ff19166064179055600190600490620000db60dc90565b60ff1660ff1681526020019081526020016000206000620001016200073960201b60201c565b60ff1660ff1681526020019081526020016000206000620001276200074360201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001906004906200015b60dc90565b60ff1660ff1681526020019081526020016000206000620001816200074360201b60201c565b60ff1660ff1681526020019081526020016000206000620001a76200073960201b60201c565b60ff16815260208101919091526040016000908120805460ff191692151592909217909155600190600490620001db60dc90565b60ff1660ff1681526020019081526020016000206000620002016200074360201b60201c565b60ff1660ff1681526020019081526020016000206000620002276200074860201b60201c565b60ff1681526020810191909152604001600020805460ff1916911515919091179055565b7f6b16ef514f22b74729cbea5cc7babfecbdc2309e530ca716643d11fe929eed2e8054606460ff1991821681179092557fd95a7ca9e147710ebdb88338ab2e67ddd90cff367c512f0cd93015f31f62adca8054909116600190811790915560009182526004602052907f083fc81be30b6287dea23aa60f8ffaf268f507cdeac82ed9644e506b59c54ff090620002df606e90565b60ff1660ff1681526020019081526020016000206000620003056200073960201b60201c565b60ff16815260208101919091526040016000908120805460ff19169215159290921790915560019060049062000339606490565b60ff1660ff16815260200190815260200160002060006200035f6200074360201b60201c565b60ff1660ff1681526020019081526020016000206000620002276200074d60201b60201c565b60d2600090815260036020527f4a3d8eec916edb195dbc0ca8a0f405ba03a38efbebf3c35851ce877e52911169805460ff1916600a179055600190600490620003cc60d290565b60ff1660ff1681526020019081526020016000206000620003f26200075260201b60201c565b60ff1660ff1681526020019081526020016000206000620004186200075760201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001906004906200044c60d290565b60ff1660ff1681526020019081526020016000206000620004726200075260201b60201c565b60ff1660ff1681526020019081526020016000206000620004986200075c60201b60201c565b60ff16815260208101919091526040016000908120805460ff191692151592909217909155600190600490620004cc60d290565b60ff1660ff1681526020019081526020016000206000620004f26200075260201b60201c565b60ff1660ff1681526020019081526020016000206000620005186200076160201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001906004906200054c60d290565b60ff1660ff1681526020019081526020016000206000620005726200076160201b60201c565b60ff1660ff1681526020019081526020016000206000620005986200073960201b60201c565b60ff16815260208101919091526040016000908120805460ff191692151592909217909155600190600490620005cc60d290565b60ff1660ff1681526020019081526020016000206000620002016200073960201b60201c565b60c8600090815260036020527f4ee5ee9bffee16640c2540fd7f6965fdc66a7e5f780f34dcd70130941a3eae07805460ff191660641790556001906004906200063960c890565b60ff1660ff16815260200190815260200160002060006200065f6200073960201b60201c565b60ff1660ff1681526020019081526020016000206000620006856200074360201b60201c565b60ff16815260208101919091526040016000908120805460ff191692151592909217909155600190600490620006b960c890565b60ff1660ff1681526020019081526020016000206000620006df6200074360201b60201c565b60ff1660ff1681526020019081526020016000206000620007056200073960201b60201c565b60ff16815260208101919091526040016000908120805460ff1916921515929092179091556001906004906200033960c890565b606490565b905090565b606e90565b60c890565b60d290565b600a90565b601490565b601e90565b600060286200073e565b6147cb806200077b6000396000f3fe608060405234801561001057600080fd5b50600436106104285760003560e01c806382f65adb1161022b578063bf1db3f911610130578063e7cd37d4116100b8578063f7bc431c11610087578063f7bc431c146109b3578063f8b648ac146105af578063fb2cb101146109c6578063fe1f18d6146109d7578063fed3d63f146109ea57600080fd5b8063e7cd37d41461094f578063e8951ee614610531578063e9e96c7014610962578063f48016ce146109a057600080fd5b8063cde749f4116100ff578063cde749f414610919578063d2f21a2914610921578063d5b221bd1461054c578063dee3262314610934578063e1033e7d1461094757600080fd5b8063bf1db3f9146108f6578063bf7e214f14610909578063c2f1a2d21461054c578063ca600b1c1461091157600080fd5b80639df0280b116101b3578063a898967511610182578063a8989675146108aa578063a9cea142146108bd578063b68ec146146105af578063bc8d4000146108d0578063bd5947e3146108e357600080fd5b80639df0280b14610531578063a13df2ab146107d3578063a5961b4c146107e6578063a76ee0181461089757600080fd5b80638fb36037116101fa5780638fb360371461076657806391ff6eaa14610787578063976b0a771461079a5780639a960d52146107ad5780639d7421f4146107c057600080fd5b806382f65adb146105af578063893d20e81461073e5780638dc77f42146105315780638eaa6ac01461074657600080fd5b806340529b0f1161033157806360aa32aa116102b957806375b238fc1161028857806375b238fc146106fd57806375c82776146107055780637a4158021461054c5780637a9e5e4b146107185780637cef48421461072b57600080fd5b806360aa32aa146106a657806361f5f420146106b9578063644c45e0146106ca5780636b9bf08b146106f557600080fd5b806354f6127f1161030057806354f6127f146106595780635ab1bd53146106795780635d4345cc146105315780635dfa73db1461068a5780636071a68e1461069357600080fd5b806340529b0f14610531578063422c9d001461062b5780634288121d1461063e578063468a18671461064657600080fd5b80631c45fe7a116103b457806333bb0a971161038357806333bb0a97146105af57806337f135d7146105c257806338a699a4146105df5780633ca7c02a146105f25780633fc5ab981461061857600080fd5b80631c45fe7a1461054c5780631eff4b221461055f5780632781d443146105945780632f61088a1461059c57600080fd5b80630d358181116103fb5780630d358181146104e35780630f526f7d146105095780630fec111c1461051c57806310203d2c14610531578063138461e01461054457600080fd5b806301ffc9a71461042d57806302cd30711461046f57806309648a9d146104945780630b24cf5f146104ce575b600080fd5b61045a61043b366004612ffb565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6007546001600160a01b03165b6040516001600160a01b039091168152602001610466565b6104bc6104a2366004613025565b600090815260056020526040902054610100900460ff1690565b60405160ff9091168152602001610466565b6104e16104dc36600461322f565b6109f2565b005b6104bc6104f1366004613274565b60ff9081166000908152600360205260409020541690565b6104e1610517366004613291565b610a36565b610524610a53565b604051610466919061331a565b6104e161053f366004613291565b610c0c565b6104e1610c21565b6104e161055a3660046134cd565b610e43565b6105867f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610466565b610586600381565b6104e16105aa3660046135bc565b610e84565b6104e16105bd36600461360b565b610f1f565b6105ca600081565b60405163ffffffff9091168152602001610466565b61045a6105ed366004613025565b610f4a565b6106006001600160401b0381565b6040516001600160401b039091168152602001610466565b6104e1610626366004613723565b610fdb565b6104e1610639366004613786565b611001565b61047c61113e565b6105866106543660046137a3565b6111c4565b61066c610667366004613025565b61125d565b60405161046691906137c0565b6001546001600160a01b031661047c565b61060061271081565b6104e16106a13660046137d3565b611302565b6104e16106b43660046138ce565b611328565b6008546001600160a01b031661047c565b600154600160a01b90046001600160601b03166040516001600160601b039091168152602001610466565b61047c611350565b610600600081565b6104e1610713366004613952565b61136b565b6104e1610726366004613786565b611391565b6104e16107393660046139aa565b611414565b61047c61149e565b610759610754366004613025565b61157b565b6040516104669190613a12565b61076e6116bc565b6040516001600160e01b03199091168152602001610466565b6104e1610795366004613b36565b6116f5565b6104e16107a8366004613b64565b61171d565b6104e16107bb366004613d02565b61185d565b6104e16107ce366004613d49565b611883565b6105866107e13660046137a3565b6118a9565b61088a6107f4366004613025565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260056020908152604091829020825160a081018452905460ff8082168352610100820416928201929092526001600160a01b03620100008304169281019290925263ffffffff600160b01b820481166060840152600160d01b90910416608082015290565b6040516104669190613da0565b6104e16108a5366004613dae565b6118d6565b6104e16108b8366004613df5565b611971565b6104e16108cb366004613e35565b611a62565b6104e16108de366004613e76565b611a8a565b6104e16108f1366004613ebb565b611ab0565b61045a610904366004613274565b611ad8565b61047c611b25565b61047c611b41565b6104bc611b5c565b6104e161092f366004613291565b611bd3565b6104e1610942366004613291565b611bea565b61047c611c01565b6104e161095d366004613efb565b611c1c565b61045a610970366004613df5565b60ff9283166000908152600460209081526040808320948616835293815283822092851682529190915220541690565b6105866109ae366004613f39565b611c44565b6104e16109c1366004613786565b611ccf565b6002546001600160a01b031661047c565b6104e16109e5366004613291565b611dbc565b61047c611dd1565b6109ff335b600036611dec565b610a32610a0d836078611ef2565b82604051602001610a1e9190613f67565b604051602081830303815290604052611f3e565b5050565b610a3f336109f7565b610a32610a4d83608c611ef2565b82611f48565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b90910416151591810191909152600182018054919291606084019190610afe90613fc7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2a90613fc7565b8015610b775780601f10610b4c57610100808354040283529160200191610b77565b820191906000526020600020905b815481529060010190602001808311610b5a57829003601f168201915b50505050508152505090506040518060e00160405280610b95600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610bf06002546001600160a01b031690565b6001600160a01b03168152602001826060015181525091505090565b610c15336109f7565b610a32610a4d836111c4565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca79190614001565b15610cee576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b0316610d175760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610d60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d849190614001565b610dac576040516372657a5160e01b81526001600160a01b0382166004820152602401610ce5565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1a919061401e565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610e4c336109f7565b610e7e610e58856111c4565b83604051602001610e69919061403b565b60405160208183030381529060405283611f52565b50505050565b610e8d336109f7565b6040516355ee627560e01b81526001600160c01b031983166004820152610a329073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0e919061408e565b82604051602001610a1e91906140a7565b610f28336109f7565b610f45610f34846111c4565b82604051602001610a1e919061403b565b505050565b60008181526005602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024015b602060405180830381865af4158015610fb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd59190614001565b92915050565b610fe4336109f7565b610f45610ff0846118a9565b83604051602001610e6991906140d5565b61100a336109f7565b6008546001600160a01b03161561105a5760405162461bcd60e51b8152602060048201526014602482015273109d5b991b1953585b9859d95c881a5cc81cd95d60621b6044820152606401610ce5565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c69190614189565b6001600160a01b03161461111c5760405162461bcd60e51b815260206004820152601f60248201527f42756e646c654d616e6167657220696e7374616e6365206d69736d61746368006044820152606401610ce5565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff9091166004820152600360248201526044015b602060405180830381865afa15801561119b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bf9190614189565b905090565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d25b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af4158015611239573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd5919061408e565b600081815260056020526040902060010180546060919061127d90613fc7565b80601f01602080910402602001604051908101604052809291908181526020018280546112a990613fc7565b80156112f65780601f106112cb576101008083540402835291602001916112f6565b820191906000526020600020905b8154815290600101906020018083116112d957829003601f168201915b50505050509050919050565b61130b336109f7565b610a32611317836118a9565b82604051602001610a1e91906140d5565b611331336109f7565b610f4561133f84608c611ef2565b83604051602001610e6991906141a6565b6001546000906001600160a01b031663d39e6043608c611155565b611374336109f7565b610e7e611380856111c4565b83604051602001610e699190614266565b3361139a611b25565b6001600160a01b0316816001600160a01b0316146113d55760405162d1953b60e31b81526001600160a01b0382166004820152602401610ce5565b816001600160a01b03163b60000361140b576040516361798f2f60e11b81526001600160a01b0383166004820152602401610ce5565b610a3282611f5d565b61141d336109f7565b6040516355ee627560e01b81526001600160c01b031983166004820152610a329073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af415801561147a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4d919061408e565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115279190614001565b1561156b57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a9060240161117e565b506002546001600160a01b031690565b6040805160e081018252600091810182815260608083018490526080830184905260a0830184905260c083019390935281526020810191909152600082815260056020908152604091829020825160e081018452815460ff80821695830195865261010082041660608301526001600160a01b0362010000820416608083015263ffffffff600160b01b8204811660a0840152600160d01b9091041660c0820152928352600181018054919284019161163390613fc7565b80601f016020809104026020016040519081016040528092919081815260200182805461165f90613fc7565b80156116ac5780601f10611681576101008083540402835291602001916116ac565b820191906000526020600020905b81548152906001019060200180831161168f57829003601f168201915b5050505050815250509050919050565b600080516020614776833981519152805460009190600160a01b900460ff166116e65760006116ef565b638fb3603760e01b5b91505090565b6116fe336109f7565b610a3261170c83606e611ef2565b82604051602001610a1e9190614296565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156117625750825b90506000826001600160401b0316600114801561177e5750303b155b90508115801561178c575080155b156117aa5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156117d457845460ff60401b1916600160401b1785555b6117dd89611fbe565b6117fc8888604660008a60405180602001604052806000815250611fd2565b61180c633b03905f60e11b6120a7565b831561185257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b611866336109f7565b610f45611872846111c4565b83604051602001610e6991906143c0565b61188c336109f7565b610f45611898846111c4565b82604051602001610a1e9190614266565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc6111ed565b6118df336109f7565b6040516355ee627560e01b81526001600160c01b031984166004820152610f459073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af415801561193c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611960919061408e565b83604051602001610e6991906140a7565b60ff8381166000908152600360205260409081902054905163037c8cb160e51b81529116600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af41580156119d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fa9190614001565b15611a0457505050565b60ff808416600090815260046020908152604080832086851684528252808320858516845290915290205416610f4557604051636bb20ea760e01b815260ff8085166004830152808416602483015282166044820152606401610ce5565b611a6b336109f7565b610f45611a7984606e611ef2565b83604051602001610e699190614296565b611a93336109f7565b610a32611a9f836111c4565b82604051602001610a1e91906143c0565b611ab9336109f7565b610f45611ac7846078611ef2565b83604051602001610e699190613f67565b60ff81811660009081526003602052604080822054905163b2466acf60e01b8152921660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401610f94565b600080516020614776833981519152546001600160a01b031690565b6001546000906001600160a01b031663d39e60436078611155565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611baf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bf9190614501565b611bdc336109f7565b610a32610a4d836078611ef2565b611bf3336109f7565b610a32610a4d83606e611ef2565b6001546000906001600160a01b031663d39e604360d2611155565b611c25336109f7565b610a32611c3383608c611ef2565b82604051602001610a1e91906141a6565b604051637a400b6760e11b815260ff8316600482015260ff198216602482015260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__9063f48016ce906044015b602060405180830381865af4158015611ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc8919061408e565b9392505050565b611cd8336109f7565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d449190614189565b6001600160a01b031614611d9a5760405162461bcd60e51b815260206004820181905260248201527f496e7374616e636552656164657220696e7374616e6365206d69736d617463686044820152606401610ce5565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611dc5336109f7565b610a32610a4d836118a9565b6001546000906001600160a01b031663d39e604360dc611155565b600080516020614776833981519152600080611e27611e09611b25565b8730611e19600460008a8c61451e565b611e2291614548565b6120cc565b9150915081611eea5763ffffffff811615611ec757825460ff60a01b1916600160a01b178355611e55611b25565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611e8493929190614578565b600060405180830381600087803b158015611e9e57600080fd5b505af1158015611eb2573d6000803e3d6000fd5b5050845460ff60a01b1916855550611eea9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610ce5565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff8216602482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__90633889a4c890604401611c87565b610a3282826121d8565b610a3282826125fa565b610f4583838361292e565b60008051602061477683398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611fc6612dc9565b611fcf81612e14565b50565b6120136301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61201d8287612e25565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b8615150217815590506001810161208d83826145fe565b5061209e6303fb044760e21b6120a7565b50505050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161213b91906146bd565b600060405180830381855afa9150503d8060008114612176576040519150601f19603f3d011682016040523d82523d6000602084013e61217b565b606091505b509150915081156121cd5760408151106121ad57808060200190518101906121a391906146d9565b90945092506121cd565b60208151106121cd57808060200190518101906121ca9190614001565b93505b505094509492505050565b604051634b00e98f60e11b81526004810183905260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af415801561222b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224f9190614501565b60405163b2466acf60e01b815260ff8216600482015290915073__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf90602401602060405180830381865af41580156122a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c89190614001565b6123145760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4b56532d3031303a545950455f554e444546494e4544000000006044820152606401610ce5565b600083815260056020526040908190208054915163037c8cb160e51b815261010090920460ff1660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af415801561237d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a19190614001565b6123ed5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3031323a414c52454144595f435245415445440000006044820152606401610ce5565b334360006123fa85611ad8565b61240557606461241b565b60ff808616600090815260036020526040902054165b845460ff87811661ffff1990921691909117610100918316919091021762010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85169081029190911763ffffffff60d01b1916600160d01b9190910217855560008881526005602052604090209091506001016124a587826145fe565b50604051634b00e98f60e11b8152600481018890527ffcb75eb7b317145f986c763e1a3eab5f9b4dbaf7955504f70f986d799c3ab39d9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253c9190614501565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af415801561258c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b09190614708565b6040805160ff938416815260ff199092166020830152918416918101919091526001600160a01b038516606082015232608082015260a0015b60405180910390a150505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af415801561264c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126709190614001565b6126bc5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3034303a53544154455f554e444546494e45440000006044820152606401610ce5565b600082815260056020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061274c9190614001565b6127985760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3034313a4e4f545f4558495354494e470000000000006044820152606401610ce5565b8154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b909104166127dc4390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018790527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af415801561286e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128929190614501565b604051630713cfad60e31b81526004810189905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156128e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129069190614708565b878686328760405161291e9796959493929190614725565b60405180910390a1505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a49190614001565b6129f05760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3032303a53544154455f554e444546494e45440000006044820152606401610ce5565b600083815260056020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a809190614001565b612acc5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3032313a4e4f545f4558495354494e470000000000006044820152606401610ce5565b6000858152600560205260409020600101612ae785826145fe565b508154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b90910416612b2c4390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018890527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be29190614501565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c569190614708565b8786863287604051612c6e9796959493929190614725565b60405180910390a1604051634b00e98f60e11b8152600481018890527f7bd0ab7f1746bd20a814d6705a46876c84f1aa2d35c80d8c173e268bd6d4b26c9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d0c9190614501565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d809190614708565b6040805160ff938416815260ff199092166020830152918816918101919091526001600160a01b038416606082015232608082015263ffffffff831660a082015260c0016125e9565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16612e1257604051631afcd79f60e31b815260040160405180910390fd5b565b612e1c612dc9565b611fcf81611f5d565b6001600160a01b038216612e7b5760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401610ce5565b600280546001600160a01b0319166001600160a01b038416179055610a32816001546001600160a01b031615612ed35760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610ce5565b6001600160a01b038116612efa5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003612f305760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ce5565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526316c8f9ff60e01b60048201526301ffc9a790602401602060405180830381865afa925050508015612faa575060408051601f3d908101601f19168201909252612fa791810190614001565b60015b612fd25760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ce5565b80610a325760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610ce5565b60006020828403121561300d57600080fd5b81356001600160e01b031981168114611cc857600080fd5b60006020828403121561303757600080fd5b5035919050565b6001600160601b0381168114611fcf57600080fd5b803561305e8161303e565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561309b5761309b613063565b60405290565b604051608081016001600160401b038111828210171561309b5761309b613063565b60405161012081016001600160401b038111828210171561309b5761309b613063565b60405161018081016001600160401b038111828210171561309b5761309b613063565b60405161020081016001600160401b038111828210171561309b5761309b613063565b6001600160a01b0381168114611fcf57600080fd5b803561305e8161312c565b60006040828403121561315e57600080fd5b613166613079565b9050813581526020820135602082015292915050565b8015158114611fcf57600080fd5b803561305e8161317c565b600060c082840312156131a757600080fd5b60405160a081018181106001600160401b03821117156131c9576131c9613063565b60405290508082356131da8161303e565b815260208301356131ea8161312c565b60208201526131fc846040850161314c565b6040820152608083013561320f8161317c565b606082015260a08301356132228161312c565b6080919091015292915050565b60008060e0838503121561324257600080fd5b823561324d8161303e565b915061325c8460208501613195565b90509250929050565b60ff81168114611fcf57600080fd5b60006020828403121561328657600080fd5b8135611cc881613265565b600080604083850312156132a457600080fd5b82356132af8161303e565b915060208301356132bf81613265565b809150509250929050565b60005b838110156132e55781810151838201526020016132cd565b50506000910152565b600081518084526133068160208601602086016132ca565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a083015161338360c08401826001600160a01b03169052565b5060c083015160e08084015261339d6101008401826132ee565b949350505050565b63ffffffff81168114611fcf57600080fd5b600082601f8301126133c857600080fd5b81356001600160401b03808211156133e2576133e2613063565b604051601f8301601f19908116603f0116810190828211818310171561340a5761340a613063565b8160405283815286602085880101111561342357600080fd5b836020870160208301376000602085830101528094505050505092915050565b803564ffffffffff8116811461305e57600080fd5b60006080828403121561346a57600080fd5b6134726130a1565b9050813561347f816133a5565b81526020828101359082015260408201356001600160401b038111156134a457600080fd5b6134b0848285016133b7565b6040830152506134c260608301613443565b606082015292915050565b600080600080608085870312156134e357600080fd5b84356134ee8161303e565b935060208501356134fe816133a5565b925060408501356001600160401b0381111561351957600080fd5b61352587828801613458565b925050606085013561353681613265565b939692955090935050565b6001600160c01b031981168114611fcf57600080fd5b803561305e81613541565b60006040828403121561357457600080fd5b61357c613079565b905081356135898161303e565b815260208201356001600160401b038111156135a457600080fd5b6135b0848285016133b7565b60208301525092915050565b600080604083850312156135cf57600080fd5b82356135da81613541565b915060208301356001600160401b038111156135f557600080fd5b61360185828601613562565b9150509250929050565b60008060006060848603121561362057600080fd5b833561362b8161303e565b9250602084013561363b816133a5565b915060408401356001600160401b0381111561365657600080fd5b61366286828701613458565b9150509250925092565b6000610140828403121561367f57600080fd5b6136876130c3565b905061369282613053565b81526136a1836020840161314c565b602082015260608201356001600160401b038111156136bf57600080fd5b6136cb848285016133b7565b6040830152506080820135606082015260a0820135608082015260c082013560a082015260e082013560c0820152610100613707818401613443565b60e08301526137196101208401613443565b9082015292915050565b60008060006060848603121561373857600080fd5b83356137438161303e565b925060208401356001600160401b0381111561375e57600080fd5b61376a8682870161366c565b925050604084013561377b81613265565b809150509250925092565b60006020828403121561379857600080fd5b8135611cc88161312c565b6000602082840312156137b557600080fd5b8135611cc88161303e565b602081526000611cc860208301846132ee565b600080604083850312156137e657600080fd5b82356137f18161303e565b915060208301356001600160401b0381111561380c57600080fd5b6136018582860161366c565b6000610180828403121561382b57600080fd5b6138336130c3565b905061383e82613053565b815261384c60208301613141565b602082015260408201356040820152613868836060840161314c565b606082015261387a8360a0840161314c565b608082015261388c8360e0840161314c565b60a082015261389e610120830161318a565b60c08201526138b0610140830161318a565b60e08201526138c26101608301613141565b61010082015292915050565b60008060006101c084860312156138e457600080fd5b83356138ef8161303e565b92506138fe8560208601613818565b91506101a084013561377b81613265565b60006080828403121561392157600080fd5b6139296130a1565b9050813581526020820135602082015260408201356001600160401b038111156134a457600080fd5b6000806000806080858703121561396857600080fd5b84356139738161303e565b93506020850135613983816133a5565b925060408501356001600160401b0381111561399e57600080fd5b6135258782880161390f565b600080604083850312156139bd57600080fd5b82356132af81613541565b60ff815116825260ff602082015116602083015260018060a01b036040820151166040830152606081015163ffffffff808216606085015280608084015116608085015250505050565b60208152613a246020820183516139c8565b6000602083015160c08084015261339d60e08401826132ee565b60006102408284031215613a5157600080fd5b613a596130e6565b9050613a6482613141565b8152613a7260208301613141565b6020820152613a8360408301613053565b6040820152613a9460608301613053565b6060820152613aa6836080840161314c565b6080820152613ab88360c0840161314c565b60a0820152610100613acc8482850161314c565b60c0830152610140613ae08582860161314c565b60e0840152613af385610180860161314c565b82840152613b05856101c0860161314c565b610120840152613b18610200850161318a565b9083015250613b2a6102208301613141565b61016082015292915050565b6000806102608385031215613b4a57600080fd5b8235613b558161303e565b915061325c8460208501613a3e565b60008060008060808587031215613b7a57600080fd5b8435613b858161312c565b93506020850135613b958161312c565b92506040850135613ba58161303e565b915060608501356135368161312c565b803561ffff8116811461305e57600080fd5b60006102008284031215613bda57600080fd5b613be2613109565b9050613bed82613053565b8152613bfb60208301613053565b6020820152613c0c60408301613557565b6040820152613c1d60608301613557565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e0820152610100808301356001600160401b0380821115613c6657600080fd5b613c72868387016133b7565b83850152610120925082850135915080821115613c8e57600080fd5b50613c9b858286016133b7565b828401525050610140613caf818401613bb5565b90820152610160613cc1838201613bb5565b9082015261018082810135908201526101a0613cde818401613443565b908201526101c0613cf0838201613443565b908201526101e0613719838201613443565b600080600060608486031215613d1757600080fd5b8335613d228161303e565b925060208401356001600160401b03811115613d3d57600080fd5b61376a86828701613bc7565b600080600060608486031215613d5e57600080fd5b8335613d698161303e565b92506020840135613d79816133a5565b915060408401356001600160401b03811115613d9457600080fd5b6136628682870161390f565b60a08101610fd582846139c8565b600080600060608486031215613dc357600080fd5b8335613dce81613541565b925060208401356001600160401b03811115613de957600080fd5b61376a86828701613562565b600080600060608486031215613e0a57600080fd5b8335613e1581613265565b92506020840135613e2581613265565b9150604084013561377b81613265565b60008060006102808486031215613e4b57600080fd5b8335613e568161303e565b9250613e658560208601613a3e565b915061026084013561377b81613265565b60008060408385031215613e8957600080fd5b8235613e948161303e565b915060208301356001600160401b03811115613eaf57600080fd5b61360185828601613bc7565b60008060006101008486031215613ed157600080fd5b8335613edc8161303e565b9250613eeb8560208601613195565b915060e084013561377b81613265565b6000806101a08385031215613f0f57600080fd5b8235613f1a8161303e565b915061325c8460208501613818565b60ff1981168114611fcf57600080fd5b60008060408385031215613f4c57600080fd5b8235613f5781613265565b915060208301356132bf81613f29565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b600181811c90821680613fdb57607f821691505b602082108103613ffb57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561401357600080fd5b8151611cc88161317c565b60006020828403121561403057600080fd5b8151611cc88161303e565b6020815263ffffffff825116602082015260208201516040820152600060408301516080606084015261407160a08401826132ee565b905064ffffffffff60608501511660808401528091505092915050565b6000602082840312156140a057600080fd5b5051919050565b602081526001600160601b0382511660208201526000602083015160408084015261339d60608401826132ee565b602081526140ef6020820183516001600160601b03169052565b6000602083015161410d604084018280518252602090810151910152565b50604083015161014080608085015261412a6101608501836132ee565b9150606085015160a0850152608085015160c085015260a085015160e085015260c0850151610100818187015260e0870151915061417261012087018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b60006020828403121561419b57600080fd5b8151611cc88161312c565b81516001600160601b031681526020808301516101808301916141d3908401826001600160a01b03169052565b506040830151604083015260608301516141fa606084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c08301518015156101208401525060e0830151801515610140840152506101008301516001600160a01b0381166101608401525b5092915050565b602081528151602082015260208201516040820152600060408301516080606084015261407160a08401826132ee565b81516001600160a01b03168152610240810160208301516142c260208401826001600160a01b03169052565b5060408301516142dd60408401826001600160601b03169052565b5060608301516142f860608401826001600160601b03169052565b506080830151614315608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c083015161010061434b8185018380518252602090810151910152565b60e0850151915061014061436b8186018480518252602090810151910152565b9085015180516101808601526020908101516101a086015261012086015180516101c087015201516101e08501528401511515610200840152506101608301516001600160a01b03811661022084015261425f565b602081526143da6020820183516001600160601b03169052565b600060208301516143f660408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e0830151610100818185015280850151915050610200610120818186015261446e6102208601846132ee565b9250808601519050610140601f19868503018187015261448e84836132ee565b9350808701519150506101606144a98187018361ffff169052565b86015190506101806144c08682018361ffff169052565b8601516101a08681019190915286015190506101c06144e78187018364ffffffffff169052565b86015190506101e06141728682018364ffffffffff169052565b60006020828403121561451357600080fd5b8151611cc881613265565b6000808585111561452e57600080fd5b8386111561453b57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156145705780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b601f821115610f4557600081815260208120601f850160051c810160208610156145df5750805b601f850160051c820191505b81811015611eea578281556001016145eb565b81516001600160401b0381111561461757614617613063565b61462b816146258454613fc7565b846145b8565b602080601f83116001811461466057600084156146485750858301515b600019600386901b1c1916600185901b178555611eea565b600085815260208120601f198616915b8281101561468f57888601518255948401946001909101908401614670565b50858210156146ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516146cf8184602087016132ca565b9190910192915050565b600080604083850312156146ec57600080fd5b82516146f78161317c565b60208401519092506132bf816133a5565b60006020828403121561471a57600080fd5b8151611cc881613f29565b60ff978816815260ff1996909616602087015293861660408601529190941660608401526001600160a01b03938416608084015290921660a082015263ffffffff9190911660c082015260e0019056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a264697066735822122034b8217482059b09fe4cb63c3e8ab360b8bdea8aab3a14620e96a04a31c7f28064736f6c63430008140033",
2782
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106104285760003560e01c806382f65adb1161022b578063bf1db3f911610130578063e7cd37d4116100b8578063f7bc431c11610087578063f7bc431c146109b3578063f8b648ac146105af578063fb2cb101146109c6578063fe1f18d6146109d7578063fed3d63f146109ea57600080fd5b8063e7cd37d41461094f578063e8951ee614610531578063e9e96c7014610962578063f48016ce146109a057600080fd5b8063cde749f4116100ff578063cde749f414610919578063d2f21a2914610921578063d5b221bd1461054c578063dee3262314610934578063e1033e7d1461094757600080fd5b8063bf1db3f9146108f6578063bf7e214f14610909578063c2f1a2d21461054c578063ca600b1c1461091157600080fd5b80639df0280b116101b3578063a898967511610182578063a8989675146108aa578063a9cea142146108bd578063b68ec146146105af578063bc8d4000146108d0578063bd5947e3146108e357600080fd5b80639df0280b14610531578063a13df2ab146107d3578063a5961b4c146107e6578063a76ee0181461089757600080fd5b80638fb36037116101fa5780638fb360371461076657806391ff6eaa14610787578063976b0a771461079a5780639a960d52146107ad5780639d7421f4146107c057600080fd5b806382f65adb146105af578063893d20e81461073e5780638dc77f42146105315780638eaa6ac01461074657600080fd5b806340529b0f1161033157806360aa32aa116102b957806375b238fc1161028857806375b238fc146106fd57806375c82776146107055780637a4158021461054c5780637a9e5e4b146107185780637cef48421461072b57600080fd5b806360aa32aa146106a657806361f5f420146106b9578063644c45e0146106ca5780636b9bf08b146106f557600080fd5b806354f6127f1161030057806354f6127f146106595780635ab1bd53146106795780635d4345cc146105315780635dfa73db1461068a5780636071a68e1461069357600080fd5b806340529b0f14610531578063422c9d001461062b5780634288121d1461063e578063468a18671461064657600080fd5b80631c45fe7a116103b457806333bb0a971161038357806333bb0a97146105af57806337f135d7146105c257806338a699a4146105df5780633ca7c02a146105f25780633fc5ab981461061857600080fd5b80631c45fe7a1461054c5780631eff4b221461055f5780632781d443146105945780632f61088a1461059c57600080fd5b80630d358181116103fb5780630d358181146104e35780630f526f7d146105095780630fec111c1461051c57806310203d2c14610531578063138461e01461054457600080fd5b806301ffc9a71461042d57806302cd30711461046f57806309648a9d146104945780630b24cf5f146104ce575b600080fd5b61045a61043b366004612ffb565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6007546001600160a01b03165b6040516001600160a01b039091168152602001610466565b6104bc6104a2366004613025565b600090815260056020526040902054610100900460ff1690565b60405160ff9091168152602001610466565b6104e16104dc36600461322f565b6109f2565b005b6104bc6104f1366004613274565b60ff9081166000908152600360205260409020541690565b6104e1610517366004613291565b610a36565b610524610a53565b604051610466919061331a565b6104e161053f366004613291565b610c0c565b6104e1610c21565b6104e161055a3660046134cd565b610e43565b6105867f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610466565b610586600381565b6104e16105aa3660046135bc565b610e84565b6104e16105bd36600461360b565b610f1f565b6105ca600081565b60405163ffffffff9091168152602001610466565b61045a6105ed366004613025565b610f4a565b6106006001600160401b0381565b6040516001600160401b039091168152602001610466565b6104e1610626366004613723565b610fdb565b6104e1610639366004613786565b611001565b61047c61113e565b6105866106543660046137a3565b6111c4565b61066c610667366004613025565b61125d565b60405161046691906137c0565b6001546001600160a01b031661047c565b61060061271081565b6104e16106a13660046137d3565b611302565b6104e16106b43660046138ce565b611328565b6008546001600160a01b031661047c565b600154600160a01b90046001600160601b03166040516001600160601b039091168152602001610466565b61047c611350565b610600600081565b6104e1610713366004613952565b61136b565b6104e1610726366004613786565b611391565b6104e16107393660046139aa565b611414565b61047c61149e565b610759610754366004613025565b61157b565b6040516104669190613a12565b61076e6116bc565b6040516001600160e01b03199091168152602001610466565b6104e1610795366004613b36565b6116f5565b6104e16107a8366004613b64565b61171d565b6104e16107bb366004613d02565b61185d565b6104e16107ce366004613d49565b611883565b6105866107e13660046137a3565b6118a9565b61088a6107f4366004613025565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260056020908152604091829020825160a081018452905460ff8082168352610100820416928201929092526001600160a01b03620100008304169281019290925263ffffffff600160b01b820481166060840152600160d01b90910416608082015290565b6040516104669190613da0565b6104e16108a5366004613dae565b6118d6565b6104e16108b8366004613df5565b611971565b6104e16108cb366004613e35565b611a62565b6104e16108de366004613e76565b611a8a565b6104e16108f1366004613ebb565b611ab0565b61045a610904366004613274565b611ad8565b61047c611b25565b61047c611b41565b6104bc611b5c565b6104e161092f366004613291565b611bd3565b6104e1610942366004613291565b611bea565b61047c611c01565b6104e161095d366004613efb565b611c1c565b61045a610970366004613df5565b60ff9283166000908152600460209081526040808320948616835293815283822092851682529190915220541690565b6105866109ae366004613f39565b611c44565b6104e16109c1366004613786565b611ccf565b6002546001600160a01b031661047c565b6104e16109e5366004613291565b611dbc565b61047c611dd1565b6109ff335b600036611dec565b610a32610a0d836078611ef2565b82604051602001610a1e9190613f67565b604051602081830303815290604052611f3e565b5050565b610a3f336109f7565b610a32610a4d83608c611ef2565b82611f48565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b90910416151591810191909152600182018054919291606084019190610afe90613fc7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2a90613fc7565b8015610b775780601f10610b4c57610100808354040283529160200191610b77565b820191906000526020600020905b815481529060010190602001808311610b5a57829003601f168201915b50505050508152505090506040518060e00160405280610b95600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610bf06002546001600160a01b031690565b6001600160a01b03168152602001826060015181525091505090565b610c15336109f7565b610a32610a4d836111c4565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015610c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca79190614001565b15610cee576001546040516316322c0f60e31b81526001600160a01b0382166004820152600160a01b9091046001600160601b031660248201526044015b60405180910390fd5b6001546001600160a01b0316610d175760405163cf29926160e01b815260040160405180910390fd5b60015460405163c3c5a54760e01b81523060048201819052916001600160a01b03169063c3c5a54790602401602060405180830381865afa158015610d60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d849190614001565b610dac576040516372657a5160e01b81526001600160a01b0382166004820152602401610ce5565b600154604051636939560f60e11b81526001600160a01b0383811660048301529091169063d272ac1e90602401602060405180830381865afa158015610df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1a919061401e565b600160146101000a8154816001600160601b0302191690836001600160601b0316021790555050565b610e4c336109f7565b610e7e610e58856111c4565b83604051602001610e69919061403b565b60405160208183030381529060405283611f52565b50505050565b610e8d336109f7565b6040516355ee627560e01b81526001600160c01b031983166004820152610a329073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0e919061408e565b82604051602001610a1e91906140a7565b610f28336109f7565b610f45610f34846111c4565b82604051602001610a1e919061403b565b505050565b60008181526005602052604080822054905163b2466acf60e01b815261010090910460ff16600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024015b602060405180830381865af4158015610fb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd59190614001565b92915050565b610fe4336109f7565b610f45610ff0846118a9565b83604051602001610e6991906140d5565b61100a336109f7565b6008546001600160a01b03161561105a5760405162461bcd60e51b8152602060048201526014602482015273109d5b991b1953585b9859d95c881a5cc81cd95d60621b6044820152606401610ce5565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c69190614189565b6001600160a01b03161461111c5760405162461bcd60e51b815260206004820152601f60248201527f42756e646c654d616e6167657220696e7374616e6365206d69736d61746368006044820152606401610ce5565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff9091166004820152600360248201526044015b602060405180830381865afa15801561119b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bf9190614189565b905090565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d25b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af4158015611239573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd5919061408e565b600081815260056020526040902060010180546060919061127d90613fc7565b80601f01602080910402602001604051908101604052809291908181526020018280546112a990613fc7565b80156112f65780601f106112cb576101008083540402835291602001916112f6565b820191906000526020600020905b8154815290600101906020018083116112d957829003601f168201915b50505050509050919050565b61130b336109f7565b610a32611317836118a9565b82604051602001610a1e91906140d5565b611331336109f7565b610f4561133f84608c611ef2565b83604051602001610e6991906141a6565b6001546000906001600160a01b031663d39e6043608c611155565b611374336109f7565b610e7e611380856111c4565b83604051602001610e699190614266565b3361139a611b25565b6001600160a01b0316816001600160a01b0316146113d55760405162d1953b60e31b81526001600160a01b0382166004820152602401610ce5565b816001600160a01b03163b60000361140b576040516361798f2f60e11b81526001600160a01b0383166004820152602401610ce5565b610a3282611f5d565b61141d336109f7565b6040516355ee627560e01b81526001600160c01b031983166004820152610a329073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af415801561147a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4d919061408e565b6001546040516330b8415f60e01b8152600160a01b9091046001600160601b0316600482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611503573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115279190614001565b1561156b57600154604051631c5da14d60e11b8152600160a01b82046001600160601b031660048201526001600160a01b03909116906338bb429a9060240161117e565b506002546001600160a01b031690565b6040805160e081018252600091810182815260608083018490526080830184905260a0830184905260c083019390935281526020810191909152600082815260056020908152604091829020825160e081018452815460ff80821695830195865261010082041660608301526001600160a01b0362010000820416608083015263ffffffff600160b01b8204811660a0840152600160d01b9091041660c0820152928352600181018054919284019161163390613fc7565b80601f016020809104026020016040519081016040528092919081815260200182805461165f90613fc7565b80156116ac5780601f10611681576101008083540402835291602001916116ac565b820191906000526020600020905b81548152906001019060200180831161168f57829003601f168201915b5050505050815250509050919050565b600080516020614776833981519152805460009190600160a01b900460ff166116e65760006116ef565b638fb3603760e01b5b91505090565b6116fe336109f7565b610a3261170c83606e611ef2565b82604051602001610a1e9190614296565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156117625750825b90506000826001600160401b0316600114801561177e5750303b155b90508115801561178c575080155b156117aa5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156117d457845460ff60401b1916600160401b1785555b6117dd89611fbe565b6117fc8888604660008a60405180602001604052806000815250611fd2565b61180c633b03905f60e11b6120a7565b831561185257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b611866336109f7565b610f45611872846111c4565b83604051602001610e6991906143c0565b61188c336109f7565b610f45611898846111c4565b82604051602001610a1e9190614266565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc6111ed565b6118df336109f7565b6040516355ee627560e01b81526001600160c01b031984166004820152610f459073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af415801561193c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611960919061408e565b83604051602001610e6991906140a7565b60ff8381166000908152600360205260409081902054905163037c8cb160e51b81529116600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af41580156119d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fa9190614001565b15611a0457505050565b60ff808416600090815260046020908152604080832086851684528252808320858516845290915290205416610f4557604051636bb20ea760e01b815260ff8085166004830152808416602483015282166044820152606401610ce5565b611a6b336109f7565b610f45611a7984606e611ef2565b83604051602001610e699190614296565b611a93336109f7565b610a32611a9f836111c4565b82604051602001610a1e91906143c0565b611ab9336109f7565b610f45611ac7846078611ef2565b83604051602001610e699190613f67565b60ff81811660009081526003602052604080822054905163b2466acf60e01b8152921660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401610f94565b600080516020614776833981519152546001600160a01b031690565b6001546000906001600160a01b031663d39e60436078611155565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af4158015611baf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bf9190614501565b611bdc336109f7565b610a32610a4d836078611ef2565b611bf3336109f7565b610a32610a4d83606e611ef2565b6001546000906001600160a01b031663d39e604360d2611155565b611c25336109f7565b610a32611c3383608c611ef2565b82604051602001610a1e91906141a6565b604051637a400b6760e11b815260ff8316600482015260ff198216602482015260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__9063f48016ce906044015b602060405180830381865af4158015611ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc8919061408e565b9392505050565b611cd8336109f7565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d449190614189565b6001600160a01b031614611d9a5760405162461bcd60e51b815260206004820181905260248201527f496e7374616e636552656164657220696e7374616e6365206d69736d617463686044820152606401610ce5565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611dc5336109f7565b610a32610a4d836118a9565b6001546000906001600160a01b031663d39e604360dc611155565b600080516020614776833981519152600080611e27611e09611b25565b8730611e19600460008a8c61451e565b611e2291614548565b6120cc565b9150915081611eea5763ffffffff811615611ec757825460ff60a01b1916600160a01b178355611e55611b25565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611e8493929190614578565b600060405180830381600087803b158015611e9e57600080fd5b505af1158015611eb2573d6000803e3d6000fd5b5050845460ff60a01b1916855550611eea9050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610ce5565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff8216602482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__90633889a4c890604401611c87565b610a3282826121d8565b610a3282826125fa565b610f4583838361292e565b60008051602061477683398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611fc6612dc9565b611fcf81612e14565b50565b6120136301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61201d8287612e25565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b8615150217815590506001810161208d83826145fe565b5061209e6303fb044760e21b6120a7565b50505050505050565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161213b91906146bd565b600060405180830381855afa9150503d8060008114612176576040519150601f19603f3d011682016040523d82523d6000602084013e61217b565b606091505b509150915081156121cd5760408151106121ad57808060200190518101906121a391906146d9565b90945092506121cd565b60208151106121cd57808060200190518101906121ca9190614001565b93505b505094509492505050565b604051634b00e98f60e11b81526004810183905260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af415801561222b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224f9190614501565b60405163b2466acf60e01b815260ff8216600482015290915073__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf90602401602060405180830381865af41580156122a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c89190614001565b6123145760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4b56532d3031303a545950455f554e444546494e4544000000006044820152606401610ce5565b600083815260056020526040908190208054915163037c8cb160e51b815261010090920460ff1660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af415801561237d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a19190614001565b6123ed5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3031323a414c52454144595f435245415445440000006044820152606401610ce5565b334360006123fa85611ad8565b61240557606461241b565b60ff808616600090815260036020526040902054165b845460ff87811661ffff1990921691909117610100918316919091021762010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85169081029190911763ffffffff60d01b1916600160d01b9190910217855560008881526005602052604090209091506001016124a587826145fe565b50604051634b00e98f60e11b8152600481018890527ffcb75eb7b317145f986c763e1a3eab5f9b4dbaf7955504f70f986d799c3ab39d9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253c9190614501565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af415801561258c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b09190614708565b6040805160ff938416815260ff199092166020830152918416918101919091526001600160a01b038516606082015232608082015260a0015b60405180910390a150505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af415801561264c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126709190614001565b6126bc5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3034303a53544154455f554e444546494e45440000006044820152606401610ce5565b600082815260056020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061274c9190614001565b6127985760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3034313a4e4f545f4558495354494e470000000000006044820152606401610ce5565b8154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b909104166127dc4390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018790527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af415801561286e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128929190614501565b604051630713cfad60e31b81526004810189905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156128e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129069190614708565b878686328760405161291e9796959493929190614725565b60405180910390a1505050505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a49190614001565b6129f05760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3032303a53544154455f554e444546494e45440000006044820152606401610ce5565b600083815260056020526040908190208054915163b2466acf60e01b815261010090920460ff1660048301819052909173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015612a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a809190614001565b612acc5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3032313a4e4f545f4558495354494e470000000000006044820152606401610ce5565b6000858152600560205260409020600101612ae785826145fe565b508154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b90910416612b2c4390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018890527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be29190614501565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c569190614708565b8786863287604051612c6e9796959493929190614725565b60405180910390a1604051634b00e98f60e11b8152600481018890527f7bd0ab7f1746bd20a814d6705a46876c84f1aa2d35c80d8c173e268bd6d4b26c9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015612ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d0c9190614501565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015612d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d809190614708565b6040805160ff938416815260ff199092166020830152918816918101919091526001600160a01b038416606082015232608082015263ffffffff831660a082015260c0016125e9565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16612e1257604051631afcd79f60e31b815260040160405180910390fd5b565b612e1c612dc9565b611fcf81611f5d565b6001600160a01b038216612e7b5760405162461bcd60e51b815260206004820152601e60248201527f4e66744f776e61626c653a20696e697469616c206f776e6572206973203000006044820152606401610ce5565b600280546001600160a01b0319166001600160a01b038416179055610a32816001546001600160a01b031615612ed35760015460405163fcdbf2d960e01b81526001600160a01b039091166004820152602401610ce5565b6001600160a01b038116612efa5760405163f5c4d07d60e01b815260040160405180910390fd5b806001600160a01b03163b600003612f305760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ce5565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526316c8f9ff60e01b60048201526301ffc9a790602401602060405180830381865afa925050508015612faa575060408051601f3d908101601f19168201909252612fa791810190614001565b60015b612fd25760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610ce5565b80610a325760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610ce5565b60006020828403121561300d57600080fd5b81356001600160e01b031981168114611cc857600080fd5b60006020828403121561303757600080fd5b5035919050565b6001600160601b0381168114611fcf57600080fd5b803561305e8161303e565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561309b5761309b613063565b60405290565b604051608081016001600160401b038111828210171561309b5761309b613063565b60405161012081016001600160401b038111828210171561309b5761309b613063565b60405161018081016001600160401b038111828210171561309b5761309b613063565b60405161020081016001600160401b038111828210171561309b5761309b613063565b6001600160a01b0381168114611fcf57600080fd5b803561305e8161312c565b60006040828403121561315e57600080fd5b613166613079565b9050813581526020820135602082015292915050565b8015158114611fcf57600080fd5b803561305e8161317c565b600060c082840312156131a757600080fd5b60405160a081018181106001600160401b03821117156131c9576131c9613063565b60405290508082356131da8161303e565b815260208301356131ea8161312c565b60208201526131fc846040850161314c565b6040820152608083013561320f8161317c565b606082015260a08301356132228161312c565b6080919091015292915050565b60008060e0838503121561324257600080fd5b823561324d8161303e565b915061325c8460208501613195565b90509250929050565b60ff81168114611fcf57600080fd5b60006020828403121561328657600080fd5b8135611cc881613265565b600080604083850312156132a457600080fd5b82356132af8161303e565b915060208301356132bf81613265565b809150509250929050565b60005b838110156132e55781810151838201526020016132cd565b50506000910152565b600081518084526133068160208601602086016132ca565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a083015161338360c08401826001600160a01b03169052565b5060c083015160e08084015261339d6101008401826132ee565b949350505050565b63ffffffff81168114611fcf57600080fd5b600082601f8301126133c857600080fd5b81356001600160401b03808211156133e2576133e2613063565b604051601f8301601f19908116603f0116810190828211818310171561340a5761340a613063565b8160405283815286602085880101111561342357600080fd5b836020870160208301376000602085830101528094505050505092915050565b803564ffffffffff8116811461305e57600080fd5b60006080828403121561346a57600080fd5b6134726130a1565b9050813561347f816133a5565b81526020828101359082015260408201356001600160401b038111156134a457600080fd5b6134b0848285016133b7565b6040830152506134c260608301613443565b606082015292915050565b600080600080608085870312156134e357600080fd5b84356134ee8161303e565b935060208501356134fe816133a5565b925060408501356001600160401b0381111561351957600080fd5b61352587828801613458565b925050606085013561353681613265565b939692955090935050565b6001600160c01b031981168114611fcf57600080fd5b803561305e81613541565b60006040828403121561357457600080fd5b61357c613079565b905081356135898161303e565b815260208201356001600160401b038111156135a457600080fd5b6135b0848285016133b7565b60208301525092915050565b600080604083850312156135cf57600080fd5b82356135da81613541565b915060208301356001600160401b038111156135f557600080fd5b61360185828601613562565b9150509250929050565b60008060006060848603121561362057600080fd5b833561362b8161303e565b9250602084013561363b816133a5565b915060408401356001600160401b0381111561365657600080fd5b61366286828701613458565b9150509250925092565b6000610140828403121561367f57600080fd5b6136876130c3565b905061369282613053565b81526136a1836020840161314c565b602082015260608201356001600160401b038111156136bf57600080fd5b6136cb848285016133b7565b6040830152506080820135606082015260a0820135608082015260c082013560a082015260e082013560c0820152610100613707818401613443565b60e08301526137196101208401613443565b9082015292915050565b60008060006060848603121561373857600080fd5b83356137438161303e565b925060208401356001600160401b0381111561375e57600080fd5b61376a8682870161366c565b925050604084013561377b81613265565b809150509250925092565b60006020828403121561379857600080fd5b8135611cc88161312c565b6000602082840312156137b557600080fd5b8135611cc88161303e565b602081526000611cc860208301846132ee565b600080604083850312156137e657600080fd5b82356137f18161303e565b915060208301356001600160401b0381111561380c57600080fd5b6136018582860161366c565b6000610180828403121561382b57600080fd5b6138336130c3565b905061383e82613053565b815261384c60208301613141565b602082015260408201356040820152613868836060840161314c565b606082015261387a8360a0840161314c565b608082015261388c8360e0840161314c565b60a082015261389e610120830161318a565b60c08201526138b0610140830161318a565b60e08201526138c26101608301613141565b61010082015292915050565b60008060006101c084860312156138e457600080fd5b83356138ef8161303e565b92506138fe8560208601613818565b91506101a084013561377b81613265565b60006080828403121561392157600080fd5b6139296130a1565b9050813581526020820135602082015260408201356001600160401b038111156134a457600080fd5b6000806000806080858703121561396857600080fd5b84356139738161303e565b93506020850135613983816133a5565b925060408501356001600160401b0381111561399e57600080fd5b6135258782880161390f565b600080604083850312156139bd57600080fd5b82356132af81613541565b60ff815116825260ff602082015116602083015260018060a01b036040820151166040830152606081015163ffffffff808216606085015280608084015116608085015250505050565b60208152613a246020820183516139c8565b6000602083015160c08084015261339d60e08401826132ee565b60006102408284031215613a5157600080fd5b613a596130e6565b9050613a6482613141565b8152613a7260208301613141565b6020820152613a8360408301613053565b6040820152613a9460608301613053565b6060820152613aa6836080840161314c565b6080820152613ab88360c0840161314c565b60a0820152610100613acc8482850161314c565b60c0830152610140613ae08582860161314c565b60e0840152613af385610180860161314c565b82840152613b05856101c0860161314c565b610120840152613b18610200850161318a565b9083015250613b2a6102208301613141565b61016082015292915050565b6000806102608385031215613b4a57600080fd5b8235613b558161303e565b915061325c8460208501613a3e565b60008060008060808587031215613b7a57600080fd5b8435613b858161312c565b93506020850135613b958161312c565b92506040850135613ba58161303e565b915060608501356135368161312c565b803561ffff8116811461305e57600080fd5b60006102008284031215613bda57600080fd5b613be2613109565b9050613bed82613053565b8152613bfb60208301613053565b6020820152613c0c60408301613557565b6040820152613c1d60608301613557565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e0820152610100808301356001600160401b0380821115613c6657600080fd5b613c72868387016133b7565b83850152610120925082850135915080821115613c8e57600080fd5b50613c9b858286016133b7565b828401525050610140613caf818401613bb5565b90820152610160613cc1838201613bb5565b9082015261018082810135908201526101a0613cde818401613443565b908201526101c0613cf0838201613443565b908201526101e0613719838201613443565b600080600060608486031215613d1757600080fd5b8335613d228161303e565b925060208401356001600160401b03811115613d3d57600080fd5b61376a86828701613bc7565b600080600060608486031215613d5e57600080fd5b8335613d698161303e565b92506020840135613d79816133a5565b915060408401356001600160401b03811115613d9457600080fd5b6136628682870161390f565b60a08101610fd582846139c8565b600080600060608486031215613dc357600080fd5b8335613dce81613541565b925060208401356001600160401b03811115613de957600080fd5b61376a86828701613562565b600080600060608486031215613e0a57600080fd5b8335613e1581613265565b92506020840135613e2581613265565b9150604084013561377b81613265565b60008060006102808486031215613e4b57600080fd5b8335613e568161303e565b9250613e658560208601613a3e565b915061026084013561377b81613265565b60008060408385031215613e8957600080fd5b8235613e948161303e565b915060208301356001600160401b03811115613eaf57600080fd5b61360185828601613bc7565b60008060006101008486031215613ed157600080fd5b8335613edc8161303e565b9250613eeb8560208601613195565b915060e084013561377b81613265565b6000806101a08385031215613f0f57600080fd5b8235613f1a8161303e565b915061325c8460208501613818565b60ff1981168114611fcf57600080fd5b60008060408385031215613f4c57600080fd5b8235613f5781613265565b915060208301356132bf81613f29565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015260c0830191906060850151151560808501528060808601511660a0850152505092915050565b600181811c90821680613fdb57607f821691505b602082108103613ffb57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561401357600080fd5b8151611cc88161317c565b60006020828403121561403057600080fd5b8151611cc88161303e565b6020815263ffffffff825116602082015260208201516040820152600060408301516080606084015261407160a08401826132ee565b905064ffffffffff60608501511660808401528091505092915050565b6000602082840312156140a057600080fd5b5051919050565b602081526001600160601b0382511660208201526000602083015160408084015261339d60608401826132ee565b602081526140ef6020820183516001600160601b03169052565b6000602083015161410d604084018280518252602090810151910152565b50604083015161014080608085015261412a6101608501836132ee565b9150606085015160a0850152608085015160c085015260a085015160e085015260c0850151610100818187015260e0870151915061417261012087018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b60006020828403121561419b57600080fd5b8151611cc88161312c565b81516001600160601b031681526020808301516101808301916141d3908401826001600160a01b03169052565b506040830151604083015260608301516141fa606084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c08301518015156101208401525060e0830151801515610140840152506101008301516001600160a01b0381166101608401525b5092915050565b602081528151602082015260208201516040820152600060408301516080606084015261407160a08401826132ee565b81516001600160a01b03168152610240810160208301516142c260208401826001600160a01b03169052565b5060408301516142dd60408401826001600160601b03169052565b5060608301516142f860608401826001600160601b03169052565b506080830151614315608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c083015161010061434b8185018380518252602090810151910152565b60e0850151915061014061436b8186018480518252602090810151910152565b9085015180516101808601526020908101516101a086015261012086015180516101c087015201516101e08501528401511515610200840152506101608301516001600160a01b03811661022084015261425f565b602081526143da6020820183516001600160601b03169052565b600060208301516143f660408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e0830151610100818185015280850151915050610200610120818186015261446e6102208601846132ee565b9250808601519050610140601f19868503018187015261448e84836132ee565b9350808701519150506101606144a98187018361ffff169052565b86015190506101806144c08682018361ffff169052565b8601516101a08681019190915286015190506101c06144e78187018364ffffffffff169052565b86015190506101e06141728682018364ffffffffff169052565b60006020828403121561451357600080fd5b8151611cc881613265565b6000808585111561452e57600080fd5b8386111561453b57600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156145705780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b601f821115610f4557600081815260208120601f850160051c810160208610156145df5750805b601f850160051c820191505b81811015611eea578281556001016145eb565b81516001600160401b0381111561461757614617613063565b61462b816146258454613fc7565b846145b8565b602080601f83116001811461466057600084156146485750858301515b600019600386901b1c1916600185901b178555611eea565b600085815260208120601f198616915b8281101561468f57888601518255948401946001909101908401614670565b50858210156146ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516146cf8184602087016132ca565b9190910192915050565b600080604083850312156146ec57600080fd5b82516146f78161317c565b60208401519092506132bf816133a5565b60006020828403121561471a57600080fd5b8151611cc881613f29565b60ff978816815260ff1996909616602087015293861660408601529190941660608401526001600160a01b03938416608084015290921660a082015263ffffffff9190911660c082015260e0019056fef3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a264697066735822122034b8217482059b09fe4cb63c3e8ab360b8bdea8aab3a14620e96a04a31c7f28064736f6c63430008140033",
2783
- "linkReferences": {
2784
- "contracts/types/Key32.sol": {
2785
- "Key32Lib": [
2786
- {
2787
- "length": 20,
2788
- "start": 9188
2789
- },
2790
- {
2791
- "length": 20,
2792
- "start": 10604
2793
- },
2794
- {
2795
- "length": 20,
2796
- "start": 11353
2797
- },
2798
- {
2799
- "length": 20,
2800
- "start": 11469
2801
- },
2802
- {
2803
- "length": 20,
2804
- "start": 12207
2805
- },
2806
- {
2807
- "length": 20,
2808
- "start": 12323
2809
- },
2810
- {
2811
- "length": 20,
2812
- "start": 13055
2813
- },
2814
- {
2815
- "length": 20,
2816
- "start": 13171
2817
- },
2818
- {
2819
- "length": 20,
2820
- "start": 13353
2821
- },
2822
- {
2823
- "length": 20,
2824
- "start": 13469
2825
- }
2826
- ]
2827
892
  },
2828
- "contracts/types/NftId.sol": {
2829
- "NftIdLib": [
2830
- {
2831
- "length": 20,
2832
- "start": 5060
2833
- },
2834
- {
2835
- "length": 20,
2836
- "start": 6467
2837
- },
2838
- {
2839
- "length": 20,
2840
- "start": 7236
2841
- },
2842
- {
2843
- "length": 20,
2844
- "start": 8232
2845
- },
893
+ {
894
+ "inputs": [
2846
895
  {
2847
- "length": 20,
2848
- "start": 9879
896
+ "internalType": "bytes4",
897
+ "name": "interfaceId",
898
+ "type": "bytes4"
2849
899
  }
2850
- ]
2851
- },
2852
- "contracts/types/ObjectType.sol": {
2853
- "ObjectTypeLib": [
900
+ ],
901
+ "name": "supportsInterface",
902
+ "outputs": [
2854
903
  {
2855
- "length": 20,
2856
- "start": 10725
904
+ "internalType": "bool",
905
+ "name": "",
906
+ "type": "bool"
2857
907
  }
2858
- ]
908
+ ],
909
+ "stateMutability": "view",
910
+ "type": "function"
2859
911
  },
2860
- "contracts/types/RiskId.sol": {
2861
- "RiskIdLib": [
2862
- {
2863
- "length": 20,
2864
- "start": 5675
2865
- },
2866
- {
2867
- "length": 20,
2868
- "start": 7099
2869
- },
2870
- {
2871
- "length": 20,
2872
- "start": 8317
2873
- }
2874
- ]
912
+ {
913
+ "inputs": [],
914
+ "name": "upgradeInstanceReader",
915
+ "outputs": [],
916
+ "stateMutability": "nonpayable",
917
+ "type": "function"
2875
918
  },
2876
- "contracts/types/StateId.sol": {
2877
- "StateIdLib": [
2878
- {
2879
- "length": 20,
2880
- "start": 5873
2881
- },
2882
- {
2883
- "length": 20,
2884
- "start": 8471
2885
- },
2886
- {
2887
- "length": 20,
2888
- "start": 8830
2889
- },
2890
- {
2891
- "length": 20,
2892
- "start": 10942
2893
- },
2894
- {
2895
- "length": 20,
2896
- "start": 11661
2897
- },
2898
- {
2899
- "length": 20,
2900
- "start": 11881
2901
- },
2902
- {
2903
- "length": 20,
2904
- "start": 12481
2905
- },
919
+ {
920
+ "inputs": [
2906
921
  {
2907
- "length": 20,
2908
- "start": 12701
922
+ "internalType": "Amount",
923
+ "name": "dipAmount",
924
+ "type": "uint96"
2909
925
  }
2910
- ]
2911
- },
2912
- "contracts/types/Version.sol": {
2913
- "VersionPartLib": [
926
+ ],
927
+ "name": "withdrawStakingRewardReserves",
928
+ "outputs": [
2914
929
  {
2915
- "length": 20,
2916
- "start": 8944
930
+ "internalType": "Amount",
931
+ "name": "newBalance",
932
+ "type": "uint96"
2917
933
  }
2918
- ]
934
+ ],
935
+ "stateMutability": "nonpayable",
936
+ "type": "function"
2919
937
  }
2920
- },
2921
- "deployedLinkReferences": {
2922
- "contracts/types/Key32.sol": {
2923
- "Key32Lib": [
2924
- {
2925
- "length": 20,
2926
- "start": 7273
2927
- },
2928
- {
2929
- "length": 20,
2930
- "start": 8689
2931
- },
2932
- {
2933
- "length": 20,
2934
- "start": 9438
2935
- },
2936
- {
2937
- "length": 20,
2938
- "start": 9554
2939
- },
2940
- {
2941
- "length": 20,
2942
- "start": 10292
2943
- },
2944
- {
2945
- "length": 20,
2946
- "start": 10408
2947
- },
2948
- {
2949
- "length": 20,
2950
- "start": 11140
2951
- },
2952
- {
2953
- "length": 20,
2954
- "start": 11256
2955
- },
938
+ ],
939
+ "bytecode": "0x6080604052348015600e575f80fd5b506129248061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610229575f3560e01c806376b707b71161012a578063b7d2b162116100b4578063d2192dbf11610079578063d2192dbf146104e4578063d4cda0d814610517578063db62d77b14610528578063e52ba1cb1461053b578063f7bc431c1461054e575f80fd5b8063b7d2b162146104ab578063b7d68519146104b9578063bf7e214f146104cc578063c2651725146104d4578063c71e261f146104dc575f80fd5b80638fb36037116100fa5780638fb360371461043d57806396cdfa3f1461045e578063ad12ad6014610471578063ada9652e14610484578063b428b0b014610498575f80fd5b806376b707b7146103f55780637a9e5e4b1461040f5780638689231314610422578063893d20e814610435575f80fd5b806329db8c3d116101b65780634f8b8aba1161017b5780634f8b8aba146103905780635ab1bd53146103a35780635fa8aad4146103b4578063644c45e0146103c75780636dddada4146103e4575f80fd5b806329db8c3d1461033c5780632d46f5df146103515780632d764ef814610364578063311adb681461037757806340acebd914610388575f80fd5b8063138461e0116101fc578063138461e0146102b957806315b74532146102d95780631eff4b22146102ec57806322f3e2d41461032157806326decd4014610329575f80fd5b806301ffc9a71461022d57806302cd30711461026e5780630e0c586d146102935780630fec111c146102a4575b5f80fd5b61025961023b366004612101565b6001600160e01b0319165f9081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6005546001600160a01b03165b6040516001600160a01b039091168152602001610265565b6007546001600160a01b031661027b565b6102ac610561565b604051610265919061215d565b6102c161071b565b6040516001600160601b039091168152602001610265565b6102c16102e73660046121f1565b61072a565b6103137f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610265565b61025961076c565b61025961033736600461221c565b6107e3565b61034f61034a3660046122ea565b610859565b005b6102c161035f36600461221c565b6108ab565b61034f610372366004612393565b6109bf565b6004546001600160a01b031661027b565b610259610a66565b61034f61039e3660046123cb565b610adb565b6001546001600160a01b031661027b565b61034f6103c23660046123e6565b610b8c565b5f805160206128af833981519152546001600160601b03166102c1565b6006546001600160a01b031661027b565b6103fd610bd4565b60405160ff9091168152602001610265565b61034f61041d36600461221c565b610c3c565b61034f61043036600461243f565b610cbe565b61027b610d33565b610445610e64565b6040516001600160e01b03199091168152602001610265565b61034f61046c366004612476565b610e99565b61034f61047f366004612491565b610f06565b6103135f805160206128af83398151915281565b61034f6104a63660046124e1565b610f8d565b61034f6103c23660046124e1565b61034f6104c73660046121f1565b611013565b61027b611088565b61034f6110a3565b600954610313565b6104f76104f236600461250b565b611145565b604080516001600160401b03938416815292909116602083015201610265565b6008546001600160a01b031661027b565b61034f610536366004612566565b611192565b6102c16105493660046123cb565b6117bd565b61034f61055c36600461221c565b61187b565b6040805160e0810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528073__$94a2c899be079b00d952d0d84fffaa5c34$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561060d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610631919061260a565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610679610d33565b6001600160a01b0316815260200182600101805461069690612625565b80601f01602080910402602001604051908101604052809291908181526020018280546106c290612625565b801561070d5780601f106106e45761010080835404028352916020019161070d565b820191905f5260205f20905b8154815290600101906020018083116106f057829003601f168201915b505050505081525091505090565b5f61072530611939565b905090565b5f6009828154811061073e5761073e61265d565b905f5260205f209060029182820401919006600c029054906101000a90046001600160601b03169050919050565b5f610775611088565b60405163a166aa8960e01b81523060048201526001600160a01b03919091169063a166aa8990602401602060405180830381865afa1580156107b9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107dd9190612671565b15905090565b60048054604051629b7b3560e61b81526001600160a01b03848116938201939093525f92909116906326decd4090602401602060405180830381865afa15801561082f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108539190612671565b92915050565b610865335b5f36611b32565b61086d610d33565b6001600160a01b0316336001600160a01b0316146108a55760405163086391f760e31b81523360048201526024015b60405180910390fd5b50505050565b5f6108b53361085e565b6108bd610d33565b6001600160a01b0316336001600160a01b0316146108f05760405163086391f760e31b815233600482015260240161089c565b600254604051632d46f5df60e01b81526001600160a01b03848116600483015290911690632d46f5df906024016020604051808303815f875af1158015610939573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095d919061260a565b60098054600180820183555f929092527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af6002820401805492909116600c026101000a6001600160601b03818102199093169284160291909117905592915050565b6109c83361085e565b6109d0610d33565b6001600160a01b0316336001600160a01b031614610a035760405163086391f760e31b815233600482015260240161089c565b6003546040516305aec9df60e31b815264ffffffffff831660048201526001600160a01b0390911690632d764ef8906024015b5f604051808303815f87803b158015610a4d575f80fd5b505af1158015610a5f573d5f803e3d5ffd5b5050505050565b5f60045f9054906101000a90046001600160a01b03166001600160a01b031663a4e2d6346040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107259190612671565b610ae43361085e565b610aec610d33565b6001600160a01b0316336001600160a01b031614610b1f5760405163086391f760e31b815233600482015260240161089c565b60035460405163511ab59d60e11b815233600482018190526001600160601b0384166024830152916001600160a01b03169063a2356b3a906044015b5f604051808303815f87803b158015610b72575f80fd5b505af1158015610b84573d5f803e3d5ffd5b505050505050565b610b953361085e565b610b9d610d33565b6001600160a01b0316336001600160a01b031614610bd05760405163086391f760e31b815233600482015260240161089c565b5050565b5f610bdd611088565b6001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610725919061268c565b33610c45611088565b6001600160a01b0316816001600160a01b031614610c805760405162d1953b60e31b81526001600160a01b038216600482015260240161089c565b816001600160a01b03163b5f03610cb5576040516361798f2f60e11b81526001600160a01b038316600482015260240161089c565b610bd082611c28565b610cc6610d33565b6001600160a01b0316336001600160a01b031614610cf95760405163086391f760e31b815233600482015260240161089c565b600354604051638689231360e01b81526001600160a01b038481166004830152831515602483015290911690638689231390604401610b5b565b5f805f805160206128af83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610d9f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dc39190612671565b15610e4e576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610e24573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e4891906126a7565b91505090565b54600160601b90046001600160a01b0316919050565b5f805160206128cf83398151915280545f9190600160a01b900460ff16610e8b575f610e48565b638fb3603760e01b91505090565b610ea1610d33565b6001600160a01b0316336001600160a01b031614610ed45760405163086391f760e31b815233600482015260240161089c565b6003546040516396cdfa3f60e01b815282151560048201526001600160a01b03909116906396cdfa3f90602401610a36565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f4d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f7191906126a7565b6001600160a01b0316336001600160a01b0316146108a5575f80fd5b610f963361085e565b610f9e610d33565b6001600160a01b0316336001600160a01b031614610fd15760405163086391f760e31b815233600482015260240161089c565b60048054604051630b428b0b60e41b81526001600160401b038516928101929092526001600160a01b038381166024840152169063b428b0b090604401610b5b565b61101c3361085e565b611024610d33565b6001600160a01b0316336001600160a01b0316146110575760405163086391f760e31b815233600482015260240161089c565b60035460405163b7d6851960e01b8152600481018390526001600160a01b039091169063b7d6851990602401610a36565b5f805160206128cf833981519152546001600160a01b031690565b6110ac3361085e565b6110b4610d33565b6001600160a01b0316336001600160a01b0316146110e75760405163086391f760e31b815233600482015260240161089c565b60035f9054906101000a90046001600160a01b03166001600160a01b031663c26517256040518163ffffffff1660e01b81526004015f604051808303815f87803b158015611133575f80fd5b505af11580156108a5573d5f803e3d5ffd5b5f806111503361085e565b611158610d33565b6001600160a01b0316336001600160a01b03161461118b5760405163086391f760e31b815233600482015260240161089c565b9250929050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03165f811580156111d65750825b90505f826001600160401b031660011480156111f15750303b155b9050811580156111ff575080155b1561121d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561124757845460ff60401b1916600160401b1785555b6001600160a01b038d1661126e576040516377dbcd1760e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b038f1690811782556040805163bf7e214f60e01b815290516113639363bf7e214f928082019260209290918290030181865afa1580156112c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112e991906126a7565b898a6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611326573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061134a919061260a565b600a60018b60405180602001604052805f815250611c88565b600880546001600160a01b03808f166001600160a01b03199283168117909355600680548f8316908416179055600780548e831690841617905560058054918d16919092161790556040805163204a7f0760e21b81529051638129fc1c916004808201925f9290919082900301818387803b1580156113e0575f80fd5b505af11580156113f2573d5f803e3d5ffd5b5050505060065f9054906101000a90046001600160a01b03166001600160a01b031663485cc9558e6001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611455573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061147991906126a7565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908b1660248201526044015f604051808303815f87803b1580156114bf575f80fd5b505af11580156114d1573d5f803e3d5ffd5b5050505060075f9054906101000a90046001600160a01b03166001600160a01b031663485cc9558e6001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611534573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061155891906126a7565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908b1660248201526044015f604051808303815f87803b15801561159e575f80fd5b505af11580156115b0573d5f803e3d5ffd5b5050505060055f9054906101000a90046001600160a01b03166001600160a01b0316638129fc1c6040518163ffffffff1660e01b81526004015f604051808303815f87803b158015611600575f80fd5b505af1158015611612573d5f803e3d5ffd5b505050506116286001546001600160a01b031690565b6001600160a01b031663d39e6043600b6040516001600160e01b031960e084901b16815260ff9182166004820152908a166024820152604401602060405180830381865afa15801561167c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116a091906126a7565b600280546001600160a01b0319166001600160a01b03928316179055600154166001600160a01b031663d39e6043600a6040516001600160e01b031960e084901b16815260ff9182166004820152908a166024820152604401602060405180830381865afa158015611714573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061173891906126a7565b600380546001600160a01b0319166001600160a01b03929092169190911790556117686357adb4b160e11b611dcf565b83156117ae57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050505050565b5f6117c73361085e565b6117cf610d33565b6001600160a01b0316336001600160a01b0316146118025760405163086391f760e31b815233600482015260240161089c565b60035460405163e52ba1cb60e01b81526001600160601b03841660048201526001600160a01b039091169063e52ba1cb906024016020604051808303815f875af1158015611852573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610853919061260a565b919050565b6118843361085e565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118ca573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118ee91906126a7565b6001600160a01b031614611917576040516345789cf560e01b815230600482015260240161089c565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b5f805f805160206128af83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156119a5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119c99190612671565b156119f55780546040516301ab8b6760e21b81526001600160601b03909116600482015260240161089c565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa158015611a47573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a6b9190612671565b611a935760405163b9304b0d60e01b81526001600160a01b038416600482015260240161089c565b6001546001600160a01b0316604051632f2a35f760e11b81526001600160a01b0385811660048301529190911690635e546bee90602401602060405180830381865afa158015611ae5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b09919061260a565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b5f805160206128cf8339815191525f80611b6a611b4d611088565b8730611b5c60045f8a8c6126c2565b611b65916126e9565b611e02565b9150915081610b845763ffffffff811615611c0557825460ff60a01b1916600160a01b178355611b98611088565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611bc793929190612721565b5f604051808303815f87803b158015611bde575f80fd5b505af1158015611bf0573d5f803e3d5ffd5b5050845460ff60a01b1916855550610b849050565b60405162d1953b60e31b81526001600160a01b038716600482015260240161089c565b5f805160206128cf83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611c90611f0a565b604051632330f24760e01b81526001600160a01b038816600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90632330f24790602401602060405180830381865af4158015611ce6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d0a9190612671565b611d325760405163cf6935e560e01b81526001600160a01b038816600482015260240161089c565b611d3b87611f55565b611d458683611f66565b5f7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101611db483826127a9565b50611dc5634a531f3360e01b611dcf565b5050505050505050565b611dd7611f0a565b611dff816001600160e01b0319165f908152602081905260409020805460ff19166001179055565b50565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611e709190612863565b5f60405180830381855afa9150503d805f8114611ea8576040519150601f19603f3d011682016040523d82523d5f602084013e611ead565b606091505b50915091508115611eff576040815110611edf5780806020019051810190611ed59190612879565b9094509250611eff565b6020815110611eff5780806020019051810190611efc9190612671565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611f5357604051631afcd79f60e31b815260040160405180910390fd5b565b611f5d611f0a565b611dff81611fdc565b611f6e611f0a565b611f76611fed565b611f7f82612035565b6001600160a01b038116611fa65760405163f17ef42d60e01b815260040160405180910390fd5b5f805160206128af83398151915280546001600160601b0316600160601b6001600160a01b039093169290920291909117905550565b611fe4611f0a565b611dff81611c28565b611ff5611f0a565b611f536301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61203d611f0a565b604051633334d16b60e01b81526001600160a01b038216600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90633334d16b90602401602060405180830381865af4158015612093573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120b79190612671565b6120df5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161089c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f60208284031215612111575f80fd5b81356001600160e01b031981168114612128575f80fd5b9392505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526001600160601b0382511660208201526001600160601b03602083015116604082015260ff60408301511660608201525f60608301516121a5608084018215159052565b5060808301516001600160a01b03811660a08401525060a08301516001600160a01b03811660c08401525060c083015160e0808401526121e961010084018261212f565b949350505050565b5f60208284031215612201575f80fd5b5035919050565b6001600160a01b0381168114611dff575f80fd5b5f6020828403121561222c575f80fd5b813561212881612208565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261225a575f80fd5b81356001600160401b0381111561227357612273612237565b604051601f8201601f19908116603f011681016001600160401b03811182821017156122a1576122a1612237565b6040528181528382016020018510156122b8575f80fd5b816020850160208301375f918101602001919091529392505050565b80356001600160401b0381168114611876575f80fd5b5f805f80606085870312156122fd575f80fd5b84356001600160401b03811115612312575f80fd5b61231e8782880161224b565b94505060208501356001600160401b03811115612339575f80fd5b8501601f81018713612349575f80fd5b80356001600160401b0381111561235e575f80fd5b8760208260051b8401011115612372575f80fd5b60209190910193509150612388604086016122d4565b905092959194509250565b5f602082840312156123a3575f80fd5b813564ffffffffff81168114612128575f80fd5b6001600160601b0381168114611dff575f80fd5b5f602082840312156123db575f80fd5b8135612128816123b7565b5f80604083850312156123f7575f80fd5b823561240281612208565b915060208301356001600160401b0381111561241c575f80fd5b6124288582860161224b565b9150509250929050565b8015158114611dff575f80fd5b5f8060408385031215612450575f80fd5b823561245b81612208565b9150602083013561246b81612432565b809150509250929050565b5f60208284031215612486575f80fd5b813561212881612432565b5f805f80608085870312156124a4575f80fd5b84356124af81612208565b935060208501356124bf81612208565b92506040850135915060608501356124d681612208565b939692955090935050565b5f80604083850312156124f2575f80fd5b6124fb836122d4565b9150602083013561246b81612208565b5f806040838503121561251c575f80fd5b82356001600160401b03811115612531575f80fd5b61253d8582860161224b565b92505060208301356001600160401b0381111561241c575f80fd5b60ff81168114611dff575f80fd5b5f805f805f805f80610100898b03121561257e575f80fd5b883561258981612208565b9750602089013561259981612208565b965060408901356125a981612208565b955060608901356125b981612208565b945060808901356125c981612208565b935060a08901356125d981612208565b925060c08901356125e981612558565b915060e08901356125f981612208565b809150509295985092959890939650565b5f6020828403121561261a575f80fd5b8151612128816123b7565b600181811c9082168061263957607f821691505b60208210810361265757634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215612681575f80fd5b815161212881612432565b5f6020828403121561269c575f80fd5b815161212881612558565b5f602082840312156126b7575f80fd5b815161212881612208565b5f80858511156126d0575f80fd5b838611156126dc575f80fd5b5050820193919092039150565b80356001600160e01b0319811690600484101561271a576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b601f8211156127a457805f5260205f20601f840160051c810160208510156127855750805b601f840160051c820191505b81811015610a5f575f8155600101612791565b505050565b81516001600160401b038111156127c2576127c2612237565b6127d6816127d08454612625565b84612760565b6020601f821160018114612808575f83156127f15750848201515b5f19600385901b1c1916600184901b178455610a5f565b5f84815260208120601f198516915b828110156128375787850151825560209485019460019092019101612817565b508482101561285457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f920191825250919050565b5f806040838503121561288a575f80fd5b825161289581612432565b602084015190925063ffffffff8116811461246b575f80fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a26469706673582212205f2fa6828bdec676a60fe3340b9a7e7dec351acc0f62901f5448f73298919ee664736f6c634300081a0033",
940
+ "deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610229575f3560e01c806376b707b71161012a578063b7d2b162116100b4578063d2192dbf11610079578063d2192dbf146104e4578063d4cda0d814610517578063db62d77b14610528578063e52ba1cb1461053b578063f7bc431c1461054e575f80fd5b8063b7d2b162146104ab578063b7d68519146104b9578063bf7e214f146104cc578063c2651725146104d4578063c71e261f146104dc575f80fd5b80638fb36037116100fa5780638fb360371461043d57806396cdfa3f1461045e578063ad12ad6014610471578063ada9652e14610484578063b428b0b014610498575f80fd5b806376b707b7146103f55780637a9e5e4b1461040f5780638689231314610422578063893d20e814610435575f80fd5b806329db8c3d116101b65780634f8b8aba1161017b5780634f8b8aba146103905780635ab1bd53146103a35780635fa8aad4146103b4578063644c45e0146103c75780636dddada4146103e4575f80fd5b806329db8c3d1461033c5780632d46f5df146103515780632d764ef814610364578063311adb681461037757806340acebd914610388575f80fd5b8063138461e0116101fc578063138461e0146102b957806315b74532146102d95780631eff4b22146102ec57806322f3e2d41461032157806326decd4014610329575f80fd5b806301ffc9a71461022d57806302cd30711461026e5780630e0c586d146102935780630fec111c146102a4575b5f80fd5b61025961023b366004612101565b6001600160e01b0319165f9081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6005546001600160a01b03165b6040516001600160a01b039091168152602001610265565b6007546001600160a01b031661027b565b6102ac610561565b604051610265919061215d565b6102c161071b565b6040516001600160601b039091168152602001610265565b6102c16102e73660046121f1565b61072a565b6103137f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610265565b61025961076c565b61025961033736600461221c565b6107e3565b61034f61034a3660046122ea565b610859565b005b6102c161035f36600461221c565b6108ab565b61034f610372366004612393565b6109bf565b6004546001600160a01b031661027b565b610259610a66565b61034f61039e3660046123cb565b610adb565b6001546001600160a01b031661027b565b61034f6103c23660046123e6565b610b8c565b5f805160206128af833981519152546001600160601b03166102c1565b6006546001600160a01b031661027b565b6103fd610bd4565b60405160ff9091168152602001610265565b61034f61041d36600461221c565b610c3c565b61034f61043036600461243f565b610cbe565b61027b610d33565b610445610e64565b6040516001600160e01b03199091168152602001610265565b61034f61046c366004612476565b610e99565b61034f61047f366004612491565b610f06565b6103135f805160206128af83398151915281565b61034f6104a63660046124e1565b610f8d565b61034f6103c23660046124e1565b61034f6104c73660046121f1565b611013565b61027b611088565b61034f6110a3565b600954610313565b6104f76104f236600461250b565b611145565b604080516001600160401b03938416815292909116602083015201610265565b6008546001600160a01b031661027b565b61034f610536366004612566565b611192565b6102c16105493660046123cb565b6117bd565b61034f61055c36600461221c565b61187b565b6040805160e0810182525f8082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528073__$94a2c899be079b00d952d0d84fffaa5c34$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561060d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610631919061260a565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a001610679610d33565b6001600160a01b0316815260200182600101805461069690612625565b80601f01602080910402602001604051908101604052809291908181526020018280546106c290612625565b801561070d5780601f106106e45761010080835404028352916020019161070d565b820191905f5260205f20905b8154815290600101906020018083116106f057829003601f168201915b505050505081525091505090565b5f61072530611939565b905090565b5f6009828154811061073e5761073e61265d565b905f5260205f209060029182820401919006600c029054906101000a90046001600160601b03169050919050565b5f610775611088565b60405163a166aa8960e01b81523060048201526001600160a01b03919091169063a166aa8990602401602060405180830381865afa1580156107b9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107dd9190612671565b15905090565b60048054604051629b7b3560e61b81526001600160a01b03848116938201939093525f92909116906326decd4090602401602060405180830381865afa15801561082f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108539190612671565b92915050565b610865335b5f36611b32565b61086d610d33565b6001600160a01b0316336001600160a01b0316146108a55760405163086391f760e31b81523360048201526024015b60405180910390fd5b50505050565b5f6108b53361085e565b6108bd610d33565b6001600160a01b0316336001600160a01b0316146108f05760405163086391f760e31b815233600482015260240161089c565b600254604051632d46f5df60e01b81526001600160a01b03848116600483015290911690632d46f5df906024016020604051808303815f875af1158015610939573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095d919061260a565b60098054600180820183555f929092527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af6002820401805492909116600c026101000a6001600160601b03818102199093169284160291909117905592915050565b6109c83361085e565b6109d0610d33565b6001600160a01b0316336001600160a01b031614610a035760405163086391f760e31b815233600482015260240161089c565b6003546040516305aec9df60e31b815264ffffffffff831660048201526001600160a01b0390911690632d764ef8906024015b5f604051808303815f87803b158015610a4d575f80fd5b505af1158015610a5f573d5f803e3d5ffd5b5050505050565b5f60045f9054906101000a90046001600160a01b03166001600160a01b031663a4e2d6346040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107259190612671565b610ae43361085e565b610aec610d33565b6001600160a01b0316336001600160a01b031614610b1f5760405163086391f760e31b815233600482015260240161089c565b60035460405163511ab59d60e11b815233600482018190526001600160601b0384166024830152916001600160a01b03169063a2356b3a906044015b5f604051808303815f87803b158015610b72575f80fd5b505af1158015610b84573d5f803e3d5ffd5b505050505050565b610b953361085e565b610b9d610d33565b6001600160a01b0316336001600160a01b031614610bd05760405163086391f760e31b815233600482015260240161089c565b5050565b5f610bdd611088565b6001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610725919061268c565b33610c45611088565b6001600160a01b0316816001600160a01b031614610c805760405162d1953b60e31b81526001600160a01b038216600482015260240161089c565b816001600160a01b03163b5f03610cb5576040516361798f2f60e11b81526001600160a01b038316600482015260240161089c565b610bd082611c28565b610cc6610d33565b6001600160a01b0316336001600160a01b031614610cf95760405163086391f760e31b815233600482015260240161089c565b600354604051638689231360e01b81526001600160a01b038481166004830152831515602483015290911690638689231390604401610b5b565b5f805f805160206128af83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610d9f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dc39190612671565b15610e4e576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015610e24573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e4891906126a7565b91505090565b54600160601b90046001600160a01b0316919050565b5f805160206128cf83398151915280545f9190600160a01b900460ff16610e8b575f610e48565b638fb3603760e01b91505090565b610ea1610d33565b6001600160a01b0316336001600160a01b031614610ed45760405163086391f760e31b815233600482015260240161089c565b6003546040516396cdfa3f60e01b815282151560048201526001600160a01b03909116906396cdfa3f90602401610a36565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f4d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f7191906126a7565b6001600160a01b0316336001600160a01b0316146108a5575f80fd5b610f963361085e565b610f9e610d33565b6001600160a01b0316336001600160a01b031614610fd15760405163086391f760e31b815233600482015260240161089c565b60048054604051630b428b0b60e41b81526001600160401b038516928101929092526001600160a01b038381166024840152169063b428b0b090604401610b5b565b61101c3361085e565b611024610d33565b6001600160a01b0316336001600160a01b0316146110575760405163086391f760e31b815233600482015260240161089c565b60035460405163b7d6851960e01b8152600481018390526001600160a01b039091169063b7d6851990602401610a36565b5f805160206128cf833981519152546001600160a01b031690565b6110ac3361085e565b6110b4610d33565b6001600160a01b0316336001600160a01b0316146110e75760405163086391f760e31b815233600482015260240161089c565b60035f9054906101000a90046001600160a01b03166001600160a01b031663c26517256040518163ffffffff1660e01b81526004015f604051808303815f87803b158015611133575f80fd5b505af11580156108a5573d5f803e3d5ffd5b5f806111503361085e565b611158610d33565b6001600160a01b0316336001600160a01b03161461118b5760405163086391f760e31b815233600482015260240161089c565b9250929050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03165f811580156111d65750825b90505f826001600160401b031660011480156111f15750303b155b9050811580156111ff575080155b1561121d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561124757845460ff60401b1916600160401b1785555b6001600160a01b038d1661126e576040516377dbcd1760e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b038f1690811782556040805163bf7e214f60e01b815290516113639363bf7e214f928082019260209290918290030181865afa1580156112c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112e991906126a7565b898a6001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611326573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061134a919061260a565b600a60018b60405180602001604052805f815250611c88565b600880546001600160a01b03808f166001600160a01b03199283168117909355600680548f8316908416179055600780548e831690841617905560058054918d16919092161790556040805163204a7f0760e21b81529051638129fc1c916004808201925f9290919082900301818387803b1580156113e0575f80fd5b505af11580156113f2573d5f803e3d5ffd5b5050505060065f9054906101000a90046001600160a01b03166001600160a01b031663485cc9558e6001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611455573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061147991906126a7565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908b1660248201526044015f604051808303815f87803b1580156114bf575f80fd5b505af11580156114d1573d5f803e3d5ffd5b5050505060075f9054906101000a90046001600160a01b03166001600160a01b031663485cc9558e6001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611534573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061155891906126a7565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908b1660248201526044015f604051808303815f87803b15801561159e575f80fd5b505af11580156115b0573d5f803e3d5ffd5b5050505060055f9054906101000a90046001600160a01b03166001600160a01b0316638129fc1c6040518163ffffffff1660e01b81526004015f604051808303815f87803b158015611600575f80fd5b505af1158015611612573d5f803e3d5ffd5b505050506116286001546001600160a01b031690565b6001600160a01b031663d39e6043600b6040516001600160e01b031960e084901b16815260ff9182166004820152908a166024820152604401602060405180830381865afa15801561167c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116a091906126a7565b600280546001600160a01b0319166001600160a01b03928316179055600154166001600160a01b031663d39e6043600a6040516001600160e01b031960e084901b16815260ff9182166004820152908a166024820152604401602060405180830381865afa158015611714573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061173891906126a7565b600380546001600160a01b0319166001600160a01b03929092169190911790556117686357adb4b160e11b611dcf565b83156117ae57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050505050565b5f6117c73361085e565b6117cf610d33565b6001600160a01b0316336001600160a01b0316146118025760405163086391f760e31b815233600482015260240161089c565b60035460405163e52ba1cb60e01b81526001600160601b03841660048201526001600160a01b039091169063e52ba1cb906024016020604051808303815f875af1158015611852573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610853919061260a565b919050565b6118843361085e565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118ca573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118ee91906126a7565b6001600160a01b031614611917576040516345789cf560e01b815230600482015260240161089c565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b5f805f805160206128af83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156119a5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119c99190612671565b156119f55780546040516301ab8b6760e21b81526001600160601b03909116600482015260240161089c565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa158015611a47573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a6b9190612671565b611a935760405163b9304b0d60e01b81526001600160a01b038416600482015260240161089c565b6001546001600160a01b0316604051632f2a35f760e11b81526001600160a01b0385811660048301529190911690635e546bee90602401602060405180830381865afa158015611ae5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b09919061260a565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b5f805160206128cf8339815191525f80611b6a611b4d611088565b8730611b5c60045f8a8c6126c2565b611b65916126e9565b611e02565b9150915081610b845763ffffffff811615611c0557825460ff60a01b1916600160a01b178355611b98611088565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611bc793929190612721565b5f604051808303815f87803b158015611bde575f80fd5b505af1158015611bf0573d5f803e3d5ffd5b5050845460ff60a01b1916855550610b849050565b60405162d1953b60e31b81526001600160a01b038716600482015260240161089c565b5f805160206128cf83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611c90611f0a565b604051632330f24760e01b81526001600160a01b038816600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90632330f24790602401602060405180830381865af4158015611ce6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d0a9190612671565b611d325760405163cf6935e560e01b81526001600160a01b038816600482015260240161089c565b611d3b87611f55565b611d458683611f66565b5f7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b86151502178155905060018101611db483826127a9565b50611dc5634a531f3360e01b611dcf565b5050505050505050565b611dd7611f0a565b611dff816001600160e01b0319165f908152602081905260409020805460ff19166001179055565b50565b6040516001600160a01b03848116602483015283811660448301526001600160e01b0319831660648301525f9182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611e709190612863565b5f60405180830381855afa9150503d805f8114611ea8576040519150601f19603f3d011682016040523d82523d5f602084013e611ead565b606091505b50915091508115611eff576040815110611edf5780806020019051810190611ed59190612879565b9094509250611eff565b6020815110611eff5780806020019051810190611efc9190612671565b93505b505094509492505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611f5357604051631afcd79f60e31b815260040160405180910390fd5b565b611f5d611f0a565b611dff81611fdc565b611f6e611f0a565b611f76611fed565b611f7f82612035565b6001600160a01b038116611fa65760405163f17ef42d60e01b815260040160405180910390fd5b5f805160206128af83398151915280546001600160601b0316600160601b6001600160a01b039093169290920291909117905550565b611fe4611f0a565b611dff81611c28565b611ff5611f0a565b611f536301ffc9a760e01b5f9081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b61203d611f0a565b604051633334d16b60e01b81526001600160a01b038216600482015273__$fb599632d08395912d9d70eb2f0f93b5e2$__90633334d16b90602401602060405180830381865af4158015612093573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120b79190612671565b6120df5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161089c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f60208284031215612111575f80fd5b81356001600160e01b031981168114612128575f80fd5b9392505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526001600160601b0382511660208201526001600160601b03602083015116604082015260ff60408301511660608201525f60608301516121a5608084018215159052565b5060808301516001600160a01b03811660a08401525060a08301516001600160a01b03811660c08401525060c083015160e0808401526121e961010084018261212f565b949350505050565b5f60208284031215612201575f80fd5b5035919050565b6001600160a01b0381168114611dff575f80fd5b5f6020828403121561222c575f80fd5b813561212881612208565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261225a575f80fd5b81356001600160401b0381111561227357612273612237565b604051601f8201601f19908116603f011681016001600160401b03811182821017156122a1576122a1612237565b6040528181528382016020018510156122b8575f80fd5b816020850160208301375f918101602001919091529392505050565b80356001600160401b0381168114611876575f80fd5b5f805f80606085870312156122fd575f80fd5b84356001600160401b03811115612312575f80fd5b61231e8782880161224b565b94505060208501356001600160401b03811115612339575f80fd5b8501601f81018713612349575f80fd5b80356001600160401b0381111561235e575f80fd5b8760208260051b8401011115612372575f80fd5b60209190910193509150612388604086016122d4565b905092959194509250565b5f602082840312156123a3575f80fd5b813564ffffffffff81168114612128575f80fd5b6001600160601b0381168114611dff575f80fd5b5f602082840312156123db575f80fd5b8135612128816123b7565b5f80604083850312156123f7575f80fd5b823561240281612208565b915060208301356001600160401b0381111561241c575f80fd5b6124288582860161224b565b9150509250929050565b8015158114611dff575f80fd5b5f8060408385031215612450575f80fd5b823561245b81612208565b9150602083013561246b81612432565b809150509250929050565b5f60208284031215612486575f80fd5b813561212881612432565b5f805f80608085870312156124a4575f80fd5b84356124af81612208565b935060208501356124bf81612208565b92506040850135915060608501356124d681612208565b939692955090935050565b5f80604083850312156124f2575f80fd5b6124fb836122d4565b9150602083013561246b81612208565b5f806040838503121561251c575f80fd5b82356001600160401b03811115612531575f80fd5b61253d8582860161224b565b92505060208301356001600160401b0381111561241c575f80fd5b60ff81168114611dff575f80fd5b5f805f805f805f80610100898b03121561257e575f80fd5b883561258981612208565b9750602089013561259981612208565b965060408901356125a981612208565b955060608901356125b981612208565b945060808901356125c981612208565b935060a08901356125d981612208565b925060c08901356125e981612558565b915060e08901356125f981612208565b809150509295985092959890939650565b5f6020828403121561261a575f80fd5b8151612128816123b7565b600181811c9082168061263957607f821691505b60208210810361265757634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215612681575f80fd5b815161212881612432565b5f6020828403121561269c575f80fd5b815161212881612558565b5f602082840312156126b7575f80fd5b815161212881612208565b5f80858511156126d0575f80fd5b838611156126dc575f80fd5b5050820193919092039150565b80356001600160e01b0319811690600484101561271a576001600160e01b0319600485900360031b81901b82161691505b5092915050565b6001600160a01b03841681526040602082018190528101829052818360608301375f818301606090810191909152601f909201601f1916010192915050565b601f8211156127a457805f5260205f20601f840160051c810160208510156127855750805b601f840160051c820191505b81811015610a5f575f8155600101612791565b505050565b81516001600160401b038111156127c2576127c2612237565b6127d6816127d08454612625565b84612760565b6020601f821160018114612808575f83156127f15750848201515b5f19600385901b1c1916600184901b178455610a5f565b5f84815260208120601f198516915b828110156128375787850151825560209485019460019092019101612817565b508482101561285457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f920191825250919050565b5f806040838503121561288a575f80fd5b825161289581612432565b602084015190925063ffffffff8116811461246b575f80fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a26469706673582212205f2fa6828bdec676a60fe3340b9a7e7dec351acc0f62901f5448f73298919ee664736f6c634300081a0033",
941
+ "linkReferences": {
942
+ "contracts/shared/ContractLib.sol": {
943
+ "ContractLib": [
2956
944
  {
2957
945
  "length": 20,
2958
- "start": 11438
946
+ "start": 7370
2959
947
  },
2960
948
  {
2961
949
  "length": 20,
2962
- "start": 11554
950
+ "start": 8311
2963
951
  }
2964
952
  ]
2965
953
  },
2966
- "contracts/types/NftId.sol": {
954
+ "contracts/type/NftId.sol": {
2967
955
  "NftIdLib": [
2968
956
  {
2969
957
  "length": 20,
2970
- "start": 3145
2971
- },
2972
- {
2973
- "length": 20,
2974
- "start": 4552
958
+ "start": 1508
2975
959
  },
2976
960
  {
2977
961
  "length": 20,
2978
- "start": 5321
962
+ "start": 3459
2979
963
  },
2980
964
  {
2981
965
  "length": 20,
2982
- "start": 6317
2983
- },
2984
- {
2985
- "length": 20,
2986
- "start": 7964
2987
- }
2988
- ]
2989
- },
2990
- "contracts/types/ObjectType.sol": {
2991
- "ObjectTypeLib": [
2992
- {
2993
- "length": 20,
2994
- "start": 8810
966
+ "start": 6537
2995
967
  }
2996
968
  ]
2997
- },
2998
- "contracts/types/RiskId.sol": {
2999
- "RiskIdLib": [
3000
- {
3001
- "length": 20,
3002
- "start": 3760
3003
- },
969
+ }
970
+ },
971
+ "deployedLinkReferences": {
972
+ "contracts/shared/ContractLib.sol": {
973
+ "ContractLib": [
3004
974
  {
3005
975
  "length": 20,
3006
- "start": 5184
976
+ "start": 7342
3007
977
  },
3008
978
  {
3009
979
  "length": 20,
3010
- "start": 6402
980
+ "start": 8283
3011
981
  }
3012
982
  ]
3013
983
  },
3014
- "contracts/types/StateId.sol": {
3015
- "StateIdLib": [
3016
- {
3017
- "length": 20,
3018
- "start": 3958
3019
- },
3020
- {
3021
- "length": 20,
3022
- "start": 6556
3023
- },
3024
- {
3025
- "length": 20,
3026
- "start": 6915
3027
- },
3028
- {
3029
- "length": 20,
3030
- "start": 9027
3031
- },
3032
- {
3033
- "length": 20,
3034
- "start": 9746
3035
- },
984
+ "contracts/type/NftId.sol": {
985
+ "NftIdLib": [
3036
986
  {
3037
987
  "length": 20,
3038
- "start": 9966
988
+ "start": 1480
3039
989
  },
3040
990
  {
3041
991
  "length": 20,
3042
- "start": 10566
992
+ "start": 3431
3043
993
  },
3044
994
  {
3045
995
  "length": 20,
3046
- "start": 10786
3047
- }
3048
- ]
3049
- },
3050
- "contracts/types/Version.sol": {
3051
- "VersionPartLib": [
3052
- {
3053
- "length": 20,
3054
- "start": 7029
996
+ "start": 6509
3055
997
  }
3056
998
  ]
3057
999
  }