@etherisc/gif-next 0.0.2-c96f882-016 → 0.0.2-c99b1cc-016

Sign up to get free protection for your applications and to get access to all the features.
Files changed (751) hide show
  1. package/README.md +208 -22
  2. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.dbg.json +4 -0
  3. package/artifacts/contracts/accounting/AccountingService.sol/AccountingService.json +1075 -0
  4. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.dbg.json +4 -0
  5. package/artifacts/contracts/accounting/AccountingServiceManager.sol/AccountingServiceManager.json +790 -0
  6. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.dbg.json +4 -0
  7. package/artifacts/contracts/accounting/IAccountingService.sol/IAccountingService.json +843 -0
  8. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.dbg.json +4 -0
  9. package/artifacts/contracts/authorization/AccessAdmin.sol/AccessAdmin.json +1664 -0
  10. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.dbg.json +4 -0
  11. package/artifacts/contracts/authorization/AccessAdminLib.sol/AccessAdminLib.json +1289 -0
  12. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.dbg.json +4 -0
  13. package/artifacts/contracts/authorization/AccessManagerCloneable.sol/AccessManagerCloneable.json +1403 -0
  14. package/artifacts/contracts/authorization/Authorization.sol/Authorization.dbg.json +4 -0
  15. package/artifacts/contracts/authorization/Authorization.sol/Authorization.json +790 -0
  16. package/artifacts/contracts/authorization/IAccess.sol/IAccess.dbg.json +4 -0
  17. package/artifacts/contracts/{instance/module/ISetup.sol/ISetup.json → authorization/IAccess.sol/IAccess.json} +2 -2
  18. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.dbg.json +4 -0
  19. package/artifacts/contracts/authorization/IAccessAdmin.sol/IAccessAdmin.json +1372 -0
  20. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.dbg.json +4 -0
  21. package/artifacts/contracts/authorization/IAuthorization.sol/IAuthorization.json +455 -0
  22. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.dbg.json +4 -0
  23. package/artifacts/contracts/authorization/IServiceAuthorization.sol/IServiceAuthorization.json +397 -0
  24. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.dbg.json +4 -0
  25. package/artifacts/contracts/authorization/ServiceAuthorization.sol/ServiceAuthorization.json +646 -0
  26. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.dbg.json +4 -0
  27. package/artifacts/contracts/distribution/BasicDistribution.sol/BasicDistribution.json +1234 -0
  28. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.dbg.json +4 -0
  29. package/artifacts/contracts/distribution/BasicDistributionAuthorization.sol/BasicDistributionAuthorization.json +805 -0
  30. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  31. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +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 +930 -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 +805 -0
  46. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.dbg.json +4 -0
  47. package/artifacts/contracts/examples/fire/FireProduct.sol/FireProduct.json +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 +805 -0
  50. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.dbg.json +4 -0
  51. package/artifacts/contracts/examples/fire/FireUSD.sol/FireUSD.json +376 -0
  52. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.dbg.json +4 -0
  53. package/artifacts/contracts/examples/unpermissioned/SimpleDistribution.sol/SimpleDistribution.json +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 +805 -0
  56. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.dbg.json +4 -0
  57. package/artifacts/contracts/examples/unpermissioned/SimpleOracle.sol/SimpleOracle.json +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 +805 -0
  62. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.dbg.json +4 -0
  63. package/artifacts/contracts/examples/unpermissioned/SimpleProduct.sol/SimpleProduct.json +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 +805 -0
  66. package/artifacts/contracts/instance/BaseStore.sol/BaseStore.dbg.json +4 -0
  67. package/artifacts/contracts/instance/{base/IKeyValueStore.sol/IKeyValueStore.json → BaseStore.sol/BaseStore.json} +87 -184
  68. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.dbg.json +4 -0
  69. package/artifacts/contracts/instance/BundleSet.sol/BundleSet.json +851 -0
  70. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.dbg.json +4 -0
  71. package/artifacts/contracts/instance/IBaseStore.sol/IBaseStore.json +304 -0
  72. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  73. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +1085 -271
  74. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  75. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +751 -139
  76. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  77. package/artifacts/contracts/instance/Instance.sol/Instance.json +584 -2763
  78. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  79. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +2284 -0
  80. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.dbg.json +4 -0
  81. package/artifacts/contracts/instance/InstanceAuthorizationV3.sol/InstanceAuthorizationV3.json +837 -0
  82. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  83. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1904 -668
  84. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  85. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +799 -216
  86. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  87. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +413 -73
  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/{AccessManagedSimple.sol/AccessManagedSimple.json → base/Cloneable.sol/Cloneable.json} +31 -8
  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 +810 -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 +810 -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 +805 -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 +866 -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/pool/IPoolComponent.sol/IPoolComponent.json +895 -0
  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 +866 -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 +790 -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 +805 -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 +886 -0
  164. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  165. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → product/IApplicationService.sol/IApplicationService.json} +404 -351
  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/product/IPricingService.sol/IPricingService.json +652 -0
  172. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  173. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +1006 -0
  174. package/artifacts/contracts/product/IRiskService.sol/IRiskService.dbg.json +4 -0
  175. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IRiskService.sol/IRiskService.json} +353 -249
  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 +854 -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 +814 -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 +774 -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 +664 -170
  196. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  197. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +409 -209
  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 +997 -194
  204. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  205. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +2160 -0
  206. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.dbg.json +4 -0
  207. package/artifacts/contracts/registry/RegistryAuthorization.sol/RegistryAuthorization.json +1074 -0
  208. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  209. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +360 -323
  210. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  211. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +384 -119
  212. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.dbg.json +4 -0
  213. package/artifacts/contracts/registry/ReleaseAdmin.sol/ReleaseAdmin.json +2152 -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 +1389 -0
  218. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.dbg.json +4 -0
  219. package/artifacts/contracts/registry/ServiceAuthorizationV3.sol/ServiceAuthorizationV3.json +683 -0
  220. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  221. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +721 -0
  222. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  223. package/artifacts/contracts/shared/Component.sol/Component.json +695 -0
  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 +862 -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/{instance/base/ComponentServiceBase.sol/ComponentServiceBase.json → shared/IComponent.sol/IComponent.json} +303 -164
  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 +161 -154
  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 +177 -163
  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 +847 -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 +766 -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 +251 -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 +656 -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 +780 -0
  366. package/contracts/authorization/AccessAdminLib.sol +396 -0
  367. package/contracts/authorization/AccessManagerCloneable.sol +158 -0
  368. package/contracts/authorization/Authorization.sol +169 -0
  369. package/contracts/authorization/IAccess.sol +67 -0
  370. package/contracts/authorization/IAccessAdmin.sol +144 -0
  371. package/contracts/authorization/IAuthorization.sol +26 -0
  372. package/contracts/authorization/IServiceAuthorization.sol +78 -0
  373. package/contracts/authorization/ServiceAuthorization.sol +320 -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 +144 -16
  398. package/contracts/instance/IInstanceService.sol +106 -17
  399. package/contracts/instance/Instance.sol +251 -342
  400. package/contracts/instance/InstanceAdmin.sol +379 -0
  401. package/contracts/instance/InstanceAuthorizationV3.sol +275 -0
  402. package/contracts/instance/InstanceReader.sol +512 -190
  403. package/contracts/instance/InstanceService.sol +465 -89
  404. package/contracts/instance/InstanceServiceManager.sol +14 -31
  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/base/Cloneable.sol +28 -0
  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 -8
  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 +82 -35
  461. package/contracts/registry/IRegistry.sol +130 -48
  462. package/contracts/registry/IRegistryService.sol +44 -17
  463. package/contracts/registry/IRelease.sol +29 -0
  464. package/contracts/registry/ITransferInterceptor.sol +1 -1
  465. package/contracts/registry/Registry.sol +556 -292
  466. package/contracts/registry/RegistryAdmin.sol +191 -0
  467. package/contracts/registry/RegistryAuthorization.sol +336 -0
  468. package/contracts/registry/RegistryService.sol +123 -326
  469. package/contracts/registry/RegistryServiceManager.sol +27 -38
  470. package/contracts/registry/ReleaseAdmin.sol +195 -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 +317 -0
  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 +13 -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 -84
  493. package/contracts/shared/PolicyHolder.sol +63 -0
  494. package/contracts/shared/Registerable.sol +54 -37
  495. package/contracts/shared/RegistryLinked.sol +38 -0
  496. package/contracts/shared/Service.sol +46 -33
  497. package/contracts/shared/TokenHandler.sol +327 -12
  498. package/contracts/shared/TokenHandlerDeployerLib.sol +20 -0
  499. package/contracts/staking/IStaking.sol +367 -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 +36 -12
  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/type/NftIdSet.sol +62 -0
  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 +52 -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/BaseComponent.sol/BaseComponent.json +0 -314
  542. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  543. package/artifacts/contracts/components/Distribution.sol/Distribution.json +0 -610
  544. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  545. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -267
  546. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  547. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -152
  548. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  549. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -249
  550. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  551. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -157
  552. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  553. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -774
  554. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  555. package/artifacts/contracts/components/Product.sol/Product.json +0 -754
  556. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  557. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  558. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  559. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  560. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  561. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  562. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  563. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  564. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  565. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  566. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  567. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  568. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  569. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  570. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  571. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  572. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  573. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  574. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  575. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  576. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  577. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  578. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  579. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  580. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  581. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  582. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  583. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  584. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  585. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  586. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  587. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  588. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  589. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  590. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  591. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  592. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  593. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  594. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  595. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +0 -4
  596. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +0 -4
  597. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +0 -1132
  598. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +0 -4
  599. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +0 -1082
  600. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  601. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -930
  602. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  603. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  604. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  605. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  606. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  607. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  608. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -502
  609. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  610. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -169
  611. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +0 -4
  612. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +0 -211
  613. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  614. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  615. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  616. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -827
  617. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  618. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -466
  619. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  620. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +0 -446
  621. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  622. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  623. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  624. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  625. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +0 -4
  626. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +0 -35
  627. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +0 -4
  628. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +0 -205
  629. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +0 -4
  630. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +0 -349
  631. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +0 -4
  632. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.json +0 -442
  633. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +0 -4
  634. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +0 -129
  635. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +0 -4
  636. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +0 -228
  637. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  638. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  639. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  640. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -305
  641. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  642. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  643. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  644. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -600
  645. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  646. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  647. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  648. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  649. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  650. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -286
  651. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  652. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  653. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  654. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +0 -10
  655. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  656. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +0 -174
  657. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  658. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  659. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  660. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +0 -104
  661. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  662. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  663. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  664. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -125
  665. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  666. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  667. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  668. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -10
  669. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  670. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  671. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  672. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +0 -92
  673. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  674. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -123
  675. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  676. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +0 -86
  677. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  678. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -156
  679. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  680. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +0 -92
  681. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  682. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -249
  683. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  684. package/artifacts/contracts/types/UFixed.sol/MathLib.json +0 -10
  685. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  686. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +0 -479
  687. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  688. package/artifacts/contracts/types/Version.sol/VersionLib.json +0 -177
  689. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  690. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -49
  691. package/contracts/components/BaseComponent.sol +0 -86
  692. package/contracts/components/Distribution.sol +0 -166
  693. package/contracts/components/IBaseComponent.sol +0 -24
  694. package/contracts/components/IDistributionComponent.sol +0 -43
  695. package/contracts/components/IPoolComponent.sol +0 -62
  696. package/contracts/components/IProductComponent.sol +0 -35
  697. package/contracts/components/Pool.sol +0 -259
  698. package/contracts/components/Product.sol +0 -297
  699. package/contracts/experiment/cloning/Cloner.sol +0 -47
  700. package/contracts/experiment/errors/Require.sol +0 -38
  701. package/contracts/experiment/errors/Revert.sol +0 -44
  702. package/contracts/experiment/inheritance/A.sol +0 -53
  703. package/contracts/experiment/inheritance/B.sol +0 -28
  704. package/contracts/experiment/inheritance/C.sol +0 -34
  705. package/contracts/experiment/inheritance/IA.sol +0 -13
  706. package/contracts/experiment/inheritance/IB.sol +0 -10
  707. package/contracts/experiment/inheritance/IC.sol +0 -12
  708. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  709. package/contracts/experiment/statemachine/ISM.sol +0 -25
  710. package/contracts/experiment/statemachine/SM.sol +0 -57
  711. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  712. package/contracts/experiment/types/TypeA.sol +0 -47
  713. package/contracts/experiment/types/TypeB.sol +0 -29
  714. package/contracts/instance/AccessManagedSimple.sol +0 -122
  715. package/contracts/instance/AccessManagerSimple.sol +0 -692
  716. package/contracts/instance/IAccessManagerSimple.sol +0 -391
  717. package/contracts/instance/InstanceAccessManager.sol +0 -288
  718. package/contracts/instance/base/ComponentServiceBase.sol +0 -49
  719. package/contracts/instance/base/IInstanceBase.sol +0 -23
  720. package/contracts/instance/base/IKeyValueStore.sol +0 -49
  721. package/contracts/instance/base/KeyValueStore.sol +0 -172
  722. package/contracts/instance/base/Lifecycle.sol +0 -100
  723. package/contracts/instance/module/IAccess.sol +0 -38
  724. package/contracts/instance/module/ISetup.sol +0 -43
  725. package/contracts/instance/module/ITreasury.sol +0 -23
  726. package/contracts/instance/service/ComponentOwnerService.sol +0 -317
  727. package/contracts/instance/service/IComponentOwnerService.sol +0 -20
  728. package/contracts/instance/service/IDistributionService.sol +0 -12
  729. package/contracts/instance/service/IPoolService.sol +0 -37
  730. package/contracts/instance/service/IProductService.sol +0 -107
  731. package/contracts/shared/ContractDeployerLib.sol +0 -72
  732. package/contracts/shared/ERC165.sol +0 -21
  733. package/contracts/shared/ProxyManager.sol +0 -94
  734. package/contracts/shared/RegisterableUpgradable.sol +0 -16
  735. package/contracts/shared/UpgradableProxyWithAdmin.sol +0 -16
  736. package/contracts/shared/Versionable.sol +0 -147
  737. package/contracts/test/TestFee.sol +0 -25
  738. package/contracts/test/TestRegisterable.sol +0 -18
  739. package/contracts/test/TestRoleId.sol +0 -14
  740. package/contracts/test/TestService.sol +0 -24
  741. package/contracts/test/TestToken.sol +0 -26
  742. package/contracts/test/TestVersion.sol +0 -44
  743. package/contracts/test/TestVersionable.sol +0 -17
  744. package/contracts/types/ChainId.sol +0 -38
  745. package/contracts/types/Fee.sol +0 -56
  746. package/contracts/types/NftIdSet.sol +0 -60
  747. package/contracts/types/NumberId.sol +0 -52
  748. package/contracts/types/ObjectType.sol +0 -152
  749. package/contracts/types/RiskId.sol +0 -43
  750. package/contracts/types/RoleId.sol +0 -82
  751. package/contracts/types/UFixed.sol +0 -325
@@ -3,41 +3,49 @@
3
3
  "contractName": "InstanceReader",
4
4
  "sourceName": "contracts/instance/InstanceReader.sol",
5
5
  "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "ErrorInstanceReaderAlreadyInitialized",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "ErrorInstanceReaderInstanceAddressZero",
14
+ "type": "error"
15
+ },
6
16
  {
7
17
  "inputs": [
8
- {
9
- "internalType": "address",
10
- "name": "registry",
11
- "type": "address"
12
- },
13
18
  {
14
19
  "internalType": "NftId",
15
- "name": "instanceNftId",
20
+ "name": "poolNftId",
16
21
  "type": "uint96"
17
22
  }
18
23
  ],
19
- "stateMutability": "nonpayable",
20
- "type": "constructor"
24
+ "name": "activeBundles",
25
+ "outputs": [
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "bundleCount",
29
+ "type": "uint256"
30
+ }
31
+ ],
32
+ "stateMutability": "view",
33
+ "type": "function"
21
34
  },
