@etherisc/gif-next 0.0.2-e6a90b9 → 0.0.2-e769e2e-077

Sign up to get free protection for your applications and to get access to all the features.
Files changed (466) hide show
  1. package/README.md +359 -8
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  3. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1410 -0
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1343 -0
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +760 -0
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +969 -0
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  11. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +808 -0
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +284 -523
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +660 -0
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +537 -601
  20. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1348 -0
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +132 -0
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1570 -0
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +1039 -0
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +664 -0
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3500 -0
  32. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  33. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  34. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  35. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +190 -0
  36. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +256 -0
  38. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  39. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  40. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  41. package/artifacts/contracts/instance/{access/IAccess.sol/IAccess.json → module/IBundle.sol/IBundle.json} +2 -2
  42. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  43. package/artifacts/contracts/instance/{component/IComponent.sol/IComponent.json → module/IComponents.sol/IComponents.json} +2 -2
  44. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  45. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.json +10 -0
  46. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  47. package/artifacts/contracts/instance/{policy → module}/IPolicy.sol/IPolicy.json +1 -1
  48. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  49. package/artifacts/contracts/instance/{pool/IPoolModule.sol/IPool.json → module/IRisk.sol/IRisk.json} +2 -2
  50. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  51. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1091 -0
  52. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  53. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +684 -0
  54. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  55. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +684 -0
  56. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  57. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +1148 -0
  58. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  59. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1044 -0
  60. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  61. package/artifacts/contracts/pool/Pool.sol/Pool.json +1559 -0
  62. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  63. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1411 -0
  64. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  65. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +680 -0
  66. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  67. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +820 -0
  68. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  69. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +660 -0
  70. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  71. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1264 -0
  72. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  73. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
  74. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  75. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +493 -0
  76. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  77. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +753 -0
  78. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  79. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.json +701 -0
  80. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  81. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +530 -0
  82. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  83. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +989 -0
  84. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
  85. package/artifacts/contracts/product/IProductService.sol/IProductService.json +381 -0
  86. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  87. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1132 -0
  88. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  89. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +692 -0
  90. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  91. package/artifacts/contracts/product/PricingService.sol/PricingService.json +969 -0
  92. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  93. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +716 -0
  94. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  95. package/artifacts/contracts/product/Product.sol/Product.json +1391 -0
  96. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
  97. package/artifacts/contracts/product/ProductService.sol/ProductService.json +673 -0
  98. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  99. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +636 -0
  100. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  101. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +252 -2
  102. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +600 -70
  104. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +990 -0
  106. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +52 -0
  108. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/Registry.sol/Registry.json +777 -77
  110. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  111. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +308 -0
  112. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1290 -0
  114. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +661 -0
  116. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +688 -0
  118. package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.dbg.json +4 -0
  119. package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.json +137 -0
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  121. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +611 -0
  122. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  123. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  124. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  125. package/artifacts/contracts/shared/Component.sol/Component.json +890 -0
  126. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  127. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1461 -0
  128. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  129. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +736 -0
  130. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +4 -0
  131. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.json +520 -0
  132. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +4 -0
  133. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +73 -0
  134. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +625 -0
  136. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  137. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +854 -0
  138. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  139. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json +699 -0
  140. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  141. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.json +478 -0
  142. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  143. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.json +115 -0
  144. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  145. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +125 -0
  146. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  147. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
  148. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +4 -0
  149. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +175 -0
  150. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  151. package/artifacts/contracts/{instance/access/IAccess.sol/IAccessCheckRole.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +11 -11
  152. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  153. package/artifacts/contracts/shared/IService.sol/IService.json +327 -0
  154. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +4 -0
  155. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -0
  156. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  157. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +1030 -0
  158. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  159. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +581 -0
  160. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  161. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +194 -0
  162. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  163. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +238 -0
  164. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  165. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
  166. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  167. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +569 -0
  168. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +4 -0
  169. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +347 -0
  170. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  171. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  172. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  173. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → shared/Service.sol/Service.json} +256 -220
  174. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  175. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +150 -0
  176. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  177. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +129 -0
  178. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +4 -0
  179. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -0
  180. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  181. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1607 -0
  182. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  183. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +545 -0
  184. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  185. package/artifacts/contracts/staking/Staking.sol/Staking.json +2074 -0
  186. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  187. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +676 -0
  188. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  189. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +805 -0
  190. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  191. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +636 -0
  192. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  193. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.json +10 -0
  194. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  195. package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
  196. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  197. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.json +187 -0
  198. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  199. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
  200. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  201. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  202. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  203. package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
  204. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  205. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  206. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  207. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +185 -0
  208. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  209. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  210. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  211. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.json +92 -0
  212. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  213. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  214. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  215. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  216. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  217. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.json +86 -0
  218. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  219. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +156 -0
  220. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  221. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +124 -0
  222. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  223. package/artifacts/contracts/type/StateId.sol/StateIdLib.json +92 -0
  224. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  225. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +280 -0
  226. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  227. package/artifacts/contracts/type/UFixed.sol/MathLib.json +10 -0
  228. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  229. package/artifacts/contracts/type/UFixed.sol/UFixedLib.json +479 -0
  230. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  231. package/artifacts/contracts/type/Version.sol/VersionLib.json +177 -0
  232. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  233. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +49 -0
  234. package/contracts/distribution/Distribution.sol +263 -0
  235. package/contracts/distribution/DistributionService.sol +297 -0
  236. package/contracts/distribution/DistributionServiceManager.sol +51 -0
  237. package/contracts/distribution/IDistributionComponent.sol +66 -0
  238. package/contracts/distribution/IDistributionService.sol +81 -0
  239. package/contracts/instance/BundleManager.sol +126 -0
  240. package/contracts/instance/IInstance.sol +72 -15
  241. package/contracts/instance/IInstanceService.sol +83 -0
  242. package/contracts/instance/Instance.sol +209 -44
  243. package/contracts/instance/InstanceAccessManager.sol +543 -0
  244. package/contracts/instance/InstanceAuthorizationsLib.sol +336 -0
  245. package/contracts/instance/InstanceReader.sol +366 -0
  246. package/contracts/instance/InstanceService.sol +348 -0
  247. package/contracts/instance/InstanceServiceManager.sol +54 -0
  248. package/contracts/instance/InstanceStore.sol +259 -0
  249. package/contracts/instance/base/BalanceStore.sol +118 -0
  250. package/contracts/instance/base/Cloneable.sol +51 -0
  251. package/contracts/instance/base/ObjectManager.sol +82 -0
  252. package/contracts/instance/module/IAccess.sol +54 -0
  253. package/contracts/instance/module/IBundle.sol +20 -0
  254. package/contracts/instance/module/IComponents.sol +52 -0
  255. package/contracts/instance/module/IDistribution.sol +42 -0
  256. package/contracts/instance/module/IPolicy.sol +84 -0
  257. package/contracts/instance/module/IRisk.sol +11 -0
  258. package/contracts/pool/BundleService.sol +313 -0
  259. package/contracts/pool/BundleServiceManager.sol +51 -0
  260. package/contracts/pool/IBundleService.sol +106 -0
  261. package/contracts/pool/IPoolComponent.sol +112 -0
  262. package/contracts/pool/IPoolService.sol +147 -0
  263. package/contracts/pool/Pool.sol +299 -0
  264. package/contracts/pool/PoolService.sol +421 -0
  265. package/contracts/pool/PoolServiceManager.sol +51 -0
  266. package/contracts/product/ApplicationService.sol +253 -0
  267. package/contracts/product/ApplicationServiceManager.sol +35 -0
  268. package/contracts/product/ClaimService.sol +436 -0
  269. package/contracts/product/ClaimServiceManager.sol +35 -0
  270. package/contracts/product/IApplicationService.sol +62 -0
  271. package/contracts/product/IClaimService.sol +93 -0
  272. package/contracts/product/IPolicyService.sol +78 -0
  273. package/contracts/product/IPricingService.sol +39 -0
  274. package/contracts/product/IProductComponent.sol +42 -0
  275. package/contracts/product/IProductService.sol +33 -0
  276. package/contracts/product/PolicyService.sol +471 -0
  277. package/contracts/product/PolicyServiceManager.sol +54 -0
  278. package/contracts/product/PricingService.sol +300 -0
  279. package/contracts/product/PricingServiceManager.sol +51 -0
  280. package/contracts/product/Product.sol +377 -0
  281. package/contracts/product/ProductService.sol +122 -0
  282. package/contracts/product/ProductServiceManager.sol +54 -0
  283. package/contracts/registry/ChainNft.sol +151 -108
  284. package/contracts/registry/IRegistry.sol +91 -48
  285. package/contracts/registry/IRegistryService.sol +79 -0
  286. package/contracts/registry/ITransferInterceptor.sol +7 -0
  287. package/contracts/registry/Registry.sol +465 -112
  288. package/contracts/registry/RegistryAccessManager.sol +213 -0
  289. package/contracts/registry/RegistryService.sol +327 -0
  290. package/contracts/registry/RegistryServiceManager.sol +60 -0
  291. package/contracts/registry/ReleaseManager.sol +375 -0
  292. package/contracts/registry/ServiceAuthorizationsLib.sol +173 -0
  293. package/contracts/registry/TokenRegistry.sol +187 -0
  294. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  295. package/contracts/shared/Component.sol +286 -0
  296. package/contracts/shared/ComponentService.sol +596 -0
  297. package/contracts/shared/ComponentServiceManager.sol +35 -0
  298. package/contracts/shared/ComponentVerifyingService.sol +111 -0
  299. package/contracts/shared/ERC165.sol +27 -0
  300. package/contracts/shared/IComponent.sol +74 -0
  301. package/contracts/shared/IComponentService.sol +91 -0
  302. package/contracts/shared/IInstanceLinkedComponent.sol +46 -0
  303. package/contracts/shared/IKeyValueStore.sol +53 -0
  304. package/contracts/shared/ILifecycle.sol +30 -0
  305. package/contracts/shared/INftOwnable.sol +23 -0
  306. package/contracts/shared/IPolicyHolder.sol +40 -0
  307. package/contracts/shared/IRegisterable.sol +15 -0
  308. package/contracts/shared/IRegistryLinked.sol +11 -0
  309. package/contracts/shared/IService.sol +18 -0
  310. package/contracts/shared/IVersionable.sol +53 -0
  311. package/contracts/shared/InstanceLinkedComponent.sol +145 -0
  312. package/contracts/shared/KeyValueStore.sol +169 -0
  313. package/contracts/shared/Lifecycle.sol +121 -0
  314. package/contracts/shared/NftOwnable.sol +118 -0
  315. package/contracts/shared/PolicyHolder.sol +94 -0
  316. package/contracts/shared/ProxyManager.sol +169 -0
  317. package/contracts/shared/Registerable.sol +75 -0
  318. package/contracts/shared/RegistryLinked.sol +43 -0
  319. package/contracts/shared/Service.sol +77 -0
  320. package/contracts/shared/TokenHandler.sol +58 -0
  321. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  322. package/contracts/shared/Versionable.sol +59 -0
  323. package/contracts/staking/IStaking.sol +77 -0
  324. package/contracts/staking/IStakingService.sol +105 -0
  325. package/contracts/staking/Staking.sol +212 -0
  326. package/contracts/staking/StakingManager.sol +46 -0
  327. package/contracts/staking/StakingService.sol +200 -0
  328. package/contracts/staking/StakingServiceManager.sol +41 -0
  329. package/contracts/type/AddressSet.sol +58 -0
  330. package/contracts/type/Amount.sol +114 -0
  331. package/contracts/type/Blocknumber.sol +124 -0
  332. package/contracts/type/ClaimId.sol +75 -0
  333. package/contracts/type/DistributorType.sol +55 -0
  334. package/contracts/type/Fee.sol +66 -0
  335. package/contracts/type/Key32.sol +50 -0
  336. package/contracts/type/NftId.sol +73 -0
  337. package/contracts/type/NftIdSet.sol +62 -0
  338. package/contracts/type/ObjectType.sol +165 -0
  339. package/contracts/type/PayoutId.sol +82 -0
  340. package/contracts/type/Referral.sol +89 -0
  341. package/contracts/type/RiskId.sol +43 -0
  342. package/contracts/type/RoleId.sol +138 -0
  343. package/contracts/type/Seconds.sol +54 -0
  344. package/contracts/type/StateId.sol +110 -0
  345. package/contracts/type/Timestamp.sol +132 -0
  346. package/contracts/type/UFixed.sol +326 -0
  347. package/contracts/type/Version.sol +108 -0
  348. package/package.json +21 -6
  349. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  350. package/artifacts/contracts/components/Component.sol/Component.json +0 -179
  351. package/artifacts/contracts/components/Component.sol/InstanceLinked.dbg.json +0 -4
  352. package/artifacts/contracts/components/Component.sol/InstanceLinked.json +0 -35
  353. package/artifacts/contracts/components/IPool.sol/IPoolComponent.dbg.json +0 -4
  354. package/artifacts/contracts/components/IPool.sol/IPoolComponent.json +0 -179
  355. package/artifacts/contracts/components/IProduct.sol/IProductComponent.dbg.json +0 -4
  356. package/artifacts/contracts/components/IProduct.sol/IProductComponent.json +0 -192
  357. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  358. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -195
  359. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  360. package/artifacts/contracts/components/Product.sol/Product.json +0 -213
  361. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  363. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  364. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  365. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  366. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  367. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  368. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  369. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  370. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  371. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  372. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  373. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  374. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  375. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  376. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  377. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  378. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  379. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  380. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  381. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  382. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  383. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  384. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  385. package/artifacts/contracts/instance/access/Access.sol/AccessModule.dbg.json +0 -4
  386. package/artifacts/contracts/instance/access/Access.sol/AccessModule.json +0 -400
  387. package/artifacts/contracts/instance/access/IAccess.sol/IAccess.dbg.json +0 -4
  388. package/artifacts/contracts/instance/access/IAccess.sol/IAccessCheckRole.dbg.json +0 -4
  389. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.dbg.json +0 -4
  390. package/artifacts/contracts/instance/access/IAccess.sol/IAccessComponentTypeRoles.json +0 -50
  391. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  392. package/artifacts/contracts/instance/access/IAccess.sol/IAccessModule.json +0 -336
  393. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  394. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentModule.json +0 -327
  395. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.dbg.json +0 -4
  396. package/artifacts/contracts/instance/component/ComponentModule.sol/ComponentOwnerService.json +0 -105
  397. package/artifacts/contracts/instance/component/IComponent.sol/IComponent.dbg.json +0 -4
  398. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.dbg.json +0 -4
  399. package/artifacts/contracts/instance/component/IComponent.sol/IComponentContract.json +0 -179
  400. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  401. package/artifacts/contracts/instance/component/IComponent.sol/IComponentModule.json +0 -245
  402. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.dbg.json +0 -4
  403. package/artifacts/contracts/instance/component/IComponent.sol/IComponentOwnerService.json +0 -94
  404. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.dbg.json +0 -4
  405. package/artifacts/contracts/instance/component/IComponent.sol/IInstanceLinked.json +0 -24
  406. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  407. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  408. package/artifacts/contracts/instance/policy/IPolicy.sol/IPolicyModule.json +0 -231
  409. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  410. package/artifacts/contracts/instance/policy/PolicyModule.sol/PolicyModule.json +0 -231
  411. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  412. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  413. package/artifacts/contracts/instance/pool/IPoolModule.sol/IPoolModule.json +0 -149
  414. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  415. package/artifacts/contracts/instance/pool/PoolModule.sol/PoolModule.json +0 -162
  416. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.dbg.json +0 -4
  417. package/artifacts/contracts/instance/product/IProductService.sol/IProductModule.json +0 -75
  418. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.dbg.json +0 -4
  419. package/artifacts/contracts/instance/product/IProductService.sol/IProductService.json +0 -114
  420. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.dbg.json +0 -4
  421. package/artifacts/contracts/instance/product/ProductService.sol/ProductModule.json +0 -75
  422. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.dbg.json +0 -4
  423. package/artifacts/contracts/instance/product/ProductService.sol/ProductService.json +0 -125
  424. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  425. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.dbg.json +0 -4
  426. package/artifacts/contracts/registry/IRegistry.sol/IOwnable.json +0 -24
  427. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.dbg.json +0 -4
  428. package/artifacts/contracts/registry/IRegistry.sol/IRegisterable.json +0 -166
  429. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.dbg.json +0 -4
  430. package/artifacts/contracts/registry/IRegistry.sol/IRegistryLinked.json +0 -49
  431. package/artifacts/contracts/registry/Registry.sol/Registerable.dbg.json +0 -4
  432. package/artifacts/contracts/registry/Registry.sol/Registerable.json +0 -166
  433. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.dbg.json +0 -4
  434. package/artifacts/contracts/registry/Registry.sol/RegistryLinked.json +0 -60
  435. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  436. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  437. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  438. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -10
  439. package/contracts/components/Component.sol +0 -62
  440. package/contracts/components/IPool.sol +0 -9
  441. package/contracts/components/IProduct.sol +0 -11
  442. package/contracts/components/Pool.sol +0 -29
  443. package/contracts/components/Product.sol +0 -65
  444. package/contracts/experiment/errors/Require.sol +0 -33
  445. package/contracts/experiment/errors/Revert.sol +0 -39
  446. package/contracts/experiment/inheritance/A.sol +0 -56
  447. package/contracts/experiment/inheritance/B.sol +0 -23
  448. package/contracts/experiment/inheritance/C.sol +0 -28
  449. package/contracts/experiment/inheritance/IA.sol +0 -18
  450. package/contracts/experiment/inheritance/IB.sol +0 -9
  451. package/contracts/experiment/inheritance/IC.sol +0 -11
  452. package/contracts/experiment/types/TypeA.sol +0 -42
  453. package/contracts/experiment/types/TypeB.sol +0 -24
  454. package/contracts/instance/access/Access.sol +0 -218
  455. package/contracts/instance/access/IAccess.sol +0 -83
  456. package/contracts/instance/component/ComponentModule.sol +0 -246
  457. package/contracts/instance/component/IComponent.sol +0 -94
  458. package/contracts/instance/policy/IPolicy.sol +0 -66
  459. package/contracts/instance/policy/PolicyModule.sol +0 -106
  460. package/contracts/instance/pool/IPoolModule.sol +0 -40
  461. package/contracts/instance/pool/PoolModule.sol +0 -83
  462. package/contracts/instance/product/IProductService.sol +0 -45
  463. package/contracts/instance/product/ProductService.sol +0 -105
  464. package/contracts/registry/IChainNft.sol +0 -18
  465. package/contracts/types/ChainId.sol +0 -24
  466. package/contracts/types/NftId.sol +0 -25
