@etherisc/gif-next 0.0.2-f7b8c9f-518 → 0.0.2-f7eda15-119

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