22
35
  {
23
36
  "inputs": [
24
37
  {
25
- "internalType": "ReferralId",
26
- "name": "referralId",
27
- "type": "bytes8"
38
+ "internalType": "NftId",
39
+ "name": "productNftId",
40
+ "type": "uint96"
28
41
  }
29
42
  ],
30
- "name": "getDiscountPercentage",
43
+ "name": "activeRisks",
31
44
  "outputs": [
32
45
  {
33
- "internalType": "UFixed",
34
- "name": "discountPercentage",
46
+ "internalType": "uint256",
47
+ "name": "activeRiskCount",
35
48
  "type": "uint256"
36
- },
37
- {
38
- "internalType": "ReferralStatus",
39
- "name": "status",
40
- "type": "uint8"
41
49
  }
42
50
  ],
43
51
  "stateMutability": "view",
@@ -46,56 +54,17 @@
46
54
  {
47
55
  "inputs": [
48
56
  {
49
- "internalType": "NftId",
50
- "name": "distributionNftId",
51
- "type": "uint96"
57
+ "internalType": "address",
58
+ "name": "target",
59
+ "type": "address"
52
60
  }
53
61
  ],
54
- "name": "getDistributionSetupInfo",
62
+ "name": "authorizedFunctions",
55
63
  "outputs": [
56
64
  {
57
- "components": [
58
- {
59
- "internalType": "NftId",
60
- "name": "productNftId",
61
- "type": "uint96"
62
- },
63
- {
64
- "internalType": "contract TokenHandler",
65
- "name": "tokenHandler",
66
- "type": "address"
67
- },
68
- {
69
- "components": [
70
- {
71
- "internalType": "UFixed",
72
- "name": "fractionalFee",
73
- "type": "uint256"
74
- },
75
- {
76
- "internalType": "uint256",
77
- "name": "fixedFee",
78
- "type": "uint256"
79
- }
80
- ],
81
- "internalType": "struct Fee",
82
- "name": "distributionFee",
83
- "type": "tuple"
84
- },
85
- {
86
- "internalType": "bool",
87
- "name": "isIntercepting",
88
- "type": "bool"
89
- },
90
- {
91
- "internalType": "address",
92
- "name": "wallet",
93
- "type": "address"
94
- }
95
- ],
96
- "internalType": "struct ISetup.DistributionSetupInfo",
97
- "name": "info",
98
- "type": "tuple"
65
+ "internalType": "uint256",
66
+ "name": "numberOfFunctions",
67
+ "type": "uint256"
99
68
  }
100
69
  ],
101
70
  "stateMutability": "view",
@@ -105,33 +74,16 @@
105
74
  "inputs": [
106
75
  {
107
76
  "internalType": "NftId",
108
- "name": "distributorNftId",
77
+ "name": "poolNftId",
109
78
  "type": "uint96"
110
79
  }
111
80
  ],
112
- "name": "getDistributorInfo",
81
+ "name": "bundles",
113
82
  "outputs": [
114
83
  {
115
- "components": [
116
- {
117
- "internalType": "DistributorType",
118
- "name": "distributorType",
119
- "type": "bytes8"
120
- },
121
- {
122
- "internalType": "bool",
123
- "name": "active",
124
- "type": "bool"
125
- },
126
- {
127
- "internalType": "bytes",
128
- "name": "data",
129
- "type": "bytes"
130
- }
131
- ],
132
- "internalType": "struct IDistribution.DistributorInfo",
133
- "name": "info",
134
- "type": "tuple"
84
+ "internalType": "uint256",
85
+ "name": "bundleCount",
86
+ "type": "uint256"
135
87
  }
136
88
  ],
137
89
  "stateMutability": "view",
@@ -140,64 +92,17 @@
140
92
  {
141
93
  "inputs": [
142
94
  {
143
- "internalType": "DistributorType",
144
- "name": "distributorType",
145
- "type": "bytes8"
95
+ "internalType": "NftId",
96
+ "name": "policyNftId",
97
+ "type": "uint96"
146
98
  }
147
99
  ],
148
- "name": "getDistributorTypeInfo",
100
+ "name": "claims",
149
101
  "outputs": [
150
102
  {
151
- "components": [
152
- {
153
- "internalType": "string",
154
- "name": "name",
155
- "type": "string"
156
- },
157
- {
158
- "internalType": "UFixed",
159
- "name": "minDiscountPercentage",
160
- "type": "uint256"
161
- },
162
- {
163
- "internalType": "UFixed",
164
- "name": "maxDiscountPercentage",
165
- "type": "uint256"
166
- },
167
- {
168
- "internalType": "UFixed",
169
- "name": "commissionPercentage",
170
- "type": "uint256"
171
- },
172
- {
173
- "internalType": "uint32",
174
- "name": "maxReferralCount",
175
- "type": "uint32"
176
- },
177
- {
178
- "internalType": "uint32",
179
- "name": "maxReferralLifetime",
180
- "type": "uint32"
181
- },
182
- {
183
- "internalType": "bool",
184
- "name": "allowSelfReferrals",
185
- "type": "bool"
186
- },
187
- {
188
- "internalType": "bool",
189
- "name": "allowRenewals",
190
- "type": "bool"
191
- },
192
- {
193
- "internalType": "bytes",
194
- "name": "data",
195
- "type": "bytes"
196
- }
197
- ],
198
- "internalType": "struct IDistribution.DistributorTypeInfo",
199
- "name": "info",
200
- "type": "tuple"
103
+ "internalType": "uint16",
104
+ "name": "claimCount",
105
+ "type": "uint16"
201
106
  }
202
107
  ],
203
108
  "stateMutability": "view",
@@ -205,24 +110,35 @@
205
110
  },
206
111
  {
207
112
  "inputs": [],
208
- "name": "getInstance",
113
+ "name": "components",
209
114
  "outputs": [
210
115
  {
211
- "internalType": "contract IInstance",
212
- "name": "instance",
213
- "type": "address"
116
+ "internalType": "uint256",
117
+ "name": "componentCount",
118
+ "type": "uint256"
214
119
  }
215
120
  ],
216
121
  "stateMutability": "view",
217
122
  "type": "function"
218
123
  },
219
124
  {
220
- "inputs": [],
221
- "name": "getInstanceNftId",
125
+ "inputs": [
126
+ {
127
+ "internalType": "NftId",
128
+ "name": "poolNftId",
129
+ "type": "uint96"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "idx",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "getActiveBundleNftId",
222
138
  "outputs": [
223
139
  {
224
140
  "internalType": "NftId",
225
- "name": "nftId",
141
+ "name": "bundleNftId",
226
142
  "type": "uint96"
227
143
  }
228
144
  ],
@@ -230,13 +146,24 @@
230
146
  "type": "function"
231
147
  },
232
148
  {
233
- "inputs": [],
234
- "name": "getInstanceStore",
149
+ "inputs": [
150
+ {
151
+ "internalType": "NftId",
152
+ "name": "productNftId",
153
+ "type": "uint96"
154
+ },
155
+ {
156
+ "internalType": "uint256",
157
+ "name": "idx",
158
+ "type": "uint256"
159
+ }
160
+ ],
161
+ "name": "getActiveRiskId",
235
162
  "outputs": [
236
163
  {
237
- "internalType": "contract IKeyValueStore",
238
- "name": "store",
239
- "type": "address"
164
+ "internalType": "RiskId",
165
+ "name": "riskId",
166
+ "type": "bytes8"
240
167
  }
241
168
  ],
242
169
  "stateMutability": "view",
@@ -245,44 +172,44 @@
245
172
  {
246
173
  "inputs": [
247
174
  {
248
- "internalType": "Key32",
249
- "name": "key",
250
- "type": "bytes32"
175
+ "internalType": "address",
176
+ "name": "target",
177
+ "type": "address"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "idx",
182
+ "type": "uint256"
251
183
  }
252
184
  ],
253
- "name": "getMetadata",
185
+ "name": "getAuthorizedFunction",
254
186
  "outputs": [
255
187
  {
256
188
  "components": [
257
189
  {
258
- "internalType": "ObjectType",
259
- "name": "objectType",
260
- "type": "uint8"
261
- },
262
- {
263
- "internalType": "StateId",
264
- "name": "state",
265
- "type": "uint8"
266
- },
267
- {
268
- "internalType": "address",
269
- "name": "updatedBy",
270
- "type": "address"
190
+ "internalType": "Str",
191
+ "name": "name",
192
+ "type": "bytes32"
271
193
  },
272
194
  {
273
- "internalType": "Blocknumber",
274
- "name": "updatedIn",
275
- "type": "uint32"
195
+ "internalType": "Selector",
196
+ "name": "selector",
197
+ "type": "bytes4"
276
198
  },
277
199
  {
278
- "internalType": "Blocknumber",
279
- "name": "createdIn",
280
- "type": "uint32"
200
+ "internalType": "Timestamp",
201
+ "name": "createdAt",
202
+ "type": "uint40"
281
203
  }
282
204
  ],
283
- "internalType": "struct IKeyValueStore.Metadata",
284
- "name": "metadata",
205
+ "internalType": "struct IAccess.FunctionInfo",
206
+ "name": "func",
285
207
  "type": "tuple"
208
+ },
209
+ {
210
+ "internalType": "RoleId",
211
+ "name": "roleId",
212
+ "type": "uint64"
286
213
  }
287
214
  ],
288
215
  "stateMutability": "view",
@@ -292,96 +219,77 @@
292
219
  "inputs": [
293
220
  {
294
221
  "internalType": "NftId",
295
- "name": "policyNftId",
222
+ "name": "targetNftId",
296
223
  "type": "uint96"
297
224
  }
298
225
  ],
299
- "name": "getPolicyInfo",
226
+ "name": "getBalanceAmount",
227
+ "outputs": [
228
+ {
229
+ "internalType": "Amount",
230
+ "name": "",
231
+ "type": "uint96"
232
+ }
233
+ ],
234
+ "stateMutability": "view",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "internalType": "NftId",
241
+ "name": "bundleNftId",
242
+ "type": "uint96"
243
+ }
244
+ ],
245
+ "name": "getBundleInfo",
300
246
  "outputs": [
301
247
  {
302
248
  "components": [
303
249
  {
304
- "internalType": "NftId",
305
- "name": "productNftId",
306
- "type": "uint96"
250
+ "internalType": "Timestamp",
251
+ "name": "activatedAt",
252
+ "type": "uint40"
307
253
  },
308
254
  {
309
- "internalType": "NftId",
310
- "name": "bundleNftId",
311
- "type": "uint96"
255
+ "internalType": "Timestamp",
256
+ "name": "expiredAt",
257
+ "type": "uint40"
312
258
  },
313
259
  {
314
- "internalType": "ReferralId",
315
- "name": "referralId",
316
- "type": "bytes8"
317
- },
318
- {
319
- "internalType": "RiskId",
320
- "name": "riskId",
321
- "type": "bytes8"
322
- },
323
- {
324
- "internalType": "uint256",
325
- "name": "sumInsuredAmount",
326
- "type": "uint256"
327
- },
328
- {
329
- "internalType": "uint256",
330
- "name": "premiumAmount",
331
- "type": "uint256"
332
- },
333
- {
334
- "internalType": "uint256",
335
- "name": "premiumPaidAmount",
336
- "type": "uint256"
260
+ "internalType": "Timestamp",
261
+ "name": "closedAt",
262
+ "type": "uint40"
337
263
  },
338
264
  {
339
- "internalType": "uint256",
340
- "name": "lifetime",
341
- "type": "uint256"
265
+ "internalType": "NftId",
266
+ "name": "poolNftId",
267
+ "type": "uint96"
342
268
  },
343
269
  {
344
- "internalType": "bytes",
345
- "name": "applicationData",
346
- "type": "bytes"
270
+ "components": [
271
+ {
272
+ "internalType": "UFixed",
273
+ "name": "fractionalFee",
274
+ "type": "uint160"
275
+ },
276
+ {
277
+ "internalType": "Amount",
278
+ "name": "fixedFee",
279
+ "type": "uint96"
280
+ }
281
+ ],
282
+ "internalType": "struct Fee",
283
+ "name": "fee",
284
+ "type": "tuple"
347
285
  },
348
286
  {
349
287
  "internalType": "bytes",
350
- "name": "policyData",
288
+ "name": "filter",
351
289
  "type": "bytes"
352
- },
353
- {
354
- "internalType": "uint16",
355
- "name": "claimsCount",
356
- "type": "uint16"
357
- },
358
- {
359
- "internalType": "uint16",
360
- "name": "openClaimsCount",
361
- "type": "uint16"
362
- },
363
- {
364
- "internalType": "uint256",
365
- "name": "payoutAmount",
366
- "type": "uint256"
367
- },
368
- {
369
- "internalType": "Timestamp",
370
- "name": "activatedAt",
371
- "type": "uint40"
372
- },
373
- {
374
- "internalType": "Timestamp",
375
- "name": "expiredAt",
376
- "type": "uint40"
377
- },
378
- {
379
- "internalType": "Timestamp",
380
- "name": "closedAt",
381
- "type": "uint40"
382
290
  }
383
291
  ],
384
- "internalType": "struct IPolicy.PolicyInfo",
292
+ "internalType": "struct IBundle.BundleInfo",
385
293
  "name": "info",
386
294
  "type": "tuple"
387
295
  }
@@ -395,90 +303,129 @@
395
303
  "internalType": "NftId",
396
304
  "name": "poolNftId",
397
305
  "type": "uint96"
306
+ },
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "idx",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "name": "getBundleNftId",
314
+ "outputs": [
315
+ {
316
+ "internalType": "NftId",
317
+ "name": "bundleNftId",
318
+ "type": "uint96"
319
+ }
320
+ ],
321
+ "stateMutability": "view",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [],
326
+ "name": "getBundleSet",
327
+ "outputs": [
328
+ {
329
+ "internalType": "contract BundleSet",
330
+ "name": "bundleSet",
331
+ "type": "address"
332
+ }
333
+ ],
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [
339
+ {
340
+ "internalType": "NftId",
341
+ "name": "bundleNftId",
342
+ "type": "uint96"
343
+ }
344
+ ],
345
+ "name": "getBundleState",
346
+ "outputs": [
347
+ {
348
+ "internalType": "StateId",
349
+ "name": "state",
350
+ "type": "uint8"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "idx",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "name": "getClaimId",
365
+ "outputs": [
366
+ {
367
+ "internalType": "ClaimId",
368
+ "name": "claimId",
369
+ "type": "uint16"
370
+ }
371
+ ],
372
+ "stateMutability": "pure",
373
+ "type": "function"
374
+ },
375
+ {
376
+ "inputs": [
377
+ {
378
+ "internalType": "NftId",
379
+ "name": "policyNftId",
380
+ "type": "uint96"
381
+ },
382
+ {
383
+ "internalType": "ClaimId",
384
+ "name": "claimId",
385
+ "type": "uint16"
398
386
  }
399
387
  ],
400
- "name": "getPoolSetupInfo",
388
+ "name": "getClaimInfo",
401
389
  "outputs": [
402
390
  {
403
391
  "components": [
404
392
  {
405
- "internalType": "NftId",
406
- "name": "productNftId",
393
+ "internalType": "Amount",
394
+ "name": "claimAmount",
407
395
  "type": "uint96"
408
396
  },
409
397
  {
410
- "internalType": "contract TokenHandler",
411
- "name": "tokenHandler",
412
- "type": "address"
413
- },
414
- {
415
- "internalType": "UFixed",
416
- "name": "collateralizationLevel",
417
- "type": "uint256"
398
+ "internalType": "Amount",
399
+ "name": "paidAmount",
400
+ "type": "uint96"
418
401
  },
419
402
  {
420
- "components": [
421
- {
422
- "internalType": "UFixed",
423
- "name": "fractionalFee",
424
- "type": "uint256"
425
- },
426
- {
427
- "internalType": "uint256",
428
- "name": "fixedFee",
429
- "type": "uint256"
430
- }
431
- ],
432
- "internalType": "struct Fee",
433
- "name": "poolFee",
434
- "type": "tuple"
403
+ "internalType": "Timestamp",
404
+ "name": "closedAt",
405
+ "type": "uint40"
435
406
  },
436
407
  {
437
- "components": [
438
- {
439
- "internalType": "UFixed",
440
- "name": "fractionalFee",
441
- "type": "uint256"
442
- },
443
- {
444
- "internalType": "uint256",
445
- "name": "fixedFee",
446
- "type": "uint256"
447
- }
448
- ],
449
- "internalType": "struct Fee",
450
- "name": "stakingFee",
451
- "type": "tuple"
408
+ "internalType": "uint24",
409
+ "name": "payoutsCount",
410
+ "type": "uint24"
452
411
  },
453
412
  {
454
- "components": [
455
- {
456
- "internalType": "UFixed",
457
- "name": "fractionalFee",
458
- "type": "uint256"
459
- },
460
- {
461
- "internalType": "uint256",
462
- "name": "fixedFee",
463
- "type": "uint256"
464
- }
465
- ],
466
- "internalType": "struct Fee",
467
- "name": "performanceFee",
468
- "type": "tuple"
413
+ "internalType": "uint24",
414
+ "name": "openPayoutsCount",
415
+ "type": "uint24"
469
416
  },
470
417
  {
471
- "internalType": "bool",
472
- "name": "isIntercepting",
473
- "type": "bool"
418
+ "internalType": "bytes",
419
+ "name": "submissionData",
420
+ "type": "bytes"
474
421
  },
475
422
  {
476
- "internalType": "address",
477
- "name": "wallet",
478
- "type": "address"
423
+ "internalType": "bytes",
424
+ "name": "processData",
425
+ "type": "bytes"
479
426
  }
480
427
  ],
481
- "internalType": "struct ISetup.PoolSetupInfo",
428
+ "internalType": "struct IPolicy.ClaimInfo",
482
429
  "name": "info",
483
430
  "type": "tuple"
484
431
  }
@@ -490,138 +437,115 @@
490
437
  "inputs": [
491
438
  {
492
439
  "internalType": "NftId",
493
- "name": "productNftId",
440
+ "name": "policyNftId",
441
+ "type": "uint96"
442
+ },
443
+ {
444
+ "internalType": "ClaimId",
445
+ "name": "claimId",
446
+ "type": "uint16"
447
+ }
448
+ ],
449
+ "name": "getClaimState",
450
+ "outputs": [
451
+ {
452
+ "internalType": "StateId",
453
+ "name": "state",
454
+ "type": "uint8"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "NftId",
464
+ "name": "componentNftId",
494
465
  "type": "uint96"
495
466
  }
496
467
  ],
497
- "name": "getProductSetupInfo",
468
+ "name": "getComponentInfo",
498
469
  "outputs": [
499
470
  {
500
471
  "components": [
501
472
  {
502
- "internalType": "contract IERC20Metadata",
503
- "name": "token",
504
- "type": "address"
473
+ "internalType": "string",
474
+ "name": "name",
475
+ "type": "string"
505
476
  },
506
477
  {
507
478
  "internalType": "contract TokenHandler",
508
479
  "name": "tokenHandler",
509
480
  "type": "address"
481
+ }
482
+ ],
483
+ "internalType": "struct IComponents.ComponentInfo",
484
+ "name": "info",
485
+ "type": "tuple"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "ReferralId",
495
+ "name": "referralId",
496
+ "type": "bytes8"
497
+ }
498
+ ],
499
+ "name": "getDiscountPercentage",
500
+ "outputs": [
501
+ {
502
+ "internalType": "UFixed",
503
+ "name": "discountPercentage",
504
+ "type": "uint160"
505
+ },
506
+ {
507
+ "internalType": "ReferralStatus",
508
+ "name": "status",
509
+ "type": "uint8"
510
+ }
511
+ ],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [
517
+ {
518
+ "internalType": "NftId",
519
+ "name": "distributorNftId",
520
+ "type": "uint96"
521
+ }
522
+ ],
523
+ "name": "getDistributorInfo",
524
+ "outputs": [
525
+ {
526
+ "components": [
527
+ {
528
+ "internalType": "DistributorType",
529
+ "name": "distributorType",
530
+ "type": "bytes8"
510
531
  },
511
532
  {
512
- "internalType": "NftId",
513
- "name": "distributionNftId",
514
- "type": "uint96"
515
- },
516
- {
517
- "internalType": "NftId",
518
- "name": "poolNftId",
519
- "type": "uint96"
520
- },
521
- {
522
- "components": [
523
- {
524
- "internalType": "UFixed",
525
- "name": "fractionalFee",
526
- "type": "uint256"
527
- },
528
- {
529
- "internalType": "uint256",
530
- "name": "fixedFee",
531
- "type": "uint256"
532
- }
533
- ],
534
- "internalType": "struct Fee",
535
- "name": "distributionFee",
536
- "type": "tuple"
537
- },
538
- {
539
- "components": [
540
- {
541
- "internalType": "UFixed",
542
- "name": "fractionalFee",
543
- "type": "uint256"
544
- },
545
- {
546
- "internalType": "uint256",
547
- "name": "fixedFee",
548
- "type": "uint256"
549
- }
550
- ],
551
- "internalType": "struct Fee",
552
- "name": "productFee",
553
- "type": "tuple"
554
- },
555
- {
556
- "components": [
557
- {
558
- "internalType": "UFixed",
559
- "name": "fractionalFee",
560
- "type": "uint256"
561
- },
562
- {
563
- "internalType": "uint256",
564
- "name": "fixedFee",
565
- "type": "uint256"
566
- }
567
- ],
568
- "internalType": "struct Fee",
569
- "name": "processingFee",
570
- "type": "tuple"
571
- },
572
- {
573
- "components": [
574
- {
575
- "internalType": "UFixed",
576
- "name": "fractionalFee",
577
- "type": "uint256"
578
- },
579
- {
580
- "internalType": "uint256",
581
- "name": "fixedFee",
582
- "type": "uint256"
583
- }
584
- ],
585
- "internalType": "struct Fee",
586
- "name": "poolFee",
587
- "type": "tuple"
533
+ "internalType": "bool",
534
+ "name": "active",
535
+ "type": "bool"
588
536
  },
589
537
  {
590
- "components": [
591
- {
592
- "internalType": "UFixed",
593
- "name": "fractionalFee",
594
- "type": "uint256"
595
- },
596
- {
597
- "internalType": "uint256",
598
- "name": "fixedFee",
599
- "type": "uint256"
600
- }
601
- ],
602
- "internalType": "struct Fee",
603
- "name": "stakingFee",
604
- "type": "tuple"
538
+ "internalType": "uint32",
539
+ "name": "numPoliciesSold",
540
+ "type": "uint32"
605
541
  },
606
542
  {
607
- "components": [
608
- {
609
- "internalType": "UFixed",
610
- "name": "fractionalFee",
611
- "type": "uint256"
612
- },
613
- {
614
- "internalType": "uint256",
615
- "name": "fixedFee",
616
- "type": "uint256"
617
- }
618
- ],
619
- "internalType": "struct Fee",
620
- "name": "performanceFee",
621
- "type": "tuple"
543
+ "internalType": "bytes",
544
+ "name": "data",
545
+ "type": "bytes"
622
546
  }
623
547
  ],
624
- "internalType": "struct ISetup.ProductSetupInfo",
548
+ "internalType": "struct IDistribution.DistributorInfo",
625
549
  "name": "info",
626
550
  "type": "tuple"
627
551
  }
@@ -632,75 +556,59 @@
632
556
  {
633
557
  "inputs": [
634
558
  {
635
- "internalType": "ReferralId",
636
- "name": "referralId",
559
+ "internalType": "DistributorType",
560
+ "name": "distributorType",
637
561
  "type": "bytes8"
638
562
  }
639
563
  ],
640
- "name": "getReferralInfo",
564
+ "name": "getDistributorTypeInfo",
641
565
  "outputs": [
642
566
  {
643
567
  "components": [
644
568
  {
645
- "internalType": "NftId",
646
- "name": "distributorNftId",
647
- "type": "uint96"
569
+ "internalType": "UFixed",
570
+ "name": "minDiscountPercentage",
571
+ "type": "uint160"
648
572
  },
649
573
  {
650
- "internalType": "string",
651
- "name": "referralCode",
652
- "type": "string"
574
+ "internalType": "NftId",
575
+ "name": "distributionNftId",
576
+ "type": "uint96"
653
577
  },
654
578
  {
655
579
  "internalType": "UFixed",
656
- "name": "discountPercentage",
657
- "type": "uint256"
580
+ "name": "maxDiscountPercentage",
581
+ "type": "uint160"
658
582
  },
659
583
  {
660
584
  "internalType": "uint32",
661
- "name": "maxReferrals",
585
+ "name": "maxReferralCount",
662
586
  "type": "uint32"
663
587
  },
664
588
  {
665
- "internalType": "uint32",
666
- "name": "usedReferrals",
667
- "type": "uint32"
589
+ "internalType": "Seconds",
590
+ "name": "maxReferralLifetime",
591
+ "type": "uint40"
668
592
  },
669
593
  {
670
- "internalType": "Timestamp",
671
- "name": "expiryAt",
672
- "type": "uint40"
594
+ "internalType": "bool",
595
+ "name": "allowSelfReferrals",
596
+ "type": "bool"
673
597
  },
674
598
  {
675
- "internalType": "bytes",
676
- "name": "data",
677
- "type": "bytes"
678
- }
679
- ],
680
- "internalType": "struct IDistribution.ReferralInfo",
681
- "name": "info",
682
- "type": "tuple"
683
- }
684
- ],
685
- "stateMutability": "view",
686
- "type": "function"
687
- },
688
- {
689
- "inputs": [
690
- {
691
- "internalType": "RiskId",
692
- "name": "riskId",
693
- "type": "bytes8"
694
- }
695
- ],
696
- "name": "getRiskInfo",
697
- "outputs": [
698
- {
699
- "components": [
599
+ "internalType": "bool",
600
+ "name": "allowRenewals",
601
+ "type": "bool"
602
+ },
700
603
  {
701
- "internalType": "NftId",
702
- "name": "productNftId",
703
- "type": "uint96"
604
+ "internalType": "UFixed",
605
+ "name": "commissionPercentage",
606
+ "type": "uint160"
607
+ },
608
+ {
609
+ "internalType": "string",
610
+ "name": "name",
611
+ "type": "string"
704
612
  },
705
613
  {
706
614
  "internalType": "bytes",
@@ -708,7 +616,7 @@
708
616
  "type": "bytes"
709
617
  }
710
618
  ],
711
- "internalType": "struct IRisk.RiskInfo",
619
+ "internalType": "struct IDistribution.DistributorTypeInfo",
712
620
  "name": "info",
713
621
  "type": "tuple"
714
622
  }
@@ -720,16 +628,16 @@
720
628
  "inputs": [
721
629
  {
722
630
  "internalType": "NftId",
723
- "name": "productNftId",
631
+ "name": "targetNftId",
724
632
  "type": "uint96"
725
633
  }
726
634
  ],
727
- "name": "getTokenHandler",
635
+ "name": "getFeeAmount",
728
636
  "outputs": [
729
637
  {
730
- "internalType": "address",
731
- "name": "tokenHandler",
732
- "type": "address"
638
+ "internalType": "Amount",
639
+ "name": "",
640
+ "type": "uint96"
733
641
  }
734
642
  ],
735
643
  "stateMutability": "view",
@@ -743,45 +651,42 @@
743
651
  "type": "uint96"
744
652
  }
745
653
  ],
746
- "name": "getTreasuryInfo",
654
+ "name": "getFeeInfo",
747
655
  "outputs": [
748
656
  {
749
657
  "components": [
750
658
  {
751
- "internalType": "contract IERC20Metadata",
752
- "name": "token",
753
- "type": "address"
754
- },
755
- {
756
- "internalType": "contract TokenHandler",
757
- "name": "tokenHandler",
758
- "type": "address"
759
- },
760
- {
761
- "internalType": "NftId",
762
- "name": "distributionNftId",
763
- "type": "uint96"
764
- },
765
- {
766
- "internalType": "NftId",
767
- "name": "poolNftId",
768
- "type": "uint96"
659
+ "components": [
660
+ {
661
+ "internalType": "UFixed",
662
+ "name": "fractionalFee",
663
+ "type": "uint160"
664
+ },
665
+ {
666
+ "internalType": "Amount",
667
+ "name": "fixedFee",
668
+ "type": "uint96"
669
+ }
670
+ ],
671
+ "internalType": "struct Fee",
672
+ "name": "productFee",
673
+ "type": "tuple"
769
674
  },
770
675
  {
771
676
  "components": [
772
677
  {
773
678
  "internalType": "UFixed",
774
679
  "name": "fractionalFee",
775
- "type": "uint256"
680
+ "type": "uint160"
776
681
  },
777
682
  {
778
- "internalType": "uint256",
683
+ "internalType": "Amount",
779
684
  "name": "fixedFee",
780
- "type": "uint256"
685
+ "type": "uint96"
781
686
  }
782
687
  ],
783
688
  "internalType": "struct Fee",
784
- "name": "distributionFee",
689
+ "name": "processingFee",
785
690
  "type": "tuple"
786
691
  },
787
692
  {
@@ -789,16 +694,16 @@
789
694
  {
790
695
  "internalType": "UFixed",
791
696
  "name": "fractionalFee",
792
- "type": "uint256"
697
+ "type": "uint160"
793
698
  },
794
699
  {
795
- "internalType": "uint256",
700
+ "internalType": "Amount",
796
701
  "name": "fixedFee",
797
- "type": "uint256"
702
+ "type": "uint96"
798
703
  }
799
704
  ],
800
705
  "internalType": "struct Fee",
801
- "name": "productFee",
706
+ "name": "distributionFee",
802
707
  "type": "tuple"
803
708
  },
804
709
  {
@@ -806,16 +711,16 @@
806
711
  {
807
712
  "internalType": "UFixed",
808
713
  "name": "fractionalFee",
809
- "type": "uint256"
714
+ "type": "uint160"
810
715
  },
811
716
  {
812
- "internalType": "uint256",
717
+ "internalType": "Amount",
813
718
  "name": "fixedFee",
814
- "type": "uint256"
719
+ "type": "uint96"
815
720
  }
816
721
  ],
817
722
  "internalType": "struct Fee",
818
- "name": "processingFee",
723
+ "name": "minDistributionOwnerFee",
819
724
  "type": "tuple"
820
725
  },
821
726
  {
@@ -823,12 +728,12 @@
823
728
  {
824
729
  "internalType": "UFixed",
825
730
  "name": "fractionalFee",
826
- "type": "uint256"
731
+ "type": "uint160"
827
732
  },
828
733
  {
829
- "internalType": "uint256",
734
+ "internalType": "Amount",
830
735
  "name": "fixedFee",
831
- "type": "uint256"
736
+ "type": "uint96"
832
737
  }
833
738
  ],
834
739
  "internalType": "struct Fee",
@@ -840,12 +745,12 @@
840
745
  {
841
746
  "internalType": "UFixed",
842
747
  "name": "fractionalFee",
843
- "type": "uint256"
748
+ "type": "uint160"
844
749
  },
845
750
  {
846
- "internalType": "uint256",
751
+ "internalType": "Amount",
847
752
  "name": "fixedFee",
848
- "type": "uint256"
753
+ "type": "uint96"
849
754
  }
850
755
  ],
851
756
  "internalType": "struct Fee",
@@ -857,12 +762,12 @@
857
762
  {
858
763
  "internalType": "UFixed",
859
764
  "name": "fractionalFee",
860
- "type": "uint256"
765
+ "type": "uint160"
861
766
  },
862
767
  {
863
- "internalType": "uint256",
768
+ "internalType": "Amount",
864
769
  "name": "fixedFee",
865
- "type": "uint256"
770
+ "type": "uint96"
866
771
  }
867
772
  ],
868
773
  "internalType": "struct Fee",
@@ -870,87 +775,1296 @@
870
775
  "type": "tuple"
871
776
  }
872
777
  ],
873
- "internalType": "struct ITreasury.TreasuryInfo",
874
- "name": "info",
778
+ "internalType": "struct IComponents.FeeInfo",
779
+ "name": "feeInfo",
875
780
  "type": "tuple"
876
781
  }
877
782
  ],
878
783
  "stateMutability": "view",
879
784
  "type": "function"
880
785
  },
786
+ {
787
+ "inputs": [],
788
+ "name": "getInstance",
789
+ "outputs": [
790
+ {
791
+ "internalType": "contract IInstance",
792
+ "name": "instance",
793
+ "type": "address"
794
+ }
795
+ ],
796
+ "stateMutability": "view",
797
+ "type": "function"
798
+ },
799
+ {
800
+ "inputs": [],
801
+ "name": "getInstanceAdmin",
802
+ "outputs": [
803
+ {
804
+ "internalType": "contract InstanceAdmin",
805
+ "name": "instanceAdmin",
806
+ "type": "address"
807
+ }
808
+ ],
809
+ "stateMutability": "view",
810
+ "type": "function"
811
+ },
812
+ {
813
+ "inputs": [],
814
+ "name": "getInstanceNftId",
815
+ "outputs": [
816
+ {
817
+ "internalType": "NftId",
818
+ "name": "instanceNftid",
819
+ "type": "uint96"
820
+ }
821
+ ],
822
+ "stateMutability": "view",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [],
827
+ "name": "getInstanceOwnerRole",
828
+ "outputs": [
829
+ {
830
+ "internalType": "RoleId",
831
+ "name": "roleId",
832
+ "type": "uint64"
833
+ }
834
+ ],
835
+ "stateMutability": "pure",
836
+ "type": "function"
837
+ },
838
+ {
839
+ "inputs": [
840
+ {
841
+ "internalType": "NftId",
842
+ "name": "targetNftId",
843
+ "type": "uint96"
844
+ }
845
+ ],
846
+ "name": "getLockedAmount",
847
+ "outputs": [
848
+ {
849
+ "internalType": "Amount",
850
+ "name": "",
851
+ "type": "uint96"
852
+ }
853
+ ],
854
+ "stateMutability": "view",
855
+ "type": "function"
856
+ },
857
+ {
858
+ "inputs": [
859
+ {
860
+ "internalType": "Key32",
861
+ "name": "key",
862
+ "type": "bytes32"
863
+ }
864
+ ],
865
+ "name": "getMetadata",
866
+ "outputs": [
867
+ {
868
+ "components": [
869
+ {
870
+ "internalType": "ObjectType",
871
+ "name": "objectType",
872
+ "type": "uint8"
873
+ },
874
+ {
875
+ "internalType": "StateId",
876
+ "name": "state",
877
+ "type": "uint8"
878
+ },
879
+ {
880
+ "internalType": "Blocknumber",
881
+ "name": "updatedIn",
882
+ "type": "uint40"
883
+ }
884
+ ],
885
+ "internalType": "struct IBaseStore.Metadata",
886
+ "name": "metadata",
887
+ "type": "tuple"
888
+ }
889
+ ],
890
+ "stateMutability": "view",
891
+ "type": "function"
892
+ },
893
+ {
894
+ "inputs": [
895
+ {
896
+ "internalType": "ClaimId",
897
+ "name": "claimId",
898
+ "type": "uint16"
899
+ },
900
+ {
901
+ "internalType": "uint24",
902
+ "name": "idx",
903
+ "type": "uint24"
904
+ }
905
+ ],
906
+ "name": "getPayoutId",
907
+ "outputs": [
908
+ {
909
+ "internalType": "PayoutId",
910
+ "name": "payoutId",
911
+ "type": "uint40"
912
+ }
913
+ ],
914
+ "stateMutability": "pure",
915
+ "type": "function"
916
+ },
917
+ {
918
+ "inputs": [
919
+ {
920
+ "internalType": "NftId",
921
+ "name": "policyNftId",
922
+ "type": "uint96"
923
+ },
924
+ {
925
+ "internalType": "PayoutId",
926
+ "name": "payoutId",
927
+ "type": "uint40"
928
+ }
929
+ ],
930
+ "name": "getPayoutInfo",
931
+ "outputs": [
932
+ {
933
+ "components": [
934
+ {
935
+ "internalType": "ClaimId",
936
+ "name": "claimId",
937
+ "type": "uint16"
938
+ },
939
+ {
940
+ "internalType": "Amount",
941
+ "name": "amount",
942
+ "type": "uint96"
943
+ },
944
+ {
945
+ "internalType": "Timestamp",
946
+ "name": "paidAt",
947
+ "type": "uint40"
948
+ },
949
+ {
950
+ "internalType": "address",
951
+ "name": "beneficiary",
952
+ "type": "address"
953
+ },
954
+ {
955
+ "internalType": "bytes",
956
+ "name": "data",
957
+ "type": "bytes"
958
+ }
959
+ ],
960
+ "internalType": "struct IPolicy.PayoutInfo",
961
+ "name": "info",
962
+ "type": "tuple"
963
+ }
964
+ ],
965
+ "stateMutability": "view",
966
+ "type": "function"
967
+ },
968
+ {
969
+ "inputs": [
970
+ {
971
+ "internalType": "NftId",
972
+ "name": "policyNftId",
973
+ "type": "uint96"
974
+ },
975
+ {
976
+ "internalType": "PayoutId",
977
+ "name": "payoutId",
978
+ "type": "uint40"
979
+ }
980
+ ],
981
+ "name": "getPayoutState",
982
+ "outputs": [
983
+ {
984
+ "internalType": "StateId",
985
+ "name": "state",
986
+ "type": "uint8"
987
+ }
988
+ ],
989
+ "stateMutability": "view",
990
+ "type": "function"
991
+ },
992
+ {
993
+ "inputs": [
994
+ {
995
+ "internalType": "NftId",
996
+ "name": "policyNftId",
997
+ "type": "uint96"
998
+ }
999
+ ],
1000
+ "name": "getPolicyInfo",
1001
+ "outputs": [
1002
+ {
1003
+ "components": [
1004
+ {
1005
+ "internalType": "NftId",
1006
+ "name": "productNftId",
1007
+ "type": "uint96"
1008
+ },
1009
+ {
1010
+ "internalType": "NftId",
1011
+ "name": "bundleNftId",
1012
+ "type": "uint96"
1013
+ },
1014
+ {
1015
+ "internalType": "RiskId",
1016
+ "name": "riskId",
1017
+ "type": "bytes8"
1018
+ },
1019
+ {
1020
+ "internalType": "Amount",
1021
+ "name": "sumInsuredAmount",
1022
+ "type": "uint96"
1023
+ },
1024
+ {
1025
+ "internalType": "Amount",
1026
+ "name": "premiumAmount",
1027
+ "type": "uint96"
1028
+ },
1029
+ {
1030
+ "internalType": "ReferralId",
1031
+ "name": "referralId",
1032
+ "type": "bytes8"
1033
+ },
1034
+ {
1035
+ "internalType": "uint16",
1036
+ "name": "claimsCount",
1037
+ "type": "uint16"
1038
+ },
1039
+ {
1040
+ "internalType": "uint16",
1041
+ "name": "openClaimsCount",
1042
+ "type": "uint16"
1043
+ },
1044
+ {
1045
+ "internalType": "Amount",
1046
+ "name": "claimAmount",
1047
+ "type": "uint96"
1048
+ },
1049
+ {
1050
+ "internalType": "Amount",
1051
+ "name": "payoutAmount",
1052
+ "type": "uint96"
1053
+ },
1054
+ {
1055
+ "internalType": "Timestamp",
1056
+ "name": "activatedAt",
1057
+ "type": "uint40"
1058
+ },
1059
+ {
1060
+ "internalType": "Seconds",
1061
+ "name": "lifetime",
1062
+ "type": "uint40"
1063
+ },
1064
+ {
1065
+ "internalType": "Timestamp",
1066
+ "name": "expiredAt",
1067
+ "type": "uint40"
1068
+ },
1069
+ {
1070
+ "internalType": "Timestamp",
1071
+ "name": "closedAt",
1072
+ "type": "uint40"
1073
+ },
1074
+ {
1075
+ "internalType": "bytes",
1076
+ "name": "applicationData",
1077
+ "type": "bytes"
1078
+ },
1079
+ {
1080
+ "internalType": "bytes",
1081
+ "name": "processData",
1082
+ "type": "bytes"
1083
+ }
1084
+ ],
1085
+ "internalType": "struct IPolicy.PolicyInfo",
1086
+ "name": "info",
1087
+ "type": "tuple"
1088
+ }
1089
+ ],
1090
+ "stateMutability": "view",
1091
+ "type": "function"
1092
+ },
1093
+ {
1094
+ "inputs": [
1095
+ {
1096
+ "internalType": "RiskId",
1097
+ "name": "riskId",
1098
+ "type": "bytes8"
1099
+ },
1100
+ {
1101
+ "internalType": "uint256",
1102
+ "name": "idx",
1103
+ "type": "uint256"
1104
+ }
1105
+ ],
1106
+ "name": "getPolicyNftIdForRisk",
1107
+ "outputs": [
1108
+ {
1109
+ "internalType": "NftId",
1110
+ "name": "linkedPolicyNftId",
1111
+ "type": "uint96"
1112
+ }
1113
+ ],
1114
+ "stateMutability": "view",
1115
+ "type": "function"
1116
+ },
1117
+ {
1118
+ "inputs": [
1119
+ {
1120
+ "internalType": "NftId",
1121
+ "name": "policyNftId",
1122
+ "type": "uint96"
1123
+ }
1124
+ ],
1125
+ "name": "getPolicyState",
1126
+ "outputs": [
1127
+ {
1128
+ "internalType": "StateId",
1129
+ "name": "state",
1130
+ "type": "uint8"
1131
+ }
1132
+ ],
1133
+ "stateMutability": "view",
1134
+ "type": "function"
1135
+ },
1136
+ {
1137
+ "inputs": [
1138
+ {
1139
+ "internalType": "NftId",
1140
+ "name": "poolNftId",
1141
+ "type": "uint96"
1142
+ }
1143
+ ],
1144
+ "name": "getPoolInfo",
1145
+ "outputs": [
1146
+ {
1147
+ "components": [
1148
+ {
1149
+ "internalType": "Amount",
1150
+ "name": "maxBalanceAmount",
1151
+ "type": "uint96"
1152
+ },
1153
+ {
1154
+ "internalType": "UFixed",
1155
+ "name": "collateralizationLevel",
1156
+ "type": "uint160"
1157
+ },
1158
+ {
1159
+ "internalType": "UFixed",
1160
+ "name": "retentionLevel",
1161
+ "type": "uint160"
1162
+ },
1163
+ {
1164
+ "internalType": "bool",
1165
+ "name": "isInterceptingBundleTransfers",
1166
+ "type": "bool"
1167
+ },
1168
+ {
1169
+ "internalType": "bool",
1170
+ "name": "isProcessingConfirmedClaims",
1171
+ "type": "bool"
1172
+ },
1173
+ {
1174
+ "internalType": "bool",
1175
+ "name": "isExternallyManaged",
1176
+ "type": "bool"
1177
+ },
1178
+ {
1179
+ "internalType": "bool",
1180
+ "name": "isVerifyingApplications",
1181
+ "type": "bool"
1182
+ }
1183
+ ],
1184
+ "internalType": "struct IComponents.PoolInfo",
1185
+ "name": "info",
1186
+ "type": "tuple"
1187
+ }
1188
+ ],
1189
+ "stateMutability": "view",
1190
+ "type": "function"
1191
+ },
1192
+ {
1193
+ "inputs": [
1194
+ {
1195
+ "internalType": "NftId",
1196
+ "name": "policyNftId",
1197
+ "type": "uint96"
1198
+ }
1199
+ ],
1200
+ "name": "getPremiumInfo",
1201
+ "outputs": [
1202
+ {
1203
+ "components": [
1204
+ {
1205
+ "internalType": "Amount",
1206
+ "name": "productFeeAmount",
1207
+ "type": "uint96"
1208
+ },
1209
+ {
1210
+ "internalType": "Amount",
1211
+ "name": "distributionFeeAndCommissionAmount",
1212
+ "type": "uint96"
1213
+ },
1214
+ {
1215
+ "internalType": "Amount",
1216
+ "name": "poolPremiumAndFeeAmount",
1217
+ "type": "uint96"
1218
+ },
1219
+ {
1220
+ "internalType": "Amount",
1221
+ "name": "netPremiumAmount",
1222
+ "type": "uint96"
1223
+ },
1224
+ {
1225
+ "internalType": "Amount",
1226
+ "name": "fullPremiumAmount",
1227
+ "type": "uint96"
1228
+ },
1229
+ {
1230
+ "internalType": "Amount",
1231
+ "name": "premiumAmount",
1232
+ "type": "uint96"
1233
+ },
1234
+ {
1235
+ "internalType": "Amount",
1236
+ "name": "productFeeFixAmount",
1237
+ "type": "uint96"
1238
+ },
1239
+ {
1240
+ "internalType": "Amount",
1241
+ "name": "poolFeeFixAmount",
1242
+ "type": "uint96"
1243
+ },
1244
+ {
1245
+ "internalType": "Amount",
1246
+ "name": "bundleFeeFixAmount",
1247
+ "type": "uint96"
1248
+ },
1249
+ {
1250
+ "internalType": "Amount",
1251
+ "name": "distributionFeeFixAmount",
1252
+ "type": "uint96"
1253
+ },
1254
+ {
1255
+ "internalType": "Amount",
1256
+ "name": "productFeeVarAmount",
1257
+ "type": "uint96"
1258
+ },
1259
+ {
1260
+ "internalType": "Amount",
1261
+ "name": "poolFeeVarAmount",
1262
+ "type": "uint96"
1263
+ },
1264
+ {
1265
+ "internalType": "Amount",
1266
+ "name": "bundleFeeVarAmount",
1267
+ "type": "uint96"
1268
+ },
1269
+ {
1270
+ "internalType": "Amount",
1271
+ "name": "distributionFeeVarAmount",
1272
+ "type": "uint96"
1273
+ },
1274
+ {
1275
+ "internalType": "Amount",
1276
+ "name": "distributionOwnerFeeFixAmount",
1277
+ "type": "uint96"
1278
+ },
1279
+ {
1280
+ "internalType": "Amount",
1281
+ "name": "distributionOwnerFeeVarAmount",
1282
+ "type": "uint96"
1283
+ },
1284
+ {
1285
+ "internalType": "Amount",
1286
+ "name": "commissionAmount",
1287
+ "type": "uint96"
1288
+ },
1289
+ {
1290
+ "internalType": "Amount",
1291
+ "name": "discountAmount",
1292
+ "type": "uint96"
1293
+ }
1294
+ ],
1295
+ "internalType": "struct IPolicy.PremiumInfo",
1296
+ "name": "info",
1297
+ "type": "tuple"
1298
+ }
1299
+ ],
1300
+ "stateMutability": "view",
1301
+ "type": "function"
1302
+ },
1303
+ {
1304
+ "inputs": [
1305
+ {
1306
+ "internalType": "NftId",
1307
+ "name": "policyNftId",
1308
+ "type": "uint96"
1309
+ }
1310
+ ],
1311
+ "name": "getPremiumState",
1312
+ "outputs": [
1313
+ {
1314
+ "internalType": "StateId",
1315
+ "name": "state",
1316
+ "type": "uint8"
1317
+ }
1318
+ ],
1319
+ "stateMutability": "view",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [
1324
+ {
1325
+ "internalType": "NftId",
1326
+ "name": "productNftId",
1327
+ "type": "uint96"
1328
+ }
1329
+ ],
1330
+ "name": "getProductInfo",
1331
+ "outputs": [
1332
+ {
1333
+ "components": [
1334
+ {
1335
+ "internalType": "bool",
1336
+ "name": "isProcessingFundedClaims",
1337
+ "type": "bool"
1338
+ },
1339
+ {
1340
+ "internalType": "bool",
1341
+ "name": "isInterceptingPolicyTransfers",
1342
+ "type": "bool"
1343
+ },
1344
+ {
1345
+ "internalType": "bool",
1346
+ "name": "hasDistribution",
1347
+ "type": "bool"
1348
+ },
1349
+ {
1350
+ "internalType": "uint8",
1351
+ "name": "expectedNumberOfOracles",
1352
+ "type": "uint8"
1353
+ },
1354
+ {
1355
+ "internalType": "uint8",
1356
+ "name": "numberOfOracles",
1357
+ "type": "uint8"
1358
+ },
1359
+ {
1360
+ "internalType": "NftId",
1361
+ "name": "poolNftId",
1362
+ "type": "uint96"
1363
+ },
1364
+ {
1365
+ "internalType": "NftId",
1366
+ "name": "distributionNftId",
1367
+ "type": "uint96"
1368
+ },
1369
+ {
1370
+ "internalType": "NftId[]",
1371
+ "name": "oracleNftId",
1372
+ "type": "uint96[]"
1373
+ }
1374
+ ],
1375
+ "internalType": "struct IComponents.ProductInfo",
1376
+ "name": "info",
1377
+ "type": "tuple"
1378
+ }
1379
+ ],
1380
+ "stateMutability": "view",
1381
+ "type": "function"
1382
+ },
1383
+ {
1384
+ "inputs": [
1385
+ {
1386
+ "internalType": "uint256",
1387
+ "name": "idx",
1388
+ "type": "uint256"
1389
+ }
1390
+ ],
1391
+ "name": "getProductNftId",
1392
+ "outputs": [
1393
+ {
1394
+ "internalType": "NftId",
1395
+ "name": "productNftId",
1396
+ "type": "uint96"
1397
+ }
1398
+ ],
1399
+ "stateMutability": "view",
1400
+ "type": "function"
1401
+ },
1402
+ {
1403
+ "inputs": [
1404
+ {
1405
+ "internalType": "ReferralId",
1406
+ "name": "referralId",
1407
+ "type": "bytes8"
1408
+ }
1409
+ ],
1410
+ "name": "getReferralInfo",
1411
+ "outputs": [
1412
+ {
1413
+ "components": [
1414
+ {
1415
+ "internalType": "NftId",
1416
+ "name": "distributionNftId",
1417
+ "type": "uint96"
1418
+ },
1419
+ {
1420
+ "internalType": "NftId",
1421
+ "name": "distributorNftId",
1422
+ "type": "uint96"
1423
+ },
1424
+ {
1425
+ "internalType": "uint32",
1426
+ "name": "maxReferrals",
1427
+ "type": "uint32"
1428
+ },
1429
+ {
1430
+ "internalType": "uint32",
1431
+ "name": "usedReferrals",
1432
+ "type": "uint32"
1433
+ },
1434
+ {
1435
+ "internalType": "UFixed",
1436
+ "name": "discountPercentage",
1437
+ "type": "uint160"
1438
+ },
1439
+ {
1440
+ "internalType": "Timestamp",
1441
+ "name": "expiryAt",
1442
+ "type": "uint40"
1443
+ },
1444
+ {
1445
+ "internalType": "string",
1446
+ "name": "referralCode",
1447
+ "type": "string"
1448
+ },
1449
+ {
1450
+ "internalType": "bytes",
1451
+ "name": "data",
1452
+ "type": "bytes"
1453
+ }
1454
+ ],
1455
+ "internalType": "struct IDistribution.ReferralInfo",
1456
+ "name": "info",
1457
+ "type": "tuple"
1458
+ }
1459
+ ],
1460
+ "stateMutability": "view",
1461
+ "type": "function"
1462
+ },
1463
+ {
1464
+ "inputs": [],
1465
+ "name": "getRegistry",
1466
+ "outputs": [
1467
+ {
1468
+ "internalType": "contract IRegistry",
1469
+ "name": "registry",
1470
+ "type": "address"
1471
+ }
1472
+ ],
1473
+ "stateMutability": "view",
1474
+ "type": "function"
1475
+ },
1476
+ {
1477
+ "inputs": [
1478
+ {
1479
+ "internalType": "NftId",
1480
+ "name": "policyNftId",
1481
+ "type": "uint96"
1482
+ }
1483
+ ],
1484
+ "name": "getRemainingClaimableAmount",
1485
+ "outputs": [
1486
+ {
1487
+ "internalType": "Amount",
1488
+ "name": "remainingClaimableAmount",
1489
+ "type": "uint96"
1490
+ }
1491
+ ],
1492
+ "stateMutability": "view",
1493
+ "type": "function"
1494
+ },
1495
+ {
1496
+ "inputs": [
1497
+ {
1498
+ "internalType": "RequestId",
1499
+ "name": "requestId",
1500
+ "type": "uint64"
1501
+ }
1502
+ ],
1503
+ "name": "getRequestInfo",
1504
+ "outputs": [
1505
+ {
1506
+ "components": [
1507
+ {
1508
+ "internalType": "NftId",
1509
+ "name": "requesterNftId",
1510
+ "type": "uint96"
1511
+ },
1512
+ {
1513
+ "internalType": "NftId",
1514
+ "name": "oracleNftId",
1515
+ "type": "uint96"
1516
+ },
1517
+ {
1518
+ "internalType": "bool",
1519
+ "name": "isCancelled",
1520
+ "type": "bool"
1521
+ },
1522
+ {
1523
+ "internalType": "Timestamp",
1524
+ "name": "respondedAt",
1525
+ "type": "uint40"
1526
+ },
1527
+ {
1528
+ "internalType": "Timestamp",
1529
+ "name": "expiredAt",
1530
+ "type": "uint40"
1531
+ },
1532
+ {
1533
+ "internalType": "string",
1534
+ "name": "callbackMethodName",
1535
+ "type": "string"
1536
+ },
1537
+ {
1538
+ "internalType": "bytes",
1539
+ "name": "requestData",
1540
+ "type": "bytes"
1541
+ },
1542
+ {
1543
+ "internalType": "bytes",
1544
+ "name": "responseData",
1545
+ "type": "bytes"
1546
+ }
1547
+ ],
1548
+ "internalType": "struct IOracle.RequestInfo",
1549
+ "name": "requestInfo",
1550
+ "type": "tuple"
1551
+ }
1552
+ ],
1553
+ "stateMutability": "view",
1554
+ "type": "function"
1555
+ },
1556
+ {
1557
+ "inputs": [
1558
+ {
1559
+ "internalType": "NftId",
1560
+ "name": "productNftId",
1561
+ "type": "uint96"
1562
+ },
1563
+ {
1564
+ "internalType": "uint256",
1565
+ "name": "idx",
1566
+ "type": "uint256"
1567
+ }
1568
+ ],
1569
+ "name": "getRiskId",
1570
+ "outputs": [
1571
+ {
1572
+ "internalType": "RiskId",
1573
+ "name": "riskId",
1574
+ "type": "bytes8"
1575
+ }
1576
+ ],
1577
+ "stateMutability": "view",
1578
+ "type": "function"
1579
+ },
1580
+ {
1581
+ "inputs": [
1582
+ {
1583
+ "internalType": "RiskId",
1584
+ "name": "riskId",
1585
+ "type": "bytes8"
1586
+ }
1587
+ ],
1588
+ "name": "getRiskInfo",
1589
+ "outputs": [
1590
+ {
1591
+ "components": [
1592
+ {
1593
+ "internalType": "NftId",
1594
+ "name": "productNftId",
1595
+ "type": "uint96"
1596
+ },
1597
+ {
1598
+ "internalType": "Timestamp",
1599
+ "name": "createdAt",
1600
+ "type": "uint40"
1601
+ },
1602
+ {
1603
+ "internalType": "bytes",
1604
+ "name": "data",
1605
+ "type": "bytes"
1606
+ }
1607
+ ],
1608
+ "internalType": "struct IRisk.RiskInfo",
1609
+ "name": "info",
1610
+ "type": "tuple"
1611
+ }
1612
+ ],
1613
+ "stateMutability": "view",
1614
+ "type": "function"
1615
+ },
1616
+ {
1617
+ "inputs": [],
1618
+ "name": "getRiskSet",
1619
+ "outputs": [
1620
+ {
1621
+ "internalType": "contract RiskSet",
1622
+ "name": "riskSet",
1623
+ "type": "address"
1624
+ }
1625
+ ],
1626
+ "stateMutability": "view",
1627
+ "type": "function"
1628
+ },
1629
+ {
1630
+ "inputs": [
1631
+ {
1632
+ "internalType": "RiskId",
1633
+ "name": "riskId",
1634
+ "type": "bytes8"
1635
+ }
1636
+ ],
1637
+ "name": "getRiskState",
1638
+ "outputs": [
1639
+ {
1640
+ "internalType": "StateId",
1641
+ "name": "stateId",
1642
+ "type": "uint8"
1643
+ }
1644
+ ],
1645
+ "stateMutability": "view",
1646
+ "type": "function"
1647
+ },
1648
+ {
1649
+ "inputs": [
1650
+ {
1651
+ "internalType": "uint256",
1652
+ "name": "idx",
1653
+ "type": "uint256"
1654
+ }
1655
+ ],
1656
+ "name": "getRoleId",
1657
+ "outputs": [
1658
+ {
1659
+ "internalType": "RoleId",
1660
+ "name": "roleId",
1661
+ "type": "uint64"
1662
+ }
1663
+ ],
1664
+ "stateMutability": "view",
1665
+ "type": "function"
1666
+ },
1667
+ {
1668
+ "inputs": [
1669
+ {
1670
+ "internalType": "RoleId",
1671
+ "name": "roleId",
1672
+ "type": "uint64"
1673
+ }
1674
+ ],
1675
+ "name": "getRoleInfo",
1676
+ "outputs": [
1677
+ {
1678
+ "components": [
1679
+ {
1680
+ "internalType": "RoleId",
1681
+ "name": "adminRoleId",
1682
+ "type": "uint64"
1683
+ },
1684
+ {
1685
+ "internalType": "enum IAccess.RoleType",
1686
+ "name": "roleType",
1687
+ "type": "uint8"
1688
+ },
1689
+ {
1690
+ "internalType": "uint32",
1691
+ "name": "maxMemberCount",
1692
+ "type": "uint32"
1693
+ },
1694
+ {
1695
+ "internalType": "Timestamp",
1696
+ "name": "createdAt",
1697
+ "type": "uint40"
1698
+ },
1699
+ {
1700
+ "internalType": "Timestamp",
1701
+ "name": "pausedAt",
1702
+ "type": "uint40"
1703
+ },
1704
+ {
1705
+ "internalType": "Str",
1706
+ "name": "name",
1707
+ "type": "bytes32"
1708
+ }
1709
+ ],
1710
+ "internalType": "struct IAccess.RoleInfo",
1711
+ "name": "roleInfo",
1712
+ "type": "tuple"
1713
+ }
1714
+ ],
1715
+ "stateMutability": "view",
1716
+ "type": "function"
1717
+ },
1718
+ {
1719
+ "inputs": [
1720
+ {
1721
+ "internalType": "RoleId",
1722
+ "name": "roleId",
1723
+ "type": "uint64"
1724
+ },
1725
+ {
1726
+ "internalType": "uint256",
1727
+ "name": "idx",
1728
+ "type": "uint256"
1729
+ }
1730
+ ],
1731
+ "name": "getRoleMember",
1732
+ "outputs": [
1733
+ {
1734
+ "internalType": "address",
1735
+ "name": "account",
1736
+ "type": "address"
1737
+ }
1738
+ ],
1739
+ "stateMutability": "view",
1740
+ "type": "function"
1741
+ },
1742
+ {
1743
+ "inputs": [
1744
+ {
1745
+ "internalType": "Key32",
1746
+ "name": "key",
1747
+ "type": "bytes32"
1748
+ }
1749
+ ],
1750
+ "name": "getState",
1751
+ "outputs": [
1752
+ {
1753
+ "internalType": "StateId",
1754
+ "name": "state",
1755
+ "type": "uint8"
1756
+ }
1757
+ ],
1758
+ "stateMutability": "view",
1759
+ "type": "function"
1760
+ },
1761
+ {
1762
+ "inputs": [
1763
+ {
1764
+ "internalType": "uint256",
1765
+ "name": "idx",
1766
+ "type": "uint256"
1767
+ }
1768
+ ],
1769
+ "name": "getTargetAddress",
1770
+ "outputs": [
1771
+ {
1772
+ "internalType": "address",
1773
+ "name": "target",
1774
+ "type": "address"
1775
+ }
1776
+ ],
1777
+ "stateMutability": "view",
1778
+ "type": "function"
1779
+ },
1780
+ {
1781
+ "inputs": [
1782
+ {
1783
+ "internalType": "address",
1784
+ "name": "target",
1785
+ "type": "address"
1786
+ }
1787
+ ],
1788
+ "name": "getTargetInfo",
1789
+ "outputs": [
1790
+ {
1791
+ "components": [
1792
+ {
1793
+ "internalType": "Str",
1794
+ "name": "name",
1795
+ "type": "bytes32"
1796
+ },
1797
+ {
1798
+ "internalType": "enum IAccess.TargetType",
1799
+ "name": "targetType",
1800
+ "type": "uint8"
1801
+ },
1802
+ {
1803
+ "internalType": "RoleId",
1804
+ "name": "roleId",
1805
+ "type": "uint64"
1806
+ },
1807
+ {
1808
+ "internalType": "Timestamp",
1809
+ "name": "createdAt",
1810
+ "type": "uint40"
1811
+ }
1812
+ ],
1813
+ "internalType": "struct IAccess.TargetInfo",
1814
+ "name": "targetInfo",
1815
+ "type": "tuple"
1816
+ }
1817
+ ],
1818
+ "stateMutability": "view",
1819
+ "type": "function"
1820
+ },
1821
+ {
1822
+ "inputs": [
1823
+ {
1824
+ "internalType": "NftId",
1825
+ "name": "componentNftId",
1826
+ "type": "uint96"
1827
+ }
1828
+ ],
1829
+ "name": "getToken",
1830
+ "outputs": [
1831
+ {
1832
+ "internalType": "contract IERC20Metadata",
1833
+ "name": "token",
1834
+ "type": "address"
1835
+ }
1836
+ ],
1837
+ "stateMutability": "view",
1838
+ "type": "function"
1839
+ },
1840
+ {
1841
+ "inputs": [
1842
+ {
1843
+ "internalType": "NftId",
1844
+ "name": "componentNftId",
1845
+ "type": "uint96"
1846
+ }
1847
+ ],
1848
+ "name": "getTokenHandler",
1849
+ "outputs": [
1850
+ {
1851
+ "internalType": "contract TokenHandler",
1852
+ "name": "tokenHandler",
1853
+ "type": "address"
1854
+ }
1855
+ ],
1856
+ "stateMutability": "view",
1857
+ "type": "function"
1858
+ },
1859
+ {
1860
+ "inputs": [
1861
+ {
1862
+ "internalType": "NftId",
1863
+ "name": "componentNftId",
1864
+ "type": "uint96"
1865
+ }
1866
+ ],
1867
+ "name": "getWallet",
1868
+ "outputs": [
1869
+ {
1870
+ "internalType": "address",
1871
+ "name": "wallet",
1872
+ "type": "address"
1873
+ }
1874
+ ],
1875
+ "stateMutability": "view",
1876
+ "type": "function"
1877
+ },
1878
+ {
1879
+ "inputs": [],
1880
+ "name": "initialize",
1881
+ "outputs": [],
1882
+ "stateMutability": "nonpayable",
1883
+ "type": "function"
1884
+ },
1885
+ {
1886
+ "inputs": [
1887
+ {
1888
+ "internalType": "address",
1889
+ "name": "instanceAddress",
1890
+ "type": "address"
1891
+ }
1892
+ ],
1893
+ "name": "initializeWithInstance",
1894
+ "outputs": [],
1895
+ "stateMutability": "nonpayable",
1896
+ "type": "function"
1897
+ },
1898
+ {
1899
+ "inputs": [
1900
+ {
1901
+ "internalType": "address",
1902
+ "name": "target",
1903
+ "type": "address"
1904
+ }
1905
+ ],
1906
+ "name": "isLocked",
1907
+ "outputs": [
1908
+ {
1909
+ "internalType": "bool",
1910
+ "name": "",
1911
+ "type": "bool"
1912
+ }
1913
+ ],
1914
+ "stateMutability": "view",
1915
+ "type": "function"
1916
+ },
1917
+ {
1918
+ "inputs": [
1919
+ {
1920
+ "internalType": "NftId",
1921
+ "name": "distributionNftId",
1922
+ "type": "uint96"
1923
+ },
1924
+ {
1925
+ "internalType": "ReferralId",
1926
+ "name": "referralId",
1927
+ "type": "bytes8"
1928
+ }
1929
+ ],
1930
+ "name": "isReferralValid",
1931
+ "outputs": [
1932
+ {
1933
+ "internalType": "bool",
1934
+ "name": "isValid",
1935
+ "type": "bool"
1936
+ }
1937
+ ],
1938
+ "stateMutability": "view",
1939
+ "type": "function"
1940
+ },
1941
+ {
1942
+ "inputs": [
1943
+ {
1944
+ "internalType": "RoleId",
1945
+ "name": "roleId",
1946
+ "type": "uint64"
1947
+ }
1948
+ ],
1949
+ "name": "isRoleActive",
1950
+ "outputs": [
1951
+ {
1952
+ "internalType": "bool",
1953
+ "name": "isActive",
1954
+ "type": "bool"
1955
+ }
1956
+ ],
1957
+ "stateMutability": "view",
1958
+ "type": "function"
1959
+ },
1960
+ {
1961
+ "inputs": [
1962
+ {
1963
+ "internalType": "RoleId",
1964
+ "name": "roleId",
1965
+ "type": "uint64"
1966
+ },
1967
+ {
1968
+ "internalType": "address",
1969
+ "name": "account",
1970
+ "type": "address"
1971
+ }
1972
+ ],
1973
+ "name": "isRoleAdmin",
1974
+ "outputs": [
1975
+ {
1976
+ "internalType": "bool",
1977
+ "name": "isMember",
1978
+ "type": "bool"
1979
+ }
1980
+ ],
1981
+ "stateMutability": "view",
1982
+ "type": "function"
1983
+ },
881
1984
  {
882
1985
  "inputs": [
883
1986
  {
884
- "internalType": "address",
885
- "name": "registry",
886
- "type": "address"
887
- },
1987
+ "internalType": "RoleId",
1988
+ "name": "roleId",
1989
+ "type": "uint64"
1990
+ }
1991
+ ],
1992
+ "name": "isRoleCustom",
1993
+ "outputs": [
888
1994
  {
889
- "internalType": "NftId",
890
- "name": "instanceNftId",
891
- "type": "uint96"
1995
+ "internalType": "bool",
1996
+ "name": "isCustom",
1997
+ "type": "bool"
892
1998
  }
893
1999
  ],
894
- "name": "initialize",
895
- "outputs": [],
896
- "stateMutability": "nonpayable",
2000
+ "stateMutability": "view",
897
2001
  "type": "function"
898
2002
  },
