@etherisc/gif-next 0.0.2-bb7b80e-316 → 0.0.2-bb9ecaf-723

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