@etherisc/gif-next 0.0.2-ebbe63d → 0.0.2-ebf1a6b-485

Sign up to get free protection for your applications and to get access to all the features.
Files changed (329) hide show
  1. package/README.md +524 -2
  2. package/artifacts/contracts/components/Component.sol/Component.dbg.json +4 -0
  3. package/artifacts/contracts/components/Component.sol/Component.json +774 -0
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +1279 -0
  6. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +4 -0
  7. package/artifacts/contracts/components/IComponent.sol/IComponent.json +447 -0
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +829 -0
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +1029 -0
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +672 -0
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +4 -0
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +1451 -0
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +4 -0
  17. package/artifacts/contracts/components/Product.sol/Product.json +1099 -0
  18. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  19. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +764 -0
  20. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +4 -0
  21. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.json +185 -0
  22. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +4 -0
  23. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +2422 -0
  24. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  25. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +509 -0
  26. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +4 -0
  27. package/artifacts/contracts/instance/Instance.sol/Instance.json +3326 -0
  28. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +984 -0
  30. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1355 -0
  32. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  33. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1046 -0
  34. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  35. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +693 -0
  36. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +261 -0
  38. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +4 -0
  39. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.json +552 -0
  40. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  41. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +429 -0
  42. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  43. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.json +115 -0
  44. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  45. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +502 -0
  46. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  47. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +169 -0
  48. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  49. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +254 -0
  50. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  51. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.json +10 -0
  52. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  53. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  54. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  55. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.json +10 -0
  56. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  57. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.json +10 -0
  58. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  59. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.json +10 -0
  60. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  61. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +10 -0
  62. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  63. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +968 -0
  64. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +665 -0
  66. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +4 -0
  67. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +1096 -0
  68. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +661 -0
  70. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +4 -0
  71. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +754 -0
  72. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +637 -0
  74. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
  75. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +1553 -0
  76. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  77. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +793 -0
  78. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  79. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.json +556 -0
  80. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +4 -0
  81. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +633 -0
  82. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +4 -0
  83. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.json +409 -0
  84. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  85. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +858 -0
  86. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +519 -0
  88. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +4 -0
  89. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +347 -0
  90. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +4 -0
  91. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +384 -0
  92. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +1000 -0
  94. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +689 -0
  96. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +4 -0
  97. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +727 -0
  98. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  99. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +649 -0
  100. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +4 -0
  101. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +777 -0
  102. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  103. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +649 -0
  104. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +4 -0
  105. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +771 -0
  106. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +4 -0
  107. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +737 -0
  108. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  109. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +890 -0
  110. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  111. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
  112. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +4 -0
  113. package/artifacts/contracts/registry/Registry.sol/Registry.json +839 -0
  114. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  115. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  116. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  117. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1177 -0
  118. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  119. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +670 -0
  120. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  121. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +547 -0
  122. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  123. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +498 -0
  124. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
  125. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
  126. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  127. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
  128. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  129. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +138 -0
  130. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  131. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +129 -0
  132. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  133. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +188 -0
  134. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +48 -0
  136. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  137. package/artifacts/contracts/shared/IService.sol/IService.json +269 -0
  138. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  139. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -0
  140. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  141. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +251 -0
  142. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  143. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +248 -0
  144. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  145. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +582 -0
  146. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  147. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +352 -0
  148. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  149. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +84 -0
  150. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  151. package/artifacts/contracts/shared/Service.sol/Service.json +425 -0
  152. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  153. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  154. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  155. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  156. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  157. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -0
  158. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +4 -0
  159. package/artifacts/contracts/test/TestFee.sol/TestFee.json +119 -0
  160. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +4 -0
  161. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +383 -0
  162. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +4 -0
  163. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +116 -0
  164. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +4 -0
  165. package/artifacts/contracts/test/TestService.sol/TestService.json +521 -0
  166. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +4 -0
  167. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +376 -0
  168. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +4 -0
  169. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +218 -0
  170. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +4 -0
  171. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +104 -0
  172. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +4 -0
  173. package/artifacts/contracts/test/Usdc.sol/USDC.json +376 -0
  174. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  175. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.json +10 -0
  176. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  177. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.json +174 -0
  178. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +4 -0
  179. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +10 -0
  180. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  181. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +100 -0
  182. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  183. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  184. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +4 -0
  185. package/artifacts/contracts/types/Fee.sol/FeeLib.json +257 -0
  186. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +4 -0
  187. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +125 -0
  188. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +4 -0
  189. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +153 -0
  190. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  191. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +33 -0
  192. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  193. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  194. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  195. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +92 -0
  196. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  197. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +100 -0
  198. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  199. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  200. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
  201. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
  202. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
  203. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +156 -0
  204. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +4 -0
  205. package/artifacts/contracts/types/Seconds.sol/SecondsLib.json +124 -0
  206. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +4 -0
  207. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +92 -0
  208. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +4 -0
  209. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +267 -0
  210. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  211. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  212. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  213. package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +479 -0
  214. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +4 -0
  215. package/artifacts/contracts/types/Version.sol/VersionLib.json +177 -0
  216. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +4 -0
  217. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +49 -0
  218. package/contracts/components/Component.sol +221 -0
  219. package/contracts/components/Distribution.sol +293 -0
  220. package/contracts/components/IComponent.sol +68 -0
  221. package/contracts/components/IDistributionComponent.sol +79 -0
  222. package/contracts/components/IPoolComponent.sol +151 -0
  223. package/contracts/components/IProductComponent.sol +40 -0
  224. package/contracts/components/Pool.sol +378 -0
  225. package/contracts/components/Product.sol +289 -0
  226. package/contracts/instance/BundleManager.sol +125 -0
  227. package/contracts/instance/Cloneable.sol +46 -0
  228. package/contracts/instance/IInstance.sol +92 -0
  229. package/contracts/instance/IInstanceService.sol +59 -0
  230. package/contracts/instance/Instance.sol +291 -0
  231. package/contracts/instance/InstanceAccessManager.sol +297 -0
  232. package/contracts/instance/InstanceReader.sol +293 -0
  233. package/contracts/instance/InstanceService.sol +490 -0
  234. package/contracts/instance/InstanceServiceManager.sol +54 -0
  235. package/contracts/instance/ObjectManager.sol +84 -0
  236. package/contracts/instance/base/ComponentService.sol +134 -0
  237. package/contracts/instance/base/IKeyValueStore.sol +49 -0
  238. package/contracts/instance/base/ILifecycle.sol +30 -0
  239. package/contracts/instance/base/KeyValueStore.sol +172 -0
  240. package/contracts/instance/base/Lifecycle.sol +100 -0
  241. package/contracts/instance/module/IAccess.sol +47 -0
  242. package/contracts/instance/module/IBundle.sol +21 -0
  243. package/contracts/instance/module/IDistribution.sol +41 -0
  244. package/contracts/instance/module/IPolicy.sol +72 -0
  245. package/contracts/instance/module/IRisk.sol +11 -0
  246. package/contracts/instance/module/ISetup.sol +46 -0
  247. package/contracts/instance/module/ITreasury.sol +23 -0
  248. package/contracts/instance/service/ApplicationService.sol +349 -0
  249. package/contracts/instance/service/ApplicationServiceManager.sol +35 -0
  250. package/contracts/instance/service/BundleService.sol +299 -0
  251. package/contracts/instance/service/BundleServiceManager.sol +51 -0
  252. package/contracts/instance/service/ClaimService.sol +151 -0
  253. package/contracts/instance/service/ClaimServiceManager.sol +35 -0
  254. package/contracts/instance/service/DistributionService.sol +394 -0
  255. package/contracts/instance/service/DistributionServiceManager.sol +51 -0
  256. package/contracts/instance/service/IApplicationService.sol +82 -0
  257. package/contracts/instance/service/IBundleService.sol +55 -0
  258. package/contracts/instance/service/IClaimService.sol +61 -0
  259. package/contracts/instance/service/IDistributionService.sol +86 -0
  260. package/contracts/instance/service/IPolicyService.sol +70 -0
  261. package/contracts/instance/service/IPoolService.sol +20 -0
  262. package/contracts/instance/service/IProductService.sol +40 -0
  263. package/contracts/instance/service/PolicyService.sol +402 -0
  264. package/contracts/instance/service/PolicyServiceManager.sol +54 -0
  265. package/contracts/instance/service/PoolService.sol +109 -0
  266. package/contracts/instance/service/PoolServiceManager.sol +51 -0
  267. package/contracts/instance/service/ProductService.sol +233 -0
  268. package/contracts/instance/service/ProductServiceManager.sol +54 -0
  269. package/contracts/registry/ChainNft.sol +202 -0
  270. package/contracts/registry/IRegistry.sol +99 -0
  271. package/contracts/registry/IRegistryService.sol +67 -0
  272. package/contracts/registry/ITransferInterceptor.sol +6 -0
  273. package/contracts/registry/Registry.sol +464 -0
  274. package/contracts/registry/RegistryAccessManager.sol +216 -0
  275. package/contracts/registry/RegistryService.sol +283 -0
  276. package/contracts/registry/RegistryServiceManager.sol +62 -0
  277. package/contracts/registry/ReleaseManager.sol +322 -0
  278. package/contracts/registry/TokenRegistry.sol +116 -0
  279. package/contracts/shared/ContractDeployerLib.sol +72 -0
  280. package/contracts/shared/ERC165.sol +27 -0
  281. package/contracts/shared/INftOwnable.sol +23 -0
  282. package/contracts/shared/IPolicyHolder.sol +26 -0
  283. package/contracts/shared/IRegisterable.sol +15 -0
  284. package/contracts/shared/IRegistryLinked.sol +12 -0
  285. package/contracts/shared/IService.sol +18 -0
  286. package/contracts/shared/IVersionable.sol +53 -0
  287. package/contracts/shared/NftOwnable.sol +120 -0
  288. package/contracts/shared/PolicyHolder.sol +81 -0
  289. package/contracts/shared/ProxyManager.sol +169 -0
  290. package/contracts/shared/Registerable.sol +74 -0
  291. package/contracts/shared/RegistryLinked.sol +48 -0
  292. package/contracts/shared/Service.sol +58 -0
  293. package/contracts/shared/TokenHandler.sol +27 -0
  294. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  295. package/contracts/shared/Versionable.sol +59 -0
  296. package/contracts/test/TestFee.sol +25 -0
  297. package/contracts/test/TestRegisterable.sol +18 -0
  298. package/contracts/test/TestRoleId.sol +14 -0
  299. package/contracts/test/TestService.sol +25 -0
  300. package/contracts/{Dip.sol → test/TestToken.sol} +5 -5
  301. package/contracts/test/TestVersion.sol +44 -0
  302. package/contracts/test/TestVersionable.sol +17 -0
  303. package/contracts/test/Usdc.sol +26 -0
  304. package/contracts/types/AddressSet.sol +58 -0
  305. package/contracts/types/Blocknumber.sol +118 -0
  306. package/contracts/types/ChainId.sol +38 -0
  307. package/contracts/types/ClaimId.sol +52 -0
  308. package/contracts/types/DistributorType.sol +55 -0
  309. package/contracts/types/Fee.sol +56 -0
  310. package/contracts/types/Key32.sol +50 -0
  311. package/contracts/types/NftId.sol +72 -0
  312. package/contracts/types/NftIdSet.sol +62 -0
  313. package/contracts/types/NumberId.sol +52 -0
  314. package/contracts/types/ObjectType.sol +156 -0
  315. package/contracts/types/PayoutId.sol +54 -0
  316. package/contracts/types/Referral.sol +85 -0
  317. package/contracts/types/RiskId.sol +43 -0
  318. package/contracts/types/RoleId.sol +95 -0
  319. package/contracts/types/Seconds.sol +54 -0
  320. package/contracts/types/StateId.sol +105 -0
  321. package/contracts/types/Timestamp.sol +126 -0
  322. package/contracts/types/UFixed.sol +325 -0
  323. package/contracts/types/Version.sol +107 -0
  324. package/package.json +26 -10
  325. package/artifacts/contracts/Dip.sol/DIP.dbg.json +0 -4
  326. package/artifacts/contracts/Dip.sol/DIP.json +0 -338
  327. package/artifacts/contracts/Lock.sol/Lock.dbg.json +0 -4
  328. package/artifacts/contracts/Lock.sol/Lock.json +0 -74
  329. package/contracts/Lock.sol +0 -34