899
2003
  {
900
2004
  "inputs": [
901
2005
  {
902
- "internalType": "NftId",
903
- "name": "distributionNftId",
904
- "type": "uint96"
2006
+ "internalType": "RoleId",
2007
+ "name": "roleId",
2008
+ "type": "uint64"
2009
+ },
2010
+ {
2011
+ "internalType": "address",
2012
+ "name": "account",
2013
+ "type": "address"
905
2014
  }
906
2015
  ],
907
- "name": "toDistributionKey",
2016
+ "name": "isRoleMember",
908
2017
  "outputs": [
909
2018
  {
910
- "internalType": "Key32",
911
- "name": "",
912
- "type": "bytes32"
2019
+ "internalType": "bool",
2020
+ "name": "isMember",
2021
+ "type": "bool"
913
2022
  }
914
2023
  ],
915
- "stateMutability": "pure",
2024
+ "stateMutability": "view",
916
2025
  "type": "function"
917
2026
  },
918
2027
  {
919
2028
  "inputs": [
920
2029
  {
921
2030
  "internalType": "NftId",
922
- "name": "distributorNftId",
2031
+ "name": "policyNftId",
923
2032
  "type": "uint96"
2033
+ },
2034
+ {
2035
+ "internalType": "ClaimId",
2036
+ "name": "claimId",
2037
+ "type": "uint16"
924
2038
  }
925
2039
  ],
926
- "name": "toDistributorKey",
2040
+ "name": "payouts",
927
2041
  "outputs": [
928
2042
  {
929
- "internalType": "Key32",
930
- "name": "",
931
- "type": "bytes32"
2043
+ "internalType": "uint24",
2044
+ "name": "payoutCount",
2045
+ "type": "uint24"
932
2046
  }
933
2047
  ],
934
- "stateMutability": "pure",
2048
+ "stateMutability": "view",
935
2049
  "type": "function"
936
2050
  },
