@etherisc/gif-next 0.0.2-f7b8c9f-518 → 0.0.2-f7c17b4-297

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