@etherisc/gif-next 0.0.2-e46206a-486 → 0.0.2-e59218b-293

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