937
2051
  {
938
2052
  "inputs": [
939
2053
  {
940
- "internalType": "UFixed",
941
- "name": "value",
942
- "type": "uint256"
2054
+ "internalType": "RiskId",
2055
+ "name": "riskId",
2056
+ "type": "bytes8"
943
2057
  }
944
2058
  ],
945
- "name": "toInt",
2059
+ "name": "policiesForRisk",
946
2060
  "outputs": [
947
2061
  {
948
2062
  "internalType": "uint256",
949
- "name": "",
2063
+ "name": "linkedPolicies",
950
2064
  "type": "uint256"
951
2065
  }
952
2066
  ],
953
- "stateMutability": "pure",
2067
+ "stateMutability": "view",
954
2068
  "type": "function"
955
2069
  },
956
2070
  {
@@ -961,74 +2075,187 @@
961
2075
  "type": "uint96"
962
2076
  }
963
2077
  ],
964
- "name": "toPolicyKey",
2078
+ "name": "policyIsActive",
965
2079
  "outputs": [
966
2080
  {
967
- "internalType": "Key32",
968
- "name": "",
969
- "type": "bytes32"
2081
+ "internalType": "bool",
2082
+ "name": "isCloseable",
2083
+ "type": "bool"
970
2084
  }
971
2085
  ],
972
- "stateMutability": "pure",
2086
+ "stateMutability": "view",
2087
+ "type": "function"
2088
+ },
2089
+ {
2090
+ "inputs": [],
2091
+ "name": "products",
2092
+ "outputs": [
2093
+ {
2094
+ "internalType": "uint256",
2095
+ "name": "productCount",
2096
+ "type": "uint256"
2097
+ }
2098
+ ],
2099
+ "stateMutability": "view",
973
2100
  "type": "function"
974
2101
  },
975
2102
  {
976
2103
  "inputs": [
977
2104
  {
978
2105
  "internalType": "NftId",
979
- "name": "poolNftId",
2106
+ "name": "productNftId",
980
2107
  "type": "uint96"
981
2108
  }
982
2109
  ],
983
- "name": "toPoolKey",
2110
+ "name": "risks",
984
2111
  "outputs": [
985
2112
  {
986
- "internalType": "Key32",
987
- "name": "",
988
- "type": "bytes32"
2113
+ "internalType": "uint256",
2114
+ "name": "riskCount",
2115
+ "type": "uint256"
989
2116
  }
990
2117
  ],
991
- "stateMutability": "pure",
2118
+ "stateMutability": "view",
992
2119
  "type": "function"
993
2120
  },
994
2121
  {
995
2122
  "inputs": [
996
2123
  {
997
- "internalType": "NftId",
998
- "name": "productNftId",
999
- "type": "uint96"
2124
+ "internalType": "RoleId",
2125
+ "name": "roleId",
2126
+ "type": "uint64"
1000
2127
  }
1001
2128
  ],
1002
- "name": "toProductKey",
2129
+ "name": "roleExists",
1003
2130
  "outputs": [
1004
2131
  {
1005
- "internalType": "Key32",
2132
+ "internalType": "bool",
2133
+ "name": "exists",
2134
+ "type": "bool"
2135
+ }
2136
+ ],
2137
+ "stateMutability": "view",
2138
+ "type": "function"
2139
+ },
2140
+ {
2141
+ "inputs": [
2142
+ {
2143
+ "internalType": "RoleId",
2144
+ "name": "roleId",
2145
+ "type": "uint64"
2146
+ }
2147
+ ],
2148
+ "name": "roleMembers",
2149
+ "outputs": [
2150
+ {
2151
+ "internalType": "uint256",
2152
+ "name": "numberOfMembers",
2153
+ "type": "uint256"
2154
+ }
2155
+ ],
2156
+ "stateMutability": "view",
2157
+ "type": "function"
2158
+ },
2159
+ {
2160
+ "inputs": [],
2161
+ "name": "roles",
2162
+ "outputs": [
2163
+ {
2164
+ "internalType": "uint256",
1006
2165
  "name": "",
1007
- "type": "bytes32"
2166
+ "type": "uint256"
1008
2167
  }
1009
2168
  ],
1010
- "stateMutability": "pure",
2169
+ "stateMutability": "view",
1011
2170
  "type": "function"
1012
2171
  },
1013
2172
  {
1014
2173
  "inputs": [
1015
2174
  {
1016
- "internalType": "NftId",
1017
- "name": "distributionNftId",
1018
- "type": "uint96"
2175
+ "internalType": "address",
2176
+ "name": "target",
2177
+ "type": "address"
2178
+ }
2179
+ ],
2180
+ "name": "targetExists",
2181
+ "outputs": [
2182
+ {
2183
+ "internalType": "bool",
2184
+ "name": "exists",
2185
+ "type": "bool"
2186
+ }
2187
+ ],
2188
+ "stateMutability": "view",
2189
+ "type": "function"
2190
+ },
2191
+ {
2192
+ "inputs": [],
2193
+ "name": "targets",
2194
+ "outputs": [
2195
+ {
2196
+ "internalType": "uint256",
2197
+ "name": "targetCount",
2198
+ "type": "uint256"
2199
+ }
2200
+ ],
2201
+ "stateMutability": "view",
2202
+ "type": "function"
2203
+ },
2204
+ {
2205
+ "inputs": [
2206
+ {
2207
+ "internalType": "bytes4",
2208
+ "name": "signature",
2209
+ "type": "bytes4"
1019
2210
  },
1020
2211
  {
1021
2212
  "internalType": "string",
1022
- "name": "referralCode",
2213
+ "name": "name",
1023
2214
  "type": "string"
1024
2215
  }
1025
2216
  ],
1026
- "name": "toReferralId",
2217
+ "name": "toFunction",
1027
2218
  "outputs": [
1028
2219
  {
1029
- "internalType": "ReferralId",
1030
- "name": "referralId",
1031
- "type": "bytes8"
2220
+ "components": [
2221
+ {
2222
+ "internalType": "Str",
2223
+ "name": "name",
2224
+ "type": "bytes32"
2225
+ },
2226
+ {
2227
+ "internalType": "Selector",
2228
+ "name": "selector",
2229
+ "type": "bytes4"
2230
+ },
2231
+ {
2232
+ "internalType": "Timestamp",
2233
+ "name": "createdAt",
2234
+ "type": "uint40"
2235
+ }
2236
+ ],
2237
+ "internalType": "struct IAccess.FunctionInfo",
2238
+ "name": "",
2239
+ "type": "tuple"
2240
+ }
2241
+ ],
2242
+ "stateMutability": "view",
2243
+ "type": "function"
2244
+ },
2245
+ {
2246
+ "inputs": [
2247
+ {
2248
+ "internalType": "UFixed",
2249
+ "name": "value",
2250
+ "type": "uint160"
2251
+ }
2252
+ ],
2253
+ "name": "toInt",
2254
+ "outputs": [
2255
+ {
2256
+ "internalType": "uint256",
2257
+ "name": "",
2258
+ "type": "uint256"
1032
2259
  }
1033
2260
  ],
1034
2261
  "stateMutability": "pure",
@@ -1038,16 +2265,21 @@
1038
2265
  "inputs": [
1039
2266
  {
1040
2267
  "internalType": "NftId",
1041
- "name": "productNftId",
2268
+ "name": "distributionNftId",
1042
2269
  "type": "uint96"
2270
+ },
2271
+ {
2272
+ "internalType": "string",
2273
+ "name": "referralCode",
2274
+ "type": "string"
1043
2275
  }
1044
2276
  ],
1045
- "name": "toTreasuryKey",
2277
+ "name": "toReferralId",
1046
2278
  "outputs": [
1047
2279
  {
1048
- "internalType": "Key32",
1049
- "name": "",
1050
- "type": "bytes32"
2280
+ "internalType": "ReferralId",
2281
+ "name": "referralId",
2282
+ "type": "bytes8"
1051
2283
  }
1052
2284
  ],
1053
2285
  "stateMutability": "pure",
@@ -1071,211 +2303,215 @@
1071
2303
  {
1072
2304
  "internalType": "UFixed",
1073
2305
  "name": "",
1074
- "type": "uint256"
2306
+ "type": "uint160"
1075
2307
  }
1076
2308
  ],
1077
2309
  "stateMutability": "pure",
1078
2310
  "type": "function"
1079
2311
  }
1080
2312
  ],