@@ -0,0 +1,1355 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "InstanceReader",
4
+ "sourceName": "contracts/instance/InstanceReader.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "NftId",
10
+ "name": "bundleNftId",
11
+ "type": "uint96"
12
+ }
13
+ ],
14
+ "name": "getBundleInfo",
15
+ "outputs": [
16
+ {
17
+ "components": [
18
+ {
19
+ "internalType": "NftId",
20
+ "name": "poolNftId",
21
+ "type": "uint96"
22
+ },
23
+ {
24
+ "components": [
25
+ {
26
+ "internalType": "UFixed",
27
+ "name": "fractionalFee",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "fixedFee",
33
+ "type": "uint256"
34
+ }
35
+ ],
36
+ "internalType": "struct Fee",
37
+ "name": "fee",
38
+ "type": "tuple"
39
+ },
40
+ {
41
+ "internalType": "bytes",
42
+ "name": "filter",
43
+ "type": "bytes"
44
+ },
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "capitalAmount",
48
+ "type": "uint256"
49
+ },
50
+ {
51
+ "internalType": "uint256",
52
+ "name": "lockedAmount",
53
+ "type": "uint256"
54
+ },
55
+ {
56
+ "internalType": "uint256",
57
+ "name": "balanceAmount",
58
+ "type": "uint256"
59
+ },
60
+ {
61
+ "internalType": "Seconds",
62
+ "name": "lifetime",
63
+ "type": "uint40"
64
+ },
65
+ {
66
+ "internalType": "Timestamp",
67
+ "name": "expiredAt",
68
+ "type": "uint40"
69
+ },
70
+ {
71
+ "internalType": "Timestamp",
72
+ "name": "closedAt",
73
+ "type": "uint40"
74
+ }
75
+ ],
76
+ "internalType": "struct IBundle.BundleInfo",
77
+ "name": "info",
78
+ "type": "tuple"
79
+ }
80
+ ],
81
+ "stateMutability": "view",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "internalType": "ReferralId",
88
+ "name": "referralId",
89
+ "type": "bytes8"
90
+ }
91
+ ],
92
+ "name": "getDiscountPercentage",
93
+ "outputs": [
94
+ {
95
+ "internalType": "UFixed",
96
+ "name": "discountPercentage",
97
+ "type": "uint256"
98
+ },
99
+ {
100
+ "internalType": "ReferralStatus",
101
+ "name": "status",
102
+ "type": "uint8"
103
+ }
104
+ ],
105
+ "stateMutability": "view",
106
+ "type": "function"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "NftId",
112
+ "name": "distributionNftId",
113
+ "type": "uint96"
114
+ }
115
+ ],
116
+ "name": "getDistributionSetupInfo",
117
+ "outputs": [
118
+ {
119
+ "components": [
120
+ {
121
+ "internalType": "NftId",
122
+ "name": "productNftId",
123
+ "type": "uint96"
124
+ },
125
+ {
126
+ "internalType": "contract TokenHandler",
127
+ "name": "tokenHandler",
128
+ "type": "address"
129
+ },
130
+ {
131
+ "components": [
132
+ {
133
+ "internalType": "UFixed",
134
+ "name": "fractionalFee",
135
+ "type": "uint256"
136
+ },
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "fixedFee",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "internalType": "struct Fee",
144
+ "name": "minDistributionOwnerFee",
145
+ "type": "tuple"
146
+ },
147
+ {
148
+ "components": [
149
+ {
150
+ "internalType": "UFixed",
151
+ "name": "fractionalFee",
152
+ "type": "uint256"
153
+ },
154
+ {
155
+ "internalType": "uint256",
156
+ "name": "fixedFee",
157
+ "type": "uint256"
158
+ }
159
+ ],
160
+ "internalType": "struct Fee",
161
+ "name": "distributionFee",
162
+ "type": "tuple"
163
+ },
164
+ {
165
+ "internalType": "address",
166
+ "name": "wallet",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "sumDistributionFees",
172
+ "type": "uint256"
173
+ }
174
+ ],
175
+ "internalType": "struct ISetup.DistributionSetupInfo",
176
+ "name": "info",
177
+ "type": "tuple"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "NftId",
187
+ "name": "distributorNftId",
188
+ "type": "uint96"
189
+ }
190
+ ],
191
+ "name": "getDistributorInfo",
192
+ "outputs": [
193
+ {
194
+ "components": [
195
+ {
196
+ "internalType": "DistributorType",
197
+ "name": "distributorType",
198
+ "type": "bytes8"
199
+ },
200
+ {
201
+ "internalType": "bool",
202
+ "name": "active",
203
+ "type": "bool"
204
+ },
205
+ {
206
+ "internalType": "bytes",
207
+ "name": "data",
208
+ "type": "bytes"
209
+ },
210
+ {
211
+ "internalType": "uint256",
212
+ "name": "sumCommisions",
213
+ "type": "uint256"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "numPoliciesSold",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "internalType": "struct IDistribution.DistributorInfo",
222
+ "name": "info",
223
+ "type": "tuple"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [
231
+ {
232
+ "internalType": "DistributorType",
233
+ "name": "distributorType",
234
+ "type": "bytes8"
235
+ }
236
+ ],
237
+ "name": "getDistributorTypeInfo",
238
+ "outputs": [
239
+ {
240
+ "components": [
241
+ {
242
+ "internalType": "string",
243
+ "name": "name",
244
+ "type": "string"
245
+ },
246
+ {
247
+ "internalType": "UFixed",
248
+ "name": "minDiscountPercentage",
249
+ "type": "uint256"
250
+ },
251
+ {
252
+ "internalType": "UFixed",
253
+ "name": "maxDiscountPercentage",
254
+ "type": "uint256"
255
+ },
256
+ {
257
+ "internalType": "UFixed",
258
+ "name": "commissionPercentage",
259
+ "type": "uint256"
260
+ },
261
+ {
262
+ "internalType": "uint32",
263
+ "name": "maxReferralCount",
264
+ "type": "uint32"
265
+ },
266
+ {
267
+ "internalType": "uint32",
268
+ "name": "maxReferralLifetime",
269
+ "type": "uint32"
270
+ },
271
+ {
272
+ "internalType": "bool",
273
+ "name": "allowSelfReferrals",
274
+ "type": "bool"
275
+ },
276
+ {
277
+ "internalType": "bool",
278
+ "name": "allowRenewals",
279
+ "type": "bool"
280
+ },
281
+ {
282
+ "internalType": "bytes",
283
+ "name": "data",
284
+ "type": "bytes"
285
+ }
286
+ ],
287
+ "internalType": "struct IDistribution.DistributorTypeInfo",
288
+ "name": "info",
289
+ "type": "tuple"
290
+ }
291
+ ],
292
+ "stateMutability": "view",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "getInstance",
298
+ "outputs": [
299
+ {
300
+ "internalType": "contract IInstance",
301
+ "name": "instance",
302
+ "type": "address"
303
+ }
304
+ ],
305
+ "stateMutability": "view",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [],
310
+ "name": "getInstanceStore",
311
+ "outputs": [
312
+ {
313
+ "internalType": "contract IKeyValueStore",
314
+ "name": "store",
315
+ "type": "address"
316
+ }
317
+ ],
318
+ "stateMutability": "view",
319
+ "type": "function"
320
+ },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "Key32",
325
+ "name": "key",
326
+ "type": "bytes32"
327
+ }
328
+ ],
329
+ "name": "getMetadata",
330
+ "outputs": [
331
+ {
332
+ "components": [
333
+ {
334
+ "internalType": "ObjectType",
335
+ "name": "objectType",
336
+ "type": "uint8"
337
+ },
338
+ {
339
+ "internalType": "StateId",
340
+ "name": "state",
341
+ "type": "uint8"
342
+ },
343
+ {
344
+ "internalType": "address",
345
+ "name": "updatedBy",
346
+ "type": "address"
347
+ },
348
+ {
349
+ "internalType": "Blocknumber",
350
+ "name": "updatedIn",
351
+ "type": "uint32"
352
+ },
353
+ {
354
+ "internalType": "Blocknumber",
355
+ "name": "createdIn",
356
+ "type": "uint32"
357
+ }
358
+ ],
359
+ "internalType": "struct IKeyValueStore.Metadata",
360
+ "name": "metadata",
361
+ "type": "tuple"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [
369
+ {
370
+ "internalType": "NftId",
371
+ "name": "policyNftId",
372
+ "type": "uint96"
373
+ }
374
+ ],
375
+ "name": "getPolicyInfo",
376
+ "outputs": [
377
+ {
378
+ "components": [
379
+ {
380
+ "internalType": "NftId",
381
+ "name": "productNftId",
382
+ "type": "uint96"
383
+ },
384
+ {
385
+ "internalType": "NftId",
386
+ "name": "bundleNftId",
387
+ "type": "uint96"
388
+ },
389
+ {
390
+ "internalType": "ReferralId",
391
+ "name": "referralId",
392
+ "type": "bytes8"
393
+ },
394
+ {
395
+ "internalType": "RiskId",
396
+ "name": "riskId",
397
+ "type": "bytes8"
398
+ },
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "sumInsuredAmount",
402
+ "type": "uint256"
403
+ },
404
+ {
405
+ "internalType": "uint256",
406
+ "name": "premiumAmount",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "premiumPaidAmount",
412
+ "type": "uint256"
413
+ },
414
+ {
415
+ "internalType": "Seconds",
416
+ "name": "lifetime",
417
+ "type": "uint40"
418
+ },
419
+ {
420
+ "internalType": "bytes",
421
+ "name": "applicationData",
422
+ "type": "bytes"
423
+ },
424
+ {
425
+ "internalType": "bytes",
426
+ "name": "policyData",
427
+ "type": "bytes"
428
+ },
429
+ {
430
+ "internalType": "uint16",
431
+ "name": "claimsCount",
432
+ "type": "uint16"
433
+ },
434
+ {
435
+ "internalType": "uint16",
436
+ "name": "openClaimsCount",
437
+ "type": "uint16"
438
+ },
439
+ {
440
+ "internalType": "uint256",
441
+ "name": "payoutAmount",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "internalType": "Timestamp",
446
+ "name": "activatedAt",
447
+ "type": "uint40"
448
+ },
449
+ {
450
+ "internalType": "Timestamp",
451
+ "name": "expiredAt",
452
+ "type": "uint40"
453
+ },
454
+ {
455
+ "internalType": "Timestamp",
456
+ "name": "closedAt",
457
+ "type": "uint40"
458
+ }
459
+ ],
460
+ "internalType": "struct IPolicy.PolicyInfo",
461
+ "name": "info",
462
+ "type": "tuple"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
470
+ {
471
+ "internalType": "NftId",
472
+ "name": "policyNftId",
473
+ "type": "uint96"
474
+ }
475
+ ],
476
+ "name": "getPolicyState",
477
+ "outputs": [
478
+ {
479
+ "internalType": "StateId",
480
+ "name": "state",
481
+ "type": "uint8"
482
+ }
483
+ ],
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "NftId",
491
+ "name": "poolNftId",
492
+ "type": "uint96"
493
+ }
494
+ ],
495
+ "name": "getPoolSetupInfo",
496
+ "outputs": [
497
+ {
498
+ "components": [
499
+ {
500
+ "internalType": "NftId",
501
+ "name": "productNftId",
502
+ "type": "uint96"
503
+ },
504
+ {
505
+ "internalType": "contract TokenHandler",
506
+ "name": "tokenHandler",
507
+ "type": "address"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "maxCapitalAmount",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "internalType": "bool",
516
+ "name": "isInterceptingBundleTransfers",
517
+ "type": "bool"
518
+ },
519
+ {
520
+ "internalType": "bool",
521
+ "name": "isExternallyManaged",
522
+ "type": "bool"
523
+ },
524
+ {
525
+ "internalType": "bool",
526
+ "name": "isVerifyingApplications",
527
+ "type": "bool"
528
+ },
529
+ {
530
+ "internalType": "UFixed",
531
+ "name": "collateralizationLevel",
532
+ "type": "uint256"
533
+ },
534
+ {
535
+ "internalType": "UFixed",
536
+ "name": "retentionLevel",
537
+ "type": "uint256"
538
+ },
539
+ {
540
+ "components": [
541
+ {
542
+ "internalType": "UFixed",
543
+ "name": "fractionalFee",
544
+ "type": "uint256"
545
+ },
546
+ {
547
+ "internalType": "uint256",
548
+ "name": "fixedFee",
549
+ "type": "uint256"
550
+ }
551
+ ],
552
+ "internalType": "struct Fee",
553
+ "name": "poolFee",
554
+ "type": "tuple"
555
+ },
556
+ {
557
+ "components": [
558
+ {
559
+ "internalType": "UFixed",
560
+ "name": "fractionalFee",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "fixedFee",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "internalType": "struct Fee",
570
+ "name": "stakingFee",
571
+ "type": "tuple"
572
+ },
573
+ {
574
+ "components": [
575
+ {
576
+ "internalType": "UFixed",
577
+ "name": "fractionalFee",
578
+ "type": "uint256"
579
+ },
580
+ {
581
+ "internalType": "uint256",
582
+ "name": "fixedFee",
583
+ "type": "uint256"
584
+ }
585
+ ],
586
+ "internalType": "struct Fee",
587
+ "name": "performanceFee",
588
+ "type": "tuple"
589
+ },
590
+ {
591
+ "internalType": "address",
592
+ "name": "wallet",
593
+ "type": "address"
594
+ }
595
+ ],
596
+ "internalType": "struct ISetup.PoolSetupInfo",
597
+ "name": "info",
598
+ "type": "tuple"
599
+ }
600
+ ],
601
+ "stateMutability": "view",
602
+ "type": "function"
603
+ },
604
+ {
605
+ "inputs": [
606
+ {
607
+ "internalType": "NftId",
608
+ "name": "productNftId",
609
+ "type": "uint96"
610
+ }
611
+ ],
612
+ "name": "getProductSetupInfo",
613
+ "outputs": [
614
+ {
615
+ "components": [
616
+ {
617
+ "internalType": "contract IERC20Metadata",
618
+ "name": "token",
619
+ "type": "address"
620
+ },
621
+ {
622
+ "internalType": "contract TokenHandler",
623
+ "name": "tokenHandler",
624
+ "type": "address"
625
+ },
626
+ {
627
+ "internalType": "NftId",
628
+ "name": "distributionNftId",
629
+ "type": "uint96"
630
+ },
631
+ {
632
+ "internalType": "NftId",
633
+ "name": "poolNftId",
634
+ "type": "uint96"
635
+ },
636
+ {
637
+ "components": [
638
+ {
639
+ "internalType": "UFixed",
640
+ "name": "fractionalFee",
641
+ "type": "uint256"
642
+ },
643
+ {
644
+ "internalType": "uint256",
645
+ "name": "fixedFee",
646
+ "type": "uint256"
647
+ }
648
+ ],
649
+ "internalType": "struct Fee",
650
+ "name": "productFee",
651
+ "type": "tuple"
652
+ },
653
+ {
654
+ "components": [
655
+ {
656
+ "internalType": "UFixed",
657
+ "name": "fractionalFee",
658
+ "type": "uint256"
659
+ },
660
+ {
661
+ "internalType": "uint256",
662
+ "name": "fixedFee",
663
+ "type": "uint256"
664
+ }
665
+ ],
666
+ "internalType": "struct Fee",
667
+ "name": "processingFee",
668
+ "type": "tuple"
669
+ },
670
+ {
671
+ "internalType": "bool",
672
+ "name": "isIntercepting",
673
+ "type": "bool"
674
+ },
675
+ {
676
+ "internalType": "address",
677
+ "name": "wallet",
678
+ "type": "address"
679
+ }
680
+ ],
681
+ "internalType": "struct ISetup.ProductSetupInfo",
682
+ "name": "info",
683
+ "type": "tuple"
684
+ }
685
+ ],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [
691
+ {
692
+ "internalType": "ReferralId",
693
+ "name": "referralId",
694
+ "type": "bytes8"
695
+ }
696
+ ],
697
+ "name": "getReferralInfo",
698
+ "outputs": [
699
+ {
700
+ "components": [
701
+ {
702
+ "internalType": "NftId",
703
+ "name": "distributorNftId",
704
+ "type": "uint96"
705
+ },
706
+ {
707
+ "internalType": "string",
708
+ "name": "referralCode",
709
+ "type": "string"
710
+ },
711
+ {
712
+ "internalType": "UFixed",
713
+ "name": "discountPercentage",
714
+ "type": "uint256"
715
+ },
716
+ {
717
+ "internalType": "uint32",
718
+ "name": "maxReferrals",
719
+ "type": "uint32"
720
+ },
721
+ {
722
+ "internalType": "uint32",
723
+ "name": "usedReferrals",
724
+ "type": "uint32"
725
+ },
726
+ {
727
+ "internalType": "Timestamp",
728
+ "name": "expiryAt",
729
+ "type": "uint40"
730
+ },
731
+ {
732
+ "internalType": "bytes",
733
+ "name": "data",
734
+ "type": "bytes"
735
+ }
736
+ ],
737
+ "internalType": "struct IDistribution.ReferralInfo",
738
+ "name": "info",
739
+ "type": "tuple"
740
+ }
741
+ ],
742
+ "stateMutability": "view",
743
+ "type": "function"
744
+ },
745
+ {
746
+ "inputs": [
747
+ {
748
+ "internalType": "RiskId",
749
+ "name": "riskId",
750
+ "type": "bytes8"
751
+ }
752
+ ],
753
+ "name": "getRiskInfo",
754
+ "outputs": [
755
+ {
756
+ "components": [
757
+ {
758
+ "internalType": "NftId",
759
+ "name": "productNftId",
760
+ "type": "uint96"
761
+ },
762
+ {
763
+ "internalType": "bytes",
764
+ "name": "data",
765
+ "type": "bytes"
766
+ }
767
+ ],
768
+ "internalType": "struct IRisk.RiskInfo",
769
+ "name": "info",
770
+ "type": "tuple"
771
+ }
772
+ ],
773
+ "stateMutability": "view",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [
778
+ {
779
+ "internalType": "NftId",
780
+ "name": "productNftId",
781
+ "type": "uint96"
782
+ }
783
+ ],
784
+ "name": "getTokenHandler",
785
+ "outputs": [
786
+ {
787
+ "internalType": "address",
788
+ "name": "tokenHandler",
789
+ "type": "address"
790
+ }
791
+ ],
792
+ "stateMutability": "view",
793
+ "type": "function"
794
+ },
795
+ {
796
+ "inputs": [
797
+ {
798
+ "internalType": "NftId",
799
+ "name": "productNftId",
800
+ "type": "uint96"
801
+ }
802
+ ],
803
+ "name": "getTreasuryInfo",
804
+ "outputs": [
805
+ {
806
+ "components": [
807
+ {
808
+ "internalType": "contract IERC20Metadata",
809
+ "name": "token",
810
+ "type": "address"
811
+ },
812
+ {
813
+ "internalType": "contract TokenHandler",
814
+ "name": "tokenHandler",
815
+ "type": "address"
816
+ },
817
+ {
818
+ "internalType": "NftId",
819
+ "name": "distributionNftId",
820
+ "type": "uint96"
821
+ },
822
+ {
823
+ "internalType": "NftId",
824
+ "name": "poolNftId",
825
+ "type": "uint96"
826
+ },
827
+ {
828
+ "components": [
829
+ {
830
+ "internalType": "UFixed",
831
+ "name": "fractionalFee",
832
+ "type": "uint256"
833
+ },
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "fixedFee",
837
+ "type": "uint256"
838
+ }
839
+ ],
840
+ "internalType": "struct Fee",
841
+ "name": "distributionFee",
842
+ "type": "tuple"
843
+ },
844
+ {
845
+ "components": [
846
+ {
847
+ "internalType": "UFixed",
848
+ "name": "fractionalFee",
849
+ "type": "uint256"
850
+ },
851
+ {
852
+ "internalType": "uint256",
853
+ "name": "fixedFee",
854
+ "type": "uint256"
855
+ }
856
+ ],
857
+ "internalType": "struct Fee",
858
+ "name": "productFee",
859
+ "type": "tuple"
860
+ },
861
+ {
862
+ "components": [
863
+ {
864
+ "internalType": "UFixed",
865
+ "name": "fractionalFee",
866
+ "type": "uint256"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "fixedFee",
871
+ "type": "uint256"
872
+ }
873
+ ],
874
+ "internalType": "struct Fee",
875
+ "name": "processingFee",
876
+ "type": "tuple"
877
+ },
878
+ {
879
+ "components": [
880
+ {
881
+ "internalType": "UFixed",
882
+ "name": "fractionalFee",
883
+ "type": "uint256"
884
+ },
885
+ {
886
+ "internalType": "uint256",
887
+ "name": "fixedFee",
888
+ "type": "uint256"
889
+ }
890
+ ],
891
+ "internalType": "struct Fee",
892
+ "name": "poolFee",
893
+ "type": "tuple"
894
+ },
895
+ {
896
+ "components": [
897
+ {
898
+ "internalType": "UFixed",
899
+ "name": "fractionalFee",
900
+ "type": "uint256"
901
+ },
902
+ {
903
+ "internalType": "uint256",
904
+ "name": "fixedFee",
905
+ "type": "uint256"
906
+ }
907
+ ],
908
+ "internalType": "struct Fee",
909
+ "name": "stakingFee",
910
+ "type": "tuple"
911
+ },
912
+ {
913
+ "components": [
914
+ {
915
+ "internalType": "UFixed",
916
+ "name": "fractionalFee",
917
+ "type": "uint256"
918
+ },
919
+ {
920
+ "internalType": "uint256",
921
+ "name": "fixedFee",
922
+ "type": "uint256"
923
+ }
924
+ ],
925
+ "internalType": "struct Fee",
926
+ "name": "performanceFee",
927
+ "type": "tuple"
928
+ }
929
+ ],
930
+ "internalType": "struct ITreasury.TreasuryInfo",
931
+ "name": "info",
932
+ "type": "tuple"
933
+ }
934
+ ],
935
+ "stateMutability": "view",
936
+ "type": "function"
937
+ },
938
+ {
939
+ "inputs": [
940
+ {
941
+ "internalType": "address",
942
+ "name": "registry",
943
+ "type": "address"
944
+ },
945
+ {
946
+ "internalType": "address",
947
+ "name": "instance",
948
+ "type": "address"
949
+ }
950
+ ],
951
+ "name": "initialize",
952
+ "outputs": [],
953
+ "stateMutability": "nonpayable",
954
+ "type": "function"
955
+ },
956
+ {
957
+ "inputs": [
958
+ {
959
+ "internalType": "NftId",
960
+ "name": "poolNftId",
961
+ "type": "uint96"
962
+ }
963
+ ],
964
+ "name": "toBundleKey",
965
+ "outputs": [
966
+ {
967
+ "internalType": "Key32",
968
+ "name": "",
969
+ "type": "bytes32"
970
+ }
971
+ ],
972
+ "stateMutability": "pure",
973
+ "type": "function"
974
+ },
975
+ {
976
+ "inputs": [
977
+ {
978
+ "internalType": "NftId",
979
+ "name": "distributionNftId",
980
+ "type": "uint96"
981
+ }
982
+ ],
983
+ "name": "toDistributionKey",
984
+ "outputs": [
985
+ {
986
+ "internalType": "Key32",
987
+ "name": "",
988
+ "type": "bytes32"
989
+ }
990
+ ],
991
+ "stateMutability": "pure",
992
+ "type": "function"
993
+ },
994
+ {
995
+ "inputs": [
996
+ {
997
+ "internalType": "NftId",
998
+ "name": "distributorNftId",
999
+ "type": "uint96"
1000
+ }
1001
+ ],
1002
+ "name": "toDistributorKey",
1003
+ "outputs": [
1004
+ {
1005
+ "internalType": "Key32",
1006
+ "name": "",
1007
+ "type": "bytes32"
1008
+ }
1009
+ ],
1010
+ "stateMutability": "pure",
1011
+ "type": "function"
1012
+ },
1013
+ {
1014
+ "inputs": [
1015
+ {
1016
+ "internalType": "UFixed",
1017
+ "name": "value",
1018
+ "type": "uint256"
1019
+ }
1020
+ ],
1021
+ "name": "toInt",
1022
+ "outputs": [
1023
+ {
1024
+ "internalType": "uint256",
1025
+ "name": "",
1026
+ "type": "uint256"
1027
+ }
1028
+ ],
1029
+ "stateMutability": "pure",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [
1034
+ {
1035
+ "internalType": "NftId",
1036
+ "name": "policyNftId",
1037
+ "type": "uint96"
1038
+ }
1039
+ ],
1040
+ "name": "toPolicyKey",
1041
+ "outputs": [
1042
+ {
1043
+ "internalType": "Key32",
1044
+ "name": "",
1045
+ "type": "bytes32"
1046
+ }
1047
+ ],
1048
+ "stateMutability": "pure",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [
1053
+ {
1054
+ "internalType": "NftId",
1055
+ "name": "poolNftId",
1056
+ "type": "uint96"
1057
+ }
1058
+ ],
1059
+ "name": "toPoolKey",
1060
+ "outputs": [
1061
+ {
1062
+ "internalType": "Key32",
1063
+ "name": "",
1064
+ "type": "bytes32"
1065
+ }
1066
+ ],
1067
+ "stateMutability": "pure",
1068
+ "type": "function"
1069
+ },
1070
+ {
1071
+ "inputs": [
1072
+ {
1073
+ "internalType": "NftId",
1074
+ "name": "productNftId",
1075
+ "type": "uint96"
1076
+ }
1077
+ ],
1078
+ "name": "toProductKey",
1079
+ "outputs": [
1080
+ {
1081
+ "internalType": "Key32",
1082
+ "name": "",
1083
+ "type": "bytes32"
1084
+ }
1085
+ ],
1086
+ "stateMutability": "pure",
1087
+ "type": "function"
1088
+ },
1089
+ {
1090
+ "inputs": [
1091
+ {
1092
+ "internalType": "NftId",
1093
+ "name": "distributionNftId",
1094
+ "type": "uint96"
1095
+ },
1096
+ {
1097
+ "internalType": "string",
1098
+ "name": "referralCode",
1099
+ "type": "string"
1100
+ }
1101
+ ],
1102
+ "name": "toReferralId",
1103
+ "outputs": [
1104
+ {
1105
+ "internalType": "ReferralId",
1106
+ "name": "referralId",
1107
+ "type": "bytes8"
1108
+ }
1109
+ ],
1110
+ "stateMutability": "pure",
1111
+ "type": "function"
1112
+ },
1113
+ {
1114
+ "inputs": [
1115
+ {
1116
+ "internalType": "NftId",
1117
+ "name": "productNftId",
1118
+ "type": "uint96"
1119
+ }
1120
+ ],
1121
+ "name": "toTreasuryKey",
1122
+ "outputs": [
1123
+ {
1124
+ "internalType": "Key32",
1125
+ "name": "",
1126
+ "type": "bytes32"
1127
+ }
1128
+ ],
1129
+ "stateMutability": "pure",
1130
+ "type": "function"
1131
+ },
1132
+ {
1133
+ "inputs": [
1134
+ {
1135
+ "internalType": "uint256",
1136
+ "name": "value",
1137
+ "type": "uint256"
1138
+ },
1139
+ {
1140
+ "internalType": "int8",
1141
+ "name": "exp",
1142
+ "type": "int8"
1143
+ }
1144
+ ],
1145
+ "name": "toUFixed",
1146
+ "outputs": [
1147
+ {
1148
+ "internalType": "UFixed",
1149
+ "name": "",
1150
+ "type": "uint256"
1151
+ }
1152
+ ],
1153
+ "stateMutability": "pure",
1154
+ "type": "function"
1155
+ }
1156
+ ],
1157
+ "bytecode": "0x608060405234801561001057600080fd5b50612e22806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063887b1fa9116100f9578063bd7d9d8511610097578063dd26287a11610071578063dd26287a1461050e578063de7b5d1414610521578063f2b246c314610532578063f7f318d31461055257600080fd5b8063bd7d9d85146104bd578063d06458c6146104dd578063d4cda0d8146104fd57600080fd5b80639ad69c67116100d35780639ad69c671461036c578063a310e2a3146103fb578063a5961b4c14610426578063b82d7ef51461049357600080fd5b8063887b1fa9146103075780639096a1f31461032757806390af70641461034c57600080fd5b806344aa68361161016657806355e343a91161014057806355e343a9146102ae57806364eb3a9b146102ce5780637bfd3217146102e15780637e54602a146102f457600080fd5b806344aa6836146102665780634793b4ab14610279578063485cc9551461029957600080fd5b80631488c845146101ae5780631d3be477146101d457806325d03743146101f457806327b1d7921461020757806335898f5d146102275780633f093cd61461023a575b600080fd5b6101c16101bc366004611951565b610565565b6040519081526020015b60405180910390f35b6101e76101e23660046119a0565b6105eb565b6040516101cb9190611a0d565b6101c1610202366004611abd565b61073d565b61021a610215366004611abd565b6107dd565b6040516101cb9190611ada565b6101c1610235366004611abd565b6108b9565b61024d610248366004611cc0565b6108e6565b6040516001600160c01b031990911681526020016101cb565b6101c1610274366004611d52565b610963565b61028c610287366004611abd565b61099e565b6040516101cb9190611d6b565b6102ac6102a7366004611e3c565b610a44565b005b6102c16102bc366004611abd565b610b4f565b6040516101cb9190611e6a565b6101c16102dc366004611abd565b610c7f565b6101c16102ef366004611abd565b610cac565b6101c1610302366004611abd565b610cd9565b61031a6103153660046119a0565b610d06565b6040516101cb9190611f63565b61033a610335366004611abd565b610e2f565b60405160ff90911681526020016101cb565b61035f61035a366004611abd565b610eab565b6040516101cb9190611f99565b61037f61037a366004611abd565b610f51565b6040516101cb919081516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015261010083019190606085015180516080860152602081015160a0860152915060808501511660c08401525060a09092015160e09091015290565b61040e610409366004611abd565b610ff7565b6040516001600160a01b0390911681526020016101cb565b610439610434366004611d52565b6110a5565b6040516101cb9190815160ff9081168252602080840151909116908201526040808301516001600160a01b03169082015260608083015163ffffffff90811691830191909152608092830151169181019190915260a00190565b6104a66104a13660046119a0565b611139565b6040805192835260ff9091166020830152016101cb565b6104d06104cb366004611abd565b6113e1565b6040516101cb9190612046565b6104f06104eb3660046119a0565b6114ff565b6040516101cb9190612194565b6002546001600160a01b031661040e565b6101c161051c366004611abd565b611672565b6001546001600160a01b031661040e565b610545610540366004611abd565b61169f565b6040516101cb9190612244565b6101c1610560366004611abd565b6117e7565b604051631488c84560e01b815260048101839052600082810b60248301529073__$5ac3274b8cf1e01ea223bf093142af05b0$__90631488c84590604401602060405180830381865af41580156105c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e49190612346565b9392505050565b6040805160e08101825260008082526060602083018190529282018190528282018190526080820181905260a082015260c08101919091526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$9f290d768183857d0249ab5bb54619c5ab$__906355ee627590602401602060405180830381865af4158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b69190612346565b6040518263ffffffff1660e01b81526004016106d491815260200190565b600060405180830381865afa1580156106f1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261071991908101906123a4565b80519091501561073757808060200190518101906105e49190612423565b50919050565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660655b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526044015b602060405180830381865af41580156107b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d79190612346565b92915050565b61081b6040518060a0016040528060006001600160c01b03191681526020016000151581526020016060815260200160008152602001600081525090565b6002546000906001600160a01b03166354f6127f61083885610cd9565b6040518263ffffffff1660e01b815260040161085691815260200190565b600060405180830381865afa158015610873573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261089b91908101906123a4565b80519091501561073757808060200190518101906105e4919061251c565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b0384166078610766565b604051631f849e6b60e11b815260009073__$9f290d768183857d0249ab5bb54619c5ab$__90633f093cd69061092290869086906004016125c3565b602060405180830381865af415801561093f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e491906125e5565b604051632255341b60e11b81526004810182905260009073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401610796565b6109a6611814565b6002546000906001600160a01b03166354f6127f6109c3856117e7565b6040518263ffffffff1660e01b81526004016109e191815260200190565b600060405180830381865afa1580156109fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a2691908101906123a4565b80519091501561073757808060200190518101906105e49190612632565b60005460ff1615610aa65760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030303a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084015b60405180910390fd5b6001600160a01b038216610afc5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4352442d3030313a52454749535452595f5a45524f00000000006044820152606401610a9d565b60008054600180546001600160a01b039485166001600160a01b0319918216811783556002805490921617905560ff199390941661010002929092166001600160a81b0319909216919091179091179055565b610be1604080516101808101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e0830182905283518085018552828152808201839052610100840152835180850185528281528082018390526101208401528351808501909452818452830152906101408201908152600060209091015290565b6002546000906001600160a01b03166354f6127f610bfe85611672565b6040518263ffffffff1660e01b8152600401610c1c91815260200190565b600060405180830381865afa158015610c39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c6191908101906123a4565b80519091501561073757808060200190518101906105e49190612724565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d3610766565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416606e610766565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607a610766565b6040805180820190915260008152606060208201526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dae9190612346565b6040518263ffffffff1660e01b8152600401610dcc91815260200190565b600060405180830381865afa158015610de9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e1191908101906123a4565b80519091501561073757808060200190518101906105e49190612800565b6001546000906001600160a01b03166309648a9d610e4c84610c7f565b6040518263ffffffff1660e01b8152600401610e6a91815260200190565b602060405180830381865afa158015610e87573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d7919061288e565b610eb3611899565b6002546000906001600160a01b03166354f6127f610ed085610cac565b6040518263ffffffff1660e01b8152600401610eee91815260200190565b600060405180830381865afa158015610f0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f3391908101906123a4565b80519091501561073757808060200190518101906105e491906128ab565b610f59611909565b6002546000906001600160a01b03166354f6127f610f76856108b9565b6040518263ffffffff1660e01b8152600401610f9491815260200190565b600060405180830381865afa158015610fb1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fd991908101906123a4565b80519091501561073757808060200190518101906105e49190612953565b60025460009081906001600160a01b03166354f6127f6110168561073d565b6040518263ffffffff1660e01b815260040161103491815260200190565b600060405180830381865afa158015611051573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261107991908101906123a4565b8051909150156107375760008180602001905181019061109991906129f4565b60200151949350505050565b6040805160a081018252600080825260208201819052818301819052606082018190526080820152600254915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c9060240160a060405180830381865afa158015611115573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d79190612ac5565b6000806000611147846105eb565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156111a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ca9190612b3f565b156112495773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611218573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123c9190612346565b60645b9250925050915091565b6112cd8160a0015173__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af415801561129a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112be9190612b5a565b64ffffffffff90811691161090565b156113465773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561131b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133f9190612346565b606e61123f565b806060015163ffffffff16816080015163ffffffff16106113d55773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156113aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ce9190612346565b607861123f565b6040810151600a61123f565b604080516102008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018190526101208201526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e08101919091526002546000906001600160a01b03166354f6127f61147e85610c7f565b6040518263ffffffff1660e01b815260040161149c91815260200190565b600060405180830381865afa1580156114b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114e191908101906123a4565b80519091501561073757808060200190518101906105e49190612b89565b61155e60405180610120016040528060608152602001600081526020016000815260200160008152602001600063ffffffff168152602001600063ffffffff168152602001600015158152602001600015158152602001606081525090565b6002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$5906aa3f06c54ee09b434647963e1d1ed0$__906355ee627590602401602060405180830381865af41580156115cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f19190612346565b6040518263ffffffff1660e01b815260040161160f91815260200190565b600060405180830381865afa15801561162c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261165491908101906123a4565b80519091501561073757808060200190518101906105e49190612cf5565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416608c610766565b611749604080516101408101825260008082526020808301829052828401829052606083018290528351808501855282815280820183905260808401528351808501855282815280820183905260a08401528351808501855282815280820183905260c08401528351808501855282815280820183905260e08401528351808501855282815280820183905261010084015283518085019094528184528301529061012082015290565b6002546000906001600160a01b03166354f6127f6117668561073d565b6040518263ffffffff1660e01b815260040161178491815260200190565b600060405180830381865afa1580156117a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117c991908101906123a4565b80519091501561073757808060200190518101906105e491906129f4565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc610766565b60405180610120016040528060006001600160601b0316815260200161184d604051806040016040528060008152602001600081525090565b815260200160608152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600064ffffffffff168152602001600064ffffffffff1681525090565b6040805161010081018252600080825260208083018290528284018290526060830182905283518085019094528184528301529060808201905b81526020016118f5604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b6040518060c0016040528060006001600160601b0316815260200160006001600160a01b031681526020016118d3604051806040016040528060008152602001600081525090565b6000806040838503121561196457600080fd5b8235915060208301358060000b811461197c57600080fd5b809150509250929050565b6001600160c01b03198116811461199d57600080fd5b50565b6000602082840312156119b257600080fd5b81356105e481611987565b60005b838110156119d85781810151838201526020016119c0565b50506000910152565b600081518084526119f98160208601602086016119bd565b601f01601f19169290920160200192915050565b602081526001600160601b0382511660208201526000602083015160e06040840152611a3d6101008401826119e1565b90506040840151606084015263ffffffff60608501511660808401526080840151611a7060a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e0850152611a9f82826119e1565b95945050505050565b6001600160601b038116811461199d57600080fd5b600060208284031215611acf57600080fd5b81356105e481611aa8565b602081526001600160401b0360c01b82511660208201526020820151151560408201526000604083015160a06060840152611b1860c08401826119e1565b905060608401516080840152608084015160a08401528091505092915050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715611b7057611b70611b38565b60405290565b60405160a081016001600160401b0381118282101715611b7057611b70611b38565b604080519081016001600160401b0381118282101715611b7057611b70611b38565b60405161012081016001600160401b0381118282101715611b7057611b70611b38565b60405161018081016001600160401b0381118282101715611b7057611b70611b38565b60405161010081016001600160401b0381118282101715611b7057611b70611b38565b60405161014081016001600160401b0381118282101715611b7057611b70611b38565b60405161020081016001600160401b0381118282101715611b7057611b70611b38565b604051601f8201601f191681016001600160401b0381118282101715611c9157611c91611b38565b604052919050565b60006001600160401b03821115611cb257611cb2611b38565b50601f01601f191660200190565b60008060408385031215611cd357600080fd5b8235611cde81611aa8565b915060208301356001600160401b03811115611cf957600080fd5b8301601f81018513611d0a57600080fd5b8035611d1d611d1882611c99565b611c69565b818152866020838501011115611d3257600080fd5b816020840160208301376000602083830101528093505050509250929050565b600060208284031215611d6457600080fd5b5035919050565b60208152611d856020820183516001600160601b03169052565b60006020830151611da3604084018280518252602090810151910152565b506040830151610140806080850152611dc06101608501836119e1565b9150606085015160a0850152608085015160c085015260a085015160e085015260c0850151610100611dfa8187018364ffffffffff169052565b60e087015164ffffffffff811661012088015291505b9095015164ffffffffff1693019290925250919050565b6001600160a01b038116811461199d57600080fd5b60008060408385031215611e4f57600080fd5b8235611e5a81611e27565b9150602083013561197c81611e27565b81516001600160601b031681526101e081016020830151611e9660208401826001600160a01b03169052565b50604083015160408301526060830151611eb4606084018215159052565b506080830151611ec8608084018215159052565b5060a0830151611edc60a084018215159052565b5060c083015160c083015260e083015160e083015261010080840151611f0e8285018280518252602090810151910152565b5050610120830151610140611f2f8185018380518252602090810151910152565b8401518051610180850152602001516101a0840152506101608301516001600160a01b0381166101c08401525b5092915050565b602081526001600160601b03825116602082015260006020830151604080840152611f9160608401826119e1565b949350505050565b81516001600160a01b039081168252602080840151909116908201526040808301516001600160601b031690820152606080830151610140830191611fe8908401826001600160601b03169052565b506080830151612005608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c08301518015156101008401525060e08301516001600160a01b038116610120840152611f5c565b602081526120606020820183516001600160601b03169052565b6000602083015161207c60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e08301516101006120e18185018364ffffffffff169052565b8085015191505061020061012081818601526121016102208601846119e1565b9250808601519050610140601f19868503018187015261212184836119e1565b93508087015191505061016061213c8187018361ffff169052565b86015190506101806121538682018361ffff169052565b8601516101a08681019190915286015190506101c061217a8187018364ffffffffff169052565b86015190506101e0611e108682018364ffffffffff169052565b60208152600082516101208060208501526121b36101408501836119e1565b915060208501516040850152604085015160608501526060850151608085015260808501516121ea60a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e08501516101006122208187018315159052565b860151858403601f190183870152905061223a83826119e1565b9695505050505050565b81516001600160a01b031681526102008101602083015161227060208401826001600160a01b03169052565b50604083015161228b60408401826001600160601b03169052565b5060608301516122a660608401826001600160601b03169052565b5060808301516122c3608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c08301516101006122f98185018380518252602090810151910152565b60e085015180516101408601526020908101516101608601529085015180516101808601528101516101a085015261012085015180516101c0860152908101516101e08501529050611f5c565b60006020828403121561235857600080fd5b5051919050565b600082601f83011261237057600080fd5b815161237e611d1882611c99565b81815284602083860101111561239357600080fd5b611f918260208301602087016119bd565b6000602082840312156123b657600080fd5b81516001600160401b038111156123cc57600080fd5b611f918482850161235f565b80516123e381611aa8565b919050565b63ffffffff8116811461199d57600080fd5b80516123e3816123e8565b64ffffffffff8116811461199d57600080fd5b80516123e381612405565b60006020828403121561243557600080fd5b81516001600160401b038082111561244c57600080fd5b9083019060e0828603121561246057600080fd5b612468611b4e565b612471836123d8565b815260208301518281111561248557600080fd5b6124918782860161235f565b602083015250604083015160408201526124ad606084016123fa565b60608201526124be608084016123fa565b60808201526124cf60a08401612418565b60a082015260c0830151828111156124e657600080fd5b6124f28782860161235f565b60c08301525095945050505050565b80516123e381611987565b805180151581146123e357600080fd5b60006020828403121561252e57600080fd5b81516001600160401b038082111561254557600080fd5b9083019060a0828603121561255957600080fd5b612561611b76565b825161256c81611987565b815261257a6020840161250c565b602082015260408301518281111561259157600080fd5b61259d8782860161235f565b604083015250606083015160608201526080830151608082015280935050505092915050565b6001600160601b0383168152604060208201526000611f9160408301846119e1565b6000602082840312156125f757600080fd5b81516105e481611987565b60006040828403121561261457600080fd5b61261c611b98565b9050815181526020820151602082015292915050565b60006020828403121561264457600080fd5b81516001600160401b038082111561265b57600080fd5b90830190610140828603121561267057600080fd5b612678611bba565b612681836123d8565b81526126908660208501612602565b60208201526060830151828111156126a757600080fd5b6126b38782860161235f565b6040830152506080830151606082015260a0830151608082015260c083015160a08201526126e360e08401612418565b60c082015261010091506126f8828401612418565b60e082015261270a6101208401612418565b91810191909152949350505050565b80516123e381611e27565b60006101e0828403121561273757600080fd5b61273f611bdd565b612748836123d8565b815261275660208401612719565b6020820152604083015160408201526127716060840161250c565b60608201526127826080840161250c565b608082015261279360a0840161250c565b60a082015260c083015160c082015260e083015160e08201526101006127bb85828601612602565b908201526101406127ce85858301612602565b6101208301526127e2856101808601612602565b908201526127f36101c08401612719565b6101608201529392505050565b60006020828403121561281257600080fd5b81516001600160401b038082111561282957600080fd5b908301906040828603121561283d57600080fd5b612845611b98565b825161285081611aa8565b815260208301518281111561286457600080fd5b6128708782860161235f565b60208301525095945050505050565b60ff8116811461199d57600080fd5b6000602082840312156128a057600080fd5b81516105e48161287f565b600061014082840312156128be57600080fd5b6128c6611c00565b6128cf83612719565b81526128dd60208401612719565b60208201526128ee604084016123d8565b60408201526128ff606084016123d8565b60608201526129118460808501612602565b60808201526129238460c08501612602565b60a0820152612935610100840161250c565b60c08201526129476101208401612719565b60e08201529392505050565b6000610100828403121561296657600080fd5b60405160c081018181106001600160401b038211171561298857612988611b38565b604052825161299681611aa8565b815260208301516129a681611e27565b60208201526129b88460408501612602565b60408201526129ca8460808501612602565b606082015260c08301516129dd81611e27565b608082015260e0929092015160a083015250919050565b60006102008284031215612a0757600080fd5b612a0f611c23565b612a1883612719565b8152612a2660208401612719565b6020820152612a37604084016123d8565b6040820152612a48606084016123d8565b6060820152612a5a8460808501612602565b6080820152612a6c8460c08501612602565b60a0820152610100612a8085828601612602565b60c0830152612a93856101408601612602565b60e0830152612aa6856101808601612602565b90820152612ab8846101c08501612602565b6101208201529392505050565b600060a08284031215612ad757600080fd5b612adf611b76565b8251612aea8161287f565b81526020830151612afa8161287f565b60208201526040830151612b0d81611e27565b60408201526060830151612b20816123e8565b60608201526080830151612b33816123e8565b60808201529392505050565b600060208284031215612b5157600080fd5b6105e48261250c565b600060208284031215612b6c57600080fd5b81516105e481612405565b805161ffff811681146123e357600080fd5b600060208284031215612b9b57600080fd5b81516001600160401b0380821115612bb257600080fd5b908301906102008286031215612bc757600080fd5b612bcf611c46565b612bd8836123d8565b8152612be6602084016123d8565b6020820152612bf760408401612501565b6040820152612c0860608401612501565b60608201526080830151608082015260a083015160a082015260c083015160c0820152612c3760e08401612418565b60e08201526101008084015183811115612c5057600080fd5b612c5c8882870161235f565b8284015250506101208084015183811115612c7657600080fd5b612c828882870161235f565b8284015250506101409150612c98828401612b77565b828201526101609150612cac828401612b77565b82820152610180915081830151828201526101a09150612ccd828401612418565b828201526101c09150612ce1828401612418565b828201526101e0915061270a828401612418565b600060208284031215612d0757600080fd5b81516001600160401b0380821115612d1e57600080fd5b908301906101208286031215612d3357600080fd5b612d3b611bba565b825182811115612d4a57600080fd5b612d568782860161235f565b825250602083015160208201526040830151604082015260608301516060820152612d83608084016123fa565b6080820152612d9460a084016123fa565b60a0820152612da560c0840161250c565b60c0820152612db660e0840161250c565b60e08201526101008084015183811115612dcf57600080fd5b612ddb8882870161235f565b91830191909152509594505050505056fea264697066735822122087a2e97d2ffefe3390a3cead05440c33a1266ee9d2d1acf977ece6901b87c23a64736f6c63430008140033",
1158
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c8063887b1fa9116100f9578063bd7d9d8511610097578063dd26287a11610071578063dd26287a1461050e578063de7b5d1414610521578063f2b246c314610532578063f7f318d31461055257600080fd5b8063bd7d9d85146104bd578063d06458c6146104dd578063d4cda0d8146104fd57600080fd5b80639ad69c67116100d35780639ad69c671461036c578063a310e2a3146103fb578063a5961b4c14610426578063b82d7ef51461049357600080fd5b8063887b1fa9146103075780639096a1f31461032757806390af70641461034c57600080fd5b806344aa68361161016657806355e343a91161014057806355e343a9146102ae57806364eb3a9b146102ce5780637bfd3217146102e15780637e54602a146102f457600080fd5b806344aa6836146102665780634793b4ab14610279578063485cc9551461029957600080fd5b80631488c845146101ae5780631d3be477146101d457806325d03743146101f457806327b1d7921461020757806335898f5d146102275780633f093cd61461023a575b600080fd5b6101c16101bc366004611951565b610565565b6040519081526020015b60405180910390f35b6101e76101e23660046119a0565b6105eb565b6040516101cb9190611a0d565b6101c1610202366004611abd565b61073d565b61021a610215366004611abd565b6107dd565b6040516101cb9190611ada565b6101c1610235366004611abd565b6108b9565b61024d610248366004611cc0565b6108e6565b6040516001600160c01b031990911681526020016101cb565b6101c1610274366004611d52565b610963565b61028c610287366004611abd565b61099e565b6040516101cb9190611d6b565b6102ac6102a7366004611e3c565b610a44565b005b6102c16102bc366004611abd565b610b4f565b6040516101cb9190611e6a565b6101c16102dc366004611abd565b610c7f565b6101c16102ef366004611abd565b610cac565b6101c1610302366004611abd565b610cd9565b61031a6103153660046119a0565b610d06565b6040516101cb9190611f63565b61033a610335366004611abd565b610e2f565b60405160ff90911681526020016101cb565b61035f61035a366004611abd565b610eab565b6040516101cb9190611f99565b61037f61037a366004611abd565b610f51565b6040516101cb919081516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015261010083019190606085015180516080860152602081015160a0860152915060808501511660c08401525060a09092015160e09091015290565b61040e610409366004611abd565b610ff7565b6040516001600160a01b0390911681526020016101cb565b610439610434366004611d52565b6110a5565b6040516101cb9190815160ff9081168252602080840151909116908201526040808301516001600160a01b03169082015260608083015163ffffffff90811691830191909152608092830151169181019190915260a00190565b6104a66104a13660046119a0565b611139565b6040805192835260ff9091166020830152016101cb565b6104d06104cb366004611abd565b6113e1565b6040516101cb9190612046565b6104f06104eb3660046119a0565b6114ff565b6040516101cb9190612194565b6002546001600160a01b031661040e565b6101c161051c366004611abd565b611672565b6001546001600160a01b031661040e565b610545610540366004611abd565b61169f565b6040516101cb9190612244565b6101c1610560366004611abd565b6117e7565b604051631488c84560e01b815260048101839052600082810b60248301529073__$5ac3274b8cf1e01ea223bf093142af05b0$__90631488c84590604401602060405180830381865af41580156105c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e49190612346565b9392505050565b6040805160e08101825260008082526060602083018190529282018190528282018190526080820181905260a082015260c08101919091526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$9f290d768183857d0249ab5bb54619c5ab$__906355ee627590602401602060405180830381865af4158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b69190612346565b6040518263ffffffff1660e01b81526004016106d491815260200190565b600060405180830381865afa1580156106f1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261071991908101906123a4565b80519091501561073757808060200190518101906105e49190612423565b50919050565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660655b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526044015b602060405180830381865af41580156107b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d79190612346565b92915050565b61081b6040518060a0016040528060006001600160c01b03191681526020016000151581526020016060815260200160008152602001600081525090565b6002546000906001600160a01b03166354f6127f61083885610cd9565b6040518263ffffffff1660e01b815260040161085691815260200190565b600060405180830381865afa158015610873573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261089b91908101906123a4565b80519091501561073757808060200190518101906105e4919061251c565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b0384166078610766565b604051631f849e6b60e11b815260009073__$9f290d768183857d0249ab5bb54619c5ab$__90633f093cd69061092290869086906004016125c3565b602060405180830381865af415801561093f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e491906125e5565b604051632255341b60e11b81526004810182905260009073__$5ac3274b8cf1e01ea223bf093142af05b0$__906344aa683690602401610796565b6109a6611814565b6002546000906001600160a01b03166354f6127f6109c3856117e7565b6040518263ffffffff1660e01b81526004016109e191815260200190565b600060405180830381865afa1580156109fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a2691908101906123a4565b80519091501561073757808060200190518101906105e49190612632565b60005460ff1615610aa65760405162461bcd60e51b815260206004820152602160248201527f4552524f523a4352442d3030303a414c52454144595f494e495449414c495a456044820152601160fa1b60648201526084015b60405180910390fd5b6001600160a01b038216610afc5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a4352442d3030313a52454749535452595f5a45524f00000000006044820152606401610a9d565b60008054600180546001600160a01b039485166001600160a01b0319918216811783556002805490921617905560ff199390941661010002929092166001600160a81b0319909216919091179091179055565b610be1604080516101808101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e0830182905283518085018552828152808201839052610100840152835180850185528281528082018390526101208401528351808501909452818452830152906101408201908152600060209091015290565b6002546000906001600160a01b03166354f6127f610bfe85611672565b6040518263ffffffff1660e01b8152600401610c1c91815260200190565b600060405180830381865afa158015610c39573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c6191908101906123a4565b80519091501561073757808060200190518101906105e49190612724565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d3610766565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416606e610766565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607a610766565b6040805180820190915260008152606060208201526002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015610d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dae9190612346565b6040518263ffffffff1660e01b8152600401610dcc91815260200190565b600060405180830381865afa158015610de9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e1191908101906123a4565b80519091501561073757808060200190518101906105e49190612800565b6001546000906001600160a01b03166309648a9d610e4c84610c7f565b6040518263ffffffff1660e01b8152600401610e6a91815260200190565b602060405180830381865afa158015610e87573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d7919061288e565b610eb3611899565b6002546000906001600160a01b03166354f6127f610ed085610cac565b6040518263ffffffff1660e01b8152600401610eee91815260200190565b600060405180830381865afa158015610f0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f3391908101906123a4565b80519091501561073757808060200190518101906105e491906128ab565b610f59611909565b6002546000906001600160a01b03166354f6127f610f76856108b9565b6040518263ffffffff1660e01b8152600401610f9491815260200190565b600060405180830381865afa158015610fb1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fd991908101906123a4565b80519091501561073757808060200190518101906105e49190612953565b60025460009081906001600160a01b03166354f6127f6110168561073d565b6040518263ffffffff1660e01b815260040161103491815260200190565b600060405180830381865afa158015611051573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261107991908101906123a4565b8051909150156107375760008180602001905181019061109991906129f4565b60200151949350505050565b6040805160a081018252600080825260208201819052818301819052606082018190526080820152600254915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c9060240160a060405180830381865afa158015611115573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d79190612ac5565b6000806000611147846105eb565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$d53880c81dc91c20799140d711e5ab8718$__9063790a38ad90602401602060405180830381865af41580156111a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ca9190612b3f565b156112495773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611218573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123c9190612346565b60645b9250925050915091565b6112cd8160a0015173__$d53880c81dc91c20799140d711e5ab8718$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af415801561129a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112be9190612b5a565b64ffffffffff90811691161090565b156113465773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561131b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133f9190612346565b606e61123f565b806060015163ffffffff16816080015163ffffffff16106113d55773__$5ac3274b8cf1e01ea223bf093142af05b0$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156113aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ce9190612346565b607861123f565b6040810151600a61123f565b604080516102008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018190526101208201526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e08101919091526002546000906001600160a01b03166354f6127f61147e85610c7f565b6040518263ffffffff1660e01b815260040161149c91815260200190565b600060405180830381865afa1580156114b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114e191908101906123a4565b80519091501561073757808060200190518101906105e49190612b89565b61155e60405180610120016040528060608152602001600081526020016000815260200160008152602001600063ffffffff168152602001600063ffffffff168152602001600015158152602001600015158152602001606081525090565b6002546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$5906aa3f06c54ee09b434647963e1d1ed0$__906355ee627590602401602060405180830381865af41580156115cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f19190612346565b6040518263ffffffff1660e01b815260040161160f91815260200190565b600060405180830381865afa15801561162c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261165491908101906123a4565b80519091501561073757808060200190518101906105e49190612cf5565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416608c610766565b611749604080516101408101825260008082526020808301829052828401829052606083018290528351808501855282815280820183905260808401528351808501855282815280820183905260a08401528351808501855282815280820183905260c08401528351808501855282815280820183905260e08401528351808501855282815280820183905261010084015283518085019094528184528301529061012082015290565b6002546000906001600160a01b03166354f6127f6117668561073d565b6040518263ffffffff1660e01b815260040161178491815260200190565b600060405180830381865afa1580156117a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117c991908101906123a4565b80519091501561073757808060200190518101906105e491906129f4565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc610766565b60405180610120016040528060006001600160601b0316815260200161184d604051806040016040528060008152602001600081525090565b815260200160608152602001600081526020016000815260200160008152602001600064ffffffffff168152602001600064ffffffffff168152602001600064ffffffffff1681525090565b6040805161010081018252600080825260208083018290528284018290526060830182905283518085019094528184528301529060808201905b81526020016118f5604051806040016040528060008152602001600081525090565b815260006020820181905260409091015290565b6040518060c0016040528060006001600160601b0316815260200160006001600160a01b031681526020016118d3604051806040016040528060008152602001600081525090565b6000806040838503121561196457600080fd5b8235915060208301358060000b811461197c57600080fd5b809150509250929050565b6001600160c01b03198116811461199d57600080fd5b50565b6000602082840312156119b257600080fd5b81356105e481611987565b60005b838110156119d85781810151838201526020016119c0565b50506000910152565b600081518084526119f98160208601602086016119bd565b601f01601f19169290920160200192915050565b602081526001600160601b0382511660208201526000602083015160e06040840152611a3d6101008401826119e1565b90506040840151606084015263ffffffff60608501511660808401526080840151611a7060a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e0850152611a9f82826119e1565b95945050505050565b6001600160601b038116811461199d57600080fd5b600060208284031215611acf57600080fd5b81356105e481611aa8565b602081526001600160401b0360c01b82511660208201526020820151151560408201526000604083015160a06060840152611b1860c08401826119e1565b905060608401516080840152608084015160a08401528091505092915050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715611b7057611b70611b38565b60405290565b60405160a081016001600160401b0381118282101715611b7057611b70611b38565b604080519081016001600160401b0381118282101715611b7057611b70611b38565b60405161012081016001600160401b0381118282101715611b7057611b70611b38565b60405161018081016001600160401b0381118282101715611b7057611b70611b38565b60405161010081016001600160401b0381118282101715611b7057611b70611b38565b60405161014081016001600160401b0381118282101715611b7057611b70611b38565b60405161020081016001600160401b0381118282101715611b7057611b70611b38565b604051601f8201601f191681016001600160401b0381118282101715611c9157611c91611b38565b604052919050565b60006001600160401b03821115611cb257611cb2611b38565b50601f01601f191660200190565b60008060408385031215611cd357600080fd5b8235611cde81611aa8565b915060208301356001600160401b03811115611cf957600080fd5b8301601f81018513611d0a57600080fd5b8035611d1d611d1882611c99565b611c69565b818152866020838501011115611d3257600080fd5b816020840160208301376000602083830101528093505050509250929050565b600060208284031215611d6457600080fd5b5035919050565b60208152611d856020820183516001600160601b03169052565b60006020830151611da3604084018280518252602090810151910152565b506040830151610140806080850152611dc06101608501836119e1565b9150606085015160a0850152608085015160c085015260a085015160e085015260c0850151610100611dfa8187018364ffffffffff169052565b60e087015164ffffffffff811661012088015291505b9095015164ffffffffff1693019290925250919050565b6001600160a01b038116811461199d57600080fd5b60008060408385031215611e4f57600080fd5b8235611e5a81611e27565b9150602083013561197c81611e27565b81516001600160601b031681526101e081016020830151611e9660208401826001600160a01b03169052565b50604083015160408301526060830151611eb4606084018215159052565b506080830151611ec8608084018215159052565b5060a0830151611edc60a084018215159052565b5060c083015160c083015260e083015160e083015261010080840151611f0e8285018280518252602090810151910152565b5050610120830151610140611f2f8185018380518252602090810151910152565b8401518051610180850152602001516101a0840152506101608301516001600160a01b0381166101c08401525b5092915050565b602081526001600160601b03825116602082015260006020830151604080840152611f9160608401826119e1565b949350505050565b81516001600160a01b039081168252602080840151909116908201526040808301516001600160601b031690820152606080830151610140830191611fe8908401826001600160601b03169052565b506080830151612005608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c08301518015156101008401525060e08301516001600160a01b038116610120840152611f5c565b602081526120606020820183516001600160601b03169052565b6000602083015161207c60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e08301516101006120e18185018364ffffffffff169052565b8085015191505061020061012081818601526121016102208601846119e1565b9250808601519050610140601f19868503018187015261212184836119e1565b93508087015191505061016061213c8187018361ffff169052565b86015190506101806121538682018361ffff169052565b8601516101a08681019190915286015190506101c061217a8187018364ffffffffff169052565b86015190506101e0611e108682018364ffffffffff169052565b60208152600082516101208060208501526121b36101408501836119e1565b915060208501516040850152604085015160608501526060850151608085015260808501516121ea60a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e08501516101006122208187018315159052565b860151858403601f190183870152905061223a83826119e1565b9695505050505050565b81516001600160a01b031681526102008101602083015161227060208401826001600160a01b03169052565b50604083015161228b60408401826001600160601b03169052565b5060608301516122a660608401826001600160601b03169052565b5060808301516122c3608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c08301516101006122f98185018380518252602090810151910152565b60e085015180516101408601526020908101516101608601529085015180516101808601528101516101a085015261012085015180516101c0860152908101516101e08501529050611f5c565b60006020828403121561235857600080fd5b5051919050565b600082601f83011261237057600080fd5b815161237e611d1882611c99565b81815284602083860101111561239357600080fd5b611f918260208301602087016119bd565b6000602082840312156123b657600080fd5b81516001600160401b038111156123cc57600080fd5b611f918482850161235f565b80516123e381611aa8565b919050565b63ffffffff8116811461199d57600080fd5b80516123e3816123e8565b64ffffffffff8116811461199d57600080fd5b80516123e381612405565b60006020828403121561243557600080fd5b81516001600160401b038082111561244c57600080fd5b9083019060e0828603121561246057600080fd5b612468611b4e565b612471836123d8565b815260208301518281111561248557600080fd5b6124918782860161235f565b602083015250604083015160408201526124ad606084016123fa565b60608201526124be608084016123fa565b60808201526124cf60a08401612418565b60a082015260c0830151828111156124e657600080fd5b6124f28782860161235f565b60c08301525095945050505050565b80516123e381611987565b805180151581146123e357600080fd5b60006020828403121561252e57600080fd5b81516001600160401b038082111561254557600080fd5b9083019060a0828603121561255957600080fd5b612561611b76565b825161256c81611987565b815261257a6020840161250c565b602082015260408301518281111561259157600080fd5b61259d8782860161235f565b604083015250606083015160608201526080830151608082015280935050505092915050565b6001600160601b0383168152604060208201526000611f9160408301846119e1565b6000602082840312156125f757600080fd5b81516105e481611987565b60006040828403121561261457600080fd5b61261c611b98565b9050815181526020820151602082015292915050565b60006020828403121561264457600080fd5b81516001600160401b038082111561265b57600080fd5b90830190610140828603121561267057600080fd5b612678611bba565b612681836123d8565b81526126908660208501612602565b60208201526060830151828111156126a757600080fd5b6126b38782860161235f565b6040830152506080830151606082015260a0830151608082015260c083015160a08201526126e360e08401612418565b60c082015261010091506126f8828401612418565b60e082015261270a6101208401612418565b91810191909152949350505050565b80516123e381611e27565b60006101e0828403121561273757600080fd5b61273f611bdd565b612748836123d8565b815261275660208401612719565b6020820152604083015160408201526127716060840161250c565b60608201526127826080840161250c565b608082015261279360a0840161250c565b60a082015260c083015160c082015260e083015160e08201526101006127bb85828601612602565b908201526101406127ce85858301612602565b6101208301526127e2856101808601612602565b908201526127f36101c08401612719565b6101608201529392505050565b60006020828403121561281257600080fd5b81516001600160401b038082111561282957600080fd5b908301906040828603121561283d57600080fd5b612845611b98565b825161285081611aa8565b815260208301518281111561286457600080fd5b6128708782860161235f565b60208301525095945050505050565b60ff8116811461199d57600080fd5b6000602082840312156128a057600080fd5b81516105e48161287f565b600061014082840312156128be57600080fd5b6128c6611c00565b6128cf83612719565b81526128dd60208401612719565b60208201526128ee604084016123d8565b60408201526128ff606084016123d8565b60608201526129118460808501612602565b60808201526129238460c08501612602565b60a0820152612935610100840161250c565b60c08201526129476101208401612719565b60e08201529392505050565b6000610100828403121561296657600080fd5b60405160c081018181106001600160401b038211171561298857612988611b38565b604052825161299681611aa8565b815260208301516129a681611e27565b60208201526129b88460408501612602565b60408201526129ca8460808501612602565b606082015260c08301516129dd81611e27565b608082015260e0929092015160a083015250919050565b60006102008284031215612a0757600080fd5b612a0f611c23565b612a1883612719565b8152612a2660208401612719565b6020820152612a37604084016123d8565b6040820152612a48606084016123d8565b6060820152612a5a8460808501612602565b6080820152612a6c8460c08501612602565b60a0820152610100612a8085828601612602565b60c0830152612a93856101408601612602565b60e0830152612aa6856101808601612602565b90820152612ab8846101c08501612602565b6101208201529392505050565b600060a08284031215612ad757600080fd5b612adf611b76565b8251612aea8161287f565b81526020830151612afa8161287f565b60208201526040830151612b0d81611e27565b60408201526060830151612b20816123e8565b60608201526080830151612b33816123e8565b60808201529392505050565b600060208284031215612b5157600080fd5b6105e48261250c565b600060208284031215612b6c57600080fd5b81516105e481612405565b805161ffff811681146123e357600080fd5b600060208284031215612b9b57600080fd5b81516001600160401b0380821115612bb257600080fd5b908301906102008286031215612bc757600080fd5b612bcf611c46565b612bd8836123d8565b8152612be6602084016123d8565b6020820152612bf760408401612501565b6040820152612c0860608401612501565b60608201526080830151608082015260a083015160a082015260c083015160c0820152612c3760e08401612418565b60e08201526101008084015183811115612c5057600080fd5b612c5c8882870161235f565b8284015250506101208084015183811115612c7657600080fd5b612c828882870161235f565b8284015250506101409150612c98828401612b77565b828201526101609150612cac828401612b77565b82820152610180915081830151828201526101a09150612ccd828401612418565b828201526101c09150612ce1828401612418565b828201526101e0915061270a828401612418565b600060208284031215612d0757600080fd5b81516001600160401b0380821115612d1e57600080fd5b908301906101208286031215612d3357600080fd5b612d3b611bba565b825182811115612d4a57600080fd5b612d568782860161235f565b825250602083015160208201526040830151604082015260608301516060820152612d83608084016123fa565b6080820152612d9460a084016123fa565b60a0820152612da560c0840161250c565b60c0820152612db660e0840161250c565b60e08201526101008084015183811115612dcf57600080fd5b612ddb8882870161235f565b91830191909152509594505050505056fea264697066735822122087a2e97d2ffefe3390a3cead05440c33a1266ee9d2d1acf977ece6901b87c23a64736f6c63430008140033",
1159
+ "linkReferences": {
1160
+ "contracts/types/DistributorType.sol": {
1161
+ "DistributorTypeLib": [
1162
+ {
1163
+ "length": 20,
1164
+ "start": 5555
1165
+ }
1166
+ ]
1167
+ },
1168
+ "contracts/types/NftId.sol": {
1169
+ "NftIdLib": [
1170
+ {
1171
+ "length": 20,
1172
+ "start": 1889
1173
+ },
1174
+ {
1175
+ "length": 20,
1176
+ "start": 2269
1177
+ },
1178
+ {
1179
+ "length": 20,
1180
+ "start": 3235
1181
+ },
1182
+ {
1183
+ "length": 20,
1184
+ "start": 3280
1185
+ },
1186
+ {
1187
+ "length": 20,
1188
+ "start": 3325
1189
+ },
1190
+ {
1191
+ "length": 20,
1192
+ "start": 5782
1193
+ },
1194
+ {
1195
+ "length": 20,
1196
+ "start": 6155
1197
+ }
1198
+ ]
1199
+ },
1200
+ "contracts/types/Referral.sol": {
1201
+ "ReferralLib": [
1202
+ {
1203
+ "length": 20,
1204
+ "start": 1656
1205
+ },
1206
+ {
1207
+ "length": 20,
1208
+ "start": 2328
1209
+ }
1210
+ ]
1211
+ },
1212
+ "contracts/types/RiskId.sol": {
1213
+ "RiskIdLib": [
1214
+ {
1215
+ "length": 20,
1216
+ "start": 3440
1217
+ }
1218
+ ]
1219
+ },
1220
+ "contracts/types/Timestamp.sol": {
1221
+ "TimestampLib": [
1222
+ {
1223
+ "length": 20,
1224
+ "start": 4492
1225
+ },
1226
+ {
1227
+ "length": 20,
1228
+ "start": 4723
1229
+ }
1230
+ ]
1231
+ },
1232
+ "contracts/types/UFixed.sol": {
1233
+ "UFixedLib": [
1234
+ {
1235
+ "length": 20,
1236
+ "start": 1446
1237
+ },
1238
+ {
1239
+ "length": 20,
1240
+ "start": 2460
1241
+ },
1242
+ {
1243
+ "length": 20,
1244
+ "start": 4593
1245
+ },
1246
+ {
1247
+ "length": 20,
1248
+ "start": 4852
1249
+ },
1250
+ {
1251
+ "length": 20,
1252
+ "start": 4995
1253
+ }
1254
+ ]
1255
+ }
1256
+ },
1257
+ "deployedLinkReferences": {
1258
+ "contracts/types/DistributorType.sol": {
1259
+ "DistributorTypeLib": [
1260
+ {
1261
+ "length": 20,
1262
+ "start": 5523
1263
+ }
1264
+ ]
1265
+ },
1266
+ "contracts/types/NftId.sol": {
1267
+ "NftIdLib": [
1268
+ {
1269
+ "length": 20,
1270
+ "start": 1857
1271
+ },
1272
+ {
1273
+ "length": 20,
1274
+ "start": 2237
1275
+ },
1276
+ {
1277
+ "length": 20,
1278
+ "start": 3203
1279
+ },
1280
+ {
1281
+ "length": 20,
1282
+ "start": 3248
1283
+ },
1284
+ {
1285
+ "length": 20,
1286
+ "start": 3293
1287
+ },
1288
+ {
1289
+ "length": 20,
1290
+ "start": 5750
1291
+ },
1292
+ {
1293
+ "length": 20,
1294
+ "start": 6123
1295
+ }
1296
+ ]
1297
+ },
1298
+ "contracts/types/Referral.sol": {
1299
+ "ReferralLib": [
1300
+ {
1301
+ "length": 20,
1302
+ "start": 1624
1303
+ },
1304
+ {
1305
+ "length": 20,
1306
+ "start": 2296
1307
+ }
1308
+ ]
1309
+ },
1310
+ "contracts/types/RiskId.sol": {
1311
+ "RiskIdLib": [
1312
+ {
1313
+ "length": 20,
1314
+ "start": 3408
1315
+ }
1316
+ ]
1317
+ },
1318
+ "contracts/types/Timestamp.sol": {
1319
+ "TimestampLib": [
1320
+ {
1321
+ "length": 20,
1322
+ "start": 4460
1323
+ },
1324
+ {
1325
+ "length": 20,
1326
+ "start": 4691
1327
+ }
1328
+ ]
1329
+ },
1330
+ "contracts/types/UFixed.sol": {
1331
+ "UFixedLib": [
1332
+ {
1333
+ "length": 20,
1334
+ "start": 1414
1335
+ },
1336
+ {
1337
+ "length": 20,
1338
+ "start": 2428
1339
+ },
1340
+ {
1341
+ "length": 20,
1342
+ "start": 4561
1343
+ },
1344
+ {
1345
+ "length": 20,
1346
+ "start": 4820
1347
+ },
1348
+ {
1349
+ "length": 20,
1350
+ "start": 4963
1351
+ }
1352
+ ]
1353
+ }
1354
+ }
1355
+ }