@@ -0,0 +1,1570 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "InstanceReader",
4
+ "sourceName": "contracts/instance/InstanceReader.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "ErrorInstanceReaderAlreadyInitialized",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "ErrorInstanceReaderInstanceAddressZero",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [
18
+ {
19
+ "internalType": "NftId",
20
+ "name": "targetNftId",
21
+ "type": "uint96"
22
+ }
23
+ ],
24
+ "name": "getBalanceAmount",
25
+ "outputs": [
26
+ {
27
+ "internalType": "Amount",
28
+ "name": "",
29
+ "type": "uint96"
30
+ }
31
+ ],
32
+ "stateMutability": "nonpayable",
33
+ "type": "function"
34
+ },
35
+ {
36
+ "inputs": [
37
+ {
38
+ "internalType": "NftId",
39
+ "name": "bundleNftId",
40
+ "type": "uint96"
41
+ }
42
+ ],
43
+ "name": "getBundleInfo",
44
+ "outputs": [
45
+ {
46
+ "components": [
47
+ {
48
+ "internalType": "NftId",
49
+ "name": "poolNftId",
50
+ "type": "uint96"
51
+ },
52
+ {
53
+ "components": [
54
+ {
55
+ "internalType": "UFixed",
56
+ "name": "fractionalFee",
57
+ "type": "uint256"
58
+ },
59
+ {
60
+ "internalType": "uint256",
61
+ "name": "fixedFee",
62
+ "type": "uint256"
63
+ }
64
+ ],
65
+ "internalType": "struct Fee",
66
+ "name": "fee",
67
+ "type": "tuple"
68
+ },
69
+ {
70
+ "internalType": "bytes",
71
+ "name": "filter",
72
+ "type": "bytes"
73
+ },
74
+ {
75
+ "internalType": "Seconds",
76
+ "name": "lifetime",
77
+ "type": "uint40"
78
+ },
79
+ {
80
+ "internalType": "Timestamp",
81
+ "name": "expiredAt",
82
+ "type": "uint40"
83
+ },
84
+ {
85
+ "internalType": "Timestamp",
86
+ "name": "closedAt",
87
+ "type": "uint40"
88
+ }
89
+ ],
90
+ "internalType": "struct IBundle.BundleInfo",
91
+ "name": "info",
92
+ "type": "tuple"
93
+ }
94
+ ],
95
+ "stateMutability": "view",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "NftId",
102
+ "name": "policyNftId",
103
+ "type": "uint96"
104
+ },
105
+ {
106
+ "internalType": "ClaimId",
107
+ "name": "claimId",
108
+ "type": "uint16"
109
+ }
110
+ ],
111
+ "name": "getClaimInfo",
112
+ "outputs": [
113
+ {
114
+ "components": [
115
+ {
116
+ "internalType": "Amount",
117
+ "name": "claimAmount",
118
+ "type": "uint96"
119
+ },
120
+ {
121
+ "internalType": "Amount",
122
+ "name": "paidAmount",
123
+ "type": "uint96"
124
+ },
125
+ {
126
+ "internalType": "uint8",
127
+ "name": "payoutsCount",
128
+ "type": "uint8"
129
+ },
130
+ {
131
+ "internalType": "uint8",
132
+ "name": "openPayoutsCount",
133
+ "type": "uint8"
134
+ },
135
+ {
136
+ "internalType": "bytes",
137
+ "name": "submissionData",
138
+ "type": "bytes"
139
+ },
140
+ {
141
+ "internalType": "bytes",
142
+ "name": "processData",
143
+ "type": "bytes"
144
+ },
145
+ {
146
+ "internalType": "Timestamp",
147
+ "name": "closedAt",
148
+ "type": "uint40"
149
+ }
150
+ ],
151
+ "internalType": "struct IPolicy.ClaimInfo",
152
+ "name": "info",
153
+ "type": "tuple"
154
+ }
155
+ ],
156
+ "stateMutability": "view",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [
161
+ {
162
+ "internalType": "NftId",
163
+ "name": "policyNftId",
164
+ "type": "uint96"
165
+ },
166
+ {
167
+ "internalType": "ClaimId",
168
+ "name": "claimId",
169
+ "type": "uint16"
170
+ }
171
+ ],
172
+ "name": "getClaimState",
173
+ "outputs": [
174
+ {
175
+ "internalType": "StateId",
176
+ "name": "state",
177
+ "type": "uint8"
178
+ }
179
+ ],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "NftId",
187
+ "name": "componentNftId",
188
+ "type": "uint96"
189
+ }
190
+ ],
191
+ "name": "getComponentInfo",
192
+ "outputs": [
193
+ {
194
+ "components": [
195
+ {
196
+ "internalType": "string",
197
+ "name": "name",
198
+ "type": "string"
199
+ },
200
+ {
201
+ "internalType": "NftId",
202
+ "name": "productNftId",
203
+ "type": "uint96"
204
+ },
205
+ {
206
+ "internalType": "contract IERC20Metadata",
207
+ "name": "token",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "contract TokenHandler",
212
+ "name": "tokenHandler",
213
+ "type": "address"
214
+ },
215
+ {
216
+ "internalType": "address",
217
+ "name": "wallet",
218
+ "type": "address"
219
+ },
220
+ {
221
+ "internalType": "bytes",
222
+ "name": "data",
223
+ "type": "bytes"
224
+ }
225
+ ],
226
+ "internalType": "struct IComponents.ComponentInfo",
227
+ "name": "info",
228
+ "type": "tuple"
229
+ }
230
+ ],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "ReferralId",
238
+ "name": "referralId",
239
+ "type": "bytes8"
240
+ }
241
+ ],
242
+ "name": "getDiscountPercentage",
243
+ "outputs": [
244
+ {
245
+ "internalType": "UFixed",
246
+ "name": "discountPercentage",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "internalType": "ReferralStatus",
251
+ "name": "status",
252
+ "type": "uint8"
253
+ }
254
+ ],
255
+ "stateMutability": "view",
256
+ "type": "function"
257
+ },
258
+ {
259
+ "inputs": [
260
+ {
261
+ "internalType": "NftId",
262
+ "name": "distributorNftId",
263
+ "type": "uint96"
264
+ }
265
+ ],
266
+ "name": "getDistributorInfo",
267
+ "outputs": [
268
+ {
269
+ "components": [
270
+ {
271
+ "internalType": "DistributorType",
272
+ "name": "distributorType",
273
+ "type": "bytes8"
274
+ },
275
+ {
276
+ "internalType": "bool",
277
+ "name": "active",
278
+ "type": "bool"
279
+ },
280
+ {
281
+ "internalType": "bytes",
282
+ "name": "data",
283
+ "type": "bytes"
284
+ },
285
+ {
286
+ "internalType": "Amount",
287
+ "name": "commissionAmount",
288
+ "type": "uint96"
289
+ },
290
+ {
291
+ "internalType": "uint32",
292
+ "name": "numPoliciesSold",
293
+ "type": "uint32"
294
+ }
295
+ ],
296
+ "internalType": "struct IDistribution.DistributorInfo",
297
+ "name": "info",
298
+ "type": "tuple"
299
+ }
300
+ ],
301
+ "stateMutability": "view",
302
+ "type": "function"
303
+ },
304
+ {
305
+ "inputs": [
306
+ {
307
+ "internalType": "DistributorType",
308
+ "name": "distributorType",
309
+ "type": "bytes8"
310
+ }
311
+ ],
312
+ "name": "getDistributorTypeInfo",
313
+ "outputs": [
314
+ {
315
+ "components": [
316
+ {
317
+ "internalType": "string",
318
+ "name": "name",
319
+ "type": "string"
320
+ },
321
+ {
322
+ "internalType": "UFixed",
323
+ "name": "minDiscountPercentage",
324
+ "type": "uint256"
325
+ },
326
+ {
327
+ "internalType": "UFixed",
328
+ "name": "maxDiscountPercentage",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "internalType": "UFixed",
333
+ "name": "commissionPercentage",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "internalType": "uint32",
338
+ "name": "maxReferralCount",
339
+ "type": "uint32"
340
+ },
341
+ {
342
+ "internalType": "uint32",
343
+ "name": "maxReferralLifetime",
344
+ "type": "uint32"
345
+ },
346
+ {
347
+ "internalType": "bool",
348
+ "name": "allowSelfReferrals",
349
+ "type": "bool"
350
+ },
351
+ {
352
+ "internalType": "bool",
353
+ "name": "allowRenewals",
354
+ "type": "bool"
355
+ },
356
+ {
357
+ "internalType": "bytes",
358
+ "name": "data",
359
+ "type": "bytes"
360
+ }
361
+ ],
362
+ "internalType": "struct IDistribution.DistributorTypeInfo",
363
+ "name": "info",
364
+ "type": "tuple"
365
+ }
366
+ ],
367
+ "stateMutability": "view",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [
372
+ {
373
+ "internalType": "NftId",
374
+ "name": "targetNftId",
375
+ "type": "uint96"
376
+ }
377
+ ],
378
+ "name": "getFeeAmount",
379
+ "outputs": [
380
+ {
381
+ "internalType": "Amount",
382
+ "name": "",
383
+ "type": "uint96"
384
+ }
385
+ ],
386
+ "stateMutability": "nonpayable",
387
+ "type": "function"
388
+ },
389
+ {
390
+ "inputs": [],
391
+ "name": "getInstance",
392
+ "outputs": [
393
+ {
394
+ "internalType": "contract IInstance",
395
+ "name": "instance",
396
+ "type": "address"
397
+ }
398
+ ],
399
+ "stateMutability": "view",
400
+ "type": "function"
401
+ },
402
+ {
403
+ "inputs": [],
404
+ "name": "getInstanceStore",
405
+ "outputs": [
406
+ {
407
+ "internalType": "contract IKeyValueStore",
408
+ "name": "store",
409
+ "type": "address"
410
+ }
411
+ ],
412
+ "stateMutability": "view",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "internalType": "NftId",
419
+ "name": "targetNftId",
420
+ "type": "uint96"
421
+ }
422
+ ],
423
+ "name": "getLockedAmount",
424
+ "outputs": [
425
+ {
426
+ "internalType": "Amount",
427
+ "name": "",
428
+ "type": "uint96"
429
+ }
430
+ ],
431
+ "stateMutability": "nonpayable",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "inputs": [
436
+ {
437
+ "internalType": "Key32",
438
+ "name": "key",
439
+ "type": "bytes32"
440
+ }
441
+ ],
442
+ "name": "getMetadata",
443
+ "outputs": [
444
+ {
445
+ "components": [
446
+ {
447
+ "internalType": "ObjectType",
448
+ "name": "objectType",
449
+ "type": "uint8"
450
+ },
451
+ {
452
+ "internalType": "StateId",
453
+ "name": "state",
454
+ "type": "uint8"
455
+ },
456
+ {
457
+ "internalType": "address",
458
+ "name": "updatedBy",
459
+ "type": "address"
460
+ },
461
+ {
462
+ "internalType": "Blocknumber",
463
+ "name": "updatedIn",
464
+ "type": "uint32"
465
+ },
466
+ {
467
+ "internalType": "Blocknumber",
468
+ "name": "createdIn",
469
+ "type": "uint32"
470
+ }
471
+ ],
472
+ "internalType": "struct IKeyValueStore.Metadata",
473
+ "name": "metadata",
474
+ "type": "tuple"
475
+ }
476
+ ],
477
+ "stateMutability": "view",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [
482
+ {
483
+ "internalType": "NftId",
484
+ "name": "policyNftId",
485
+ "type": "uint96"
486
+ },
487
+ {
488
+ "internalType": "PayoutId",
489
+ "name": "payoutId",
490
+ "type": "uint24"
491
+ }
492
+ ],
493
+ "name": "getPayoutInfo",
494
+ "outputs": [
495
+ {
496
+ "components": [
497
+ {
498
+ "internalType": "ClaimId",
499
+ "name": "claimId",
500
+ "type": "uint16"
501
+ },
502
+ {
503
+ "internalType": "Amount",
504
+ "name": "amount",
505
+ "type": "uint96"
506
+ },
507
+ {
508
+ "internalType": "bytes",
509
+ "name": "data",
510
+ "type": "bytes"
511
+ },
512
+ {
513
+ "internalType": "Timestamp",
514
+ "name": "paidAt",
515
+ "type": "uint40"
516
+ }
517
+ ],
518
+ "internalType": "struct IPolicy.PayoutInfo",
519
+ "name": "info",
520
+ "type": "tuple"
521
+ }
522
+ ],
523
+ "stateMutability": "view",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [
528
+ {
529
+ "internalType": "NftId",
530
+ "name": "policyNftId",
531
+ "type": "uint96"
532
+ },
533
+ {
534
+ "internalType": "PayoutId",
535
+ "name": "payoutId",
536
+ "type": "uint24"
537
+ }
538
+ ],
539
+ "name": "getPayoutState",
540
+ "outputs": [
541
+ {
542
+ "internalType": "StateId",
543
+ "name": "state",
544
+ "type": "uint8"
545
+ }
546
+ ],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ {
553
+ "internalType": "NftId",
554
+ "name": "policyNftId",
555
+ "type": "uint96"
556
+ }
557
+ ],
558
+ "name": "getPolicyInfo",
559
+ "outputs": [
560
+ {
561
+ "components": [
562
+ {
563
+ "internalType": "NftId",
564
+ "name": "productNftId",
565
+ "type": "uint96"
566
+ },
567
+ {
568
+ "internalType": "NftId",
569
+ "name": "bundleNftId",
570
+ "type": "uint96"
571
+ },
572
+ {
573
+ "internalType": "ReferralId",
574
+ "name": "referralId",
575
+ "type": "bytes8"
576
+ },
577
+ {
578
+ "internalType": "RiskId",
579
+ "name": "riskId",
580
+ "type": "bytes8"
581
+ },
582
+ {
583
+ "internalType": "Amount",
584
+ "name": "sumInsuredAmount",
585
+ "type": "uint96"
586
+ },
587
+ {
588
+ "internalType": "Amount",
589
+ "name": "premiumAmount",
590
+ "type": "uint96"
591
+ },
592
+ {
593
+ "internalType": "Amount",
594
+ "name": "premiumPaidAmount",
595
+ "type": "uint96"
596
+ },
597
+ {
598
+ "internalType": "Seconds",
599
+ "name": "lifetime",
600
+ "type": "uint40"
601
+ },
602
+ {
603
+ "internalType": "bytes",
604
+ "name": "applicationData",
605
+ "type": "bytes"
606
+ },
607
+ {
608
+ "internalType": "bytes",
609
+ "name": "processData",
610
+ "type": "bytes"
611
+ },
612
+ {
613
+ "internalType": "uint16",
614
+ "name": "claimsCount",
615
+ "type": "uint16"
616
+ },
617
+ {
618
+ "internalType": "uint16",
619
+ "name": "openClaimsCount",
620
+ "type": "uint16"
621
+ },
622
+ {
623
+ "internalType": "Amount",
624
+ "name": "claimAmount",
625
+ "type": "uint96"
626
+ },
627
+ {
628
+ "internalType": "Amount",
629
+ "name": "payoutAmount",
630
+ "type": "uint96"
631
+ },
632
+ {
633
+ "internalType": "Timestamp",
634
+ "name": "activatedAt",
635
+ "type": "uint40"
636
+ },
637
+ {
638
+ "internalType": "Timestamp",
639
+ "name": "expiredAt",
640
+ "type": "uint40"
641
+ },
642
+ {
643
+ "internalType": "Timestamp",
644
+ "name": "closedAt",
645
+ "type": "uint40"
646
+ }
647
+ ],
648
+ "internalType": "struct IPolicy.PolicyInfo",
649
+ "name": "info",
650
+ "type": "tuple"
651
+ }
652
+ ],
653
+ "stateMutability": "view",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [
658
+ {
659
+ "internalType": "NftId",
660
+ "name": "policyNftId",
661
+ "type": "uint96"
662
+ }
663
+ ],
664
+ "name": "getPolicyState",
665
+ "outputs": [
666
+ {
667
+ "internalType": "StateId",
668
+ "name": "state",
669
+ "type": "uint8"
670
+ }
671
+ ],
672
+ "stateMutability": "view",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ {
678
+ "internalType": "NftId",
679
+ "name": "poolNftId",
680
+ "type": "uint96"
681
+ }
682
+ ],
683
+ "name": "getPoolInfo",
684
+ "outputs": [
685
+ {
686
+ "components": [
687
+ {
688
+ "internalType": "NftId",
689
+ "name": "productNftId",
690
+ "type": "uint96"
691
+ },
692
+ {
693
+ "internalType": "RoleId",
694
+ "name": "bundleOwnerRole",
695
+ "type": "uint64"
696
+ },
697
+ {
698
+ "internalType": "Amount",
699
+ "name": "maxCapitalAmount",
700
+ "type": "uint96"
701
+ },
702
+ {
703
+ "internalType": "bool",
704
+ "name": "isInterceptingBundleTransfers",
705
+ "type": "bool"
706
+ },
707
+ {
708
+ "internalType": "bool",
709
+ "name": "isExternallyManaged",
710
+ "type": "bool"
711
+ },
712
+ {
713
+ "internalType": "bool",
714
+ "name": "isVerifyingApplications",
715
+ "type": "bool"
716
+ },
717
+ {
718
+ "internalType": "UFixed",
719
+ "name": "collateralizationLevel",
720
+ "type": "uint256"
721
+ },
722
+ {
723
+ "internalType": "UFixed",
724
+ "name": "retentionLevel",
725
+ "type": "uint256"
726
+ },
727
+ {
728
+ "components": [
729
+ {
730
+ "internalType": "UFixed",
731
+ "name": "fractionalFee",
732
+ "type": "uint256"
733
+ },
734
+ {
735
+ "internalType": "uint256",
736
+ "name": "fixedFee",
737
+ "type": "uint256"
738
+ }
739
+ ],
740
+ "internalType": "struct Fee",
741
+ "name": "poolFee",
742
+ "type": "tuple"
743
+ },
744
+ {
745
+ "components": [
746
+ {
747
+ "internalType": "UFixed",
748
+ "name": "fractionalFee",
749
+ "type": "uint256"
750
+ },
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "fixedFee",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "internalType": "struct Fee",
758
+ "name": "stakingFee",
759
+ "type": "tuple"
760
+ },
761
+ {
762
+ "components": [
763
+ {
764
+ "internalType": "UFixed",
765
+ "name": "fractionalFee",
766
+ "type": "uint256"
767
+ },
768
+ {
769
+ "internalType": "uint256",
770
+ "name": "fixedFee",
771
+ "type": "uint256"
772
+ }
773
+ ],
774
+ "internalType": "struct Fee",
775
+ "name": "performanceFee",
776
+ "type": "tuple"
777
+ }
778
+ ],
779
+ "internalType": "struct IComponents.PoolInfo",
780
+ "name": "info",
781
+ "type": "tuple"
782
+ }
783
+ ],
784
+ "stateMutability": "view",
785
+ "type": "function"
786
+ },
787
+ {
788
+ "inputs": [
789
+ {
790
+ "internalType": "NftId",
791
+ "name": "productNftId",
792
+ "type": "uint96"
793
+ }
794
+ ],
795
+ "name": "getProductInfo",
796
+ "outputs": [
797
+ {
798
+ "components": [
799
+ {
800
+ "internalType": "NftId",
801
+ "name": "distributionNftId",
802
+ "type": "uint96"
803
+ },
804
+ {
805
+ "internalType": "NftId",
806
+ "name": "poolNftId",
807
+ "type": "uint96"
808
+ },
809
+ {
810
+ "components": [
811
+ {
812
+ "internalType": "UFixed",
813
+ "name": "fractionalFee",
814
+ "type": "uint256"
815
+ },
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "fixedFee",
819
+ "type": "uint256"
820
+ }
821
+ ],
822
+ "internalType": "struct Fee",
823
+ "name": "productFee",
824
+ "type": "tuple"
825
+ },
826
+ {
827
+ "components": [
828
+ {
829
+ "internalType": "UFixed",
830
+ "name": "fractionalFee",
831
+ "type": "uint256"
832
+ },
833
+ {
834
+ "internalType": "uint256",
835
+ "name": "fixedFee",
836
+ "type": "uint256"
837
+ }
838
+ ],
839
+ "internalType": "struct Fee",
840
+ "name": "processingFee",
841
+ "type": "tuple"
842
+ },
843
+ {
844
+ "components": [
845
+ {
846
+ "internalType": "UFixed",
847
+ "name": "fractionalFee",
848
+ "type": "uint256"
849
+ },
850
+ {
851
+ "internalType": "uint256",
852
+ "name": "fixedFee",
853
+ "type": "uint256"
854
+ }
855
+ ],
856
+ "internalType": "struct Fee",
857
+ "name": "distributionFee",
858
+ "type": "tuple"
859
+ },
860
+ {
861
+ "components": [
862
+ {
863
+ "internalType": "UFixed",
864
+ "name": "fractionalFee",
865
+ "type": "uint256"
866
+ },
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "fixedFee",
870
+ "type": "uint256"
871
+ }
872
+ ],
873
+ "internalType": "struct Fee",
874
+ "name": "minDistributionOwnerFee",
875
+ "type": "tuple"
876
+ },
877
+ {
878
+ "components": [
879
+ {
880
+ "internalType": "UFixed",
881
+ "name": "fractionalFee",
882
+ "type": "uint256"
883
+ },
884
+ {
885
+ "internalType": "uint256",
886
+ "name": "fixedFee",
887
+ "type": "uint256"
888
+ }
889
+ ],
890
+ "internalType": "struct Fee",
891
+ "name": "poolFee",
892
+ "type": "tuple"
893
+ },
894
+ {
895
+ "components": [
896
+ {
897
+ "internalType": "UFixed",
898
+ "name": "fractionalFee",
899
+ "type": "uint256"
900
+ },
901
+ {
902
+ "internalType": "uint256",
903
+ "name": "fixedFee",
904
+ "type": "uint256"
905
+ }
906
+ ],
907
+ "internalType": "struct Fee",
908
+ "name": "stakingFee",
909
+ "type": "tuple"
910
+ },
911
+ {
912
+ "components": [
913
+ {
914
+ "internalType": "UFixed",
915
+ "name": "fractionalFee",
916
+ "type": "uint256"
917
+ },
918
+ {
919
+ "internalType": "uint256",
920
+ "name": "fixedFee",
921
+ "type": "uint256"
922
+ }
923
+ ],
924
+ "internalType": "struct Fee",
925
+ "name": "performanceFee",
926
+ "type": "tuple"
927
+ }
928
+ ],
929
+ "internalType": "struct IComponents.ProductInfo",
930
+ "name": "info",
931
+ "type": "tuple"
932
+ }
933
+ ],
934
+ "stateMutability": "view",
935
+ "type": "function"
936
+ },
937
+ {
938
+ "inputs": [
939
+ {
940
+ "internalType": "ReferralId",
941
+ "name": "referralId",
942
+ "type": "bytes8"
943
+ }
944
+ ],
945
+ "name": "getReferralInfo",
946
+ "outputs": [
947
+ {
948
+ "components": [
949
+ {
950
+ "internalType": "NftId",
951
+ "name": "distributorNftId",
952
+ "type": "uint96"
953
+ },
954
+ {
955
+ "internalType": "string",
956
+ "name": "referralCode",
957
+ "type": "string"
958
+ },
959
+ {
960
+ "internalType": "UFixed",
961
+ "name": "discountPercentage",
962
+ "type": "uint256"
963
+ },
964
+ {
965
+ "internalType": "uint32",
966
+ "name": "maxReferrals",
967
+ "type": "uint32"
968
+ },
969
+ {
970
+ "internalType": "uint32",
971
+ "name": "usedReferrals",
972
+ "type": "uint32"
973
+ },
974
+ {
975
+ "internalType": "Timestamp",
976
+ "name": "expiryAt",
977
+ "type": "uint40"
978
+ },
979
+ {
980
+ "internalType": "bytes",
981
+ "name": "data",
982
+ "type": "bytes"
983
+ }
984
+ ],
985
+ "internalType": "struct IDistribution.ReferralInfo",
986
+ "name": "info",
987
+ "type": "tuple"
988
+ }
989
+ ],
990
+ "stateMutability": "view",
991
+ "type": "function"
992
+ },
993
+ {
994
+ "inputs": [
995
+ {
996
+ "internalType": "RiskId",
997
+ "name": "riskId",
998
+ "type": "bytes8"
999
+ }
1000
+ ],
1001
+ "name": "getRiskInfo",
1002
+ "outputs": [
1003
+ {
1004
+ "components": [
1005
+ {
1006
+ "internalType": "NftId",
1007
+ "name": "productNftId",
1008
+ "type": "uint96"
1009
+ },
1010
+ {
1011
+ "internalType": "bytes",
1012
+ "name": "data",
1013
+ "type": "bytes"
1014
+ }
1015
+ ],
1016
+ "internalType": "struct IRisk.RiskInfo",
1017
+ "name": "info",
1018
+ "type": "tuple"
1019
+ }
1020
+ ],
1021
+ "stateMutability": "view",
1022
+ "type": "function"
1023
+ },
1024
+ {
1025
+ "inputs": [
1026
+ {
1027
+ "internalType": "NftId",
1028
+ "name": "componentNftId",
1029
+ "type": "uint96"
1030
+ }
1031
+ ],
1032
+ "name": "getTokenHandler",
1033
+ "outputs": [
1034
+ {
1035
+ "internalType": "address",
1036
+ "name": "tokenHandler",
1037
+ "type": "address"
1038
+ }
1039
+ ],
1040
+ "stateMutability": "view",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [
1045
+ {
1046
+ "internalType": "address",
1047
+ "name": "instance",
1048
+ "type": "address"
1049
+ }
1050
+ ],
1051
+ "name": "initialize",
1052
+ "outputs": [],
1053
+ "stateMutability": "nonpayable",
1054
+ "type": "function"
1055
+ },
1056
+ {
1057
+ "inputs": [
1058
+ {
1059
+ "internalType": "NftId",
1060
+ "name": "policyNftId",
1061
+ "type": "uint96"
1062
+ }
1063
+ ],
1064
+ "name": "policyIsCloseable",
1065
+ "outputs": [
1066
+ {
1067
+ "internalType": "bool",
1068
+ "name": "isCloseable",
1069
+ "type": "bool"
1070
+ }
1071
+ ],
1072
+ "stateMutability": "view",
1073
+ "type": "function"
1074
+ },
1075
+ {
1076
+ "inputs": [
1077
+ {
1078
+ "internalType": "NftId",
1079
+ "name": "poolNftId",
1080
+ "type": "uint96"
1081
+ }
1082
+ ],
1083
+ "name": "toBundleKey",
1084
+ "outputs": [
1085
+ {
1086
+ "internalType": "Key32",
1087
+ "name": "",
1088
+ "type": "bytes32"
1089
+ }
1090
+ ],
1091
+ "stateMutability": "pure",
1092
+ "type": "function"
1093
+ },
1094
+ {
1095
+ "inputs": [
1096
+ {
1097
+ "internalType": "NftId",
1098
+ "name": "componentNftId",
1099
+ "type": "uint96"
1100
+ }
1101
+ ],
1102
+ "name": "toComponentKey",
1103
+ "outputs": [
1104
+ {
1105
+ "internalType": "Key32",
1106
+ "name": "",
1107
+ "type": "bytes32"
1108
+ }
1109
+ ],
1110
+ "stateMutability": "pure",
1111
+ "type": "function"
1112
+ },
1113
+ {
1114
+ "inputs": [
1115
+ {
1116
+ "internalType": "NftId",
1117
+ "name": "distributionNftId",
1118
+ "type": "uint96"
1119
+ }
1120
+ ],
1121
+ "name": "toDistributionKey",
1122
+ "outputs": [
1123
+ {
1124
+ "internalType": "Key32",
1125
+ "name": "",
1126
+ "type": "bytes32"
1127
+ }
1128
+ ],
1129
+ "stateMutability": "pure",
1130
+ "type": "function"
1131
+ },
1132
+ {
1133
+ "inputs": [
1134
+ {
1135
+ "internalType": "NftId",
1136
+ "name": "distributorNftId",
1137
+ "type": "uint96"
1138
+ }
1139
+ ],
1140
+ "name": "toDistributorKey",
1141
+ "outputs": [
1142
+ {
1143
+ "internalType": "Key32",
1144
+ "name": "",
1145
+ "type": "bytes32"
1146
+ }
1147
+ ],
1148
+ "stateMutability": "pure",
1149
+ "type": "function"
1150
+ },
1151
+ {
1152
+ "inputs": [
1153
+ {
1154
+ "internalType": "UFixed",
1155
+ "name": "value",
1156
+ "type": "uint256"
1157
+ }
1158
+ ],
1159
+ "name": "toInt",
1160
+ "outputs": [
1161
+ {
1162
+ "internalType": "uint256",
1163
+ "name": "",
1164
+ "type": "uint256"
1165
+ }
1166
+ ],
1167
+ "stateMutability": "pure",
1168
+ "type": "function"
1169
+ },
1170
+ {
1171
+ "inputs": [
1172
+ {
1173
+ "internalType": "NftId",
1174
+ "name": "policyNftId",
1175
+ "type": "uint96"
1176
+ }
1177
+ ],
1178
+ "name": "toPolicyKey",
1179
+ "outputs": [
1180
+ {
1181
+ "internalType": "Key32",
1182
+ "name": "",
1183
+ "type": "bytes32"
1184
+ }
1185
+ ],
1186
+ "stateMutability": "pure",
1187
+ "type": "function"
1188
+ },
1189
+ {
1190
+ "inputs": [
1191
+ {
1192
+ "internalType": "NftId",
1193
+ "name": "poolNftId",
1194
+ "type": "uint96"
1195
+ }
1196
+ ],
1197
+ "name": "toPoolKey",
1198
+ "outputs": [
1199
+ {
1200
+ "internalType": "Key32",
1201
+ "name": "",
1202
+ "type": "bytes32"
1203
+ }
1204
+ ],
1205
+ "stateMutability": "pure",
1206
+ "type": "function"
1207
+ },
1208
+ {
1209
+ "inputs": [
1210
+ {
1211
+ "internalType": "NftId",
1212
+ "name": "productNftId",
1213
+ "type": "uint96"
1214
+ }
1215
+ ],
1216
+ "name": "toProductKey",
1217
+ "outputs": [
1218
+ {
1219
+ "internalType": "Key32",
1220
+ "name": "",
1221
+ "type": "bytes32"
1222
+ }
1223
+ ],
1224
+ "stateMutability": "pure",
1225
+ "type": "function"
1226
+ },
1227
+ {
1228
+ "inputs": [
1229
+ {
1230
+ "internalType": "NftId",
1231
+ "name": "distributionNftId",
1232
+ "type": "uint96"
1233
+ },
1234
+ {
1235
+ "internalType": "string",
1236
+ "name": "referralCode",
1237
+ "type": "string"
1238
+ }
1239
+ ],
1240
+ "name": "toReferralId",
1241
+ "outputs": [
1242
+ {
1243
+ "internalType": "ReferralId",
1244
+ "name": "referralId",
1245
+ "type": "bytes8"
1246
+ }
1247
+ ],
1248
+ "stateMutability": "pure",
1249
+ "type": "function"
1250
+ },
1251
+ {
1252
+ "inputs": [
1253
+ {
1254
+ "internalType": "uint256",
1255
+ "name": "value",
1256
+ "type": "uint256"
1257
+ },
1258
+ {
1259
+ "internalType": "int8",
1260
+ "name": "exp",
1261
+ "type": "int8"
1262
+ }
1263
+ ],
1264
+ "name": "toUFixed",
1265
+ "outputs": [
1266
+ {
1267
+ "internalType": "UFixed",
1268
+ "name": "",
1269
+ "type": "uint256"
1270
+ }
1271
+ ],
1272
+ "stateMutability": "pure",
1273
+ "type": "function"
1274
+ }
1275
+ ],
1276
+ "bytecode": "0x608060405234801561001057600080fd5b50613871806100206000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80637bfd32171161011a578063b82d7ef5116100ad578063d4cda0d81161007c578063d4cda0d8146105a5578063dd26287a146105b6578063de7b5d14146105c9578063f0ea17c3146105df578063f7f318d3146105ff57600080fd5b8063b82d7ef514610526578063bd7d9d8514610550578063c4d66de814610570578063d06458c61461058557600080fd5b80639096a1f3116100e95780639096a1f31461045b578063a310e2a31461046e578063a5961b4c14610499578063a7ef3d211461050657600080fd5b80637bfd3217146104025780637e54602a14610415578063887b1fa9146104285780638eb9000d1461044857600080fd5b80633f093cd61161019d57806357f80bbf1161016c57806357f80bbf146103745780635da894021461039457806364eb3a9b146103b957806375d357df146103cc57806378ae9350146103ef57600080fd5b80633f093cd61461030257806344aa68361461032e5780634793b4ab146103415780634fb784f51461036157600080fd5b8063228e42ec116101d9578063228e42ec1461029c57806327b1d792146102af57806335898f5d146102cf57806339bb60cd146102e257600080fd5b80630232ca491461020b5780630b5d931c1461023b5780631488c8451461025b5780631d3be4771461027c575b600080fd5b61021e610219366004612108565b610612565b6040516001600160601b0390911681526020015b60405180910390f35b61024e610249366004612108565b61068f565b6040516102329190612125565b61026e610269366004612208565b610742565b604051908152602001610232565b61028f61028a366004612254565b6107c1565b60405161023291906122c1565b61021e6102aa366004612108565b61090d565b6102c26102bd366004612108565b610947565b604051610232919061235c565b61026e6102dd366004612108565b610a11565b6102f56102f03660046123c9565b610aab565b60405161023291906123ff565b6103156103103660046125bd565b610bfd565b6040516001600160c01b03199091168152602001610232565b61026e61033c36600461264f565b610c7a565b61035461034f366004612108565b610cb5565b6040516102329190612668565b61026e61036f366004612108565b610d5b565b610387610382366004612108565b610d88565b60405161023291906126ee565b6103a76103a23660046123c9565b610e2e565b60405160ff9091168152602001610232565b61026e6103c7366004612108565b610f2b565b6103df6103da366004612108565b610f58565b6040519015158152602001610232565b6103a76103fd3660046127f1565b6111e7565b61026e610410366004612108565b611247565b61026e610423366004612108565b611274565b61043b610436366004612254565b6112a1565b604051610232919061281f565b61021e610456366004612108565b6113ca565b6103a7610469366004612108565b611404565b61048161047c366004612108565b611480565b6040516001600160a01b039091168152602001610232565b6104ac6104a736600461264f565b61152e565b6040516102329190815160ff9081168252602080840151909116908201526040808301516001600160a01b03169082015260608083015163ffffffff90811691830191909152608092830151169181019190915260a00190565b6105196105143660046127f1565b6115c2565b6040516102329190612855565b610539610534366004612254565b611717565b6040805192835260ff909116602083015201610232565b61056361055e366004612108565b6119bf565b60405161023291906128f5565b61058361057e366004612abb565b611ae5565b005b610598610593366004612254565b611bfe565b6040516102329190612ad8565b6001546001600160a01b0316610481565b61026e6105c4366004612108565b611d71565b60005461010090046001600160a01b0316610481565b6105f26105ed366004612108565b611d9e565b6040516102329190612b88565b61026e61060d366004612108565b611e6c565b600154604051630232ca4960e01b81526001600160601b03831660048201526000916001600160a01b031690630232ca49906024015b602060405180830381865afa158015610665573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106899190612c12565b92915050565b610697611f20565b6001546000906001600160a01b03166354f6127f6106b485611247565b6040518263ffffffff1660e01b81526004016106d291815260200190565b600060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107179190810190612c74565b80519091501561073c57808060200190518101906107359190612cd8565b9392505050565b50919050565b604051631488c84560e01b815260048101839052600082810b60248301529073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c84590604401602060405180830381865af415801561079d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107359190612d98565b6040805160e08101825260008082526060602083018190529282018190528282018190526080820181905260a082015260c08101919091526001546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$05887d5853069c88bcd4c0a2107db45f29$__906355ee627590602401602060405180830381865af4158015610868573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088c9190612d98565b6040518263ffffffff1660e01b81526004016108aa91815260200190565b600060405180830381865afa1580156108c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108ef9190810190612c74565b80519091501561073c57808060200190518101906107359190612dec565b6001546040516308a390bb60e21b81526001600160601b03831660048201526000916001600160a01b03169063228e42ec90602401610648565b6040805160a081018252600080825260208201819052606092820183905291810182905260808101919091526001546000906001600160a01b03166354f6127f61099085611274565b6040518263ffffffff1660e01b81526004016109ae91815260200190565b600060405180830381865afa1580156109cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109f39190810190612c74565b80519091501561073c57808060200190518101906107359190612ee5565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660785b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526044015b602060405180830381865af4158015610a87573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106899190612d98565b60408051608081018252600080825260208201819052606092820183905291810191909152600154604051635927341160e01b815262ffffff841660048201526001600160601b03851660248201526000916001600160a01b0316906354f6127f9073__$0f9396e6447a4be57af83e53f51d234633$__90635927341190604401602060405180830381865af4158015610b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6d9190612d98565b6040518263ffffffff1660e01b8152600401610b8b91815260200190565b600060405180830381865afa158015610ba8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bd09190810190612c74565b805190915015610bf65780806020019051810190610bee9190612fad565b915050610689565b5092915050565b604051631f849e6b60e11b815260009073__$05887d5853069c88bcd4c0a2107db45f29$__90633f093cd690610c39908690869060040161306c565b602060405180830381865af4158015610c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610735919061308e565b604051632255341b60e11b81526004810182905260009073__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401610a6a565b610cbd61203a565b6001546000906001600160a01b03166354f6127f610cda85611e6c565b6040518263ffffffff1660e01b8152600401610cf891815260200190565b600060405180830381865afa158015610d15573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d3d9190810190612c74565b80519091501561073c578080602001905181019061073591906130ab565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b0384166064610a3a565b610d90612095565b6001546000906001600160a01b03166354f6127f610dad85611d71565b6040518263ffffffff1660e01b8152600401610dcb91815260200190565b600060405180830381865afa158015610de8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e109190810190612c74565b80519091501561073c5780806020019051810190610735919061318b565b600154604051635927341160e01b815262ffffff831660048201526001600160601b03841660248201526000916001600160a01b0316906309648a9d9073__$0f9396e6447a4be57af83e53f51d234633$__906359273411906044015b602060405180830381865af4158015610ea8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecc9190612d98565b6040518263ffffffff1660e01b8152600401610eea91815260200190565b602060405180830381865afa158015610f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610735919061326a565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660d3610a3a565b600080610f64836119bf565b8051604051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af4158015610fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe69190613287565b15610ff45750600092915050565b6101c081015160405163790a38ad60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015611051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110759190613287565b156110835750600092915050565b610200810151604051638d38cd4b60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__90638d38cd4b90602401602060405180830381865af41580156110e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111049190613287565b156111125750600092915050565b61016081015161ffff161561112a5750600092915050565b61113d8161018001518260800151611e99565b1561114b5750600192915050565b6111d073__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015611197573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bb91906132a2565b826101e0015164ffffffffff90811691161090565b156111de5750600092915050565b50600192915050565b600154604051637d56159160e11b815261ffff831660048201526001600160601b03841660248201526000916001600160a01b0316906309648a9d9073__$9e81531fe4994e01e99541f86b55500b4b$__9063faac2b2290604401610e8b565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416606e610a3a565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416607a610a3a565b6040805180820190915260008152606060208201526001546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$32e9ecefef68cb354d118e0496fdd3f4bc$__906355ee627590602401602060405180830381865af4158015611325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113499190612d98565b6040518263ffffffff1660e01b815260040161136791815260200190565b600060405180830381865afa158015611384573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113ac9190810190612c74565b80519091501561073c578080602001905181019061073591906132bf565b600154604051638eb9000d60e01b81526001600160601b03831660048201526000916001600160a01b031690638eb9000d90602401610648565b6001546000906001600160a01b03166309648a9d61142184610f2b565b6040518263ffffffff1660e01b815260040161143f91815260200190565b602060405180830381865afa15801561145c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610689919061326a565b60015460009081906001600160a01b03166354f6127f61149f85610d5b565b6040518263ffffffff1660e01b81526004016114bd91815260200190565b600060405180830381865afa1580156114da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115029190810190612c74565b80519091501561073c576000818060200190518101906115229190613349565b60600151949350505050565b6040805160a081018252600080825260208201819052818301819052606082018190526080820152600154915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c9060240160a060405180830381865afa15801561159e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610689919061341d565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820181905260a082015260c0810191909152600154604051637d56159160e11b815261ffff841660048201526001600160601b03851660248201526000916001600160a01b0316906354f6127f9073__$9e81531fe4994e01e99541f86b55500b4b$__9063faac2b2290604401602060405180830381865af4158015611672573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116969190612d98565b6040518263ffffffff1660e01b81526004016116b491815260200190565b600060405180830381865afa1580156116d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116f99190810190612c74565b805190915015610bf65780806020019051810190610bee9190613497565b6000806000611725846107c1565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015611784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a89190613287565b156118275773__$bf7bc340cbb9229ef1de2c568356e67902$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156117f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181a9190612d98565b60645b9250925050915091565b6118ab8160a0015173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c91906132a2565b64ffffffffff90811691161090565b156119245773__$bf7bc340cbb9229ef1de2c568356e67902$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156118f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191d9190612d98565b606e61181d565b806060015163ffffffff16816080015163ffffffff16106119b35773__$bf7bc340cbb9229ef1de2c568356e67902$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ac9190612d98565b607861181d565b6040810151600a61181d565b604080516102208101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018190526101208201526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081018290526102008101919091526001546000906001600160a01b03166354f6127f611a6485610f2b565b6040518263ffffffff1660e01b8152600401611a8291815260200190565b600060405180830381865afa158015611a9f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ac79190810190612c74565b80519091501561073c5780806020019051810190610735919061357c565b60005460ff1615611b095760405163ae9eff1b60e01b815260040160405180910390fd5b6001600160a01b038116611b3057604051630cc51a5560e21b815260040160405180910390fd5b80600060016101000a8154816001600160a01b0302191690836001600160a01b03160217905550600060019054906101000a90046001600160a01b03166001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bce9190613727565b600180546001600160a01b0319166001600160a01b03929092169190911781556000805460ff1916909117905550565b611c5d60405180610120016040528060608152602001600081526020016000815260200160008152602001600063ffffffff168152602001600063ffffffff168152602001600015158152602001600015158152602001606081525090565b6001546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$1919c6d2c69d787ccb2653a371d7e5737d$__906355ee627590602401602060405180830381865af4158015611ccc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf09190612d98565b6040518263ffffffff1660e01b8152600401611d0e91815260200190565b600060405180830381865afa158015611d2b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d539190810190612c74565b80519091501561073c57808060200190518101906107359190613744565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416608c610a3a565b6040805160c08101825260608082526000602083018190529282018390528082018390526080820183905260a08201526001549091906001600160a01b03166354f6127f611deb85610d5b565b6040518263ffffffff1660e01b8152600401611e0991815260200190565b600060405180830381865afa158015611e26573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e4e9190810190612c74565b80519091501561073c57808060200190518101906107359190613349565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660dc610a3a565b60405163c4cade9d60e01b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063c4cade9d90604401602060405180830381865af4158015611efc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107359190613287565b60405180610120016040528060006001600160601b0316815260200160006001600160601b03168152602001611f69604051806040016040528060008152602001600081525090565b8152602001611f8b604051806040016040528060008152602001600081525090565b8152602001611fad604051806040016040528060008152602001600081525090565b8152602001611fcf604051806040016040528060008152602001600081525090565b8152602001611ff1604051806040016040528060008152602001600081525090565b8152602001612013604051806040016040528060008152602001600081525090565b8152602001612035604051806040016040528060008152602001600081525090565b905290565b6040518060c0016040528060006001600160601b03168152602001612072604051806040016040528060008152602001600081525090565b815260606020820181905260006040830181905290820181905260809091015290565b604080516101608101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e08301829052835180850190945281845283015290610100820190611ff1565b6001600160601b038116811461210557600080fd5b50565b60006020828403121561211a57600080fd5b8135610735816120f0565b81516001600160601b03168152602080830151610200830191612152908401826001600160601b03169052565b50604083015161216f604084018280518252602090810151910152565b50606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a08301516101006121bc8185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a08601529085015180516101c0860152908101516101e08501529050610bf6565b6000806040838503121561221b57600080fd5b8235915060208301358060000b811461223357600080fd5b809150509250929050565b6001600160c01b03198116811461210557600080fd5b60006020828403121561226657600080fd5b81356107358161223e565b60005b8381101561228c578181015183820152602001612274565b50506000910152565b600081518084526122ad816020860160208601612271565b601f01601f19169290920160200192915050565b602081526001600160601b0382511660208201526000602083015160e060408401526122f1610100840182612295565b90506040840151606084015263ffffffff6060850151166080840152608084015161232460a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e08501526123538282612295565b95945050505050565b602081526001600160401b0360c01b82511660208201526020820151151560408201526000604083015160a0606084015261239a60c0840182612295565b90506001600160601b03606085015116608084015263ffffffff60808501511660a08401528091505092915050565b600080604083850312156123dc57600080fd5b82356123e7816120f0565b9150602083013562ffffff8116811461223357600080fd5b6020815261ffff82511660208201526001600160601b036020830151166040820152600060408301516080606084015261243c60a0840182612295565b905064ffffffffff60608501511660808401528091505092915050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561249157612491612459565b60405290565b60405161012081016001600160401b038111828210171561249157612491612459565b60405160e081016001600160401b038111828210171561249157612491612459565b60405160a081016001600160401b038111828210171561249157612491612459565b60405160c081016001600160401b038111828210171561249157612491612459565b60405161016081016001600160401b038111828210171561249157612491612459565b60405161022081016001600160401b038111828210171561249157612491612459565b604051601f8201601f191681016001600160401b038111828210171561258e5761258e612459565b604052919050565b60006001600160401b038211156125af576125af612459565b50601f01601f191660200190565b600080604083850312156125d057600080fd5b82356125db816120f0565b915060208301356001600160401b038111156125f657600080fd5b8301601f8101851361260757600080fd5b803561261a61261582612596565b612566565b81815286602083850101111561262f57600080fd5b816020840160208301376000602083830101528093505050509250929050565b60006020828403121561266157600080fd5b5035919050565b602081526001600160601b0382511660208201526000602083015161269a604084018280518252602090810151910152565b50604083015160e060808401526126b5610100840182612295565b9050606084015164ffffffffff80821660a08601528060808701511660c08601528060a08701511660e086015250508091505092915050565b81516001600160601b031681526101c08101602083015161271a60208401826001600160401b03169052565b50604083015161273560408401826001600160601b03169052565b506060830151612749606084018215159052565b50608083015161275d608084018215159052565b5060a083015161277160a084018215159052565b5060c083015160c083015260e083015160e0830152610100808401516127a38285018280518252602090810151910152565b50506101208301516101406127c48185018380518252602090810151910152565b840151805161018085015260208101516101a08501529050610bf6565b61ffff8116811461210557600080fd5b6000806040838503121561280457600080fd5b823561280f816120f0565b91506020830135612233816127e1565b602081526001600160601b0382511660208201526000602083015160408084015261284d6060840182612295565b949350505050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff6040840151166060830152606083015161289a608084018260ff169052565b50608083015160e060a08401526128b5610100840182612295565b905060a0840151601f198483030160c08501526128d28282612295565b91505060c08401516128ed60e085018264ffffffffff169052565b509392505050565b6020815261290f6020820183516001600160601b03169052565b6000602083015161292b60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b0319811660808401525060808301516001600160601b03811660a08401525060a08301516001600160601b03811660c08401525060c08301516001600160601b03811660e08401525060e08301516101006129b18185018364ffffffffff169052565b8085015191505061022061012081818601526129d1610240860184612295565b9250808601519050610140601f1986850301818701526129f18483612295565b935080870151915050610160612a0c8187018361ffff169052565b8601519050610180612a238682018361ffff169052565b86015190506101a0612a3f868201836001600160601b03169052565b86015190506101c0612a5b868201836001600160601b03169052565b86015190506101e0612a758682018364ffffffffff169052565b8601519050610200612a8f8682018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b6001600160a01b038116811461210557600080fd5b600060208284031215612acd57600080fd5b813561073581612aa6565b6020815260008251610120806020850152612af7610140850183612295565b91506020850151604085015260408501516060850152606085015160808501526080850151612b2e60a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e0850151610100612b648187018315159052565b860151858403601f1901838701529050612b7e8382612295565b9695505050505050565b602081526000825160c06020840152612ba460e0840182612295565b90506001600160601b036020850151166040840152604084015160018060a01b0380821660608601528060608701511660808601528060808701511660a0860152505060a0840151601f198483030160c08501526123538282612295565b8051612c0d816120f0565b919050565b600060208284031215612c2457600080fd5b8151610735816120f0565b600082601f830112612c4057600080fd5b8151612c4e61261582612596565b818152846020838601011115612c6357600080fd5b61284d826020830160208701612271565b600060208284031215612c8657600080fd5b81516001600160401b03811115612c9c57600080fd5b61284d84828501612c2f565b600060408284031215612cba57600080fd5b612cc261246f565b9050815181526020820151602082015292915050565b60006102008284031215612ceb57600080fd5b612cf3612497565b612cfc83612c02565b8152612d0a60208401612c02565b6020820152612d1c8460408501612ca8565b6040820152612d2e8460808501612ca8565b6060820152612d408460c08501612ca8565b6080820152610100612d5485828601612ca8565b60a0830152612d67856101408601612ca8565b60c0830152612d7a856101808601612ca8565b60e0830152612d8d856101c08601612ca8565b908201529392505050565b600060208284031215612daa57600080fd5b5051919050565b63ffffffff8116811461210557600080fd5b8051612c0d81612db1565b64ffffffffff8116811461210557600080fd5b8051612c0d81612dce565b600060208284031215612dfe57600080fd5b81516001600160401b0380821115612e1557600080fd5b9083019060e08286031215612e2957600080fd5b612e316124ba565b612e3a83612c02565b8152602083015182811115612e4e57600080fd5b612e5a87828601612c2f565b60208301525060408301516040820152612e7660608401612dc3565b6060820152612e8760808401612dc3565b6080820152612e9860a08401612de1565b60a082015260c083015182811115612eaf57600080fd5b612ebb87828601612c2f565b60c08301525095945050505050565b8051612c0d8161223e565b80518015158114612c0d57600080fd5b600060208284031215612ef757600080fd5b81516001600160401b0380821115612f0e57600080fd5b9083019060a08286031215612f2257600080fd5b612f2a6124dc565b8251612f358161223e565b8152612f4360208401612ed5565b6020820152604083015182811115612f5a57600080fd5b612f6687828601612c2f565b60408301525060608301519150612f7c826120f0565b81606082015260808301519250612f9283612db1565b6080810192909252509392505050565b8051612c0d816127e1565b600060208284031215612fbf57600080fd5b81516001600160401b0380821115612fd657600080fd5b9083019060808286031215612fea57600080fd5b60405160808101818110838211171561300557613005612459565b6040528251613013816127e1565b81526020830151613023816120f0565b602082015260408301518281111561303a57600080fd5b61304687828601612c2f565b6040830152506060830151925061305c83612dce565b6060810192909252509392505050565b6001600160601b038316815260406020820152600061284d6040830184612295565b6000602082840312156130a057600080fd5b81516107358161223e565b6000602082840312156130bd57600080fd5b81516001600160401b03808211156130d457600080fd5b9083019060e082860312156130e857600080fd5b6130f06124fe565b82516130fb816120f0565b815261310a8660208501612ca8565b602082015260608301518281111561312157600080fd5b61312d87828601612c2f565b6040830152506080830151915061314382612dce565b81606082015261315560a08401612de1565b608082015261316660c08401612de1565b60a082015295945050505050565b80516001600160401b0381168114612c0d57600080fd5b60006101c0828403121561319e57600080fd5b6131a6612520565b6131af83612c02565b81526131bd60208401613174565b60208201526131ce60408401612c02565b60408201526131df60608401612ed5565b60608201526131f060808401612ed5565b608082015261320160a08401612ed5565b60a082015260c083015160c082015260e083015160e082015261010061322985828601612ca8565b9082015261014061323c85858301612ca8565b610120830152612d8d856101808601612ca8565b60ff8116811461210557600080fd5b8051612c0d81613250565b60006020828403121561327c57600080fd5b815161073581613250565b60006020828403121561329957600080fd5b61073582612ed5565b6000602082840312156132b457600080fd5b815161073581612dce565b6000602082840312156132d157600080fd5b81516001600160401b03808211156132e857600080fd5b90830190604082860312156132fc57600080fd5b61330461246f565b825161330f816120f0565b815260208301518281111561332357600080fd5b61332f87828601612c2f565b60208301525095945050505050565b8051612c0d81612aa6565b60006020828403121561335b57600080fd5b81516001600160401b038082111561337257600080fd5b9083019060c0828603121561338657600080fd5b61338e6124fe565b82518281111561339d57600080fd5b6133a987828601612c2f565b8252506133b860208401612c02565b60208201526133c96040840161333e565b60408201526133da6060840161333e565b60608201526133eb6080840161333e565b608082015260a08301518281111561340257600080fd5b61340e87828601612c2f565b60a08301525095945050505050565b600060a0828403121561342f57600080fd5b6134376124dc565b825161344281613250565b8152602083015161345281613250565b6020820152604083015161346581612aa6565b6040820152606083015161347881612db1565b6060820152608083015161348b81612db1565b60808201529392505050565b6000602082840312156134a957600080fd5b81516001600160401b03808211156134c057600080fd5b9083019060e082860312156134d457600080fd5b6134dc6124ba565b6134e583612c02565b81526134f360208401612c02565b60208201526135046040840161325f565b60408201526135156060840161325f565b606082015260808301518281111561352c57600080fd5b61353887828601612c2f565b60808301525060a08301518281111561355057600080fd5b61355c87828601612c2f565b60a08301525061356e60c08401612de1565b60c082015295945050505050565b60006020828403121561358e57600080fd5b81516001600160401b03808211156135a557600080fd5b9083019061022082860312156135ba57600080fd5b6135c2612543565b6135cb83612c02565b81526135d960208401612c02565b60208201526135ea60408401612eca565b60408201526135fb60608401612eca565b606082015261360c60808401612c02565b608082015261361d60a08401612c02565b60a082015261362e60c08401612c02565b60c082015261363f60e08401612de1565b60e0820152610100808401518381111561365857600080fd5b61366488828701612c2f565b828401525050610120808401518381111561367e57600080fd5b61368a88828701612c2f565b82840152505061014091506136a0828401612fa2565b8282015261016091506136b4828401612fa2565b8282015261018091506136c8828401612c02565b828201526101a091506136dc828401612c02565b828201526101c091506136f0828401612de1565b828201526101e09150613704828401612de1565b828201526102009150613718828401612de1565b91810191909152949350505050565b60006020828403121561373957600080fd5b815161073581612aa6565b60006020828403121561375657600080fd5b81516001600160401b038082111561376d57600080fd5b90830190610120828603121561378257600080fd5b61378a612497565b82518281111561379957600080fd5b6137a587828601612c2f565b8252506020830151602082015260408301516040820152606083015160608201526137d260808401612dc3565b60808201526137e360a08401612dc3565b60a08201526137f460c08401612ed5565b60c082015261380560e08401612ed5565b60e0820152610100808401518381111561381e57600080fd5b61382a88828701612c2f565b91830191909152509594505050505056fea26469706673582212204be70841e8ffae24a9232392df5ee3611fba8cc435e38c482214ca90148f328364736f6c63430008140033",
1277
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102065760003560e01c80637bfd32171161011a578063b82d7ef5116100ad578063d4cda0d81161007c578063d4cda0d8146105a5578063dd26287a146105b6578063de7b5d14146105c9578063f0ea17c3146105df578063f7f318d3146105ff57600080fd5b8063b82d7ef514610526578063bd7d9d8514610550578063c4d66de814610570578063d06458c61461058557600080fd5b80639096a1f3116100e95780639096a1f31461045b578063a310e2a31461046e578063a5961b4c14610499578063a7ef3d211461050657600080fd5b80637bfd3217146104025780637e54602a14610415578063887b1fa9146104285780638eb9000d1461044857600080fd5b80633f093cd61161019d57806357f80bbf1161016c57806357f80bbf146103745780635da894021461039457806364eb3a9b146103b957806375d357df146103cc57806378ae9350146103ef57600080fd5b80633f093cd61461030257806344aa68361461032e5780634793b4ab146103415780634fb784f51461036157600080fd5b8063228e42ec116101d9578063228e42ec1461029c57806327b1d792146102af57806335898f5d146102cf57806339bb60cd146102e257600080fd5b80630232ca491461020b5780630b5d931c1461023b5780631488c8451461025b5780631d3be4771461027c575b600080fd5b61021e610219366004612108565b610612565b6040516001600160601b0390911681526020015b60405180910390f35b61024e610249366004612108565b61068f565b6040516102329190612125565b61026e610269366004612208565b610742565b604051908152602001610232565b61028f61028a366004612254565b6107c1565b60405161023291906122c1565b61021e6102aa366004612108565b61090d565b6102c26102bd366004612108565b610947565b604051610232919061235c565b61026e6102dd366004612108565b610a11565b6102f56102f03660046123c9565b610aab565b60405161023291906123ff565b6103156103103660046125bd565b610bfd565b6040516001600160c01b03199091168152602001610232565b61026e61033c36600461264f565b610c7a565b61035461034f366004612108565b610cb5565b6040516102329190612668565b61026e61036f366004612108565b610d5b565b610387610382366004612108565b610d88565b60405161023291906126ee565b6103a76103a23660046123c9565b610e2e565b60405160ff9091168152602001610232565b61026e6103c7366004612108565b610f2b565b6103df6103da366004612108565b610f58565b6040519015158152602001610232565b6103a76103fd3660046127f1565b6111e7565b61026e610410366004612108565b611247565b61026e610423366004612108565b611274565b61043b610436366004612254565b6112a1565b604051610232919061281f565b61021e610456366004612108565b6113ca565b6103a7610469366004612108565b611404565b61048161047c366004612108565b611480565b6040516001600160a01b039091168152602001610232565b6104ac6104a736600461264f565b61152e565b6040516102329190815160ff9081168252602080840151909116908201526040808301516001600160a01b03169082015260608083015163ffffffff90811691830191909152608092830151169181019190915260a00190565b6105196105143660046127f1565b6115c2565b6040516102329190612855565b610539610534366004612254565b611717565b6040805192835260ff909116602083015201610232565b61056361055e366004612108565b6119bf565b60405161023291906128f5565b61058361057e366004612abb565b611ae5565b005b610598610593366004612254565b611bfe565b6040516102329190612ad8565b6001546001600160a01b0316610481565b61026e6105c4366004612108565b611d71565b60005461010090046001600160a01b0316610481565b6105f26105ed366004612108565b611d9e565b6040516102329190612b88565b61026e61060d366004612108565b611e6c565b600154604051630232ca4960e01b81526001600160601b03831660048201526000916001600160a01b031690630232ca49906024015b602060405180830381865afa158015610665573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106899190612c12565b92915050565b610697611f20565b6001546000906001600160a01b03166354f6127f6106b485611247565b6040518263ffffffff1660e01b81526004016106d291815260200190565b600060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107179190810190612c74565b80519091501561073c57808060200190518101906107359190612cd8565b9392505050565b50919050565b604051631488c84560e01b815260048101839052600082810b60248301529073__$bf7bc340cbb9229ef1de2c568356e67902$__90631488c84590604401602060405180830381865af415801561079d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107359190612d98565b6040805160e08101825260008082526060602083018190529282018190528282018190526080820181905260a082015260c08101919091526001546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$05887d5853069c88bcd4c0a2107db45f29$__906355ee627590602401602060405180830381865af4158015610868573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088c9190612d98565b6040518263ffffffff1660e01b81526004016108aa91815260200190565b600060405180830381865afa1580156108c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108ef9190810190612c74565b80519091501561073c57808060200190518101906107359190612dec565b6001546040516308a390bb60e21b81526001600160601b03831660048201526000916001600160a01b03169063228e42ec90602401610648565b6040805160a081018252600080825260208201819052606092820183905291810182905260808101919091526001546000906001600160a01b03166354f6127f61099085611274565b6040518263ffffffff1660e01b81526004016109ae91815260200190565b600060405180830381865afa1580156109cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109f39190810190612c74565b80519091501561073c57808060200190518101906107359190612ee5565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660785b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff1660248201526044015b602060405180830381865af4158015610a87573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106899190612d98565b60408051608081018252600080825260208201819052606092820183905291810191909152600154604051635927341160e01b815262ffffff841660048201526001600160601b03851660248201526000916001600160a01b0316906354f6127f9073__$0f9396e6447a4be57af83e53f51d234633$__90635927341190604401602060405180830381865af4158015610b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6d9190612d98565b6040518263ffffffff1660e01b8152600401610b8b91815260200190565b600060405180830381865afa158015610ba8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bd09190810190612c74565b805190915015610bf65780806020019051810190610bee9190612fad565b915050610689565b5092915050565b604051631f849e6b60e11b815260009073__$05887d5853069c88bcd4c0a2107db45f29$__90633f093cd690610c39908690869060040161306c565b602060405180830381865af4158015610c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610735919061308e565b604051632255341b60e11b81526004810182905260009073__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401610a6a565b610cbd61203a565b6001546000906001600160a01b03166354f6127f610cda85611e6c565b6040518263ffffffff1660e01b8152600401610cf891815260200190565b600060405180830381865afa158015610d15573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d3d9190810190612c74565b80519091501561073c578080602001905181019061073591906130ab565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b0384166064610a3a565b610d90612095565b6001546000906001600160a01b03166354f6127f610dad85611d71565b6040518263ffffffff1660e01b8152600401610dcb91815260200190565b600060405180830381865afa158015610de8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e109190810190612c74565b80519091501561073c5780806020019051810190610735919061318b565b600154604051635927341160e01b815262ffffff831660048201526001600160601b03841660248201526000916001600160a01b0316906309648a9d9073__$0f9396e6447a4be57af83e53f51d234633$__906359273411906044015b602060405180830381865af4158015610ea8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecc9190612d98565b6040518263ffffffff1660e01b8152600401610eea91815260200190565b602060405180830381865afa158015610f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610735919061326a565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660d3610a3a565b600080610f64836119bf565b8051604051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af4158015610fc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe69190613287565b15610ff45750600092915050565b6101c081015160405163790a38ad60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015611051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110759190613287565b156110835750600092915050565b610200810151604051638d38cd4b60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__90638d38cd4b90602401602060405180830381865af41580156110e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111049190613287565b156111125750600092915050565b61016081015161ffff161561112a5750600092915050565b61113d8161018001518260800151611e99565b1561114b5750600192915050565b6111d073__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015611197573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bb91906132a2565b826101e0015164ffffffffff90811691161090565b156111de5750600092915050565b50600192915050565b600154604051637d56159160e11b815261ffff831660048201526001600160601b03841660248201526000916001600160a01b0316906309648a9d9073__$9e81531fe4994e01e99541f86b55500b4b$__9063faac2b2290604401610e8b565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416606e610a3a565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416607a610a3a565b6040805180820190915260008152606060208201526001546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$32e9ecefef68cb354d118e0496fdd3f4bc$__906355ee627590602401602060405180830381865af4158015611325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113499190612d98565b6040518263ffffffff1660e01b815260040161136791815260200190565b600060405180830381865afa158015611384573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113ac9190810190612c74565b80519091501561073c578080602001905181019061073591906132bf565b600154604051638eb9000d60e01b81526001600160601b03831660048201526000916001600160a01b031690638eb9000d90602401610648565b6001546000906001600160a01b03166309648a9d61142184610f2b565b6040518263ffffffff1660e01b815260040161143f91815260200190565b602060405180830381865afa15801561145c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610689919061326a565b60015460009081906001600160a01b03166354f6127f61149f85610d5b565b6040518263ffffffff1660e01b81526004016114bd91815260200190565b600060405180830381865afa1580156114da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115029190810190612c74565b80519091501561073c576000818060200190518101906115229190613349565b60600151949350505050565b6040805160a081018252600080825260208201819052818301819052606082018190526080820152600154915163296586d360e21b81526004810184905290916001600160a01b03169063a5961b4c9060240160a060405180830381865afa15801561159e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610689919061341d565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820181905260a082015260c0810191909152600154604051637d56159160e11b815261ffff841660048201526001600160601b03851660248201526000916001600160a01b0316906354f6127f9073__$9e81531fe4994e01e99541f86b55500b4b$__9063faac2b2290604401602060405180830381865af4158015611672573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116969190612d98565b6040518263ffffffff1660e01b81526004016116b491815260200190565b600060405180830381865afa1580156116d1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116f99190810190612c74565b805190915015610bf65780806020019051810190610bee9190613497565b6000806000611725846107c1565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015290915073__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015611784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a89190613287565b156118275773__$bf7bc340cbb9229ef1de2c568356e67902$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156117f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181a9190612d98565b60645b9250925050915091565b6118ab8160a0015173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c91906132a2565b64ffffffffff90811691161090565b156119245773__$bf7bc340cbb9229ef1de2c568356e67902$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156118f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191d9190612d98565b606e61181d565b806060015163ffffffff16816080015163ffffffff16106119b35773__$bf7bc340cbb9229ef1de2c568356e67902$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611988573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ac9190612d98565b607861181d565b6040810151600a61181d565b604080516102208101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082018190526101208201526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081018290526102008101919091526001546000906001600160a01b03166354f6127f611a6485610f2b565b6040518263ffffffff1660e01b8152600401611a8291815260200190565b600060405180830381865afa158015611a9f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ac79190810190612c74565b80519091501561073c5780806020019051810190610735919061357c565b60005460ff1615611b095760405163ae9eff1b60e01b815260040160405180910390fd5b6001600160a01b038116611b3057604051630cc51a5560e21b815260040160405180910390fd5b80600060016101000a8154816001600160a01b0302191690836001600160a01b03160217905550600060019054906101000a90046001600160a01b03166001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bce9190613727565b600180546001600160a01b0319166001600160a01b03929092169190911781556000805460ff1916909117905550565b611c5d60405180610120016040528060608152602001600081526020016000815260200160008152602001600063ffffffff168152602001600063ffffffff168152602001600015158152602001600015158152602001606081525090565b6001546040516355ee627560e01b81526001600160c01b0319841660048201526000916001600160a01b0316906354f6127f9073__$1919c6d2c69d787ccb2653a371d7e5737d$__906355ee627590602401602060405180830381865af4158015611ccc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf09190612d98565b6040518263ffffffff1660e01b8152600401611d0e91815260200190565b600060405180830381865afa158015611d2b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d539190810190612c74565b80519091501561073c57808060200190518101906107359190613744565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038416608c610a3a565b6040805160c08101825260608082526000602083018190529282018390528082018390526080820183905260a08201526001549091906001600160a01b03166354f6127f611deb85610d5b565b6040518263ffffffff1660e01b8152600401611e0991815260200190565b600060405180830381865afa158015611e26573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e4e9190810190612c74565b80519091501561073c57808060200190518101906107359190613349565b600073__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b03841660dc610a3a565b60405163c4cade9d60e01b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063c4cade9d90604401602060405180830381865af4158015611efc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107359190613287565b60405180610120016040528060006001600160601b0316815260200160006001600160601b03168152602001611f69604051806040016040528060008152602001600081525090565b8152602001611f8b604051806040016040528060008152602001600081525090565b8152602001611fad604051806040016040528060008152602001600081525090565b8152602001611fcf604051806040016040528060008152602001600081525090565b8152602001611ff1604051806040016040528060008152602001600081525090565b8152602001612013604051806040016040528060008152602001600081525090565b8152602001612035604051806040016040528060008152602001600081525090565b905290565b6040518060c0016040528060006001600160601b03168152602001612072604051806040016040528060008152602001600081525090565b815260606020820181905260006040830181905290820181905260809091015290565b604080516101608101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e08301829052835180850190945281845283015290610100820190611ff1565b6001600160601b038116811461210557600080fd5b50565b60006020828403121561211a57600080fd5b8135610735816120f0565b81516001600160601b03168152602080830151610200830191612152908401826001600160601b03169052565b50604083015161216f604084018280518252602090810151910152565b50606083015180516080840152602081015160a0840152506080830151805160c0840152602081015160e08401525060a08301516101006121bc8185018380518252602090810151910152565b60c0850151805161014086015260209081015161016086015260e086015180516101808701528101516101a08601529085015180516101c0860152908101516101e08501529050610bf6565b6000806040838503121561221b57600080fd5b8235915060208301358060000b811461223357600080fd5b809150509250929050565b6001600160c01b03198116811461210557600080fd5b60006020828403121561226657600080fd5b81356107358161223e565b60005b8381101561228c578181015183820152602001612274565b50506000910152565b600081518084526122ad816020860160208601612271565b601f01601f19169290920160200192915050565b602081526001600160601b0382511660208201526000602083015160e060408401526122f1610100840182612295565b90506040840151606084015263ffffffff6060850151166080840152608084015161232460a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e08501526123538282612295565b95945050505050565b602081526001600160401b0360c01b82511660208201526020820151151560408201526000604083015160a0606084015261239a60c0840182612295565b90506001600160601b03606085015116608084015263ffffffff60808501511660a08401528091505092915050565b600080604083850312156123dc57600080fd5b82356123e7816120f0565b9150602083013562ffffff8116811461223357600080fd5b6020815261ffff82511660208201526001600160601b036020830151166040820152600060408301516080606084015261243c60a0840182612295565b905064ffffffffff60608501511660808401528091505092915050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561249157612491612459565b60405290565b60405161012081016001600160401b038111828210171561249157612491612459565b60405160e081016001600160401b038111828210171561249157612491612459565b60405160a081016001600160401b038111828210171561249157612491612459565b60405160c081016001600160401b038111828210171561249157612491612459565b60405161016081016001600160401b038111828210171561249157612491612459565b60405161022081016001600160401b038111828210171561249157612491612459565b604051601f8201601f191681016001600160401b038111828210171561258e5761258e612459565b604052919050565b60006001600160401b038211156125af576125af612459565b50601f01601f191660200190565b600080604083850312156125d057600080fd5b82356125db816120f0565b915060208301356001600160401b038111156125f657600080fd5b8301601f8101851361260757600080fd5b803561261a61261582612596565b612566565b81815286602083850101111561262f57600080fd5b816020840160208301376000602083830101528093505050509250929050565b60006020828403121561266157600080fd5b5035919050565b602081526001600160601b0382511660208201526000602083015161269a604084018280518252602090810151910152565b50604083015160e060808401526126b5610100840182612295565b9050606084015164ffffffffff80821660a08601528060808701511660c08601528060a08701511660e086015250508091505092915050565b81516001600160601b031681526101c08101602083015161271a60208401826001600160401b03169052565b50604083015161273560408401826001600160601b03169052565b506060830151612749606084018215159052565b50608083015161275d608084018215159052565b5060a083015161277160a084018215159052565b5060c083015160c083015260e083015160e0830152610100808401516127a38285018280518252602090810151910152565b50506101208301516101406127c48185018380518252602090810151910152565b840151805161018085015260208101516101a08501529050610bf6565b61ffff8116811461210557600080fd5b6000806040838503121561280457600080fd5b823561280f816120f0565b91506020830135612233816127e1565b602081526001600160601b0382511660208201526000602083015160408084015261284d6060840182612295565b949350505050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff6040840151166060830152606083015161289a608084018260ff169052565b50608083015160e060a08401526128b5610100840182612295565b905060a0840151601f198483030160c08501526128d28282612295565b91505060c08401516128ed60e085018264ffffffffff169052565b509392505050565b6020815261290f6020820183516001600160601b03169052565b6000602083015161292b60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b0319811660808401525060808301516001600160601b03811660a08401525060a08301516001600160601b03811660c08401525060c08301516001600160601b03811660e08401525060e08301516101006129b18185018364ffffffffff169052565b8085015191505061022061012081818601526129d1610240860184612295565b9250808601519050610140601f1986850301818701526129f18483612295565b935080870151915050610160612a0c8187018361ffff169052565b8601519050610180612a238682018361ffff169052565b86015190506101a0612a3f868201836001600160601b03169052565b86015190506101c0612a5b868201836001600160601b03169052565b86015190506101e0612a758682018364ffffffffff169052565b8601519050610200612a8f8682018364ffffffffff169052565b9095015164ffffffffff1693019290925250919050565b6001600160a01b038116811461210557600080fd5b600060208284031215612acd57600080fd5b813561073581612aa6565b6020815260008251610120806020850152612af7610140850183612295565b91506020850151604085015260408501516060850152606085015160808501526080850151612b2e60a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e0850151610100612b648187018315159052565b860151858403601f1901838701529050612b7e8382612295565b9695505050505050565b602081526000825160c06020840152612ba460e0840182612295565b90506001600160601b036020850151166040840152604084015160018060a01b0380821660608601528060608701511660808601528060808701511660a0860152505060a0840151601f198483030160c08501526123538282612295565b8051612c0d816120f0565b919050565b600060208284031215612c2457600080fd5b8151610735816120f0565b600082601f830112612c4057600080fd5b8151612c4e61261582612596565b818152846020838601011115612c6357600080fd5b61284d826020830160208701612271565b600060208284031215612c8657600080fd5b81516001600160401b03811115612c9c57600080fd5b61284d84828501612c2f565b600060408284031215612cba57600080fd5b612cc261246f565b9050815181526020820151602082015292915050565b60006102008284031215612ceb57600080fd5b612cf3612497565b612cfc83612c02565b8152612d0a60208401612c02565b6020820152612d1c8460408501612ca8565b6040820152612d2e8460808501612ca8565b6060820152612d408460c08501612ca8565b6080820152610100612d5485828601612ca8565b60a0830152612d67856101408601612ca8565b60c0830152612d7a856101808601612ca8565b60e0830152612d8d856101c08601612ca8565b908201529392505050565b600060208284031215612daa57600080fd5b5051919050565b63ffffffff8116811461210557600080fd5b8051612c0d81612db1565b64ffffffffff8116811461210557600080fd5b8051612c0d81612dce565b600060208284031215612dfe57600080fd5b81516001600160401b0380821115612e1557600080fd5b9083019060e08286031215612e2957600080fd5b612e316124ba565b612e3a83612c02565b8152602083015182811115612e4e57600080fd5b612e5a87828601612c2f565b60208301525060408301516040820152612e7660608401612dc3565b6060820152612e8760808401612dc3565b6080820152612e9860a08401612de1565b60a082015260c083015182811115612eaf57600080fd5b612ebb87828601612c2f565b60c08301525095945050505050565b8051612c0d8161223e565b80518015158114612c0d57600080fd5b600060208284031215612ef757600080fd5b81516001600160401b0380821115612f0e57600080fd5b9083019060a08286031215612f2257600080fd5b612f2a6124dc565b8251612f358161223e565b8152612f4360208401612ed5565b6020820152604083015182811115612f5a57600080fd5b612f6687828601612c2f565b60408301525060608301519150612f7c826120f0565b81606082015260808301519250612f9283612db1565b6080810192909252509392505050565b8051612c0d816127e1565b600060208284031215612fbf57600080fd5b81516001600160401b0380821115612fd657600080fd5b9083019060808286031215612fea57600080fd5b60405160808101818110838211171561300557613005612459565b6040528251613013816127e1565b81526020830151613023816120f0565b602082015260408301518281111561303a57600080fd5b61304687828601612c2f565b6040830152506060830151925061305c83612dce565b6060810192909252509392505050565b6001600160601b038316815260406020820152600061284d6040830184612295565b6000602082840312156130a057600080fd5b81516107358161223e565b6000602082840312156130bd57600080fd5b81516001600160401b03808211156130d457600080fd5b9083019060e082860312156130e857600080fd5b6130f06124fe565b82516130fb816120f0565b815261310a8660208501612ca8565b602082015260608301518281111561312157600080fd5b61312d87828601612c2f565b6040830152506080830151915061314382612dce565b81606082015261315560a08401612de1565b608082015261316660c08401612de1565b60a082015295945050505050565b80516001600160401b0381168114612c0d57600080fd5b60006101c0828403121561319e57600080fd5b6131a6612520565b6131af83612c02565b81526131bd60208401613174565b60208201526131ce60408401612c02565b60408201526131df60608401612ed5565b60608201526131f060808401612ed5565b608082015261320160a08401612ed5565b60a082015260c083015160c082015260e083015160e082015261010061322985828601612ca8565b9082015261014061323c85858301612ca8565b610120830152612d8d856101808601612ca8565b60ff8116811461210557600080fd5b8051612c0d81613250565b60006020828403121561327c57600080fd5b815161073581613250565b60006020828403121561329957600080fd5b61073582612ed5565b6000602082840312156132b457600080fd5b815161073581612dce565b6000602082840312156132d157600080fd5b81516001600160401b03808211156132e857600080fd5b90830190604082860312156132fc57600080fd5b61330461246f565b825161330f816120f0565b815260208301518281111561332357600080fd5b61332f87828601612c2f565b60208301525095945050505050565b8051612c0d81612aa6565b60006020828403121561335b57600080fd5b81516001600160401b038082111561337257600080fd5b9083019060c0828603121561338657600080fd5b61338e6124fe565b82518281111561339d57600080fd5b6133a987828601612c2f565b8252506133b860208401612c02565b60208201526133c96040840161333e565b60408201526133da6060840161333e565b60608201526133eb6080840161333e565b608082015260a08301518281111561340257600080fd5b61340e87828601612c2f565b60a08301525095945050505050565b600060a0828403121561342f57600080fd5b6134376124dc565b825161344281613250565b8152602083015161345281613250565b6020820152604083015161346581612aa6565b6040820152606083015161347881612db1565b6060820152608083015161348b81612db1565b60808201529392505050565b6000602082840312156134a957600080fd5b81516001600160401b03808211156134c057600080fd5b9083019060e082860312156134d457600080fd5b6134dc6124ba565b6134e583612c02565b81526134f360208401612c02565b60208201526135046040840161325f565b60408201526135156060840161325f565b606082015260808301518281111561352c57600080fd5b61353887828601612c2f565b60808301525060a08301518281111561355057600080fd5b61355c87828601612c2f565b60a08301525061356e60c08401612de1565b60c082015295945050505050565b60006020828403121561358e57600080fd5b81516001600160401b03808211156135a557600080fd5b9083019061022082860312156135ba57600080fd5b6135c2612543565b6135cb83612c02565b81526135d960208401612c02565b60208201526135ea60408401612eca565b60408201526135fb60608401612eca565b606082015261360c60808401612c02565b608082015261361d60a08401612c02565b60a082015261362e60c08401612c02565b60c082015261363f60e08401612de1565b60e0820152610100808401518381111561365857600080fd5b61366488828701612c2f565b828401525050610120808401518381111561367e57600080fd5b61368a88828701612c2f565b82840152505061014091506136a0828401612fa2565b8282015261016091506136b4828401612fa2565b8282015261018091506136c8828401612c02565b828201526101a091506136dc828401612c02565b828201526101c091506136f0828401612de1565b828201526101e09150613704828401612de1565b828201526102009150613718828401612de1565b91810191909152949350505050565b60006020828403121561373957600080fd5b815161073581612aa6565b60006020828403121561375657600080fd5b81516001600160401b038082111561376d57600080fd5b90830190610120828603121561378257600080fd5b61378a612497565b82518281111561379957600080fd5b6137a587828601612c2f565b8252506020830151602082015260408301516040820152606083015160608201526137d260808401612dc3565b60808201526137e360a08401612dc3565b60a08201526137f460c08401612ed5565b60c082015261380560e08401612ed5565b60e0820152610100808401518381111561381e57600080fd5b61382a88828701612c2f565b91830191909152509594505050505056fea26469706673582212204be70841e8ffae24a9232392df5ee3611fba8cc435e38c482214ca90148f328364736f6c63430008140033",
1278
+ "linkReferences": {
1279
+ "contracts/type/Amount.sol": {
1280
+ "AmountLib": [
1281
+ {
1282
+ "length": 20,
1283
+ "start": 7906
1284
+ }
1285
+ ]
1286
+ },
1287
+ "contracts/type/ClaimId.sol": {
1288
+ "ClaimIdLib": [
1289
+ {
1290
+ "length": 20,
1291
+ "start": 4677
1292
+ },
1293
+ {
1294
+ "length": 20,
1295
+ "start": 5720
1296
+ }
1297
+ ]
1298
+ },
1299
+ "contracts/type/DistributorType.sol": {
1300
+ "DistributorTypeLib": [
1301
+ {
1302
+ "length": 20,
1303
+ "start": 7346
1304
+ }
1305
+ ]
1306
+ },
1307
+ "contracts/type/NftId.sol": {
1308
+ "NftIdLib": [
1309
+ {
1310
+ "length": 20,
1311
+ "start": 2613
1312
+ },
1313
+ {
1314
+ "length": 20,
1315
+ "start": 3455
1316
+ },
1317
+ {
1318
+ "length": 20,
1319
+ "start": 3919
1320
+ },
1321
+ {
1322
+ "length": 20,
1323
+ "start": 4008
1324
+ },
1325
+ {
1326
+ "length": 20,
1327
+ "start": 4715
1328
+ },
1329
+ {
1330
+ "length": 20,
1331
+ "start": 4760
1332
+ },
1333
+ {
1334
+ "length": 20,
1335
+ "start": 7573
1336
+ },
1337
+ {
1338
+ "length": 20,
1339
+ "start": 7824
1340
+ }
1341
+ ]
1342
+ },
1343
+ "contracts/type/PayoutId.sol": {
1344
+ "PayoutIdLib": [
1345
+ {
1346
+ "length": 20,
1347
+ "start": 2863
1348
+ },
1349
+ {
1350
+ "length": 20,
1351
+ "start": 3725
1352
+ }
1353
+ ]
1354
+ },
1355
+ "contracts/type/Referral.sol": {
1356
+ "ReferralLib": [
1357
+ {
1358
+ "length": 20,
1359
+ "start": 2126
1360
+ },
1361
+ {
1362
+ "length": 20,
1363
+ "start": 3119
1364
+ }
1365
+ ]
1366
+ },
1367
+ "contracts/type/RiskId.sol": {
1368
+ "RiskIdLib": [
1369
+ {
1370
+ "length": 20,
1371
+ "start": 4875
1372
+ }
1373
+ ]
1374
+ },
1375
+ "contracts/type/Timestamp.sol": {
1376
+ "TimestampLib": [
1377
+ {
1378
+ "length": 20,
1379
+ "start": 4151
1380
+ },
1381
+ {
1382
+ "length": 20,
1383
+ "start": 4294
1384
+ },
1385
+ {
1386
+ "length": 20,
1387
+ "start": 4464
1388
+ },
1389
+ {
1390
+ "length": 20,
1391
+ "start": 5994
1392
+ },
1393
+ {
1394
+ "length": 20,
1395
+ "start": 6225
1396
+ }
1397
+ ]
1398
+ },
1399
+ "contracts/type/UFixed.sol": {
1400
+ "UFixedLib": [
1401
+ {
1402
+ "length": 20,
1403
+ "start": 1923
1404
+ },
1405
+ {
1406
+ "length": 20,
1407
+ "start": 3251
1408
+ },
1409
+ {
1410
+ "length": 20,
1411
+ "start": 6095
1412
+ },
1413
+ {
1414
+ "length": 20,
1415
+ "start": 6354
1416
+ },
1417
+ {
1418
+ "length": 20,
1419
+ "start": 6497
1420
+ }
1421
+ ]
1422
+ }
1423
+ },
1424
+ "deployedLinkReferences": {
1425
+ "contracts/type/Amount.sol": {
1426
+ "AmountLib": [
1427
+ {
1428
+ "length": 20,
1429
+ "start": 7874
1430
+ }
1431
+ ]
1432
+ },
1433
+ "contracts/type/ClaimId.sol": {
1434
+ "ClaimIdLib": [
1435
+ {
1436
+ "length": 20,
1437
+ "start": 4645
1438
+ },
1439
+ {
1440
+ "length": 20,
1441
+ "start": 5688
1442
+ }
1443
+ ]
1444
+ },
1445
+ "contracts/type/DistributorType.sol": {
1446
+ "DistributorTypeLib": [
1447
+ {
1448
+ "length": 20,
1449
+ "start": 7314
1450
+ }
1451
+ ]
1452
+ },
1453
+ "contracts/type/NftId.sol": {
1454
+ "NftIdLib": [
1455
+ {
1456
+ "length": 20,
1457
+ "start": 2581
1458
+ },
1459
+ {
1460
+ "length": 20,
1461
+ "start": 3423
1462
+ },
1463
+ {
1464
+ "length": 20,
1465
+ "start": 3887
1466
+ },
1467
+ {
1468
+ "length": 20,
1469
+ "start": 3976
1470
+ },
1471
+ {
1472
+ "length": 20,
1473
+ "start": 4683
1474
+ },
1475
+ {
1476
+ "length": 20,
1477
+ "start": 4728
1478
+ },
1479
+ {
1480
+ "length": 20,
1481
+ "start": 7541
1482
+ },
1483
+ {
1484
+ "length": 20,
1485
+ "start": 7792
1486
+ }
1487
+ ]
1488
+ },
1489
+ "contracts/type/PayoutId.sol": {
1490
+ "PayoutIdLib": [
1491
+ {
1492
+ "length": 20,
1493
+ "start": 2831
1494
+ },
1495
+ {
1496
+ "length": 20,
1497
+ "start": 3693
1498
+ }
1499
+ ]
1500
+ },
1501
+ "contracts/type/Referral.sol": {
1502
+ "ReferralLib": [
1503
+ {
1504
+ "length": 20,
1505
+ "start": 2094
1506
+ },
1507
+ {
1508
+ "length": 20,
1509
+ "start": 3087
1510
+ }
1511
+ ]
1512
+ },
1513
+ "contracts/type/RiskId.sol": {
1514
+ "RiskIdLib": [
1515
+ {
1516
+ "length": 20,
1517
+ "start": 4843
1518
+ }
1519
+ ]
1520
+ },
1521
+ "contracts/type/Timestamp.sol": {
1522
+ "TimestampLib": [
1523
+ {
1524
+ "length": 20,
1525
+ "start": 4119
1526
+ },
1527
+ {
1528
+ "length": 20,
1529
+ "start": 4262
1530
+ },
1531
+ {
1532
+ "length": 20,
1533
+ "start": 4432
1534
+ },
1535
+ {
1536
+ "length": 20,
1537
+ "start": 5962
1538
+ },
1539
+ {
1540
+ "length": 20,
1541
+ "start": 6193
1542
+ }
1543
+ ]
1544
+ },
1545
+ "contracts/type/UFixed.sol": {
1546
+ "UFixedLib": [
1547
+ {
1548
+ "length": 20,
1549
+ "start": 1891
1550
+ },
1551
+ {
1552
+ "length": 20,
1553
+ "start": 3219
1554
+ },
1555
+ {
1556
+ "length": 20,
1557
+ "start": 6063
1558
+ },
1559
+ {
1560
+ "length": 20,
1561
+ "start": 6322
1562
+ },
1563
+ {
1564
+ "length": 20,
1565
+ "start": 6465
1566
+ }
1567
+ ]
1568
+ }
1569
+ }
1570
+ }