1081
- "bytecode": "0x60806040523480156200001157600080fd5b5060405162002f3c38038062002f3c83398101604081905262000034916200038e565b62000040828262000048565b5050620005f5565b60005460ff1615620000ab5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030303a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084015b60405180910390fd5b6001600160a01b038216620001035760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4352442d3030313a52454749535452595f5a45524f00000000006044820152606401620000a2565b6040516330b8415f60e01b81526001600160601b038216600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af41580156200015c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001829190620003d7565b620001d05760405162461bcd60e51b815260206004820152601960248201527f4552524f523a4352442d3030323a4e46545f49445f5a45524f000000000000006044820152606401620000a2565b60008054610100600160a81b0319166101006001600160a01b03858116820292909217808455600180546001600160601b0319166001600160601b0387169081179091556040516305247a1760e51b815260048101919091529190049091169063a48f42e090602401600060405180830381865afa15801562000257573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200028191908101906200050f565b9050620002a781604001516200029c6200035460201b60201c565b60ff90811691161490565b620002ff5760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030333a504152454e545f4e4f545f494e5354414e436044820152604560f81b6064820152608401620000a2565b60800151600180546001600160601b03166c010000000000000000000000006001600160a01b03909316928302178155600280546001600160a01b0319169092179091556000805460ff191690911790555050565b604690565b80516001600160a01b03811681146200037157600080fd5b919050565b80516001600160601b03811681146200037157600080fd5b60008060408385031215620003a257600080fd5b620003ad8362000359565b9150620003bd6020840162000376565b90509250929050565b805180151581146200037157600080fd5b600060208284031215620003ea57600080fd5b620003f582620003c6565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715620004375762000437620003fc565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620004685762000468620003fc565b604052919050565b805160ff811681146200037157600080fd5b600082601f8301126200049457600080fd5b81516001600160401b03811115620004b057620004b0620003fc565b6020620004c6601f8301601f191682016200043d565b8281528582848701011115620004db57600080fd5b60005b83811015620004fb578581018301518282018401528201620004de565b506000928101909101919091529392505050565b6000602082840312156200052257600080fd5b81516001600160401b03808211156200053a57600080fd5b9083019060e082860312156200054f57600080fd5b6200055962000412565b620005648362000376565b8152620005746020840162000376565b6020820152620005876040840162000470565b60408201526200059a60608401620003c6565b6060820152620005ad6080840162000359565b6080820152620005c060a0840162000359565b60a082015260c083015182811115620005d857600080fd5b620005e68782860162000482565b60c08301525095945050505050565b61293780620006056000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c8063887b1fa9116100de578063bd7d9d8511610097578063dd26287a11610071578063dd26287a1461047c578063de7b5d141461048f578063f2a41374146104a7578063f2b246c3146104bc57600080fd5b8063bd7d9d851461042b578063d06458c61461044b578063d4cda0d81461046b57600080fd5b8063887b1fa9146102b757806390af7064146102d75780639ad69c67146102f7578063a310e2a314610369578063a5961b4c14610394578063b82d7ef51461040157600080fd5b806344aa68361161013057806344aa68361461023057806355e343a91461024357806364eb3a9b146102635780637bfd3217146102765780637e54602a146102895780637e7986691461029c57600080fd5b80631488c845146101785780631d3be4771461019e57806325d03743146101be57806327b1d792146101d157806335898f5d146101f15780633f093cd614610204575b600080fd5b61018b6101863660046117aa565b6104cf565b6040519081526020015b60405180910390f35b6101b16101ac3660046117f9565b610557565b6040516101959190611866565b61018b6101cc366004611916565b6106b0565b6101e46101df366004611916565b61074a565b6040516101959190611933565b61018b6101ff366004611916565b610804565b610217610212366004611add565b610831565b6040516001600160c01b03199091168152602001610195565b61018b61023e366004611b6f565b6108ae565b610256610251366004611916565b6108e9565b6040516101959190611b88565b61018b610271366004611916565b61098f565b61018b610284366004611916565b6109bc565b61018b610297366004611916565b6109e9565b6001546040516001600160601b039091168152602001610195565b6102ca6102c53660046117f9565b610a16565b6040516101959190611c2d565b6102ea6102e5366004611916565b610b3f565b6040516101959190611d58565b61030a610305366004611916565b610be5565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610195565b61037c610377366004611916565b610c8b565b6040516001600160a01b039091168152602001610195565b6103a76103a2366004611b6f565b610d39565b6040516101959190815160ff9081168252602080840151909116908201526040808301516001600160a01b03169082015260608083015163ffffffff90811691830191909152608092830151169181019190915260a00190565b61041461040f3660046117f9565b610dcd565b6040805192835260ff909116602083015201610195565b61043e610439366004611916565b611075565b6040516101959190611d67565b61045e6104593660046117f9565b611193565b6040516101959190611ebf565b6002546001600160a01b031661037c565b61018b61048a366004611916565b611306565b600154600160601b90046001600160a01b031661037c565b6104ba6104b5366004611f84565b611333565b005b6102ea6104ca366004611916565b611625565b604051631488c84560e01b815260048101839052600082810b60248301529073__$5ac3274b8cf1e01ea223bf093142af05b0$__90631488c84590604401602060405180830381865af415801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190611fb2565b90505b92915050565b6040805160e08101825260008082526060602083018190529282018190528282018190526080820181905260a082015260c08101919091526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$9f290d768183857d0249ab5bb54619c5ab$__906355ee627590602401602060405180830381865af41580156105fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106229190611fb2565b6040518263ffffffff1660e01b815260040161064091815260200190565b600060405180830381865afa15801561065d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106859190810190612010565b8051909150156106aa57808060200190518101906106a39190612086565b9392505050565b50919050565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660655b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526044015b602060405180830381865af4158015610726573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105519190611fb2565b604080516060808201835260008083526020830152918101919091526002546000906001600160a01b03166354f6127f610783856109e9565b6040518263ffffffff1660e01b81526004016107a191815260200190565b600060405180830381865afa1580156107be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107e69190810190612010565b8051909150156106aa57808060200190518101906106a3919061217f565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660786106d9565b604051631f849e6b60e11b815260009073__$9f290d768183857d0249ab5bb54619c5ab$__90633f093cd69061086d9086908690600401612225565b602060405180830381865af415801561088a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190612247565b604051632255341b60e11b81526004810182905260009073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401610709565b6108f161164a565b6002546000906001600160a01b03166354f6127f61090e85611306565b6040518263ffffffff1660e01b815260040161092c91815260200190565b600060405180830381865afa158015610949573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109719190810190612010565b8051909150156106aa57808060200190518101906106a3919061229f565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d26106d9565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416606e6106d9565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607a6106d9565b6040805180820190915260008152606060208201526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe9190611fb2565b6040518263ffffffff1660e01b8152600401610adc91815260200190565b600060405180830381865afa158015610af9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b219190810190612010565b8051909150156106aa57808060200190518101906106a39190612341565b610b476116bb565b6002546000906001600160a01b03166354f6127f610b64856109bc565b6040518263ffffffff1660e01b8152600401610b8291815260200190565b600060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bc79190810190612010565b8051909150156106aa57808060200190518101906106a39190612492565b610bed611762565b6002546000906001600160a01b03166354f6127f610c0a85610804565b6040518263ffffffff1660e01b8152600401610c2891815260200190565b600060405180830381865afa158015610c45573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c6d9190810190612010565b8051909150156106aa57808060200190518101906106a391906124af565b60025460009081906001600160a01b03166354f6127f610caa856106b0565b6040518263ffffffff1660e01b8152600401610cc891815260200190565b600060405180830381865afa158015610ce5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d0d9190810190612010565b8051909150156106aa57600081806020019051810190610d2d9190612492565b60200151949350505050565b6040805160a081018252600080825260208201819052818301819052606082018190526080820152600254915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c9060240160a060405180830381865afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105519190612540565b6000806000610ddb84610557565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015610e3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e91906125ae565b15610edd5773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed09190611fb2565b60645b9250925050915091565b610f618160a0015173__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5291906125c9565b64ffffffffff90811691161090565b15610fda5773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015610faf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd39190611fb2565b606e610ed3565b806060015163ffffffff16816080015163ffffffff16106110695773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561103e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110629190611fb2565b6078610ed3565b6040810151600a610ed3565b604080516102008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018190526101208201526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e08101919091526002546000906001600160a01b03166354f6127f6111128561098f565b6040518263ffffffff1660e01b815260040161113091815260200190565b600060405180830381865afa15801561114d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111759190810190612010565b8051909150156106aa57808060200190518101906106a391906125f6565b6111f260405180610120016040528060608152602001600081526020016000815260200160008152602001600063ffffffff168152602001600063ffffffff168152602001600015158152602001600015158152602001606081525090565b6002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$5906aa3f06c54ee09b434647963e1d1ed0$__906355ee627590602401602060405180830381865af4158015611261573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112859190611fb2565b6040518263ffffffff1660e01b81526004016112a391815260200190565b600060405180830381865afa1580156112c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e89190810190612010565b8051909150156106aa57808060200190518101906106a3919061276a565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416608c6106d9565b60005460ff16156113955760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030303a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084015b60405180910390fd5b6001600160a01b0382166113eb5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4352442d3030313a52454749535452595f5a45524f0000000000604482015260640161138c565b6040516330b8415f60e01b81526001600160601b038216600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611443573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146791906125ae565b6114b35760405162461bcd60e51b815260206004820152601960248201527f4552524f523a4352442d3030323a4e46545f49445f5a45524f00000000000000604482015260640161138c565b60008054610100600160a81b0319166101006001600160a01b03858116820292909217808455600180546bffffffffffffffffffffffff19166001600160601b0387169081179091556040516305247a1760e51b815260048101919091529190049091169063a48f42e090602401600060405180830381865afa15801561153e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115669190810190612861565b90506115838160400151611578604690565b60ff90811691161490565b6115d95760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030333a504152454e545f4e4f545f494e5354414e436044820152604560f81b606482015260840161138c565b60800151600180546001600160601b0316600160601b6001600160a01b03909316928302178155600280546001600160a01b0319169092179091556000805460ff191690911790555050565b61162d6116bb565b6002546000906001600160a01b03166354f6127f610b64856106b0565b60408051610100810182526000808252602080830182905282840182905283518085018552828152808201839052606084015283518085018552828152808201839052608084015283518085019094528184528301529060a08201905b815260006020820181905260409091015290565b604080516101408101825260008082526020808301829052828401829052606083018290528351808501855282815280820183905260808401528351808501855282815280820183905260a08401528351808501855282815280820183905260c08401528351808501855282815280820183905260e08401528351808501855282815280820183905261010084015283518085019094528184528301529061012082015290565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b031681526020016116a7604051806040016040528060008152602001600081525090565b600080604083850312156117bd57600080fd5b8235915060208301358060000b81146117d557600080fd5b809150509250929050565b6001600160c01b0319811681146117f657600080fd5b50565b60006020828403121561180b57600080fd5b81356106a3816117e0565b60005b83811015611831578181015183820152602001611819565b50506000910152565b60008151808452611852816020860160208601611816565b601f01601f19169290920160200192915050565b602081526001600160601b0382511660208201526000602083015160e0604084015261189661010084018261183a565b90506040840151606084015263ffffffff606085015116608084015260808401516118c960a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e08501526118f8828261183a565b95945050505050565b6001600160601b03811681146117f657600080fd5b60006020828403121561192857600080fd5b81356106a381611901565b602081526001600160401b0360c01b825116602082015260208201511515604082015260006040830151606080840152611970608084018261183a565b949350505050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156119b0576119b0611978565b60405290565b604080519081016001600160401b03811182821017156119b0576119b0611978565b60405161010081016001600160401b03811182821017156119b0576119b0611978565b60405161014081016001600160401b03811182821017156119b0576119b0611978565b60405160a081016001600160401b03811182821017156119b0576119b0611978565b60405161020081016001600160401b03811182821017156119b0576119b0611978565b60405161012081016001600160401b03811182821017156119b0576119b0611978565b604051601f8201601f191681016001600160401b0381118282101715611aae57611aae611978565b604052919050565b60006001600160401b03821115611acf57611acf611978565b50601f01601f191660200190565b60008060408385031215611af057600080fd5b8235611afb81611901565b915060208301356001600160401b03811115611b1657600080fd5b8301601f81018513611b2757600080fd5b8035611b3a611b3582611ab6565b611a86565b818152866020838501011115611b4f57600080fd5b816020840160208301376000602083830101528093505050509250929050565b600060208284031215611b8157600080fd5b5035919050565b81516001600160601b031681526020808301516001600160a01b03169082015260408083015190820152606080830151610160830191611bd49084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c0830151151561012083015260e08301516001600160a01b0381166101408401525092915050565b602081526001600160601b03825116602082015260006020830151604080840152611970606084018261183a565b80516001600160a01b031682526020810151611c8260208401826001600160a01b03169052565b506040810151611c9d60408401826001600160601b03169052565b506060810151611cb860608401826001600160601b03169052565b506080810151611cd5608084018280518252602090810151910152565b5060a0810151805160c0840152602081015160e08401525060c0810151610100611d0b8185018380518252602090810151910152565b60e0830151805161014086015260208101516101608601529150820151805161018085015260208101516101a0850152905050610120015180516101c0830152602001516101e090910152565b61020081016105518284611c5b565b60208152611d816020820183516001600160601b03169052565b60006020830151611d9d60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e08301516101008181850152808501519150506102006101208181860152611e1561022086018461183a565b9250808601519050610140601f198685030181870152611e35848361183a565b935080870151915050610160611e508187018361ffff169052565b8601519050610180611e678682018361ffff169052565b8601516101a08681019190915286015190506101c0611e8e8187018364ffffffffff169052565b86015190506101e0611ea88682018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b6020815260008251610120806020850152611ede61014085018361183a565b91506020850151604085015260408501516060850152606085015160808501526080850151611f1560a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e0850151610100611f4b8187018315159052565b860151858403601f1901838701529050611f65838261183a565b9695505050505050565b6001600160a01b03811681146117f657600080fd5b60008060408385031215611f9757600080fd5b8235611fa281611f6f565b915060208301356117d581611901565b600060208284031215611fc457600080fd5b5051919050565b600082601f830112611fdc57600080fd5b8151611fea611b3582611ab6565b818152846020838601011115611fff57600080fd5b611970826020830160208701611816565b60006020828403121561202257600080fd5b81516001600160401b0381111561203857600080fd5b61197084828501611fcb565b805161204f81611901565b919050565b63ffffffff811681146117f657600080fd5b805161204f81612054565b805164ffffffffff8116811461204f57600080fd5b60006020828403121561209857600080fd5b81516001600160401b03808211156120af57600080fd5b9083019060e082860312156120c357600080fd5b6120cb61198e565b6120d483612044565b81526020830151828111156120e857600080fd5b6120f487828601611fcb565b6020830152506040830151604082015261211060608401612066565b606082015261212160808401612066565b608082015261213260a08401612071565b60a082015260c08301518281111561214957600080fd5b61215587828601611fcb565b60c08301525095945050505050565b805161204f816117e0565b8051801515811461204f57600080fd5b60006020828403121561219157600080fd5b81516001600160401b03808211156121a857600080fd5b90830190606082860312156121bc57600080fd5b6040516060810181811083821117156121d7576121d7611978565b60405282516121e5816117e0565b81526121f36020840161216f565b602082015260408301518281111561220a57600080fd5b61221687828601611fcb565b60408301525095945050505050565b6001600160601b0383168152604060208201526000611970604083018461183a565b60006020828403121561225957600080fd5b81516106a3816117e0565b805161204f81611f6f565b60006040828403121561228157600080fd5b6122896119b6565b9050815181526020820151602082015292915050565b600061016082840312156122b257600080fd5b6122ba6119d8565b6122c383612044565b81526122d160208401612264565b6020820152604083015160408201526122ed846060850161226f565b60608201526122ff8460a0850161226f565b60808201526123118460e0850161226f565b60a0820152612323610120840161216f565b60c08201526123356101408401612264565b60e08201529392505050565b60006020828403121561235357600080fd5b81516001600160401b038082111561236a57600080fd5b908301906040828603121561237e57600080fd5b6123866119b6565b825161239181611901565b81526020830151828111156123a557600080fd5b6123b187828601611fcb565b60208301525095945050505050565b600061020082840312156123d357600080fd5b6123db6119fb565b90506123e682612264565b81526123f460208301612264565b602082015261240560408301612044565b604082015261241660608301612044565b6060820152612428836080840161226f565b608082015261243a8360c0840161226f565b60a082015261010061244e8482850161226f565b60c083015261246184610140850161226f565b60e083015261247484610180850161226f565b90820152612486836101c0840161226f565b61012082015292915050565b600061020082840312156124a557600080fd5b61054e83836123c0565b600060c082840312156124c157600080fd5b6124c9611a1e565b82516124d481611901565b815260208301516124e481611f6f565b60208201526124f6846040850161226f565b60408201526125076080840161216f565b606082015260a083015161251a81611f6f565b60808201529392505050565b60ff811681146117f657600080fd5b805161204f81612526565b600060a0828403121561255257600080fd5b61255a611a1e565b825161256581612526565b8152602083015161257581612526565b6020820152604083015161258881611f6f565b6040820152606083015161259b81612054565b6060820152608083015161251a81612054565b6000602082840312156125c057600080fd5b61054e8261216f565b6000602082840312156125db57600080fd5b61054e82612071565b805161ffff8116811461204f57600080fd5b60006020828403121561260857600080fd5b81516001600160401b038082111561261f57600080fd5b90830190610200828603121561263457600080fd5b61263c611a40565b61264583612044565b815261265360208401612044565b602082015261266460408401612164565b604082015261267560608401612164565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e082015261010080840151838111156126b657600080fd5b6126c288828701611fcb565b82840152505061012080840151838111156126dc57600080fd5b6126e888828701611fcb565b82840152505061014091506126fe8284016125e4565b8282015261016091506127128284016125e4565b82820152610180915081830151828201526101a09150612733828401612071565b828201526101c09150612747828401612071565b828201526101e0915061275b828401612071565b91810191909152949350505050565b60006020828403121561277c57600080fd5b81516001600160401b038082111561279357600080fd5b9083019061012082860312156127a857600080fd5b6127b0611a63565b8251828111156127bf57600080fd5b6127cb87828601611fcb565b8252506020830151602082015260408301516040820152606083015160608201526127f860808401612066565b608082015261280960a08401612066565b60a082015261281a60c0840161216f565b60c082015261282b60e0840161216f565b60e0820152610100808401518381111561284457600080fd5b61285088828701611fcb565b918301919091525095945050505050565b60006020828403121561287357600080fd5b81516001600160401b038082111561288a57600080fd5b9083019060e0828603121561289e57600080fd5b6128a661198e565b6128af83612044565b81526128bd60208401612044565b60208201526128ce60408401612535565b60408201526128df6060840161216f565b60608201526128f060808401612264565b608082015261213260a0840161226456fea2646970667358221220fd798b22104f052dcb5adeab9c9482d8efc4ca0d756c0911f6f0b0726589669764736f6c63430008140033",
1082
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101735760003560e01c8063887b1fa9116100de578063bd7d9d8511610097578063dd26287a11610071578063dd26287a1461047c578063de7b5d141461048f578063f2a41374146104a7578063f2b246c3146104bc57600080fd5b8063bd7d9d851461042b578063d06458c61461044b578063d4cda0d81461046b57600080fd5b8063887b1fa9146102b757806390af7064146102d75780639ad69c67146102f7578063a310e2a314610369578063a5961b4c14610394578063b82d7ef51461040157600080fd5b806344aa68361161013057806344aa68361461023057806355e343a91461024357806364eb3a9b146102635780637bfd3217146102765780637e54602a146102895780637e7986691461029c57600080fd5b80631488c845146101785780631d3be4771461019e57806325d03743146101be57806327b1d792146101d157806335898f5d146101f15780633f093cd614610204575b600080fd5b61018b6101863660046117aa565b6104cf565b6040519081526020015b60405180910390f35b6101b16101ac3660046117f9565b610557565b6040516101959190611866565b61018b6101cc366004611916565b6106b0565b6101e46101df366004611916565b61074a565b6040516101959190611933565b61018b6101ff366004611916565b610804565b610217610212366004611add565b610831565b6040516001600160c01b03199091168152602001610195565b61018b61023e366004611b6f565b6108ae565b610256610251366004611916565b6108e9565b6040516101959190611b88565b61018b610271366004611916565b61098f565b61018b610284366004611916565b6109bc565b61018b610297366004611916565b6109e9565b6001546040516001600160601b039091168152602001610195565b6102ca6102c53660046117f9565b610a16565b6040516101959190611c2d565b6102ea6102e5366004611916565b610b3f565b6040516101959190611d58565b61030a610305366004611916565b610be5565b6040805182516001600160601b031681526020808401516001600160a01b0390811682840152848401518051948401949094529201516060808301919091528301511515608080830191909152909201511660a082015260c001610195565b61037c610377366004611916565b610c8b565b6040516001600160a01b039091168152602001610195565b6103a76103a2366004611b6f565b610d39565b6040516101959190815160ff9081168252602080840151909116908201526040808301516001600160a01b03169082015260608083015163ffffffff90811691830191909152608092830151169181019190915260a00190565b61041461040f3660046117f9565b610dcd565b6040805192835260ff909116602083015201610195565b61043e610439366004611916565b611075565b6040516101959190611d67565b61045e6104593660046117f9565b611193565b6040516101959190611ebf565b6002546001600160a01b031661037c565b61018b61048a366004611916565b611306565b600154600160601b90046001600160a01b031661037c565b6104ba6104b5366004611f84565b611333565b005b6102ea6104ca366004611916565b611625565b604051631488c84560e01b815260048101839052600082810b60248301529073__$5ac3274b8cf1e01ea223bf093142af05b0$__90631488c84590604401602060405180830381865af415801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190611fb2565b90505b92915050565b6040805160e08101825260008082526060602083018190529282018190528282018190526080820181905260a082015260c08101919091526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$9f290d768183857d0249ab5bb54619c5ab$__906355ee627590602401602060405180830381865af41580156105fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106229190611fb2565b6040518263ffffffff1660e01b815260040161064091815260200190565b600060405180830381865afa15801561065d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106859190810190612010565b8051909150156106aa57808060200190518101906106a39190612086565b9392505050565b50919050565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660655b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526044015b602060405180830381865af4158015610726573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105519190611fb2565b604080516060808201835260008083526020830152918101919091526002546000906001600160a01b03166354f6127f610783856109e9565b6040518263ffffffff1660e01b81526004016107a191815260200190565b600060405180830381865afa1580156107be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107e69190810190612010565b8051909150156106aa57808060200190518101906106a3919061217f565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660786106d9565b604051631f849e6b60e11b815260009073__$9f290d768183857d0249ab5bb54619c5ab$__90633f093cd69061086d9086908690600401612225565b602060405180830381865af415801561088a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190612247565b604051632255341b60e11b81526004810182905260009073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401610709565b6108f161164a565b6002546000906001600160a01b03166354f6127f61090e85611306565b6040518263ffffffff1660e01b815260040161092c91815260200190565b600060405180830381865afa158015610949573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109719190810190612010565b8051909150156106aa57808060200190518101906106a3919061229f565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d26106d9565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416606e6106d9565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607a6106d9565b6040805180820190915260008152606060208201526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe9190611fb2565b6040518263ffffffff1660e01b8152600401610adc91815260200190565b600060405180830381865afa158015610af9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b219190810190612010565b8051909150156106aa57808060200190518101906106a39190612341565b610b476116bb565b6002546000906001600160a01b03166354f6127f610b64856109bc565b6040518263ffffffff1660e01b8152600401610b8291815260200190565b600060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bc79190810190612010565b8051909150156106aa57808060200190518101906106a39190612492565b610bed611762565b6002546000906001600160a01b03166354f6127f610c0a85610804565b6040518263ffffffff1660e01b8152600401610c2891815260200190565b600060405180830381865afa158015610c45573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c6d9190810190612010565b8051909150156106aa57808060200190518101906106a391906124af565b60025460009081906001600160a01b03166354f6127f610caa856106b0565b6040518263ffffffff1660e01b8152600401610cc891815260200190565b600060405180830381865afa158015610ce5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d0d9190810190612010565b8051909150156106aa57600081806020019051810190610d2d9190612492565b60200151949350505050565b6040805160a081018252600080825260208201819052818301819052606082018190526080820152600254915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c9060240160a060405180830381865afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105519190612540565b6000806000610ddb84610557565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af4158015610e3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e91906125ae565b15610edd5773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed09190611fb2565b60645b9250925050915091565b610f618160a0015173__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5291906125c9565b64ffffffffff90811691161090565b15610fda5773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015610faf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd39190611fb2565b606e610ed3565b806060015163ffffffff16816080015163ffffffff16106110695773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561103e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110629190611fb2565b6078610ed3565b6040810151600a610ed3565b604080516102008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018190526101208201526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e08101919091526002546000906001600160a01b03166354f6127f6111128561098f565b6040518263ffffffff1660e01b815260040161113091815260200190565b600060405180830381865afa15801561114d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111759190810190612010565b8051909150156106aa57808060200190518101906106a391906125f6565b6111f260405180610120016040528060608152602001600081526020016000815260200160008152602001600063ffffffff168152602001600063ffffffff168152602001600015158152602001600015158152602001606081525090565b6002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$5906aa3f06c54ee09b434647963e1d1ed0$__906355ee627590602401602060405180830381865af4158015611261573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112859190611fb2565b6040518263ffffffff1660e01b81526004016112a391815260200190565b600060405180830381865afa1580156112c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e89190810190612010565b8051909150156106aa57808060200190518101906106a3919061276a565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416608c6106d9565b60005460ff16156113955760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030303a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084015b60405180910390fd5b6001600160a01b0382166113eb5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4352442d3030313a52454749535452595f5a45524f0000000000604482015260640161138c565b6040516330b8415f60e01b81526001600160601b038216600482015273__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611443573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146791906125ae565b6114b35760405162461bcd60e51b815260206004820152601960248201527f4552524f523a4352442d3030323a4e46545f49445f5a45524f00000000000000604482015260640161138c565b60008054610100600160a81b0319166101006001600160a01b03858116820292909217808455600180546bffffffffffffffffffffffff19166001600160601b0387169081179091556040516305247a1760e51b815260048101919091529190049091169063a48f42e090602401600060405180830381865afa15801561153e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115669190810190612861565b90506115838160400151611578604690565b60ff90811691161490565b6115d95760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030333a504152454e545f4e4f545f494e5354414e436044820152604560f81b606482015260840161138c565b60800151600180546001600160601b0316600160601b6001600160a01b03909316928302178155600280546001600160a01b0319169092179091556000805460ff191690911790555050565b61162d6116bb565b6002546000906001600160a01b03166354f6127f610b64856106b0565b60408051610100810182526000808252602080830182905282840182905283518085018552828152808201839052606084015283518085018552828152808201839052608084015283518085019094528184528301529060a08201905b815260006020820181905260409091015290565b604080516101408101825260008082526020808301829052828401829052606083018290528351808501855282815280820183905260808401528351808501855282815280820183905260a08401528351808501855282815280820183905260c08401528351808501855282815280820183905260e08401528351808501855282815280820183905261010084015283518085019094528184528301529061012082015290565b6040518060a0016040528060006001600160601b0316815260200160006001600160a01b031681526020016116a7604051806040016040528060008152602001600081525090565b600080604083850312156117bd57600080fd5b8235915060208301358060000b81146117d557600080fd5b809150509250929050565b6001600160c01b0319811681146117f657600080fd5b50565b60006020828403121561180b57600080fd5b81356106a3816117e0565b60005b83811015611831578181015183820152602001611819565b50506000910152565b60008151808452611852816020860160208601611816565b601f01601f19169290920160200192915050565b602081526001600160601b0382511660208201526000602083015160e0604084015261189661010084018261183a565b90506040840151606084015263ffffffff606085015116608084015260808401516118c960a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e08501526118f8828261183a565b95945050505050565b6001600160601b03811681146117f657600080fd5b60006020828403121561192857600080fd5b81356106a381611901565b602081526001600160401b0360c01b825116602082015260208201511515604082015260006040830151606080840152611970608084018261183a565b949350505050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b03811182821017156119b0576119b0611978565b60405290565b604080519081016001600160401b03811182821017156119b0576119b0611978565b60405161010081016001600160401b03811182821017156119b0576119b0611978565b60405161014081016001600160401b03811182821017156119b0576119b0611978565b60405160a081016001600160401b03811182821017156119b0576119b0611978565b60405161020081016001600160401b03811182821017156119b0576119b0611978565b60405161012081016001600160401b03811182821017156119b0576119b0611978565b604051601f8201601f191681016001600160401b0381118282101715611aae57611aae611978565b604052919050565b60006001600160401b03821115611acf57611acf611978565b50601f01601f191660200190565b60008060408385031215611af057600080fd5b8235611afb81611901565b915060208301356001600160401b03811115611b1657600080fd5b8301601f81018513611b2757600080fd5b8035611b3a611b3582611ab6565b611a86565b818152866020838501011115611b4f57600080fd5b816020840160208301376000602083830101528093505050509250929050565b600060208284031215611b8157600080fd5b5035919050565b81516001600160601b031681526020808301516001600160a01b03169082015260408083015190820152606080830151610160830191611bd49084018280518252602090810151910152565b506080830151805160a0840152602081015160c08401525060a0830151805160e084015260208101516101008401525060c0830151151561012083015260e08301516001600160a01b0381166101408401525092915050565b602081526001600160601b03825116602082015260006020830151604080840152611970606084018261183a565b80516001600160a01b031682526020810151611c8260208401826001600160a01b03169052565b506040810151611c9d60408401826001600160601b03169052565b506060810151611cb860608401826001600160601b03169052565b506080810151611cd5608084018280518252602090810151910152565b5060a0810151805160c0840152602081015160e08401525060c0810151610100611d0b8185018380518252602090810151910152565b60e0830151805161014086015260208101516101608601529150820151805161018085015260208101516101a0850152905050610120015180516101c0830152602001516101e090910152565b61020081016105518284611c5b565b60208152611d816020820183516001600160601b03169052565b60006020830151611d9d60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e08301516101008181850152808501519150506102006101208181860152611e1561022086018461183a565b9250808601519050610140601f198685030181870152611e35848361183a565b935080870151915050610160611e508187018361ffff169052565b8601519050610180611e678682018361ffff169052565b8601516101a08681019190915286015190506101c0611e8e8187018364ffffffffff169052565b86015190506101e0611ea88682018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b6020815260008251610120806020850152611ede61014085018361183a565b91506020850151604085015260408501516060850152606085015160808501526080850151611f1560a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e0850151610100611f4b8187018315159052565b860151858403601f1901838701529050611f65838261183a565b9695505050505050565b6001600160a01b03811681146117f657600080fd5b60008060408385031215611f9757600080fd5b8235611fa281611f6f565b915060208301356117d581611901565b600060208284031215611fc457600080fd5b5051919050565b600082601f830112611fdc57600080fd5b8151611fea611b3582611ab6565b818152846020838601011115611fff57600080fd5b611970826020830160208701611816565b60006020828403121561202257600080fd5b81516001600160401b0381111561203857600080fd5b61197084828501611fcb565b805161204f81611901565b919050565b63ffffffff811681146117f657600080fd5b805161204f81612054565b805164ffffffffff8116811461204f57600080fd5b60006020828403121561209857600080fd5b81516001600160401b03808211156120af57600080fd5b9083019060e082860312156120c357600080fd5b6120cb61198e565b6120d483612044565b81526020830151828111156120e857600080fd5b6120f487828601611fcb565b6020830152506040830151604082015261211060608401612066565b606082015261212160808401612066565b608082015261213260a08401612071565b60a082015260c08301518281111561214957600080fd5b61215587828601611fcb565b60c08301525095945050505050565b805161204f816117e0565b8051801515811461204f57600080fd5b60006020828403121561219157600080fd5b81516001600160401b03808211156121a857600080fd5b90830190606082860312156121bc57600080fd5b6040516060810181811083821117156121d7576121d7611978565b60405282516121e5816117e0565b81526121f36020840161216f565b602082015260408301518281111561220a57600080fd5b61221687828601611fcb565b60408301525095945050505050565b6001600160601b0383168152604060208201526000611970604083018461183a565b60006020828403121561225957600080fd5b81516106a3816117e0565b805161204f81611f6f565b60006040828403121561228157600080fd5b6122896119b6565b9050815181526020820151602082015292915050565b600061016082840312156122b257600080fd5b6122ba6119d8565b6122c383612044565b81526122d160208401612264565b6020820152604083015160408201526122ed846060850161226f565b60608201526122ff8460a0850161226f565b60808201526123118460e0850161226f565b60a0820152612323610120840161216f565b60c08201526123356101408401612264565b60e08201529392505050565b60006020828403121561235357600080fd5b81516001600160401b038082111561236a57600080fd5b908301906040828603121561237e57600080fd5b6123866119b6565b825161239181611901565b81526020830151828111156123a557600080fd5b6123b187828601611fcb565b60208301525095945050505050565b600061020082840312156123d357600080fd5b6123db6119fb565b90506123e682612264565b81526123f460208301612264565b602082015261240560408301612044565b604082015261241660608301612044565b6060820152612428836080840161226f565b608082015261243a8360c0840161226f565b60a082015261010061244e8482850161226f565b60c083015261246184610140850161226f565b60e083015261247484610180850161226f565b90820152612486836101c0840161226f565b61012082015292915050565b600061020082840312156124a557600080fd5b61054e83836123c0565b600060c082840312156124c157600080fd5b6124c9611a1e565b82516124d481611901565b815260208301516124e481611f6f565b60208201526124f6846040850161226f565b60408201526125076080840161216f565b606082015260a083015161251a81611f6f565b60808201529392505050565b60ff811681146117f657600080fd5b805161204f81612526565b600060a0828403121561255257600080fd5b61255a611a1e565b825161256581612526565b8152602083015161257581612526565b6020820152604083015161258881611f6f565b6040820152606083015161259b81612054565b6060820152608083015161251a81612054565b6000602082840312156125c057600080fd5b61054e8261216f565b6000602082840312156125db57600080fd5b61054e82612071565b805161ffff8116811461204f57600080fd5b60006020828403121561260857600080fd5b81516001600160401b038082111561261f57600080fd5b90830190610200828603121561263457600080fd5b61263c611a40565b61264583612044565b815261265360208401612044565b602082015261266460408401612164565b604082015261267560608401612164565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e082015261010080840151838111156126b657600080fd5b6126c288828701611fcb565b82840152505061012080840151838111156126dc57600080fd5b6126e888828701611fcb565b82840152505061014091506126fe8284016125e4565b8282015261016091506127128284016125e4565b82820152610180915081830151828201526101a09150612733828401612071565b828201526101c09150612747828401612071565b828201526101e0915061275b828401612071565b91810191909152949350505050565b60006020828403121561277c57600080fd5b81516001600160401b038082111561279357600080fd5b9083019061012082860312156127a857600080fd5b6127b0611a63565b8251828111156127bf57600080fd5b6127cb87828601611fcb565b8252506020830151602082015260408301516040820152606083015160608201526127f860808401612066565b608082015261280960a08401612066565b60a082015261281a60c0840161216f565b60c082015261282b60e0840161216f565b60e0820152610100808401518381111561284457600080fd5b61285088828701611fcb565b918301919091525095945050505050565b60006020828403121561287357600080fd5b81516001600160401b038082111561288a57600080fd5b9083019060e0828603121561289e57600080fd5b6128a661198e565b6128af83612044565b81526128bd60208401612044565b60208201526128ce60408401612535565b60408201526128df6060840161216f565b60608201526128f060808401612264565b608082015261213260a0840161226456fea2646970667358221220fd798b22104f052dcb5adeab9c9482d8efc4ca0d756c0911f6f0b0726589669764736f6c63430008140033",
2313
+ "bytecode": "0x60806040525f805460ff191690553480156017575f80fd5b506153ba806100255f395ff3fe608060405234801561000f575f80fd5b5060043610610464575f3560e01c80636dddada41161024d578063c6a0017911610140578063e444c3df116100bf578063f4809edd11610084578063f4809edd14610bae578063fad77c3b14610bc1578063fcad2c4b14610bd4578063fd80249214610be7578063febe92af14610c07575f80fd5b8063e444c3df14610b1f578063e98413ff14610b3f578063f0b1d21014610b68578063f0ea17c314610b7b578063f3ed991914610b9b575f80fd5b8063d78a83b111610105578063d78a83b114610ac2578063db70354c14610ad5578063de7b5d1414610ae8578063dfbf164014610af9578063e2eb023b14610b0c575f80fd5b8063c6a0017914610a6c578063c71e261f14610a7f578063c88105e614610a87578063d06458c614610a9a578063d299bf6214610aba575f80fd5b80638eb9000d116101cc578063a7ef3d2111610191578063a7ef3d21146109dd578063b82d7ef5146109fd578063ba579bdc14610a31578063ba62fbe414610a44578063bd7d9d8514610a4c575f80fd5b80638eb9000d1461094d5780639096a1f31461096057806394b9929b14610973578063a310e2a314610986578063a5961b4c14610999575f80fd5b80637e798669116102125780637e798669146108f75780637f0cf947146108ff5780638129fc1c1461091257806387c73e5a1461091a578063887b1fa91461092d575f80fd5b80636dddada41461089a5780636ebed908146108ab578063728a61a8146108be57806378ae9350146108d15780637d8f1e81146108e4575f80fd5b8063311adb68116103655780634a4fbeec116102e4578063605aa10a116102a9578063605aa10a1461082c5780636553994c1461083f57806366c3bc95146108525780636791f7ab146108655780636a05a4131461087a575f80fd5b80634a4fbeec146107b15780634d21a63d146107c457806357f80bbf146107d75780635ab1bd53146107f75780635bfa50271461080c575f80fd5b80633b046f091161032a5780633b046f091461070a5780633f093cd6146107305780633fd85561146107435780634793b4ab1461076e578063480cebd11461078e575f80fd5b8063311adb68146106b857806333fc7dee146106c957806335471f80146106dc578063380bd950146106ef578063392f5f6414610702575f80fd5b80631488c845116103f157806324913ce6116103b657806324913ce61461061657806326d60fb41461066a57806327b1d792146106725780632c0cd060146106925780632f458a11146106a5575f80fd5b80631488c8451461059d57806315b74532146105b057806315fb0abb146105c35780631d3be477146105e3578063228e42ec14610603575f80fd5b80630e0c586d116104375780630e0c586d146104fe57806310bf267b14610523578063128817d41461054a57806312e1ebc51461056a57806313ab148d1461058a575f80fd5b80630232ca4914610468578063030149741461049857806309648a9d146104b95780630b5d931c146104de575b5f80fd5b61047b610476366004613240565b610c27565b6040516001600160601b0390911681526020015b60405180910390f35b6104ab6104a636600461326f565b610ca1565b60405190815260200161048f565b6104cc6104c736600461328a565b610d14565b60405160ff909116815260200161048f565b6104f16104ec366004613240565b610d80565b60405161048f91906132e4565b6006546001600160a01b03165b6040516001600160a01b03909116815260200161048f565b61053661053136600461338b565b610e36565b60405162ffffff909116815260200161048f565b61055d6105583660046133c2565b610e4c565b60405161048f91906133ec565b61057d610578366004613415565b610ece565b60405161048f9190613444565b6104ab610598366004613240565b610f5d565b61050b6105ab366004613493565b610f96565b61047b6105be36600461328a565b611012565b6105d66105d13660046136ea565b611043565b60405161048f9190613736565b6105f66105f136600461377d565b6110d3565b60405161048f91906137c6565b61047b610611366004613240565b611182565b610629610624366004613884565b6111bb565b60408051835181526020808501516001600160e01b031916908201529281015164ffffffffff16908301526001600160401b0316606082015260800161048f565b6104ab611255565b610685610680366004613240565b6112c5565b60405161048f91906138a0565b61047b6106a0366004613240565b611358565b6104ab6106b3366004613240565b611378565b6002546001600160a01b031661050b565b6104ab6106d7366004613240565b6113b1565b6104ab6106ea366004613415565b6113ea565b61047b6106fd3660046138ec565b61141b565b6104ab611497565b61071d610718366004613240565b6114de565b60405161ffff909116815260200161048f565b61055d61073e366004613908565b6114f2565b61075661075136600461328a565b611548565b6040516001600160401b03909116815260200161048f565b61078161077c366004613240565b6115bb565b60405161048f9190613945565b6107a161079c3660046139b9565b611677565b604051901515815260200161048f565b6107a16107bf366004613415565b6116f3565b61050b6107d2366004613240565b61175f565b6107ea6107e5366004613240565b6117c6565b60405161048f91906139e5565b5f5461010090046001600160a01b031661050b565b61081f61081a36600461326f565b61186d565b60405161048f9190613a6b565b6107a161083a366004613415565b611911565b6104ab61084d36600461377d565b611943565b6107a161086036600461326f565b611973565b610878610873366004613415565b6119ac565b005b61088d610888366004613240565b611e04565b60405161048f9190613adb565b6005546001600160a01b031661050b565b61047b6108b93660046133c2565b611e81565b61050b6108cc36600461328a565b611ec1565b6104cc6108df36600461338b565b611f2c565b6104cc6108f2366004613240565b612028565b61047b612035565b6107a161090d3660046139b9565b6120a8565b6108786120e9565b6107a161092836600461326f565b612117565b61094061093b36600461377d565b612150565b60405161048f9190613b62565b61047b61095b366004613240565b6121d7565b6104cc61096e366004613240565b612210565b6104ab610981366004613240565b61224a565b61050b610994366004613240565b612283565b6109ac6109a736600461328a565b61231c565b60408051825160ff9081168252602080850151909116908201529181015164ffffffffff169082015260600161048f565b6109f06109eb36600461338b565b61239f565b60405161048f9190613ba0565b610a10610a0b36600461377d565b612457565b604080516001600160a01b03909316835260ff90911660208301520161048f565b6107a1610a3f366004613240565b6125cc565b6104ab61262a565b610a5f610a5a366004613240565b6126a3565b60405161048f9190613c3a565b6107a1610a7a36600461326f565b612799565b6104ab6127d2565b6104cc610a95366004613240565b612819565b610aad610aa836600461377d565b612835565b60405161048f9190613da5565b6107566128f4565b61050b610ad0366004613e83565b6128fd565b61047b610ae33660046133c2565b612953565b6001546001600160a01b031661050b565b61050b610b07366004613240565b612993565b6104ab610b1a366004613415565b6129eb565b610b32610b2d366004613240565b612a44565b60405161048f9190613e9f565b610b52610b4d36600461409f565b612b47565b60405164ffffffffff909116815260200161048f565b6107a1610b763660046140cb565b612bd9565b610b8e610b89366004613240565b612c22565b60405161048f91906140f7565b6104cc610ba9366004614145565b612ca9565b61055d610bbc3660046133c2565b612d10565b61071d610bcf36600461328a565b612d50565b6104cc610be236600461377d565b612dd3565b610bfa610bf5366004614145565b612e69565b60405161048f9190614171565b610c1a610c1536600461326f565b612f16565b60405161048f91906141cf565b600354604051630232ca4960e01b81526001600160601b03831660048201525f916001600160a01b031690630232ca49906024015b602060405180830381865afa158015610c77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906142a0565b92915050565b60025460405162c0525d60e21b81526001600160401b03831660048201525f916001600160a01b0316906303014974906024015b602060405180830381865afa158015610cf0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906142bb565b6003546040516309648a9d60e01b8152600481018390525f916001600160a01b0316906309648a9d906024015b602060405180830381865afa158015610d5c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906142eb565b60408051610100810182525f8082526020820181905281830181905260608083018290526080830182905260a0830182905260c083019190915260e08201526004805492516302d764c760e21b81526001600160601b0385169181019190915290916001600160a01b031690630b5d931c906024015f60405180830381865afa158015610e0f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b919081019061439d565b5f610e41838361239f565b606001519392505050565b6006546040516304a205f560e21b81526001600160601b0384166004820152602481018390525f916001600160a01b03169063128817d4906044015b602060405180830381865afa158015610ea3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec7919061448a565b9392505050565b604080516080810182525f8082526020820181905291810182905260608101919091526002546040516312e1ebc560e01b81526001600160a01b038481166004830152909116906312e1ebc590602401608060405180830381865afa158015610f39573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906144b0565b6005546040516313ab148d60e01b81526001600160601b03831660048201525f916001600160a01b0316906313ab148d90602401610cd5565b604051631488c84560e01b8152600481018390525f82810b60248301529073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c84590604401602060405180830381865af4158015610fee573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec7919061451c565b600154604051630adba29960e11b8152600481018390525f916001600160a01b0316906315b7453290602401610c5c565b604080516060810182525f808252602082018190528183015290516315fb0abb60e01b815273__$7ca0443fea8aec4ba68c2e8d18c5a8d73e$__906315fb0abb906110949086908690600401614537565b606060405180830381865af41580156110af573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906145a3565b60408051610100810182525f8082526020820181905281830181905260608083018290526080830182905260a083019190915260c0820181905260e08201526003549151631d3be47760e01b815290916001600160a01b031690631d3be477906111419085906004016133ec565b5f60405180830381865afa15801561115b573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b919081019061461f565b6003546040516308a390bb60e21b81526001600160601b03831660048201525f916001600160a01b03169063228e42ec90602401610c5c565b604080516060810182525f80825260208201819052918101919091526002546040516312489e7360e11b81526001600160a01b038581166004830152602482018590525f9216906324913ce690604401608060405180830381865afa158015611226573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061124a919061470c565b915091509250929050565b600254604080516309b583ed60e21b815290515f926001600160a01b0316916326d60fb49160048083019260209291908290030181865afa15801561129c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112c091906142bb565b905090565b604080516080810182525f808252602082018190528183015260608082015260035491516313d8ebc960e11b81526001600160601b038416600482015290916001600160a01b0316906327b1d792906024015f60405180830381865afa158015611331573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614737565b5f80611363836126a3565b9050610ec78160600151826101000151612fc9565b600654604051632f458a1160e01b81526001600160601b03831660048201525f916001600160a01b031690632f458a1190602401610cd5565b6006546040516319fe3ef760e11b81526001600160601b03831660048201525f916001600160a01b0316906333fc7dee90602401610cd5565b600254604051626a8e3f60e71b81526001600160a01b0383811660048301525f9216906335471f8090602401610cd5565b6006546040516346cad99560e11b81526001600160c01b031984166004820152602481018390525f916001600160a01b031690638d95b32a906044015b602060405180830381865afa158015611473573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906142a0565b60025460408051630e4bd7d960e21b815290515f926001600160a01b03169163392f5f649160048083019260209291908290030181865afa15801561129c573d5f803e3d5ffd5b5f6114e8826126a3565b60c0015192915050565b604051631f849e6b60e11b81525f9073__$05887d5853069c88bcd4c0a2107db45f29$__90633f093cd69061152d90869086906004016147d6565b602060405180830381865af4158015610ea3573d5f803e3d5ffd5b600254604051633fd8556160e01b81526001600160401b03831660048201525f916001600160a01b031690633fd8556190602401602060405180830381865afa158015611597573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906147f7565b6116026040805160c0810182525f80825260208083018290528284018290526060830182905283518085019094528184528301529060808201908152602001606081525090565b600354604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b0390911690634793b4ab906024015f60405180830381865afa158015611650573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614852565b60025460405163480cebd160e01b81526001600160401b03841660048201526001600160a01b0383811660248301525f92169063480cebd1906044015b602060405180830381865afa1580156116cf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec79190614916565b600254604051629b7b3560e61b81526001600160a01b0383811660048301525f9216906326decd40906024015b602060405180830381865afa15801561173b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190614916565b5f8061176a83612c22565b60208101519091506001600160a01b0316156117c05780602001516001600160a01b031663132996046040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fee573d5f803e3d5ffd5b50919050565b6040805160e0810182525f80825260208201819052818301819052606082018190526080820181905260a0820181905260c082015260035491516357f80bbf60e01b81526001600160601b038416600482015290916001600160a01b0316906357f80bbf9060240160e060405180830381865afa158015611849573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b919061492f565b6040805160c0810182525f80825260208201819052918101829052606081018290526080810182905260a0810191909152600254604051635bfa502760e01b81526001600160401b03841660048201526001600160a01b0390911690635bfa50279060240160c060405180830381865afa1580156118ed573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906149c7565b60025460405163302d508560e11b81526001600160a01b0383811660048301525f92169063605aa10a90602401611720565b60065460405163380d295960e21b81525f916001600160a01b03169063e034a56490610cd59085906004016133ec565b6002546040516366c3bc9560e01b81526001600160401b03831660048201525f916001600160a01b0316906366c3bc9590602401611720565b5f5460ff16156119cf5760405163ae9eff1b60e01b815260040160405180910390fd5b5f805460ff1916600190811790915580546001600160a01b0383166001600160a01b03199091168117909155604080516306235b6d60e31b8152905163311adb68916004808201926020929091908290030181865afa158015611a34573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a58919061451c565b600280546001600160a01b0319166001600160a01b0392831617905560015460408051635ab1bd5360e01b815290519190921691635ab1bd539160048083019260209291908290030181865afa158015611ab4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ad8919061451c565b5f8054610100600160a81b0319166101006001600160a01b039384160217905560015460408051631a99b41b60e31b81529051919092169163d4cda0d89160048083019260209291908290030181865afa158015611b38573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b5c919061451c565b600380546001600160a01b0319166001600160a01b0392831617905560015460408051635bd8162760e11b81529051919092169163b7b02c4e9160048083019260209291908290030181865afa158015611bb8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdc919061451c565b600480546001600160a01b0319166001600160a01b0392831617815560015460408051631b776b6960e21b815290519190931692636dddada492818101926020929091908290030181865afa158015611c37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c5b919061451c565b600580546001600160a01b0319166001600160a01b0392831617905560015460408051630e0c586d60e01b815290519190921691630e0c586d9160048083019260209291908290030181865afa158015611cb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cdb919061451c565b600680546001600160a01b0319166001600160a01b039283161790555f5461010090041663d39e6043600e60015f9054906101000a90046001600160a01b03166001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d56573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d7a91906142eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611dbd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611de1919061451c565b600780546001600160a01b0319166001600160a01b039290921691909117905550565b611e0c613151565b60048054604051636a05a41360e01b81526001600160601b038516928101929092526001600160a01b031690636a05a413906024016101c060405180830381865afa158015611e5d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190614a4e565b600554604051630dd7db2160e31b81526001600160601b0384166004820152602481018390525f916001600160a01b031690636ebed90890604401611458565b600254604051630e514c3560e31b8152600481018390525f916001600160a01b03169063728a61a890602401602060405180830381865afa158015611f08573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b919061451c565b60048054604051637d56159160e11b815261ffff8416928101929092526001600160601b03841660248301525f916001600160a01b03909116906309648a9d9073__$9e81531fe4994e01e99541f86b55500b4b$__9063faac2b22906044015b602060405180830381865af4158015611fa7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fcb91906142bb565b6040518263ffffffff1660e01b8152600401611fe991815260200190565b602060405180830381865afa158015612004573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906142eb565b5f610c9b6104c783613029565b5f8054600154604051632f2a35f760e11b81526001600160a01b0391821660048201526101009092041690635e546bee90602401602060405180830381865afa158015612084573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112c091906142a0565b600254604051637f0cf94760e01b81526001600160401b03841660048201526001600160a01b0383811660248301525f921690637f0cf947906044016116b4565b5f5460ff161561210c5760405163ae9eff1b60e01b815260040160405180910390fd5b612115336119ac565b565b6002546040516343e39f2d60e11b81526001600160401b03831660048201525f916001600160a01b0316906387c73e5a90602401611720565b60408051606080820183525f80835260208301528183015260048054925163887b1fa960e01b815291926001600160a01b03169163887b1fa991612196918691016133ec565b5f60405180830381865afa1580156121b0573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614adf565b600354604051638eb9000d60e01b81526001600160601b03831660048201525f916001600160a01b031690638eb9000d90602401610c5c565b6004545f906001600160a01b03166309648a9d61222c84613085565b6040518263ffffffff1660e01b8152600401610d4191815260200190565b6005546040516394b9929b60e01b81526001600160601b03831660048201525f916001600160a01b0316906394b9929b90602401610cd5565b60035460405163f0ea17c360e01b81526001600160601b03831660048201525f9182916001600160a01b039091169063f0ea17c3906024015f60405180830381865afa1580156122d5573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526122fc9190810190614b6f565b60208101519091506001600160a01b0316156117c0576020015192915050565b604080516060810182525f8082526020820181905281830152600354915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c90602401606060405180830381865afa15801561237b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190614bf0565b6040805160e0810182525f808252602082018190528183018190526060808301829052608083019190915260a0820181905260c082015260048054925163a7ef3d2160e01b81526001600160601b0386169181019190915261ffff8416602482015290916001600160a01b03169063a7ef3d21906044015f60405180830381865afa158015612430573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610ec79190810190614c4f565b5f8054819061010090046001600160a01b031663d39e6043600e60015f9054906101000a90046001600160a01b03166001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124c1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124e591906142eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612528573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061254c919061451c565b60405163eed2831560e01b81523060048201526001600160c01b0319851660248201526001600160a01b03919091169063eed28315906044016040805180830381865afa15801561259f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125c39190614d38565b91509150915091565b60405163034159f960e41b81523060048201526001600160601b03821660248201525f9073__$d4f8ac2ac7f53dfb2fb9ff92adbd6d29df$__906334159f9090604401602060405180830381865af415801561173b573d5f803e3d5ffd5b60025460408051632e98bef960e21b815290515f926001600160a01b03169163ba62fbe49160048083019260209291908290030181865afa158015612671573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061269591906147f7565b6001600160401b0316905090565b60408051610200810182525f8082526020820181905281830181905260608083018290526080830182905260a0830182905260c0830182905260e08301829052610100830182905261012083018290526101408301829052610160830182905261018083018290526101a08301919091526101c082018190526101e082015260048054925163bd7d9d8560e01b81526001600160601b0385169181019190915290916001600160a01b03169063bd7d9d85906024015f60405180830381865afa158015612772573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614d70565b60025460405163c6a0017960e01b81526001600160401b03831660048201525f916001600160a01b03169063c6a0017990602401611720565b6001546040805163c71e261f60e01b815290515f926001600160a01b03169163c71e261f9160048083019260209291908290030181865afa15801561129c573d5f803e3d5ffd5b6004545f906001600160a01b03166309648a9d61222c846130b1565b60408051610140810182525f8082526020820181905281830181905260608083018290526080830182905260a0830182905260c0830182905260e0830191909152610100820181905261012082015260035491516368322c6360e11b815290916001600160a01b03169063d06458c6906128b39085906004016133ec565b5f60405180830381865afa1580156128cd573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614f03565b5f6112c06130dd565b60025460405163d78a83b160e01b81526001600160401b0384166004820152602481018390525f916001600160a01b03169063d78a83b190604401602060405180830381865afa158015610fee573d5f803e3d5ffd5b6005546040516336dc0d5360e21b81526001600160601b0384166004820152602481018390525f916001600160a01b03169063db70354c90604401611458565b5f8061299e83612283565b90506001600160a01b038116156117c057806001600160a01b03166382bfefc86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fee573d5f803e3d5ffd5b60405163e2eb023b60e01b81526001600160a01b03821660048201525f9073__$bf7bc340cbb9229ef1de2c568356e67902$__9063e2eb023b906024015b602060405180830381865af4158015610cf0573d5f803e3d5ffd5b60408051610240810182525f80825260208201819052818301819052606082018190526080820181905260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905261018082018190526101a082018190526101c082018190526101e08201819052610200820181905261022082015260048054925163e444c3df60e01b81526001600160601b0385169181019190915290916001600160a01b03169063e444c3df9060240161024060405180830381865afa158015612b23573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190615024565b5f73__$0f9396e6447a4be57af83e53f51d234633$__6359fad7ca84612b6e85600161519a565b6040516001600160e01b031960e085901b16815261ffff909216600483015262ffffff166024820152604401602060405180830381865af4158015612bb5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906151b5565b6007546040516309741ce160e21b81526001600160601b03841660048201526001600160c01b0319831660248201525f916001600160a01b0316906325d07384906044016116b4565b604080518082018252606081525f6020820152600354915163f0ea17c360e01b81526001600160601b038416600482015290916001600160a01b03169063f0ea17c3906024015f60405180830381865afa158015612c82573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614b6f565b60048054604051632867b75960e21b815264ffffffffff8416928101929092526001600160601b03841660248301525f916001600160a01b03909116906309648a9d9073__$0f9396e6447a4be57af83e53f51d234633$__9063a19edd6490604401611f8c565b60065460405163f4809edd60e01b81526001600160601b0384166004820152602481018390525f916001600160a01b03169063f4809edd90604401610e88565b5f73__$9e81531fe4994e01e99541f86b55500b4b$__639cc45a36612d768460016151d0565b6040518263ffffffff1660e01b8152600401612d9491815260200190565b602060405180830381865af4158015612daf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906151e3565b600480546040516355ee627560e01b81525f926001600160a01b03909216916309648a9d9173__$32e9ecefef68cb354d118e0496fdd3f4bc$__916355ee627591612e2a916001600160c01b0319891691016133ec565b602060405180830381865af4158015612e45573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061222c91906142bb565b6040805160a0810182525f808252602082018190528183018190526060808301919091526080820152600480549251637ec0124960e11b81526001600160601b0386169181019190915264ffffffffff8416602482015290916001600160a01b03169063fd802492906044015f60405180830381865afa158015612eef573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610ec791908101906151fe565b60408051610100810182525f808252602082018190528183018190526060808301829052608083019190915260a0820181905260c0820181905260e0820152600354915163febe92af60e01b81526001600160401b038416600482015290916001600160a01b03169063febe92af906024015f60405180830381865afa158015612fa2573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b91908101906152b4565b6040516363cf551160e11b81526001600160601b038084166004830152821660248201525f9073__$3bac17678db7ae928afa209f2f44deec9c$__9063c79eaa2290604401602060405180830381865af4158015611473573d5f803e3d5ffd5b5f73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660165b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401612a29565b5f73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b0384166015613051565b5f73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416602b613051565b6040516368aebf7b60e01b8152600560048201525f9073__$1d92393fa9ccd763988368ce8a1cb90d26$__906368aebf7b90602401602060405180830381865af415801561312d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112c091906147f7565b6040805161012081019091525f60e082018181526101008301919091528190815260200161318e604080518082019091525f808252602082015290565b81526020016131ac604080518082019091525f808252602082015290565b81526020016131ca604080518082019091525f808252602082015290565b81526020016131e8604080518082019091525f808252602082015290565b8152602001613206604080518082019091525f808252602082015290565b8152602001613224604080518082019091525f808252602082015290565b905290565b6001600160601b038116811461323d575f80fd5b50565b5f60208284031215613250575f80fd5b8135610ec781613229565b6001600160401b038116811461323d575f80fd5b5f6020828403121561327f575f80fd5b8135610ec78161325b565b5f6020828403121561329a575f80fd5b5035919050565b5f8151808452602084019350602083015f5b828110156132da5781516001600160601b03168652602095860195909101906001016132b3565b5093949350505050565b602081528151151560208201526020820151151560408201525f6040830151613311606084018215159052565b50606083015160ff8116608084015250608083015160ff811660a08401525060a08301516001600160601b03811660c08401525060c08301516001600160601b03811660e08401525060e0830151610100808401526133746101208401826132a1565b949350505050565b61ffff8116811461323d575f80fd5b5f806040838503121561339c575f80fd5b82356133a781613229565b915060208301356133b78161337c565b809150509250929050565b5f80604083850312156133d3575f80fd5b82356133de81613229565b946020939093013593505050565b6001600160c01b031991909116815260200190565b6001600160a01b038116811461323d575f80fd5b5f60208284031215613425575f80fd5b8135610ec781613401565b634e487b7160e01b5f52602160045260245ffd5b81518152602082015160808201906007811061346257613462613430565b806020840152506001600160401b03604084015116604083015264ffffffffff606084015116606083015292915050565b5f80604083850312156134a4575f80fd5b8235915060208301355f81900b81146133b7575f80fd5b6001600160e01b03198116811461323d575f80fd5b634e487b7160e01b5f52604160045260245ffd5b60405161010081016001600160401b0381118282101715613507576135076134d0565b60405290565b604051608081016001600160401b0381118282101715613507576135076134d0565b604051606081016001600160401b0381118282101715613507576135076134d0565b604080519081016001600160401b0381118282101715613507576135076134d0565b60405160c081016001600160401b0381118282101715613507576135076134d0565b60405160e081016001600160401b0381118282101715613507576135076134d0565b60405161020081016001600160401b0381118282101715613507576135076134d0565b60405161014081016001600160401b0381118282101715613507576135076134d0565b60405161024081016001600160401b0381118282101715613507576135076134d0565b60405160a081016001600160401b0381118282101715613507576135076134d0565b604051601f8201601f191681016001600160401b038111828210171561366a5761366a6134d0565b604052919050565b5f6001600160401b0382111561368a5761368a6134d0565b50601f01601f191660200190565b5f82601f8301126136a7575f80fd5b81356136ba6136b582613672565b613642565b8181528460208386010111156136ce575f80fd5b816020850160208301375f918101602001919091529392505050565b5f80604083850312156136fb575f80fd5b8235613706816134bb565b915060208301356001600160401b03811115613720575f80fd5b61372c85828601613698565b9150509250929050565b815181526020808301516001600160e01b0319169082015260408083015164ffffffffff169082015260608101610c9b565b6001600160c01b03198116811461323d575f80fd5b5f6020828403121561378d575f80fd5b8135610ec781613768565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526001600160601b0382511660208201525f60208301516137f560408401826001600160601b03169052565b50604083015163ffffffff8116606084015250606083015163ffffffff811660808401525060808301516001600160a01b03811660a08401525060a083015164ffffffffff811660c08401525060c083015161010060e084015261385d610120840182613798565b905060e0840151601f198483030161010085015261387b8282613798565b95945050505050565b5f8060408385031215613895575f80fd5b82356133de81613401565b602081526001600160401b0360c01b825116602082015260208201511515604082015263ffffffff60408301511660608201525f606083015160808084015261337460a0840182613798565b5f80604083850312156138fd575f80fd5b82356133de81613768565b5f8060408385031215613919575f80fd5b823561370681613229565b80516001600160a01b031682526020908101516001600160601b0316910152565b6020815264ffffffffff825116602082015264ffffffffff602083015116604082015264ffffffffff60408301511660608201526001600160601b0360608301511660808201525f608083015161399f60a0840182613924565b5060a083015160e080840152613374610100840182613798565b5f80604083850312156139ca575f80fd5b82356139d58161325b565b915060208301356133b781613401565b5f60e0820190506001600160601b03835116825260018060a01b03602084015116602083015260018060a01b0360408401511660408301526060830151151560608301526080830151613a3c608084018215159052565b5060a0830151613a5060a084018215159052565b5060c0830151613a6460c084018215159052565b5092915050565b81516001600160401b03168152602082015160c082019060048110613a9257613a92613430565b8060208401525063ffffffff604084015116604083015264ffffffffff606084015116606083015264ffffffffff608084015116608083015260a083015160a083015292915050565b5f6101c082019050613aee828451613924565b6020830151613b006040840182613924565b506040830151613b136080840182613924565b506060830151613b2660c0840182613924565b506080830151613b3a610100840182613924565b5060a0830151613b4e610140840182613924565b5060c0830151613a64610180840182613924565b602081526001600160601b03825116602082015264ffffffffff60208301511660408201525f60408301516060808401526133746080840182613798565b602081526001600160601b0382511660208201526001600160601b0360208301511660408201525f6040830151613be0606084018264ffffffffff169052565b50606083015162ffffff8116608084015250608083015162ffffff811660a08401525060a083015160e060c0840152613c1d610100840182613798565b905060c0840151601f198483030160e085015261387b8282613798565b60208152613c546020820183516001600160601b03169052565b5f6020830151613c6f60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160601b03811660808401525060808301516001600160601b03811660a08401525060a08301516001600160c01b0319811660c08401525060c083015161ffff811660e08401525060e083015161ffff8116610100840152506101008301516001600160601b038116610120840152506101208301516001600160601b0381166101408401525061014083015164ffffffffff81166101608401525061016083015164ffffffffff81166101808401525061018083015164ffffffffff81166101a0840152506101a083015164ffffffffff81166101c0840152506101c08301516102006101e0840152613d86610220840182613798565b90506101e0840151601f198483030161020085015261387b8282613798565b60208152613dbf6020820183516001600160a01b03169052565b5f6020830151613dda60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015163ffffffff8116608084015250608083015164ffffffffff811660a08401525060a083015180151560c08401525060c083015180151560e08401525060e08301516001600160a01b03811661010084015250610100830151610140610120840152613e64610160840182613798565b9050610120840151601f198483030161014085015261387b8282613798565b5f8060408385031215613e94575f80fd5b82356133de8161325b565b81516001600160601b0316815261024081016020830151613ecb60208401826001600160601b03169052565b506040830151613ee660408401826001600160601b03169052565b506060830151613f0160608401826001600160601b03169052565b506080830151613f1c60808401826001600160601b03169052565b5060a0830151613f3760a08401826001600160601b03169052565b5060c0830151613f5260c08401826001600160601b03169052565b5060e0830151613f6d60e08401826001600160601b03169052565b50610100830151613f8a6101008401826001600160601b03169052565b50610120830151613fa76101208401826001600160601b03169052565b50610140830151613fc46101408401826001600160601b03169052565b50610160830151613fe16101608401826001600160601b03169052565b50610180830151613ffe6101808401826001600160601b03169052565b506101a083015161401b6101a08401826001600160601b03169052565b506101c08301516140386101c08401826001600160601b03169052565b506101e08301516140556101e08401826001600160601b03169052565b506102008301516140726102008401826001600160601b03169052565b50610220830151613a646102208401826001600160601b03169052565b62ffffff8116811461323d575f80fd5b5f80604083850312156140b0575f80fd5b82356140bb8161337c565b915060208301356133b78161408f565b5f80604083850312156140dc575f80fd5b82356140e781613229565b915060208301356133b781613768565b602081525f8251604060208401526141126060840182613798565b602094909401516001600160a01b0316604093909301929092525090919050565b64ffffffffff8116811461323d575f80fd5b5f8060408385031215614156575f80fd5b823561416181613229565b915060208301356133b781614133565b6020815261ffff82511660208201526001600160601b03602083015116604082015264ffffffffff604083015116606082015260018060a01b0360608301511660808201525f608083015160a08084015261337460c0840182613798565b602081526141e96020820183516001600160601b03169052565b5f602083015161420460408401826001600160601b03169052565b506040830151801515606084015250606083015164ffffffffff8116608084015250608083015164ffffffffff811660a08401525060a083015161010060c0840152614254610120840182613798565b905060c0840151601f198483030160e08501526142718282613798565b91505060e0840151601f198483030161010085015261387b8282613798565b805161429b81613229565b919050565b5f602082840312156142b0575f80fd5b8151610ec781613229565b5f602082840312156142cb575f80fd5b5051919050565b60ff8116811461323d575f80fd5b805161429b816142d2565b5f602082840312156142fb575f80fd5b8151610ec7816142d2565b8051801515811461429b575f80fd5b5f82601f830112614324575f80fd5b81516001600160401b0381111561433d5761433d6134d0565b8060051b61434d60208201613642565b91825260208185018101929081019086841115614368575f80fd5b6020860192505b8383101561439357825161438281613229565b82526020928301929091019061436f565b9695505050505050565b5f602082840312156143ad575f80fd5b81516001600160401b038111156143c2575f80fd5b820161010081850312156143d4575f80fd5b6143dc6134e4565b6143e582614306565b81526143f360208301614306565b602082015261440460408301614306565b6040820152614415606083016142e0565b6060820152614426608083016142e0565b608082015261443760a08301614290565b60a082015261444860c08301614290565b60c082015260e08201516001600160401b03811115614465575f80fd5b61447186828501614315565b60e083015250949350505050565b805161429b81613768565b5f6020828403121561449a575f80fd5b8151610ec781613768565b805161429b81614133565b5f60808284031280156144c1575f80fd5b506144ca61350d565b825181526020830151600781106144df575f80fd5b602082015260408301516144f28161325b565b6040820152606083015161450581614133565b60608201529392505050565b805161429b81613401565b5f6020828403121561452c575f80fd5b8151610ec781613401565b63ffffffff60e01b83168152604060208201525f6133746040830184613798565b5f60608284031215614568575f80fd5b61457061352f565b825181526020830151909150614585816134bb565b6020820152604082015161459881614133565b604082015292915050565b5f606082840312156145b3575f80fd5b610ec78383614558565b805163ffffffff8116811461429b575f80fd5b5f82601f8301126145df575f80fd5b8151602083015f6145f26136b584613672565b9050828152858383011115614605575f80fd5b8282602083015e5f92810160200192909252509392505050565b5f6020828403121561462f575f80fd5b81516001600160401b03811115614644575f80fd5b82016101008185031215614656575f80fd5b61465e6134e4565b61466782614290565b815261467560208301614290565b6020820152614686604083016145bd565b6040820152614697606083016145bd565b60608201526146a860808301614511565b60808201526146b960a083016144a5565b60a082015260c08201516001600160401b038111156146d6575f80fd5b6146e2868285016145d0565b60c08301525060e08201516001600160401b03811115614700575f80fd5b614471868285016145d0565b5f806080838503121561471d575f80fd5b6147278484614558565b915060608301516133b78161325b565b5f60208284031215614747575f80fd5b81516001600160401b0381111561475c575f80fd5b82016080818503121561476d575f80fd5b61477561350d565b815161478081613768565b815261478e60208301614306565b602082015261479f604083016145bd565b604082015260608201516001600160401b038111156147bc575f80fd5b6147c8868285016145d0565b606083015250949350505050565b6001600160601b0383168152604060208201525f6133746040830184613798565b5f60208284031215614807575f80fd5b8151610ec78161325b565b5f60408284031215614822575f80fd5b61482a613551565b9050815161483781613401565b8152602082015161484781613229565b602082015292915050565b5f60208284031215614862575f80fd5b81516001600160401b03811115614877575f80fd5b820160e08185031215614888575f80fd5b614890613573565b815161489b81614133565b815260208201516148ab81614133565b60208201526148bc604083016144a5565b60408201526148cd60608301614290565b60608201526148df8560808401614812565b608082015260c08201516001600160401b038111156148fc575f80fd5b614908868285016145d0565b60a083015250949350505050565b5f60208284031215614926575f80fd5b610ec782614306565b5f60e0828403128015614940575f80fd5b50614949613595565b825161495481613229565b8152602083015161496481613401565b6020820152604083015161497781613401565b604082015261498860608401614306565b606082015261499960808401614306565b60808201526149aa60a08401614306565b60a08201526149bb60c08401614306565b60c08201529392505050565b5f60c08284031280156149d8575f80fd5b506149e1613573565b82516149ec8161325b565b81526020830151600481106149ff575f80fd5b6020820152614a10604084016145bd565b60408201526060830151614a2381614133565b60608201526080830151614a3681614133565b608082015260a0928301519281019290925250919050565b5f6101c0828403128015614a60575f80fd5b50614a69613595565b614a738484614812565b8152614a828460408501614812565b6020820152614a948460808501614812565b6040820152614aa68460c08501614812565b6060820152614ab9846101008501614812565b6080820152614acc846101408501614812565b60a08201526149bb846101808501614812565b5f60208284031215614aef575f80fd5b81516001600160401b03811115614b04575f80fd5b820160608185031215614b15575f80fd5b614b1d61352f565b8151614b2881613229565b81526020820151614b3881614133565b602082015260408201516001600160401b03811115614b55575f80fd5b614b61868285016145d0565b604083015250949350505050565b5f60208284031215614b7f575f80fd5b81516001600160401b03811115614b94575f80fd5b820160408185031215614ba5575f80fd5b614bad613551565b81516001600160401b03811115614bc2575f80fd5b614bce868285016145d0565b82525060208201519150614be182613401565b60208101919091529392505050565b5f6060828403128015614c01575f80fd5b50614c0a61352f565b8251614c15816142d2565b81526020830151614c25816142d2565b60208201526040830151614c3881614133565b60408201529392505050565b805161429b8161408f565b5f60208284031215614c5f575f80fd5b81516001600160401b03811115614c74575f80fd5b820160e08185031215614c85575f80fd5b614c8d613595565b614c9682614290565b8152614ca460208301614290565b6020820152614cb5604083016144a5565b6040820152614cc660608301614c44565b6060820152614cd760808301614c44565b608082015260a08201516001600160401b03811115614cf4575f80fd5b614d00868285016145d0565b60a08301525060c08201516001600160401b03811115614d1e575f80fd5b614d2a868285016145d0565b60c083015250949350505050565b5f8060408385031215614d49575f80fd5b8251614d5481613401565b60208401519092506133b7816142d2565b805161429b8161337c565b5f60208284031215614d80575f80fd5b81516001600160401b03811115614d95575f80fd5b82016102008185031215614da7575f80fd5b614daf6135b7565b614db882614290565b8152614dc660208301614290565b6020820152614dd76040830161447f565b6040820152614de860608301614290565b6060820152614df960808301614290565b6080820152614e0a60a0830161447f565b60a0820152614e1b60c08301614d65565b60c0820152614e2c60e08301614d65565b60e0820152614e3e6101008301614290565b610100820152614e516101208301614290565b610120820152614e6461014083016144a5565b610140820152614e7761016083016144a5565b610160820152614e8a61018083016144a5565b610180820152614e9d6101a083016144a5565b6101a08201526101c08201516001600160401b03811115614ebc575f80fd5b614ec8868285016145d0565b6101c0830152506101e08201516001600160401b03811115614ee8575f80fd5b614ef4868285016145d0565b6101e083015250949350505050565b5f60208284031215614f13575f80fd5b81516001600160401b03811115614f28575f80fd5b82016101408185031215614f3a575f80fd5b614f426135da565b614f4b82614511565b8152614f5960208301614290565b6020820152614f6a60408301614511565b6040820152614f7b606083016145bd565b6060820152614f8c608083016144a5565b6080820152614f9d60a08301614306565b60a0820152614fae60c08301614306565b60c0820152614fbf60e08301614511565b60e08201526101008201516001600160401b03811115614fdd575f80fd5b614fe9868285016145d0565b610100830152506101208201516001600160401b03811115615009575f80fd5b615015868285016145d0565b61012083015250949350505050565b5f610240828403128015615036575f80fd5b5061503f6135fd565b61504883614290565b815261505660208401614290565b602082015261506760408401614290565b604082015261507860608401614290565b606082015261508960808401614290565b608082015261509a60a08401614290565b60a08201526150ab60c08401614290565b60c08201526150bc60e08401614290565b60e08201526150ce6101008401614290565b6101008201526150e16101208401614290565b6101208201526150f46101408401614290565b6101408201526151076101608401614290565b61016082015261511a6101808401614290565b61018082015261512d6101a08401614290565b6101a08201526151406101c08401614290565b6101c08201526151536101e08401614290565b6101e08201526151666102008401614290565b6102008201526151796102208401614290565b6102208201529392505050565b634e487b7160e01b5f52601160045260245ffd5b62ffffff8181168382160190811115610c9b57610c9b615186565b5f602082840312156151c5575f80fd5b8151610ec781614133565b80820180821115610c9b57610c9b615186565b5f602082840312156151f3575f80fd5b8151610ec78161337c565b5f6020828403121561520e575f80fd5b81516001600160401b03811115615223575f80fd5b820160a08185031215615234575f80fd5b61523c613620565b81516152478161337c565b8152602082015161525781613229565b6020820152604082015161526a81614133565b6040820152606082015161527d81613401565b606082015260808201516001600160401b0381111561529a575f80fd5b6152a6868285016145d0565b608083015250949350505050565b5f602082840312156152c4575f80fd5b81516001600160401b038111156152d9575f80fd5b820161010081850312156152eb575f80fd5b6152f36134e4565b6152fc82614290565b815261530a60208301614290565b602082015261531b60408301614306565b604082015261532c606083016144a5565b606082015261533d608083016144a5565b608082015260a08201516001600160401b0381111561535a575f80fd5b615366868285016145d0565b60a08301525060c08201516001600160401b038111156146d6575f80fdfea26469706673582212209b8bcd252dd4a6952da06edc3038db494e136c206e24c0e2b1e21b89e351d88264736f6c634300081a0033",
2314
+ "deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610464575f3560e01c80636dddada41161024d578063c6a0017911610140578063e444c3df116100bf578063f4809edd11610084578063f4809edd14610bae578063fad77c3b14610bc1578063fcad2c4b14610bd4578063fd80249214610be7578063febe92af14610c07575f80fd5b8063e444c3df14610b1f578063e98413ff14610b3f578063f0b1d21014610b68578063f0ea17c314610b7b578063f3ed991914610b9b575f80fd5b8063d78a83b111610105578063d78a83b114610ac2578063db70354c14610ad5578063de7b5d1414610ae8578063dfbf164014610af9578063e2eb023b14610b0c575f80fd5b8063c6a0017914610a6c578063c71e261f14610a7f578063c88105e614610a87578063d06458c614610a9a578063d299bf6214610aba575f80fd5b80638eb9000d116101cc578063a7ef3d2111610191578063a7ef3d21146109dd578063b82d7ef5146109fd578063ba579bdc14610a31578063ba62fbe414610a44578063bd7d9d8514610a4c575f80fd5b80638eb9000d1461094d5780639096a1f31461096057806394b9929b14610973578063a310e2a314610986578063a5961b4c14610999575f80fd5b80637e798669116102125780637e798669146108f75780637f0cf947146108ff5780638129fc1c1461091257806387c73e5a1461091a578063887b1fa91461092d575f80fd5b80636dddada41461089a5780636ebed908146108ab578063728a61a8146108be57806378ae9350146108d15780637d8f1e81146108e4575f80fd5b8063311adb68116103655780634a4fbeec116102e4578063605aa10a116102a9578063605aa10a1461082c5780636553994c1461083f57806366c3bc95146108525780636791f7ab146108655780636a05a4131461087a575f80fd5b80634a4fbeec146107b15780634d21a63d146107c457806357f80bbf146107d75780635ab1bd53146107f75780635bfa50271461080c575f80fd5b80633b046f091161032a5780633b046f091461070a5780633f093cd6146107305780633fd85561146107435780634793b4ab1461076e578063480cebd11461078e575f80fd5b8063311adb68146106b857806333fc7dee146106c957806335471f80146106dc578063380bd950146106ef578063392f5f6414610702575f80fd5b80631488c845116103f157806324913ce6116103b657806324913ce61461061657806326d60fb41461066a57806327b1d792146106725780632c0cd060146106925780632f458a11146106a5575f80fd5b80631488c8451461059d57806315b74532146105b057806315fb0abb146105c35780631d3be477146105e3578063228e42ec14610603575f80fd5b80630e0c586d116104375780630e0c586d146104fe57806310bf267b14610523578063128817d41461054a57806312e1ebc51461056a57806313ab148d1461058a575f80fd5b80630232ca4914610468578063030149741461049857806309648a9d146104b95780630b5d931c146104de575b5f80fd5b61047b610476366004613240565b610c27565b6040516001600160601b0390911681526020015b60405180910390f35b6104ab6104a636600461326f565b610ca1565b60405190815260200161048f565b6104cc6104c736600461328a565b610d14565b60405160ff909116815260200161048f565b6104f16104ec366004613240565b610d80565b60405161048f91906132e4565b6006546001600160a01b03165b6040516001600160a01b03909116815260200161048f565b61053661053136600461338b565b610e36565b60405162ffffff909116815260200161048f565b61055d6105583660046133c2565b610e4c565b60405161048f91906133ec565b61057d610578366004613415565b610ece565b60405161048f9190613444565b6104ab610598366004613240565b610f5d565b61050b6105ab366004613493565b610f96565b61047b6105be36600461328a565b611012565b6105d66105d13660046136ea565b611043565b60405161048f9190613736565b6105f66105f136600461377d565b6110d3565b60405161048f91906137c6565b61047b610611366004613240565b611182565b610629610624366004613884565b6111bb565b60408051835181526020808501516001600160e01b031916908201529281015164ffffffffff16908301526001600160401b0316606082015260800161048f565b6104ab611255565b610685610680366004613240565b6112c5565b60405161048f91906138a0565b61047b6106a0366004613240565b611358565b6104ab6106b3366004613240565b611378565b6002546001600160a01b031661050b565b6104ab6106d7366004613240565b6113b1565b6104ab6106ea366004613415565b6113ea565b61047b6106fd3660046138ec565b61141b565b6104ab611497565b61071d610718366004613240565b6114de565b60405161ffff909116815260200161048f565b61055d61073e366004613908565b6114f2565b61075661075136600461328a565b611548565b6040516001600160401b03909116815260200161048f565b61078161077c366004613240565b6115bb565b60405161048f9190613945565b6107a161079c3660046139b9565b611677565b604051901515815260200161048f565b6107a16107bf366004613415565b6116f3565b61050b6107d2366004613240565b61175f565b6107ea6107e5366004613240565b6117c6565b60405161048f91906139e5565b5f5461010090046001600160a01b031661050b565b61081f61081a36600461326f565b61186d565b60405161048f9190613a6b565b6107a161083a366004613415565b611911565b6104ab61084d36600461377d565b611943565b6107a161086036600461326f565b611973565b610878610873366004613415565b6119ac565b005b61088d610888366004613240565b611e04565b60405161048f9190613adb565b6005546001600160a01b031661050b565b61047b6108b93660046133c2565b611e81565b61050b6108cc36600461328a565b611ec1565b6104cc6108df36600461338b565b611f2c565b6104cc6108f2366004613240565b612028565b61047b612035565b6107a161090d3660046139b9565b6120a8565b6108786120e9565b6107a161092836600461326f565b612117565b61094061093b36600461377d565b612150565b60405161048f9190613b62565b61047b61095b366004613240565b6121d7565b6104cc61096e366004613240565b612210565b6104ab610981366004613240565b61224a565b61050b610994366004613240565b612283565b6109ac6109a736600461328a565b61231c565b60408051825160ff9081168252602080850151909116908201529181015164ffffffffff169082015260600161048f565b6109f06109eb36600461338b565b61239f565b60405161048f9190613ba0565b610a10610a0b36600461377d565b612457565b604080516001600160a01b03909316835260ff90911660208301520161048f565b6107a1610a3f366004613240565b6125cc565b6104ab61262a565b610a5f610a5a366004613240565b6126a3565b60405161048f9190613c3a565b6107a1610a7a36600461326f565b612799565b6104ab6127d2565b6104cc610a95366004613240565b612819565b610aad610aa836600461377d565b612835565b60405161048f9190613da5565b6107566128f4565b61050b610ad0366004613e83565b6128fd565b61047b610ae33660046133c2565b612953565b6001546001600160a01b031661050b565b61050b610b07366004613240565b612993565b6104ab610b1a366004613415565b6129eb565b610b32610b2d366004613240565b612a44565b60405161048f9190613e9f565b610b52610b4d36600461409f565b612b47565b60405164ffffffffff909116815260200161048f565b6107a1610b763660046140cb565b612bd9565b610b8e610b89366004613240565b612c22565b60405161048f91906140f7565b6104cc610ba9366004614145565b612ca9565b61055d610bbc3660046133c2565b612d10565b61071d610bcf36600461328a565b612d50565b6104cc610be236600461377d565b612dd3565b610bfa610bf5366004614145565b612e69565b60405161048f9190614171565b610c1a610c1536600461326f565b612f16565b60405161048f91906141cf565b600354604051630232ca4960e01b81526001600160601b03831660048201525f916001600160a01b031690630232ca49906024015b602060405180830381865afa158015610c77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906142a0565b92915050565b60025460405162c0525d60e21b81526001600160401b03831660048201525f916001600160a01b0316906303014974906024015b602060405180830381865afa158015610cf0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906142bb565b6003546040516309648a9d60e01b8152600481018390525f916001600160a01b0316906309648a9d906024015b602060405180830381865afa158015610d5c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906142eb565b60408051610100810182525f8082526020820181905281830181905260608083018290526080830182905260a0830182905260c083019190915260e08201526004805492516302d764c760e21b81526001600160601b0385169181019190915290916001600160a01b031690630b5d931c906024015f60405180830381865afa158015610e0f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b919081019061439d565b5f610e41838361239f565b606001519392505050565b6006546040516304a205f560e21b81526001600160601b0384166004820152602481018390525f916001600160a01b03169063128817d4906044015b602060405180830381865afa158015610ea3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec7919061448a565b9392505050565b604080516080810182525f8082526020820181905291810182905260608101919091526002546040516312e1ebc560e01b81526001600160a01b038481166004830152909116906312e1ebc590602401608060405180830381865afa158015610f39573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906144b0565b6005546040516313ab148d60e01b81526001600160601b03831660048201525f916001600160a01b0316906313ab148d90602401610cd5565b604051631488c84560e01b8152600481018390525f82810b60248301529073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c84590604401602060405180830381865af4158015610fee573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec7919061451c565b600154604051630adba29960e11b8152600481018390525f916001600160a01b0316906315b7453290602401610c5c565b604080516060810182525f808252602082018190528183015290516315fb0abb60e01b815273__$7ca0443fea8aec4ba68c2e8d18c5a8d73e$__906315fb0abb906110949086908690600401614537565b606060405180830381865af41580156110af573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906145a3565b60408051610100810182525f8082526020820181905281830181905260608083018290526080830182905260a083019190915260c0820181905260e08201526003549151631d3be47760e01b815290916001600160a01b031690631d3be477906111419085906004016133ec565b5f60405180830381865afa15801561115b573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b919081019061461f565b6003546040516308a390bb60e21b81526001600160601b03831660048201525f916001600160a01b03169063228e42ec90602401610c5c565b604080516060810182525f80825260208201819052918101919091526002546040516312489e7360e11b81526001600160a01b038581166004830152602482018590525f9216906324913ce690604401608060405180830381865afa158015611226573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061124a919061470c565b915091509250929050565b600254604080516309b583ed60e21b815290515f926001600160a01b0316916326d60fb49160048083019260209291908290030181865afa15801561129c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112c091906142bb565b905090565b604080516080810182525f808252602082018190528183015260608082015260035491516313d8ebc960e11b81526001600160601b038416600482015290916001600160a01b0316906327b1d792906024015f60405180830381865afa158015611331573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614737565b5f80611363836126a3565b9050610ec78160600151826101000151612fc9565b600654604051632f458a1160e01b81526001600160601b03831660048201525f916001600160a01b031690632f458a1190602401610cd5565b6006546040516319fe3ef760e11b81526001600160601b03831660048201525f916001600160a01b0316906333fc7dee90602401610cd5565b600254604051626a8e3f60e71b81526001600160a01b0383811660048301525f9216906335471f8090602401610cd5565b6006546040516346cad99560e11b81526001600160c01b031984166004820152602481018390525f916001600160a01b031690638d95b32a906044015b602060405180830381865afa158015611473573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906142a0565b60025460408051630e4bd7d960e21b815290515f926001600160a01b03169163392f5f649160048083019260209291908290030181865afa15801561129c573d5f803e3d5ffd5b5f6114e8826126a3565b60c0015192915050565b604051631f849e6b60e11b81525f9073__$05887d5853069c88bcd4c0a2107db45f29$__90633f093cd69061152d90869086906004016147d6565b602060405180830381865af4158015610ea3573d5f803e3d5ffd5b600254604051633fd8556160e01b81526001600160401b03831660048201525f916001600160a01b031690633fd8556190602401602060405180830381865afa158015611597573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906147f7565b6116026040805160c0810182525f80825260208083018290528284018290526060830182905283518085019094528184528301529060808201908152602001606081525090565b600354604051634793b4ab60e01b81526001600160601b03841660048201526001600160a01b0390911690634793b4ab906024015f60405180830381865afa158015611650573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614852565b60025460405163480cebd160e01b81526001600160401b03841660048201526001600160a01b0383811660248301525f92169063480cebd1906044015b602060405180830381865afa1580156116cf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec79190614916565b600254604051629b7b3560e61b81526001600160a01b0383811660048301525f9216906326decd40906024015b602060405180830381865afa15801561173b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190614916565b5f8061176a83612c22565b60208101519091506001600160a01b0316156117c05780602001516001600160a01b031663132996046040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fee573d5f803e3d5ffd5b50919050565b6040805160e0810182525f80825260208201819052818301819052606082018190526080820181905260a0820181905260c082015260035491516357f80bbf60e01b81526001600160601b038416600482015290916001600160a01b0316906357f80bbf9060240160e060405180830381865afa158015611849573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b919061492f565b6040805160c0810182525f80825260208201819052918101829052606081018290526080810182905260a0810191909152600254604051635bfa502760e01b81526001600160401b03841660048201526001600160a01b0390911690635bfa50279060240160c060405180830381865afa1580156118ed573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906149c7565b60025460405163302d508560e11b81526001600160a01b0383811660048301525f92169063605aa10a90602401611720565b60065460405163380d295960e21b81525f916001600160a01b03169063e034a56490610cd59085906004016133ec565b6002546040516366c3bc9560e01b81526001600160401b03831660048201525f916001600160a01b0316906366c3bc9590602401611720565b5f5460ff16156119cf5760405163ae9eff1b60e01b815260040160405180910390fd5b5f805460ff1916600190811790915580546001600160a01b0383166001600160a01b03199091168117909155604080516306235b6d60e31b8152905163311adb68916004808201926020929091908290030181865afa158015611a34573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a58919061451c565b600280546001600160a01b0319166001600160a01b0392831617905560015460408051635ab1bd5360e01b815290519190921691635ab1bd539160048083019260209291908290030181865afa158015611ab4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ad8919061451c565b5f8054610100600160a81b0319166101006001600160a01b039384160217905560015460408051631a99b41b60e31b81529051919092169163d4cda0d89160048083019260209291908290030181865afa158015611b38573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b5c919061451c565b600380546001600160a01b0319166001600160a01b0392831617905560015460408051635bd8162760e11b81529051919092169163b7b02c4e9160048083019260209291908290030181865afa158015611bb8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bdc919061451c565b600480546001600160a01b0319166001600160a01b0392831617815560015460408051631b776b6960e21b815290519190931692636dddada492818101926020929091908290030181865afa158015611c37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c5b919061451c565b600580546001600160a01b0319166001600160a01b0392831617905560015460408051630e0c586d60e01b815290519190921691630e0c586d9160048083019260209291908290030181865afa158015611cb7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cdb919061451c565b600680546001600160a01b0319166001600160a01b039283161790555f5461010090041663d39e6043600e60015f9054906101000a90046001600160a01b03166001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d56573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d7a91906142eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611dbd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611de1919061451c565b600780546001600160a01b0319166001600160a01b039290921691909117905550565b611e0c613151565b60048054604051636a05a41360e01b81526001600160601b038516928101929092526001600160a01b031690636a05a413906024016101c060405180830381865afa158015611e5d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190614a4e565b600554604051630dd7db2160e31b81526001600160601b0384166004820152602481018390525f916001600160a01b031690636ebed90890604401611458565b600254604051630e514c3560e31b8152600481018390525f916001600160a01b03169063728a61a890602401602060405180830381865afa158015611f08573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b919061451c565b60048054604051637d56159160e11b815261ffff8416928101929092526001600160601b03841660248301525f916001600160a01b03909116906309648a9d9073__$9e81531fe4994e01e99541f86b55500b4b$__9063faac2b22906044015b602060405180830381865af4158015611fa7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fcb91906142bb565b6040518263ffffffff1660e01b8152600401611fe991815260200190565b602060405180830381865afa158015612004573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906142eb565b5f610c9b6104c783613029565b5f8054600154604051632f2a35f760e11b81526001600160a01b0391821660048201526101009092041690635e546bee90602401602060405180830381865afa158015612084573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112c091906142a0565b600254604051637f0cf94760e01b81526001600160401b03841660048201526001600160a01b0383811660248301525f921690637f0cf947906044016116b4565b5f5460ff161561210c5760405163ae9eff1b60e01b815260040160405180910390fd5b612115336119ac565b565b6002546040516343e39f2d60e11b81526001600160401b03831660048201525f916001600160a01b0316906387c73e5a90602401611720565b60408051606080820183525f80835260208301528183015260048054925163887b1fa960e01b815291926001600160a01b03169163887b1fa991612196918691016133ec565b5f60405180830381865afa1580156121b0573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614adf565b600354604051638eb9000d60e01b81526001600160601b03831660048201525f916001600160a01b031690638eb9000d90602401610c5c565b6004545f906001600160a01b03166309648a9d61222c84613085565b6040518263ffffffff1660e01b8152600401610d4191815260200190565b6005546040516394b9929b60e01b81526001600160601b03831660048201525f916001600160a01b0316906394b9929b90602401610cd5565b60035460405163f0ea17c360e01b81526001600160601b03831660048201525f9182916001600160a01b039091169063f0ea17c3906024015f60405180830381865afa1580156122d5573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526122fc9190810190614b6f565b60208101519091506001600160a01b0316156117c0576020015192915050565b604080516060810182525f8082526020820181905281830152600354915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c90602401606060405180830381865afa15801561237b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190614bf0565b6040805160e0810182525f808252602082018190528183018190526060808301829052608083019190915260a0820181905260c082015260048054925163a7ef3d2160e01b81526001600160601b0386169181019190915261ffff8416602482015290916001600160a01b03169063a7ef3d21906044015f60405180830381865afa158015612430573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610ec79190810190614c4f565b5f8054819061010090046001600160a01b031663d39e6043600e60015f9054906101000a90046001600160a01b03166001600160a01b03166376b707b76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124c1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124e591906142eb565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612528573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061254c919061451c565b60405163eed2831560e01b81523060048201526001600160c01b0319851660248201526001600160a01b03919091169063eed28315906044016040805180830381865afa15801561259f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125c39190614d38565b91509150915091565b60405163034159f960e41b81523060048201526001600160601b03821660248201525f9073__$d4f8ac2ac7f53dfb2fb9ff92adbd6d29df$__906334159f9090604401602060405180830381865af415801561173b573d5f803e3d5ffd5b60025460408051632e98bef960e21b815290515f926001600160a01b03169163ba62fbe49160048083019260209291908290030181865afa158015612671573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061269591906147f7565b6001600160401b0316905090565b60408051610200810182525f8082526020820181905281830181905260608083018290526080830182905260a0830182905260c0830182905260e08301829052610100830182905261012083018290526101408301829052610160830182905261018083018290526101a08301919091526101c082018190526101e082015260048054925163bd7d9d8560e01b81526001600160601b0385169181019190915290916001600160a01b03169063bd7d9d85906024015f60405180830381865afa158015612772573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614d70565b60025460405163c6a0017960e01b81526001600160401b03831660048201525f916001600160a01b03169063c6a0017990602401611720565b6001546040805163c71e261f60e01b815290515f926001600160a01b03169163c71e261f9160048083019260209291908290030181865afa15801561129c573d5f803e3d5ffd5b6004545f906001600160a01b03166309648a9d61222c846130b1565b60408051610140810182525f8082526020820181905281830181905260608083018290526080830182905260a0830182905260c0830182905260e0830191909152610100820181905261012082015260035491516368322c6360e11b815290916001600160a01b03169063d06458c6906128b39085906004016133ec565b5f60405180830381865afa1580156128cd573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614f03565b5f6112c06130dd565b60025460405163d78a83b160e01b81526001600160401b0384166004820152602481018390525f916001600160a01b03169063d78a83b190604401602060405180830381865afa158015610fee573d5f803e3d5ffd5b6005546040516336dc0d5360e21b81526001600160601b0384166004820152602481018390525f916001600160a01b03169063db70354c90604401611458565b5f8061299e83612283565b90506001600160a01b038116156117c057806001600160a01b03166382bfefc86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fee573d5f803e3d5ffd5b60405163e2eb023b60e01b81526001600160a01b03821660048201525f9073__$bf7bc340cbb9229ef1de2c568356e67902$__9063e2eb023b906024015b602060405180830381865af4158015610cf0573d5f803e3d5ffd5b60408051610240810182525f80825260208201819052818301819052606082018190526080820181905260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905261018082018190526101a082018190526101c082018190526101e08201819052610200820181905261022082015260048054925163e444c3df60e01b81526001600160601b0385169181019190915290916001600160a01b03169063e444c3df9060240161024060405180830381865afa158015612b23573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b9190615024565b5f73__$0f9396e6447a4be57af83e53f51d234633$__6359fad7ca84612b6e85600161519a565b6040516001600160e01b031960e085901b16815261ffff909216600483015262ffffff166024820152604401602060405180830381865af4158015612bb5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ec791906151b5565b6007546040516309741ce160e21b81526001600160601b03841660048201526001600160c01b0319831660248201525f916001600160a01b0316906325d07384906044016116b4565b604080518082018252606081525f6020820152600354915163f0ea17c360e01b81526001600160601b038416600482015290916001600160a01b03169063f0ea17c3906024015f60405180830381865afa158015612c82573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b9190810190614b6f565b60048054604051632867b75960e21b815264ffffffffff8416928101929092526001600160601b03841660248301525f916001600160a01b03909116906309648a9d9073__$0f9396e6447a4be57af83e53f51d234633$__9063a19edd6490604401611f8c565b60065460405163f4809edd60e01b81526001600160601b0384166004820152602481018390525f916001600160a01b03169063f4809edd90604401610e88565b5f73__$9e81531fe4994e01e99541f86b55500b4b$__639cc45a36612d768460016151d0565b6040518263ffffffff1660e01b8152600401612d9491815260200190565b602060405180830381865af4158015612daf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b91906151e3565b600480546040516355ee627560e01b81525f926001600160a01b03909216916309648a9d9173__$32e9ecefef68cb354d118e0496fdd3f4bc$__916355ee627591612e2a916001600160c01b0319891691016133ec565b602060405180830381865af4158015612e45573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061222c91906142bb565b6040805160a0810182525f808252602082018190528183018190526060808301919091526080820152600480549251637ec0124960e11b81526001600160601b0386169181019190915264ffffffffff8416602482015290916001600160a01b03169063fd802492906044015f60405180830381865afa158015612eef573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610ec791908101906151fe565b60408051610100810182525f808252602082018190528183018190526060808301829052608083019190915260a0820181905260c0820181905260e0820152600354915163febe92af60e01b81526001600160401b038416600482015290916001600160a01b03169063febe92af906024015f60405180830381865afa158015612fa2573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610c9b91908101906152b4565b6040516363cf551160e11b81526001600160601b038084166004830152821660248201525f9073__$3bac17678db7ae928afa209f2f44deec9c$__9063c79eaa2290604401602060405180830381865af4158015611473573d5f803e3d5ffd5b5f73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660165b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401612a29565b5f73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b0384166015613051565b5f73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416602b613051565b6040516368aebf7b60e01b8152600560048201525f9073__$1d92393fa9ccd763988368ce8a1cb90d26$__906368aebf7b90602401602060405180830381865af415801561312d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112c091906147f7565b6040805161012081019091525f60e082018181526101008301919091528190815260200161318e604080518082019091525f808252602082015290565b81526020016131ac604080518082019091525f808252602082015290565b81526020016131ca604080518082019091525f808252602082015290565b81526020016131e8604080518082019091525f808252602082015290565b8152602001613206604080518082019091525f808252602082015290565b8152602001613224604080518082019091525f808252602082015290565b905290565b6001600160601b038116811461323d575f80fd5b50565b5f60208284031215613250575f80fd5b8135610ec781613229565b6001600160401b038116811461323d575f80fd5b5f6020828403121561327f575f80fd5b8135610ec78161325b565b5f6020828403121561329a575f80fd5b5035919050565b5f8151808452602084019350602083015f5b828110156132da5781516001600160601b03168652602095860195909101906001016132b3565b5093949350505050565b602081528151151560208201526020820151151560408201525f6040830151613311606084018215159052565b50606083015160ff8116608084015250608083015160ff811660a08401525060a08301516001600160601b03811660c08401525060c08301516001600160601b03811660e08401525060e0830151610100808401526133746101208401826132a1565b949350505050565b61ffff8116811461323d575f80fd5b5f806040838503121561339c575f80fd5b82356133a781613229565b915060208301356133b78161337c565b809150509250929050565b5f80604083850312156133d3575f80fd5b82356133de81613229565b946020939093013593505050565b6001600160c01b031991909116815260200190565b6001600160a01b038116811461323d575f80fd5b5f60208284031215613425575f80fd5b8135610ec781613401565b634e487b7160e01b5f52602160045260245ffd5b81518152602082015160808201906007811061346257613462613430565b806020840152506001600160401b03604084015116604083015264ffffffffff606084015116606083015292915050565b5f80604083850312156134a4575f80fd5b8235915060208301355f81900b81146133b7575f80fd5b6001600160e01b03198116811461323d575f80fd5b634e487b7160e01b5f52604160045260245ffd5b60405161010081016001600160401b0381118282101715613507576135076134d0565b60405290565b604051608081016001600160401b0381118282101715613507576135076134d0565b604051606081016001600160401b0381118282101715613507576135076134d0565b604080519081016001600160401b0381118282101715613507576135076134d0565b60405160c081016001600160401b0381118282101715613507576135076134d0565b60405160e081016001600160401b0381118282101715613507576135076134d0565b60405161020081016001600160401b0381118282101715613507576135076134d0565b60405161014081016001600160401b0381118282101715613507576135076134d0565b60405161024081016001600160401b0381118282101715613507576135076134d0565b60405160a081016001600160401b0381118282101715613507576135076134d0565b604051601f8201601f191681016001600160401b038111828210171561366a5761366a6134d0565b604052919050565b5f6001600160401b0382111561368a5761368a6134d0565b50601f01601f191660200190565b5f82601f8301126136a7575f80fd5b81356136ba6136b582613672565b613642565b8181528460208386010111156136ce575f80fd5b816020850160208301375f918101602001919091529392505050565b5f80604083850312156136fb575f80fd5b8235613706816134bb565b915060208301356001600160401b03811115613720575f80fd5b61372c85828601613698565b9150509250929050565b815181526020808301516001600160e01b0319169082015260408083015164ffffffffff169082015260608101610c9b565b6001600160c01b03198116811461323d575f80fd5b5f6020828403121561378d575f80fd5b8135610ec781613768565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081526001600160601b0382511660208201525f60208301516137f560408401826001600160601b03169052565b50604083015163ffffffff8116606084015250606083015163ffffffff811660808401525060808301516001600160a01b03811660a08401525060a083015164ffffffffff811660c08401525060c083015161010060e084015261385d610120840182613798565b905060e0840151601f198483030161010085015261387b8282613798565b95945050505050565b5f8060408385031215613895575f80fd5b82356133de81613401565b602081526001600160401b0360c01b825116602082015260208201511515604082015263ffffffff60408301511660608201525f606083015160808084015261337460a0840182613798565b5f80604083850312156138fd575f80fd5b82356133de81613768565b5f8060408385031215613919575f80fd5b823561370681613229565b80516001600160a01b031682526020908101516001600160601b0316910152565b6020815264ffffffffff825116602082015264ffffffffff602083015116604082015264ffffffffff60408301511660608201526001600160601b0360608301511660808201525f608083015161399f60a0840182613924565b5060a083015160e080840152613374610100840182613798565b5f80604083850312156139ca575f80fd5b82356139d58161325b565b915060208301356133b781613401565b5f60e0820190506001600160601b03835116825260018060a01b03602084015116602083015260018060a01b0360408401511660408301526060830151151560608301526080830151613a3c608084018215159052565b5060a0830151613a5060a084018215159052565b5060c0830151613a6460c084018215159052565b5092915050565b81516001600160401b03168152602082015160c082019060048110613a9257613a92613430565b8060208401525063ffffffff604084015116604083015264ffffffffff606084015116606083015264ffffffffff608084015116608083015260a083015160a083015292915050565b5f6101c082019050613aee828451613924565b6020830151613b006040840182613924565b506040830151613b136080840182613924565b506060830151613b2660c0840182613924565b506080830151613b3a610100840182613924565b5060a0830151613b4e610140840182613924565b5060c0830151613a64610180840182613924565b602081526001600160601b03825116602082015264ffffffffff60208301511660408201525f60408301516060808401526133746080840182613798565b602081526001600160601b0382511660208201526001600160601b0360208301511660408201525f6040830151613be0606084018264ffffffffff169052565b50606083015162ffffff8116608084015250608083015162ffffff811660a08401525060a083015160e060c0840152613c1d610100840182613798565b905060c0840151601f198483030160e085015261387b8282613798565b60208152613c546020820183516001600160601b03169052565b5f6020830151613c6f60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160601b03811660808401525060808301516001600160601b03811660a08401525060a08301516001600160c01b0319811660c08401525060c083015161ffff811660e08401525060e083015161ffff8116610100840152506101008301516001600160601b038116610120840152506101208301516001600160601b0381166101408401525061014083015164ffffffffff81166101608401525061016083015164ffffffffff81166101808401525061018083015164ffffffffff81166101a0840152506101a083015164ffffffffff81166101c0840152506101c08301516102006101e0840152613d86610220840182613798565b90506101e0840151601f198483030161020085015261387b8282613798565b60208152613dbf6020820183516001600160a01b03169052565b5f6020830151613dda60408401826001600160601b03169052565b5060408301516001600160a01b038116606084015250606083015163ffffffff8116608084015250608083015164ffffffffff811660a08401525060a083015180151560c08401525060c083015180151560e08401525060e08301516001600160a01b03811661010084015250610100830151610140610120840152613e64610160840182613798565b9050610120840151601f198483030161014085015261387b8282613798565b5f8060408385031215613e94575f80fd5b82356133de8161325b565b81516001600160601b0316815261024081016020830151613ecb60208401826001600160601b03169052565b506040830151613ee660408401826001600160601b03169052565b506060830151613f0160608401826001600160601b03169052565b506080830151613f1c60808401826001600160601b03169052565b5060a0830151613f3760a08401826001600160601b03169052565b5060c0830151613f5260c08401826001600160601b03169052565b5060e0830151613f6d60e08401826001600160601b03169052565b50610100830151613f8a6101008401826001600160601b03169052565b50610120830151613fa76101208401826001600160601b03169052565b50610140830151613fc46101408401826001600160601b03169052565b50610160830151613fe16101608401826001600160601b03169052565b50610180830151613ffe6101808401826001600160601b03169052565b506101a083015161401b6101a08401826001600160601b03169052565b506101c08301516140386101c08401826001600160601b03169052565b506101e08301516140556101e08401826001600160601b03169052565b506102008301516140726102008401826001600160601b03169052565b50610220830151613a646102208401826001600160601b03169052565b62ffffff8116811461323d575f80fd5b5f80604083850312156140b0575f80fd5b82356140bb8161337c565b915060208301356133b78161408f565b5f80604083850312156140dc575f80fd5b82356140e781613229565b915060208301356133b781613768565b602081525f8251604060208401526141126060840182613798565b602094909401516001600160a01b0316604093909301929092525090919050565b64ffffffffff8116811461323d575f80fd5b5f8060408385031215614156575f80fd5b823561416181613229565b915060208301356133b781614133565b6020815261ffff82511660208201526001600160601b03602083015116604082015264ffffffffff604083015116606082015260018060a01b0360608301511660808201525f608083015160a08084015261337460c0840182613798565b602081526141e96020820183516001600160601b03169052565b5f602083015161420460408401826001600160601b03169052565b506040830151801515606084015250606083015164ffffffffff8116608084015250608083015164ffffffffff811660a08401525060a083015161010060c0840152614254610120840182613798565b905060c0840151601f198483030160e08501526142718282613798565b91505060e0840151601f198483030161010085015261387b8282613798565b805161429b81613229565b919050565b5f602082840312156142b0575f80fd5b8151610ec781613229565b5f602082840312156142cb575f80fd5b5051919050565b60ff8116811461323d575f80fd5b805161429b816142d2565b5f602082840312156142fb575f80fd5b8151610ec7816142d2565b8051801515811461429b575f80fd5b5f82601f830112614324575f80fd5b81516001600160401b0381111561433d5761433d6134d0565b8060051b61434d60208201613642565b91825260208185018101929081019086841115614368575f80fd5b6020860192505b8383101561439357825161438281613229565b82526020928301929091019061436f565b9695505050505050565b5f602082840312156143ad575f80fd5b81516001600160401b038111156143c2575f80fd5b820161010081850312156143d4575f80fd5b6143dc6134e4565b6143e582614306565b81526143f360208301614306565b602082015261440460408301614306565b6040820152614415606083016142e0565b6060820152614426608083016142e0565b608082015261443760a08301614290565b60a082015261444860c08301614290565b60c082015260e08201516001600160401b03811115614465575f80fd5b61447186828501614315565b60e083015250949350505050565b805161429b81613768565b5f6020828403121561449a575f80fd5b8151610ec781613768565b805161429b81614133565b5f60808284031280156144c1575f80fd5b506144ca61350d565b825181526020830151600781106144df575f80fd5b602082015260408301516144f28161325b565b6040820152606083015161450581614133565b60608201529392505050565b805161429b81613401565b5f6020828403121561452c575f80fd5b8151610ec781613401565b63ffffffff60e01b83168152604060208201525f6133746040830184613798565b5f60608284031215614568575f80fd5b61457061352f565b825181526020830151909150614585816134bb565b6020820152604082015161459881614133565b604082015292915050565b5f606082840312156145b3575f80fd5b610ec78383614558565b805163ffffffff8116811461429b575f80fd5b5f82601f8301126145df575f80fd5b8151602083015f6145f26136b584613672565b9050828152858383011115614605575f80fd5b8282602083015e5f92810160200192909252509392505050565b5f6020828403121561462f575f80fd5b81516001600160401b03811115614644575f80fd5b82016101008185031215614656575f80fd5b61465e6134e4565b61466782614290565b815261467560208301614290565b6020820152614686604083016145bd565b6040820152614697606083016145bd565b60608201526146a860808301614511565b60808201526146b960a083016144a5565b60a082015260c08201516001600160401b038111156146d6575f80fd5b6146e2868285016145d0565b60c08301525060e08201516001600160401b03811115614700575f80fd5b614471868285016145d0565b5f806080838503121561471d575f80fd5b6147278484614558565b915060608301516133b78161325b565b5f60208284031215614747575f80fd5b81516001600160401b0381111561475c575f80fd5b82016080818503121561476d575f80fd5b61477561350d565b815161478081613768565b815261478e60208301614306565b602082015261479f604083016145bd565b604082015260608201516001600160401b038111156147bc575f80fd5b6147c8868285016145d0565b606083015250949350505050565b6001600160601b0383168152604060208201525f6133746040830184613798565b5f60208284031215614807575f80fd5b8151610ec78161325b565b5f60408284031215614822575f80fd5b61482a613551565b9050815161483781613401565b8152602082015161484781613229565b602082015292915050565b5f60208284031215614862575f80fd5b81516001600160401b03811115614877575f80fd5b820160e08185031215614888575f80fd5b614890613573565b815161489b81614133565b815260208201516148ab81614133565b60208201526148bc604083016144a5565b60408201526148cd60608301614290565b60608201526148df8560808401614812565b608082015260c08201516001600160401b038111156148fc575f80fd5b614908868285016145d0565b60a083015250949350505050565b5f60208284031215614926575f80fd5b610ec782614306565b5f60e0828403128015614940575f80fd5b50614949613595565b825161495481613229565b8152602083015161496481613401565b6020820152604083015161497781613401565b604082015261498860608401614306565b606082015261499960808401614306565b60808201526149aa60a08401614306565b60a08201526149bb60c08401614306565b60c08201529392505050565b5f60c08284031280156149d8575f80fd5b506149e1613573565b82516149ec8161325b565b81526020830151600481106149ff575f80fd5b6020820152614a10604084016145bd565b60408201526060830151614a2381614133565b60608201526080830151614a3681614133565b608082015260a0928301519281019290925250919050565b5f6101c0828403128015614a60575f80fd5b50614a69613595565b614a738484614812565b8152614a828460408501614812565b6020820152614a948460808501614812565b6040820152614aa68460c08501614812565b6060820152614ab9846101008501614812565b6080820152614acc846101408501614812565b60a08201526149bb846101808501614812565b5f60208284031215614aef575f80fd5b81516001600160401b03811115614b04575f80fd5b820160608185031215614b15575f80fd5b614b1d61352f565b8151614b2881613229565b81526020820151614b3881614133565b602082015260408201516001600160401b03811115614b55575f80fd5b614b61868285016145d0565b604083015250949350505050565b5f60208284031215614b7f575f80fd5b81516001600160401b03811115614b94575f80fd5b820160408185031215614ba5575f80fd5b614bad613551565b81516001600160401b03811115614bc2575f80fd5b614bce868285016145d0565b82525060208201519150614be182613401565b60208101919091529392505050565b5f6060828403128015614c01575f80fd5b50614c0a61352f565b8251614c15816142d2565b81526020830151614c25816142d2565b60208201526040830151614c3881614133565b60408201529392505050565b805161429b8161408f565b5f60208284031215614c5f575f80fd5b81516001600160401b03811115614c74575f80fd5b820160e08185031215614c85575f80fd5b614c8d613595565b614c9682614290565b8152614ca460208301614290565b6020820152614cb5604083016144a5565b6040820152614cc660608301614c44565b6060820152614cd760808301614c44565b608082015260a08201516001600160401b03811115614cf4575f80fd5b614d00868285016145d0565b60a08301525060c08201516001600160401b03811115614d1e575f80fd5b614d2a868285016145d0565b60c083015250949350505050565b5f8060408385031215614d49575f80fd5b8251614d5481613401565b60208401519092506133b7816142d2565b805161429b8161337c565b5f60208284031215614d80575f80fd5b81516001600160401b03811115614d95575f80fd5b82016102008185031215614da7575f80fd5b614daf6135b7565b614db882614290565b8152614dc660208301614290565b6020820152614dd76040830161447f565b6040820152614de860608301614290565b6060820152614df960808301614290565b6080820152614e0a60a0830161447f565b60a0820152614e1b60c08301614d65565b60c0820152614e2c60e08301614d65565b60e0820152614e3e6101008301614290565b610100820152614e516101208301614290565b610120820152614e6461014083016144a5565b610140820152614e7761016083016144a5565b610160820152614e8a61018083016144a5565b610180820152614e9d6101a083016144a5565b6101a08201526101c08201516001600160401b03811115614ebc575f80fd5b614ec8868285016145d0565b6101c0830152506101e08201516001600160401b03811115614ee8575f80fd5b614ef4868285016145d0565b6101e083015250949350505050565b5f60208284031215614f13575f80fd5b81516001600160401b03811115614f28575f80fd5b82016101408185031215614f3a575f80fd5b614f426135da565b614f4b82614511565b8152614f5960208301614290565b6020820152614f6a60408301614511565b6040820152614f7b606083016145bd565b6060820152614f8c608083016144a5565b6080820152614f9d60a08301614306565b60a0820152614fae60c08301614306565b60c0820152614fbf60e08301614511565b60e08201526101008201516001600160401b03811115614fdd575f80fd5b614fe9868285016145d0565b610100830152506101208201516001600160401b03811115615009575f80fd5b615015868285016145d0565b61012083015250949350505050565b5f610240828403128015615036575f80fd5b5061503f6135fd565b61504883614290565b815261505660208401614290565b602082015261506760408401614290565b604082015261507860608401614290565b606082015261508960808401614290565b608082015261509a60a08401614290565b60a08201526150ab60c08401614290565b60c08201526150bc60e08401614290565b60e08201526150ce6101008401614290565b6101008201526150e16101208401614290565b6101208201526150f46101408401614290565b6101408201526151076101608401614290565b61016082015261511a6101808401614290565b61018082015261512d6101a08401614290565b6101a08201526151406101c08401614290565b6101c08201526151536101e08401614290565b6101e08201526151666102008401614290565b6102008201526151796102208401614290565b6102208201529392505050565b634e487b7160e01b5f52601160045260245ffd5b62ffffff8181168382160190811115610c9b57610c9b615186565b5f602082840312156151c5575f80fd5b8151610ec781614133565b80820180821115610c9b57610c9b615186565b5f602082840312156151f3575f80fd5b8151610ec78161337c565b5f6020828403121561520e575f80fd5b81516001600160401b03811115615223575f80fd5b820160a08185031215615234575f80fd5b61523c613620565b81516152478161337c565b8152602082015161525781613229565b6020820152604082015161526a81614133565b6040820152606082015161527d81613401565b606082015260808201516001600160401b0381111561529a575f80fd5b6152a6868285016145d0565b608083015250949350505050565b5f602082840312156152c4575f80fd5b81516001600160401b038111156152d9575f80fd5b820161010081850312156152eb575f80fd5b6152f36134e4565b6152fc82614290565b815261530a60208301614290565b602082015261531b60408301614306565b604082015261532c606083016144a5565b606082015261533d608083016144a5565b608082015260a08201516001600160401b0381111561535a575f80fd5b615366868285016145d0565b60a08301525060c08201516001600160401b038111156146d6575f80fdfea26469706673582212209b8bcd252dd4a6952da06edc3038db494e136c206e24c0e2b1e21b89e351d88264736f6c634300081a0033",
1083
2315
  "linkReferences": {
1084
- "contracts/types/DistributorType.sol": {
1085
- "DistributorTypeLib": [
2316
+ "contracts/authorization/AccessAdminLib.sol": {
2317
+ "AccessAdminLib": [
1086
2318
  {
1087
2319
  "length": 20,
1088
- "start": 6188
2320
+ "start": 4239
1089
2321
  }
1090
2322
  ]
1091
2323
  },
1092
- "contracts/types/NftId.sol": {
1093
- "NftIdLib": [
2324
+ "contracts/product/PolicyServiceLib.sol": {
2325
+ "PolicyServiceLib": [
1094
2326
  {
1095
2327
  "length": 20,
1096
- "start": 289
1097
- },
1098
- {
1099
- "length": 20,
1100
- "start": 3257
1101
- },
2328
+ "start": 9751
2329
+ }
2330
+ ]
2331
+ },
2332
+ "contracts/type/Amount.sol": {
2333
+ "AmountLib": [
1102
2334
  {
1103
2335
  "length": 20,
1104
- "start": 3597
1105
- },
2336
+ "start": 12310
2337
+ }
2338
+ ]
2339
+ },
2340
+ "contracts/type/ClaimId.sol": {
2341
+ "ClaimIdLib": [
1106
2342
  {
1107
2343
  "length": 20,
1108
- "start": 3992
2344
+ "start": 8083
1109
2345
  },
1110
2346
  {
1111
2347
  "length": 20,
1112
- "start": 4037
1113
- },
2348
+ "start": 11640
2349
+ }
2350
+ ]
2351
+ },
2352
+ "contracts/type/NftId.sol": {
2353
+ "NftIdLib": [
1114
2354
  {
1115
2355
  "length": 20,
1116
- "start": 4082
2356
+ "start": 12369
1117
2357
  },
1118
2358
  {
1119
2359
  "length": 20,
1120
- "start": 6415
2360
+ "start": 12461
1121
2361
  },
1122
2362
  {
1123
2363
  "length": 20,
1124
- "start": 6670
2364
+ "start": 12505
1125
2365
  }
1126
2366
  ]
1127
2367
  },
1128
- "contracts/types/Referral.sol": {
1129
- "ReferralLib": [
2368
+ "contracts/type/PayoutId.sol": {
2369
+ "PayoutIdLib": [
1130
2370
  {
1131
2371
  "length": 20,
1132
- "start": 3017
2372
+ "start": 11119
1133
2373
  },
1134
2374
  {
1135
2375
  "length": 20,
1136
- "start": 3656
2376
+ "start": 11539
1137
2377
  }
1138
2378
  ]
1139
2379
  },
1140
- "contracts/types/RiskId.sol": {
1141
- "RiskIdLib": [
2380
+ "contracts/type/Referral.sol": {
2381
+ "ReferralLib": [
1142
2382
  {
1143
2383
  "length": 20,
1144
- "start": 4197
2384
+ "start": 5416
1145
2385
  }
1146
2386
  ]
1147
2387
  },
1148
- "contracts/types/Timestamp.sol": {
1149
- "TimestampLib": [
2388
+ "contracts/type/RiskId.sol": {
2389
+ "RiskIdLib": [
1150
2390
  {
1151
2391
  "length": 20,
1152
- "start": 5125
1153
- },
2392
+ "start": 11807
2393
+ }
2394
+ ]
2395
+ },
2396
+ "contracts/type/RoleId.sol": {
2397
+ "RoleIdLib": [
1154
2398
  {
1155
2399
  "length": 20,
1156
- "start": 5356
2400
+ "start": 12570
1157
2401
  }
1158
2402
  ]
1159
2403
  },
1160
- "contracts/types/UFixed.sol": {
2404
+ "contracts/type/UFixed.sol": {
1161
2405
  "UFixedLib": [
1162
2406
  {
1163
2407
  "length": 20,
1164
- "start": 2805
1165
- },
1166
- {
1167
- "length": 20,
1168
- "start": 3788
1169
- },
1170
- {
1171
- "length": 20,
1172
- "start": 5226
1173
- },
1174
- {
1175
- "length": 20,
1176
- "start": 5485
2408
+ "start": 4059
1177
2409
  },
1178
2410
  {
1179
2411
  "length": 20,
1180
- "start": 5628
2412
+ "start": 10800
1181
2413
  }
1182
2414
  ]
1183
2415
  }
1184
2416
  },
1185
2417
  "deployedLinkReferences": {
1186
- "contracts/types/DistributorType.sol": {
1187
- "DistributorTypeLib": [
2418
+ "contracts/authorization/AccessAdminLib.sol": {
2419
+ "AccessAdminLib": [
1188
2420
  {
1189
2421
  "length": 20,
1190
- "start": 4647
2422
+ "start": 4202
1191
2423
  }
1192
2424
  ]
1193
2425
  },
1194
- "contracts/types/NftId.sol": {
1195
- "NftIdLib": [
2426
+ "contracts/product/PolicyServiceLib.sol": {
2427
+ "PolicyServiceLib": [
1196
2428
  {
1197
2429
  "length": 20,
1198
- "start": 1716
1199
- },
2430
+ "start": 9714
2431
+ }
2432
+ ]
2433
+ },
2434
+ "contracts/type/Amount.sol": {
2435
+ "AmountLib": [
1200
2436
  {
1201
2437
  "length": 20,
1202
- "start": 2056
1203
- },
2438
+ "start": 12273
2439
+ }
2440
+ ]
2441
+ },
2442
+ "contracts/type/ClaimId.sol": {
2443
+ "ClaimIdLib": [
1204
2444
  {
1205
2445
  "length": 20,
1206
- "start": 2451
2446
+ "start": 8046
1207
2447
  },
1208
2448
  {
1209
2449
  "length": 20,
1210
- "start": 2496
1211
- },
2450
+ "start": 11603
2451
+ }
2452
+ ]
2453
+ },
2454
+ "contracts/type/NftId.sol": {
2455
+ "NftIdLib": [
1212
2456
  {
1213
2457
  "length": 20,
1214
- "start": 2541
2458
+ "start": 12332
1215
2459
  },
1216
2460
  {
1217
2461
  "length": 20,
1218
- "start": 4874
2462
+ "start": 12424
1219
2463
  },
1220
2464
  {
1221
2465
  "length": 20,
1222
- "start": 5129
2466
+ "start": 12468
1223
2467
  }
1224
2468
  ]
1225
2469
  },
1226
- "contracts/types/Referral.sol": {
1227
- "ReferralLib": [
2470
+ "contracts/type/PayoutId.sol": {
2471
+ "PayoutIdLib": [
1228
2472
  {
1229
2473
  "length": 20,
1230
- "start": 1476
2474
+ "start": 11082
1231
2475
  },
1232
2476
  {
1233
2477
  "length": 20,
1234
- "start": 2115
2478
+ "start": 11502
1235
2479
  }
1236
2480
  ]
1237
2481
  },
1238
- "contracts/types/RiskId.sol": {
1239
- "RiskIdLib": [
2482
+ "contracts/type/Referral.sol": {
2483
+ "ReferralLib": [
1240
2484
  {
1241
2485
  "length": 20,
1242
- "start": 2656
2486
+ "start": 5379
1243
2487
  }
1244
2488
  ]
1245
2489
  },
1246
- "contracts/types/Timestamp.sol": {
1247
- "TimestampLib": [
2490
+ "contracts/type/RiskId.sol": {
2491
+ "RiskIdLib": [
1248
2492
  {
1249
2493
  "length": 20,
1250
- "start": 3584
1251
- },
2494
+ "start": 11770
2495
+ }
2496
+ ]
2497
+ },
2498
+ "contracts/type/RoleId.sol": {
2499
+ "RoleIdLib": [
1252
2500
  {
1253
2501
  "length": 20,
1254
- "start": 3815
2502
+ "start": 12533
1255
2503
  }
1256
2504
  ]
1257
2505
  },
1258
- "contracts/types/UFixed.sol": {
2506
+ "contracts/type/UFixed.sol": {
1259
2507
  "UFixedLib": [
1260
2508
  {
1261
2509
  "length": 20,
1262
- "start": 1264
1263
- },
1264
- {
1265
- "length": 20,
1266
- "start": 2247
1267
- },
1268
- {
1269
- "length": 20,
1270
- "start": 3685
1271
- },
1272
- {
1273
- "length": 20,
1274
- "start": 3944
2510
+ "start": 4022
1275
2511
  },
1276
2512
  {
1277
2513
  "length": 20,
1278
- "start": 4087
2514
+ "start": 10763
1279
2515
  }
1280
2516
  ]
1281
2517
  }