@etherisc/gif-next 0.0.2-cd89a0b-062 → 0.0.2-cdac553-411

Sign up to get free protection for your applications and to get access to all the features.
Files changed (363) hide show
  1. package/README.md +108 -1
  2. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
  3. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +116 -2
  4. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
  5. package/artifacts/contracts/components/Distribution.sol/Distribution.json +256 -31
  6. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
  7. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +106 -3
  8. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
  9. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +24 -163
  10. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
  11. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +0 -225
  12. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
  13. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -216
  14. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
  15. package/artifacts/contracts/components/Pool.sol/Pool.json +336 -65
  16. package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
  17. package/artifacts/contracts/components/Product.sol/Product.json +314 -41
  18. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +4 -0
  19. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +66 -0
  20. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +4 -0
  21. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +24 -0
  22. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +4 -0
  23. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +42 -0
  24. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
  25. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
  26. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
  27. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
  28. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
  29. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
  30. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
  31. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
  32. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
  33. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
  34. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
  35. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +2 -2
  36. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
  37. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
  38. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
  39. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +2 -2
  40. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
  41. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +2 -2
  42. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
  43. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
  44. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.dbg.json +4 -0
  45. package/artifacts/contracts/instance/AccessManagedSimple.sol/AccessManagedSimple.json +101 -0
  46. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.dbg.json +4 -0
  47. package/artifacts/contracts/instance/AccessManagerSimple.sol/AccessManagerSimple.json +1132 -0
  48. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.dbg.json +4 -0
  49. package/artifacts/contracts/instance/IAccessManagerSimple.sol/IAccessManagerSimple.json +1082 -0
  50. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  51. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +325 -1744
  52. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  53. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +480 -0
  54. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  55. package/artifacts/contracts/instance/Instance.sol/Instance.json +2300 -1340
  56. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  57. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +917 -0
  58. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  59. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1388 -0
  60. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  61. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +891 -0
  62. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +492 -0
  64. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
  65. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +95 -2
  66. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
  67. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  68. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +27 -158
  69. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  70. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  71. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +37 -245
  72. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  73. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +2 -2
  74. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  75. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +211 -0
  76. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  77. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  78. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  79. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  80. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  81. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  82. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  83. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  84. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  85. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  86. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  87. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  88. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
  89. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +178 -41
  90. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
  91. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +156 -25
  92. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  93. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +436 -0
  94. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
  95. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +81 -4
  96. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
  97. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +80 -3
  98. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
  99. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +80 -3
  100. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
  101. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +80 -3
  102. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
  103. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +174 -27
  104. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  105. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +448 -0
  106. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  107. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +47 -2
  108. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +294 -99
  110. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  111. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +203 -18
  112. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  113. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  114. package/artifacts/contracts/registry/Registry.sol/Registry.json +249 -137
  115. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  116. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +395 -43
  117. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  118. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +107 -42
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  120. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +410 -0
  121. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
  122. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  123. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
  124. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  125. package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +67 -57
  126. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  127. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +80 -3
  128. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  129. package/artifacts/contracts/{instance/base/ServiceBase.sol/ServiceBase.json → shared/IService.sol/IService.json} +76 -35
  130. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  131. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  132. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +32 -6
  133. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  134. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +21 -16
  135. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  136. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +120 -6
  137. package/artifacts/contracts/shared/RegisterableUpgradable.sol/RegisterableUpgradable.dbg.json +4 -0
  138. package/artifacts/contracts/{instance/base/IService.sol/IService.json → shared/RegisterableUpgradable.sol/RegisterableUpgradable.json} +137 -39
  139. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  140. package/artifacts/contracts/{instance/base/InstanceBase.sol/InstanceBase.json → shared/Service.sol/Service.json} +106 -94
  141. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  142. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +96 -0
  143. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  144. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  145. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  146. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
  147. package/artifacts/contracts/test/TestFee.sol/TestFee.json +4 -4
  148. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
  149. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +120 -6
  150. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
  151. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +14 -14
  152. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
  153. package/artifacts/contracts/test/TestService.sol/TestService.json +142 -14
  154. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
  155. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +91 -53
  156. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
  157. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
  158. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
  159. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +18 -2
  160. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
  161. package/artifacts/contracts/test/Usdc.sol/USDC.json +91 -53
  162. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
  163. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
  164. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
  165. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  166. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +104 -0
  167. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
  168. package/artifacts/contracts/types/Fee.sol/FeeLib.json +4 -4
  169. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
  170. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +31 -17
  171. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
  172. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +2 -2
  173. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
  174. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
  175. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +4 -0
  176. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +100 -0
  177. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
  178. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
  179. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +4 -0
  180. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +123 -0
  181. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
  182. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
  183. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
  184. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +134 -8
  185. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
  186. package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
  187. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
  188. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +15 -2
  189. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +4 -0
  190. package/artifacts/contracts/types/UFixed.sol/MathLib.json +10 -0
  191. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +4 -0
  192. package/artifacts/contracts/types/UFixed.sol/{UFixedMathLib.json → UFixedLib.json} +3 -3
  193. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
  194. package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -2
  195. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
  196. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +22 -3
  197. package/contracts/components/BaseComponent.sol +16 -4
  198. package/contracts/components/Distribution.sol +23 -12
  199. package/contracts/components/IBaseComponent.sol +9 -3
  200. package/contracts/components/IDistributionComponent.sol +5 -6
  201. package/contracts/components/IPoolComponent.sol +1 -4
  202. package/contracts/components/IProductComponent.sol +3 -7
  203. package/contracts/components/Pool.sol +28 -27
  204. package/contracts/components/Product.sol +44 -46
  205. package/contracts/experiment/cloning/Cloner.sol +47 -0
  206. package/contracts/instance/AccessManagedSimple.sol +115 -0
  207. package/contracts/instance/AccessManagerSimple.sol +692 -0
  208. package/contracts/instance/IAccessManagerSimple.sol +391 -0
  209. package/contracts/instance/IInstance.sol +32 -47
  210. package/contracts/instance/IInstanceService.sol +30 -0
  211. package/contracts/instance/Instance.sol +423 -65
  212. package/contracts/instance/InstanceAccessManager.sol +288 -0
  213. package/contracts/instance/InstanceReader.sol +306 -0
  214. package/contracts/instance/InstanceService.sol +180 -0
  215. package/contracts/instance/InstanceServiceManager.sol +56 -0
  216. package/contracts/instance/base/ComponentServiceBase.sol +4 -12
  217. package/contracts/instance/base/IKeyValueStore.sol +13 -14
  218. package/contracts/instance/base/ILifecycle.sol +3 -3
  219. package/contracts/instance/base/KeyValueStore.sol +49 -38
  220. package/contracts/instance/base/Lifecycle.sol +1 -1
  221. package/contracts/instance/module/IAccess.sol +38 -0
  222. package/contracts/instance/module/IBundle.sol +20 -0
  223. package/contracts/instance/module/IDistribution.sol +39 -0
  224. package/contracts/instance/module/IPolicy.sol +45 -0
  225. package/contracts/instance/module/IRisk.sol +11 -0
  226. package/contracts/instance/module/ISetup.sol +44 -0
  227. package/contracts/instance/module/ITreasury.sol +23 -0
  228. package/contracts/instance/service/ComponentOwnerService.sol +145 -100
  229. package/contracts/instance/service/DistributionService.sol +66 -15
  230. package/contracts/instance/service/DistributionServiceManager.sol +53 -0
  231. package/contracts/instance/service/IComponentOwnerService.sol +1 -1
  232. package/contracts/instance/service/IDistributionService.sol +1 -1
  233. package/contracts/instance/service/IPoolService.sol +1 -1
  234. package/contracts/instance/service/IProductService.sol +3 -3
  235. package/contracts/instance/service/PoolService.sol +108 -46
  236. package/contracts/instance/service/PoolServiceManager.sol +53 -0
  237. package/contracts/registry/ChainNft.sol +40 -25
  238. package/contracts/registry/IRegistry.sol +48 -27
  239. package/contracts/registry/IRegistryService.sol +16 -12
  240. package/contracts/registry/Registry.sol +167 -168
  241. package/contracts/registry/RegistryService.sol +160 -136
  242. package/contracts/registry/RegistryServiceManager.sol +38 -10
  243. package/contracts/registry/TokenRegistry.sol +111 -0
  244. package/contracts/shared/ERC165.sol +7 -3
  245. package/contracts/shared/INftOwnable.sol +22 -0
  246. package/contracts/shared/IRegisterable.sol +3 -8
  247. package/contracts/{instance/base → shared}/IService.sol +3 -3
  248. package/contracts/shared/NftOwnable.sol +83 -34
  249. package/contracts/shared/ProxyManager.sol +3 -12
  250. package/contracts/shared/Registerable.sol +15 -42
  251. package/contracts/shared/RegisterableUpgradable.sol +16 -0
  252. package/contracts/shared/Service.sol +54 -0
  253. package/contracts/shared/TokenHandler.sol +27 -0
  254. package/contracts/shared/UpgradableProxyWithAdmin.sol +2 -2
  255. package/contracts/shared/Versionable.sol +3 -3
  256. package/contracts/test/TestFee.sol +2 -2
  257. package/contracts/test/TestRoleId.sol +1 -1
  258. package/contracts/test/TestService.sol +3 -5
  259. package/contracts/types/DistributorType.sol +55 -0
  260. package/contracts/types/Fee.sol +3 -3
  261. package/contracts/types/Key32.sol +8 -3
  262. package/contracts/types/NumberId.sol +52 -0
  263. package/contracts/types/ObjectType.sol +35 -14
  264. package/contracts/types/Referral.sol +85 -0
  265. package/contracts/types/RoleId.sol +60 -9
  266. package/contracts/types/StateId.sol +5 -1
  267. package/contracts/types/Timestamp.sol +7 -3
  268. package/contracts/types/UFixed.sol +128 -12
  269. package/contracts/types/Version.sol +4 -1
  270. package/package.json +4 -3
  271. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  272. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  273. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  274. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  275. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  276. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  277. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  278. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  279. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  280. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.json +0 -10
  281. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  282. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  283. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  284. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  285. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  286. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  287. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  288. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  289. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  290. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  291. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  292. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  293. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  294. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  295. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  296. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  297. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  298. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  299. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  300. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  301. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  302. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  303. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  304. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  305. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  306. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -164
  307. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  308. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -164
  309. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  310. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  311. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  312. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  313. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  314. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  315. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  316. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -638
  317. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  318. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  319. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  320. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -638
  321. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  322. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -964
  323. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  324. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +0 -457
  325. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  326. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  327. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  328. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -445
  329. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  330. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -602
  331. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  332. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -632
  333. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  334. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  335. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  336. package/contracts/instance/IInstanceLinked.sol +0 -8
  337. package/contracts/instance/base/InstanceBase.sol +0 -89
  338. package/contracts/instance/base/ModuleBase.sol +0 -57
  339. package/contracts/instance/base/ServiceBase.sol +0 -43
  340. package/contracts/instance/module/access/Access.sol +0 -149
  341. package/contracts/instance/module/access/IAccess.sol +0 -53
  342. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  343. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  344. package/contracts/instance/module/component/ComponentModule.sol +0 -71
  345. package/contracts/instance/module/component/IComponent.sol +0 -28
  346. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  347. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  348. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  349. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  350. package/contracts/instance/module/pool/IPoolModule.sol +0 -41
  351. package/contracts/instance/module/pool/PoolModule.sol +0 -95
  352. package/contracts/instance/module/risk/IRisk.sol +0 -26
  353. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  354. package/contracts/instance/module/treasury/ITreasury.sol +0 -84
  355. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  356. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -131
  357. package/contracts/instance/service/ProductService.sol +0 -509
  358. package/contracts/registry/IChainNft.sol +0 -22
  359. package/contracts/shared/IOwnable.sol +0 -6
  360. package/contracts/test/TestDistribution.sol +0 -22
  361. package/contracts/test/TestPool.sol +0 -27
  362. package/contracts/test/TestProduct.sol +0 -74
  363. package/contracts/types/ReferralId.sol +0 -48
@@ -1,632 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "TestProduct",
4
- "sourceName": "contracts/test/TestProduct.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
- "internalType": "address",
20
- "name": "token",
21
- "type": "address"
22
- },
23
- {
24
- "internalType": "bool",
25
- "name": "isInterceptor",
26
- "type": "bool"
27
- },
28
- {
29
- "internalType": "address",
30
- "name": "pool",
31
- "type": "address"
32
- },
33
- {
34
- "internalType": "address",
35
- "name": "distribution",
36
- "type": "address"
37
- },
38
- {
39
- "components": [
40
- {
41
- "internalType": "UFixed",
42
- "name": "fractionalFee",
43
- "type": "uint256"
44
- },
45
- {
46
- "internalType": "uint256",
47
- "name": "fixedFee",
48
- "type": "uint256"
49
- }
50
- ],
51
- "internalType": "struct Fee",
52
- "name": "productFee",
53
- "type": "tuple"
54
- },
55
- {
56
- "components": [
57
- {
58
- "internalType": "UFixed",
59
- "name": "fractionalFee",
60
- "type": "uint256"
61
- },
62
- {
63
- "internalType": "uint256",
64
- "name": "fixedFee",
65
- "type": "uint256"
66
- }
67
- ],
68
- "internalType": "struct Fee",
69
- "name": "processingFee",
70
- "type": "tuple"
71
- },
72
- {
73
- "internalType": "address",
74
- "name": "initialOwner",
75
- "type": "address"
76
- }
77
- ],
78
- "stateMutability": "nonpayable",
79
- "type": "constructor"
80
- },
81
- {
82
- "inputs": [],
83
- "name": "InvalidInitialization",
84
- "type": "error"
85
- },
86
- {
87
- "inputs": [],
88
- "name": "NotInitializing",
89
- "type": "error"
90
- },
91
- {
92
- "anonymous": false,
93
- "inputs": [
94
- {
95
- "indexed": false,
96
- "internalType": "uint64",
97
- "name": "version",
98
- "type": "uint64"
99
- }
100
- ],
101
- "name": "Initialized",
102
- "type": "event"
103
- },
104
- {
105
- "anonymous": false,
106
- "inputs": [
107
- {
108
- "indexed": false,
109
- "internalType": "address",
110
- "name": "sender",
111
- "type": "address"
112
- }
113
- ],
114
- "name": "LogTestProductSender",
115
- "type": "event"
116
- },
117
- {
118
- "inputs": [],
119
- "name": "DEFAULT_RISK_NAME",
120
- "outputs": [
121
- {
122
- "internalType": "string",
123
- "name": "",
124
- "type": "string"
125
- }
126
- ],
127
- "stateMutability": "view",
128
- "type": "function"
129
- },
130
- {
131
- "inputs": [],
132
- "name": "REGISTERABLE_LOCATION_V1",
133
- "outputs": [
134
- {
135
- "internalType": "bytes32",
136
- "name": "",
137
- "type": "bytes32"
138
- }
139
- ],
140
- "stateMutability": "view",
141
- "type": "function"
142
- },
143
- {
144
- "inputs": [
145
- {
146
- "internalType": "uint256",
147
- "name": "sumInsuredAmount",
148
- "type": "uint256"
149
- },
150
- {
151
- "internalType": "uint256",
152
- "name": "lifetime",
153
- "type": "uint256"
154
- },
155
- {
156
- "internalType": "NftId",
157
- "name": "bundleNftId",
158
- "type": "uint96"
159
- },
160
- {
161
- "internalType": "ReferralId",
162
- "name": "referralId",
163
- "type": "bytes8"
164
- }
165
- ],
166
- "name": "applyForPolicy",
167
- "outputs": [
168
- {
169
- "internalType": "NftId",
170
- "name": "nftId",
171
- "type": "uint96"
172
- }
173
- ],
174
- "stateMutability": "nonpayable",
175
- "type": "function"
176
- },
177
- {
178
- "inputs": [
179
- {
180
- "internalType": "uint256",
181
- "name": "sumInsuredAmount",
182
- "type": "uint256"
183
- },
184
- {
185
- "internalType": "RiskId",
186
- "name": "riskId",
187
- "type": "bytes8"
188
- },
189
- {
190
- "internalType": "uint256",
191
- "name": "lifetime",
192
- "type": "uint256"
193
- },
194
- {
195
- "internalType": "bytes",
196
- "name": "applicationData",
197
- "type": "bytes"
198
- }
199
- ],
200
- "name": "calculateNetPremium",
201
- "outputs": [
202
- {
203
- "internalType": "uint256",
204
- "name": "netPremiumAmount",
205
- "type": "uint256"
206
- }
207
- ],
208
- "stateMutability": "view",
209
- "type": "function"
210
- },
211
- {
212
- "inputs": [
213
- {
214
- "internalType": "uint256",
215
- "name": "sumInsuredAmount",
216
- "type": "uint256"
217
- },
218
- {
219
- "internalType": "RiskId",
220
- "name": "riskId",
221
- "type": "bytes8"
222
- },
223
- {
224
- "internalType": "uint256",
225
- "name": "lifetime",
226
- "type": "uint256"
227
- },
228
- {
229
- "internalType": "bytes",
230
- "name": "applicationData",
231
- "type": "bytes"
232
- },
233
- {
234
- "internalType": "ReferralId",
235
- "name": "referralId",
236
- "type": "bytes8"
237
- },
238
- {
239
- "internalType": "NftId",
240
- "name": "bundleNftId",
241
- "type": "uint96"
242
- }
243
- ],
244
- "name": "calculatePremium",
245
- "outputs": [
246
- {
247
- "internalType": "uint256",
248
- "name": "premiumAmount",
249
- "type": "uint256"
250
- }
251
- ],
252
- "stateMutability": "view",
253
- "type": "function"
254
- },
255
- {
256
- "inputs": [
257
- {
258
- "internalType": "NftId",
259
- "name": "nftId",
260
- "type": "uint96"
261
- },
262
- {
263
- "internalType": "Timestamp",
264
- "name": "activateAt",
265
- "type": "uint40"
266
- }
267
- ],
268
- "name": "collectPremium",
269
- "outputs": [],
270
- "stateMutability": "nonpayable",
271
- "type": "function"
272
- },
273
- {
274
- "inputs": [],
275
- "name": "getDefaultRiskId",
276
- "outputs": [
277
- {
278
- "internalType": "RiskId",
279
- "name": "",
280
- "type": "bytes8"
281
- }
282
- ],
283
- "stateMutability": "pure",
284
- "type": "function"
285
- },
286
- {
287
- "inputs": [],
288
- "name": "getDistributionNftId",
289
- "outputs": [
290
- {
291
- "internalType": "NftId",
292
- "name": "distributionNftId",
293
- "type": "uint96"
294
- }
295
- ],
296
- "stateMutability": "view",
297
- "type": "function"
298
- },
299
- {
300
- "inputs": [],
301
- "name": "getInitialInfo",
302
- "outputs": [
303
- {
304
- "components": [
305
- {
306
- "internalType": "NftId",
307
- "name": "nftId",
308
- "type": "uint96"
309
- },
310
- {
311
- "internalType": "NftId",
312
- "name": "parentNftId",
313
- "type": "uint96"
314
- },
315
- {
316
- "internalType": "ObjectType",
317
- "name": "objectType",
318
- "type": "uint8"
319
- },
320
- {
321
- "internalType": "bool",
322
- "name": "isInterceptor",
323
- "type": "bool"
324
- },
325
- {
326
- "internalType": "address",
327
- "name": "objectAddress",
328
- "type": "address"
329
- },
330
- {
331
- "internalType": "address",
332
- "name": "initialOwner",
333
- "type": "address"
334
- },
335
- {
336
- "internalType": "bytes",
337
- "name": "data",
338
- "type": "bytes"
339
- }
340
- ],
341
- "internalType": "struct IRegistry.ObjectInfo",
342
- "name": "",
343
- "type": "tuple"
344
- },
345
- {
346
- "internalType": "bytes",
347
- "name": "",
348
- "type": "bytes"
349
- }
350
- ],
351
- "stateMutability": "view",
352
- "type": "function"
353
- },
354
- {
355
- "inputs": [],
356
- "name": "getInstance",
357
- "outputs": [
358
- {
359
- "internalType": "contract IInstance",
360
- "name": "instance",
361
- "type": "address"
362
- }
363
- ],
364
- "stateMutability": "view",
365
- "type": "function"
366
- },
367
- {
368
- "inputs": [],
369
- "name": "getNftId",
370
- "outputs": [
371
- {
372
- "internalType": "NftId",
373
- "name": "nftId",
374
- "type": "uint96"
375
- }
376
- ],
377
- "stateMutability": "view",
378
- "type": "function"
379
- },
380
- {
381
- "inputs": [],
382
- "name": "getOwner",
383
- "outputs": [
384
- {
385
- "internalType": "address",
386
- "name": "",
387
- "type": "address"
388
- }
389
- ],
390
- "stateMutability": "view",
391
- "type": "function"
392
- },
393
- {
394
- "inputs": [],
395
- "name": "getPoolNftId",
396
- "outputs": [
397
- {
398
- "internalType": "NftId",
399
- "name": "poolNftId",
400
- "type": "uint96"
401
- }
402
- ],
403
- "stateMutability": "view",
404
- "type": "function"
405
- },
406
- {
407
- "inputs": [],
408
- "name": "getProcessingFee",
409
- "outputs": [
410
- {
411
- "components": [
412
- {
413
- "internalType": "UFixed",
414
- "name": "fractionalFee",
415
- "type": "uint256"
416
- },
417
- {
418
- "internalType": "uint256",
419
- "name": "fixedFee",
420
- "type": "uint256"
421
- }
422
- ],
423
- "internalType": "struct Fee",
424
- "name": "processingFee",
425
- "type": "tuple"
426
- }
427
- ],
428
- "stateMutability": "view",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [],
433
- "name": "getProductFee",
434
- "outputs": [
435
- {
436
- "components": [
437
- {
438
- "internalType": "UFixed",
439
- "name": "fractionalFee",
440
- "type": "uint256"
441
- },
442
- {
443
- "internalType": "uint256",
444
- "name": "fixedFee",
445
- "type": "uint256"
446
- }
447
- ],
448
- "internalType": "struct Fee",
449
- "name": "productFee",
450
- "type": "tuple"
451
- }
452
- ],
453
- "stateMutability": "view",
454
- "type": "function"
455
- },
456
- {
457
- "inputs": [],
458
- "name": "getRegistry",
459
- "outputs": [
460
- {
461
- "internalType": "contract IRegistry",
462
- "name": "registry",
463
- "type": "address"
464
- }
465
- ],
466
- "stateMutability": "view",
467
- "type": "function"
468
- },
469
- {
470
- "inputs": [],
471
- "name": "getToken",
472
- "outputs": [
473
- {
474
- "internalType": "contract IERC20Metadata",
475
- "name": "token",
476
- "type": "address"
477
- }
478
- ],
479
- "stateMutability": "view",
480
- "type": "function"
481
- },
482
- {
483
- "inputs": [],
484
- "name": "getWallet",
485
- "outputs": [
486
- {
487
- "internalType": "address",
488
- "name": "walletAddress",
489
- "type": "address"
490
- }
491
- ],
492
- "stateMutability": "view",
493
- "type": "function"
494
- },
495
- {
496
- "inputs": [],
497
- "name": "lock",
498
- "outputs": [],
499
- "stateMutability": "nonpayable",
500
- "type": "function"
501
- },
502
- {
503
- "inputs": [
504
- {
505
- "components": [
506
- {
507
- "internalType": "UFixed",
508
- "name": "fractionalFee",
509
- "type": "uint256"
510
- },
511
- {
512
- "internalType": "uint256",
513
- "name": "fixedFee",
514
- "type": "uint256"
515
- }
516
- ],
517
- "internalType": "struct Fee",
518
- "name": "productFee",
519
- "type": "tuple"
520
- },
521
- {
522
- "components": [
523
- {
524
- "internalType": "UFixed",
525
- "name": "fractionalFee",
526
- "type": "uint256"
527
- },
528
- {
529
- "internalType": "uint256",
530
- "name": "fixedFee",
531
- "type": "uint256"
532
- }
533
- ],
534
- "internalType": "struct Fee",
535
- "name": "processingFee",
536
- "type": "tuple"
537
- }
538
- ],
539
- "name": "setFees",
540
- "outputs": [],
541
- "stateMutability": "nonpayable",
542
- "type": "function"
543
- },
544
- {
545
- "inputs": [
546
- {
547
- "internalType": "bytes4",
548
- "name": "interfaceId",
549
- "type": "bytes4"
550
- }
551
- ],
552
- "name": "supportsInterface",
553
- "outputs": [
554
- {
555
- "internalType": "bool",
556
- "name": "",
557
- "type": "bool"
558
- }
559
- ],
560
- "stateMutability": "view",
561
- "type": "function"
562
- },
563
- {
564
- "inputs": [
565
- {
566
- "internalType": "NftId",
567
- "name": "nftId",
568
- "type": "uint96"
569
- },
570
- {
571
- "internalType": "bool",
572
- "name": "requirePremiumPayment",
573
- "type": "bool"
574
- },
575
- {
576
- "internalType": "Timestamp",
577
- "name": "activateAt",
578
- "type": "uint40"
579
- }
580
- ],
581
- "name": "underwrite",
582
- "outputs": [],
583
- "stateMutability": "nonpayable",
584
- "type": "function"
585
- },
586
- {
587
- "inputs": [],
588
- "name": "unlock",
589
- "outputs": [],
590
- "stateMutability": "nonpayable",
591
- "type": "function"
592
- }
593
- ],
594
- "bytecode": "0x60806040523480156200001157600080fd5b50604051620028c3380380620028c38339810160408190526200003491620008ae565b888888888888888888888888606e6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905589856040805160208101909152600081526200009f87878686868662000574565b6000620000c2600080516020620028a3833981519152546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03891660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa15801562000112573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200013c919081019062000a18565b6080810151600580546001600160a01b0319166001600160a01b0390921691821790556040516301ffc9a760e01b8152630de7806f60e41b6004820152919250906301ffc9a790602401602060405180830381865afa158015620001a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ca919062000afe565b620001f65760405162461bcd60e51b815260206004820152600060248201526044015b60405180910390fd5b600560009054906101000a90046001600160a01b03166001600160a01b0316636fa298536040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200024a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000270919062000b23565b600180546001600160a01b03199081166001600160a01b0393841617825560038054309083161790556004805490911692891692909217909155631b1599eb60e21b60009081526020527f82dc1aafdf8e16d475718790c9464a2912866acb395e292abd1ea37be80f5b28805460ff191690911790555050505050505050600560009054906101000a90046001600160a01b03166001600160a01b0316634288121d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000342573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000368919062000b23565b600680546001600160a01b03199081166001600160a01b0393841617909155600780548216888416179055600880549091168683161790558351600955602080850151600a558351600b55830151600c55600080516020620028a38339815191525416600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401602060405180830381865afa15801562000415573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200043b919062000b43565b600d80546001600160601b0319166001600160601b03929092169190911790556200047c600080516020620028a3833981519152546001600160a01b031690565b600854604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401602060405180830381865afa158015620004c6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004ec919062000b43565b600d80546001600160601b03929092166c0100000000000000000000000002600160601b600160c01b03199092169190911790556379fc0e7160e11b60009081526020527fae37458bb8945ae7571d1722238fea83f3c5619cf829a972c67f136a0bac29d2805460ff1916600117905550505050505050505050505050505050505062000cbc565b6001600160a01b038616620005cc5760405162461bcd60e51b815260206004820152601b60248201527f4552524f523a5247422d3031303a52454749535452595f5a45524f00000000006044820152606401620001ed565b6040516301ffc9a760e01b8152636882e63f60e11b600482015286906001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156200061a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000640919062000afe565b6200068e5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a5247422d3031313a4e4f545f52454749535452590000000000006044820152606401620001ed565b6001600160a01b03818116600160a01b6001600160601b038916810291909117600080516020620028a38339815191529081557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30180546001600160a01b031961ffff60a01b1990911660ff8b1690940260ff60a81b191693909317600160a81b8915150217929092169286169290921790557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3026200074d848262000bf0565b5063a6d3826560e01b60009081526020527f164a5a3a3a16df858f794c5fc01b962add2c2151ae53ddb31581eabdf1156730805460ff191660011790555050505050505050565b6001600160a01b0381168114620007aa57600080fd5b50565b8051620007ba8162000794565b919050565b80516001600160601b0381168114620007ba57600080fd5b80518015158114620007ba57600080fd5b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b0381118282101715620008235762000823620007e8565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620008545762000854620007e8565b604052919050565b6000604082840312156200086f57600080fd5b604080519081016001600160401b0381118282101715620008945762000894620007e8565b604052825181526020928301519281019290925250919050565b60008060008060008060008060006101608a8c031215620008ce57600080fd5b8951620008db8162000794565b9850620008eb60208b01620007bf565b975060408a0151620008fd8162000794565b96506200090d60608b01620007d7565b955060808a01516200091f8162000794565b60a08b0151909550620009328162000794565b9350620009438b60c08c016200085c565b9250620009558b6101008c016200085c565b91506101408a0151620009688162000794565b809150509295985092959850929598565b805160ff81168114620007ba57600080fd5b600082601f8301126200099d57600080fd5b81516001600160401b03811115620009b957620009b9620007e8565b6020620009cf601f8301601f1916820162000829565b8281528582848701011115620009e457600080fd5b60005b8381101562000a04578581018301518282018401528201620009e7565b506000928101909101919091529392505050565b60006020828403121562000a2b57600080fd5b81516001600160401b038082111562000a4357600080fd5b9083019060e0828603121562000a5857600080fd5b62000a62620007fe565b62000a6d83620007bf565b815262000a7d60208401620007bf565b602082015262000a906040840162000979565b604082015262000aa360608401620007d7565b606082015262000ab660808401620007ad565b608082015262000ac960a08401620007ad565b60a082015260c08301518281111562000ae157600080fd5b62000aef878286016200098b565b60c08301525095945050505050565b60006020828403121562000b1157600080fd5b62000b1c82620007d7565b9392505050565b60006020828403121562000b3657600080fd5b815162000b1c8162000794565b60006020828403121562000b5657600080fd5b62000b1c82620007bf565b600181811c9082168062000b7657607f821691505b60208210810362000b9757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000beb57600081815260208120601f850160051c8101602086101562000bc65750805b601f850160051c820191505b8181101562000be75782815560010162000bd2565b5050505b505050565b81516001600160401b0381111562000c0c5762000c0c620007e8565b62000c248162000c1d845462000b61565b8462000b9d565b602080601f83116001811462000c5c576000841562000c435750858301515b600019600386901b1c1916600185901b17855562000be7565b600085815260208120601f198616915b8281101562000c8d5788860151825594840194600190910190840162000c6c565b508582101562000cac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611bd78062000ccc6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063630361f6116100c3578063b6b412ba1161007c578063b6b412ba146102ff578063bbfbbfba14610312578063daafed4014610325578063db6dcc951461032d578063de7b5d1414610335578063f83d08ba1461034657600080fd5b8063630361f614610279578063644c45e01461028e578063893d20e814610296578063955fd7821461029e578063a69df4b5146102bf578063abd732ef146102c757600080fd5b80631bdd6b76116101155780631bdd6b76146102055780631eff4b221461022557806321df0da71461023a5780633f28c2ec1461024b5780635ab1bd531461025e5780635e78426b1461026657600080fd5b806301ffc9a7146101525780630fec111c1461019457806312abb9b3146101aa57806313299604146101cb5780631380bf23146101f0575b600080fd5b61017f61016036600461101c565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c61034e565b60405161018b92919061109d565b6101bd6101b836600461129e565b610578565b60405190815260200161018b565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161018b565b6101f8610604565b60405161018b9190611327565b61020d610739565b6040516001600160601b03909116815260200161018b565b6101bd600080516020611b8283398151915281565b6004546001600160a01b03166101d8565b61020d61025936600461133e565b6107b6565b6101d861082c565b6101bd610274366004611388565b610848565b61028c610287366004611413565b61085e565b005b61020d6108a1565b6101d86108df565b6102a661095a565b6040516001600160c01b0319909116815260200161018b565b61028c610989565b6102f26040518060400160405280600c81526020016b44454641554c545f5249534b60a01b81525081565b60405161018b919061145a565b61028c61030d36600461149d565b610a2a565b61028c6103203660046114d2565b610aca565b6101f8610ad8565b61020d610c0d565b6005546001600160a01b03166101d8565b61028c610c48565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610392610cb0565b91509150600080600760009054906101000a90046001600160a01b03166001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104149190810190611592565b9150915060008060008380602001905181019061043191906116bb565b6040805161012081018252600d546001600160601b038082168352600160601b90910416602080830191909152600480546001600160a01b031683850152835180850185526009548152600a5481840152606084015283518085018552600b548152600c5492810192909252608083019190915260a0820186905260c0820185905260e082018490528251632bd182d360e01b81528351969c50949a509298508e975095506101008601945073__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39380840193908290030181865af4158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b9190611760565b905260035460405161055a92916001600160a01b03169060200161177c565b60405160208183030381529060405298509850505050505050509091565b600654604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906105b39089908b908a908a9089908b90600401611872565b60a060405180830381865afa1580156105d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f491906118c9565b50929a9950505050505050505050565b604080518082019091526000808252602082015260006106226108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106989190611909565b1561071d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190611926565b6060015191505090565b5050604080518082019091526009548152600a54602082015290565b600061074361082c565b600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b191906119e5565b905090565b6000806107c161095a565b604080516020810190915260008152600d5491925090600160c01b900460ff16610812576107fe8260405180602001604052806000815250610e17565b600d805460ff60c01b1916600160c01b1790555b61082133838989858a8a610e49565b979650505050505050565b600080516020611b82833981519152546001600160a01b031690565b6000610855600a86611a02565b95945050505050565b6040513381527fb00037f8426b35b13d3428bd0d8bb6059e05f90d0da23ee636f827aee1718e489060200160405180910390a161089c838383610ed5565b505050565b600080516020611b8283398151915254604051636939560f60e11b81523060048201526000916001600160a01b03169063d272ac1e90602401610770565b6000600080516020611b8283398151915254604051630a57ebcf60e11b81523060048201526001600160a01b03909116906314afd79e90602401602060405180830381865afa158015610936573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190611a24565b60006107b16040518060400160405280600c81526020016b44454641554c545f5249534b60a01b815250610f55565b6109916108df565b6001600160a01b0316336001600160a01b0316146109ca5760405162461bcd60e51b81526004016109c190611a41565b60405180910390fd5b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610a1057600080fd5b505af1158015610a24573d6000803e3d6000fd5b50505050565b610a326108df565b6001600160a01b0316336001600160a01b031614610a625760405162461bcd60e51b81526004016109c190611a41565b600654604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a949085908590600401611a78565b600060405180830381600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b505050505050565b610ad48282610fd6565b5050565b60408051808201909152600080825260208201526000610af66108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c9190611909565b15610bf15760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611926565b6080015191505090565b505060408051808201909152600b548152600c54602082015290565b6000610c1761082c565b600854604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401610770565b610c506108df565b6001600160a01b0316336001600160a01b031614610c805760405162461bcd60e51b81526004016109c190611a41565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109f6565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915260606000600080516020611b8283398151915290506040518060e00160405280610d13600090565b6001600160601b0390811682528354600160a01b908190049091166020830152600184015490810460ff9081166040840152600160a81b820416151560608301523060808301526001600160a01b031660a082015260028301805460c090920191610d7d90611a9e565b80601f0160208091040260200160405190810160405280929190818152602001828054610da990611a9e565b8015610df65780601f10610dcb57610100808354040283529160200191610df6565b820191906000526020600020905b815481529060010190602001808311610dd957829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6006546040516304af15b960e11b81526001600160a01b039091169063095e2b7290610a949085908590600401611ad8565b60065460405163c2c7498760e01b81526000916001600160a01b03169063c2c7498790610e86908b908b908b908b908b908b908b90600401611afe565b6020604051808303816000875af1158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec991906119e5565b98975050505050505050565b600654604051633181b0fb60e11b81526001600160601b0385166004820152831515602482015264ffffffffff831660448201526001600160a01b039091169063630361f690606401600060405180830381600087803b158015610f3857600080fd5b505af1158015610f4c573d6000803e3d6000fd5b50505050505050565b60405163253a42dd60e11b815260009073__$19a201e37be2e25dc57bd4aa563a0edb25$__90634a7485ba90610f8f90859060040161145a565b602060405180830381865af4158015610fac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd09190611b64565b92915050565b600654604051635dfddfdd60e11b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b039091169063bbfbbfba90604401610a94565b60006020828403121561102e57600080fd5b81356001600160e01b03198116811461104657600080fd5b9392505050565b60005b83811015611068578181015183820152602001611050565b50506000910152565b6000815180845261108981602086016020860161104d565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516110e160a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611127610120840182611071565b905082810360208401526108558185611071565b6001600160c01b03198116811461115157600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561118d5761118d611154565b60405290565b60405160e0810167ffffffffffffffff8111828210171561118d5761118d611154565b604051610120810167ffffffffffffffff8111828210171561118d5761118d611154565b604051601f8201601f1916810167ffffffffffffffff8111828210171561120357611203611154565b604052919050565b600067ffffffffffffffff82111561122557611225611154565b50601f01601f191660200190565b600082601f83011261124457600080fd5b81356112576112528261120b565b6111da565b81815284602083860101111561126c57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160601b038116811461115157600080fd5b60008060008060008060c087890312156112b757600080fd5b8635955060208701356112c98161113b565b945060408701359350606087013567ffffffffffffffff8111156112ec57600080fd5b6112f889828a01611233565b93505060808701356113098161113b565b915060a087013561131981611289565b809150509295509295509295565b815181526020808301519082015260408101610fd0565b6000806000806080858703121561135457600080fd5b8435935060208501359250604085013561136d81611289565b9150606085013561137d8161113b565b939692955090935050565b6000806000806080858703121561139e57600080fd5b8435935060208501356113b08161113b565b925060408501359150606085013567ffffffffffffffff8111156113d357600080fd5b6113df87828801611233565b91505092959194509250565b801515811461115157600080fd5b803564ffffffffff8116811461140e57600080fd5b919050565b60008060006060848603121561142857600080fd5b833561143381611289565b92506020840135611443816113eb565b9150611451604085016113f9565b90509250925092565b6020815260006110466020830184611071565b60006040828403121561147f57600080fd5b61148761116a565b9050813581526020820135602082015292915050565b600080608083850312156114b057600080fd5b6114ba848461146d565b91506114c9846040850161146d565b90509250929050565b600080604083850312156114e557600080fd5b82356114f081611289565b91506114c9602084016113f9565b805161140e81611289565b805160ff8116811461140e57600080fd5b805161140e816113eb565b6001600160a01b038116811461115157600080fd5b805161140e81611525565b600082601f83011261155657600080fd5b81516115646112528261120b565b81815284602083860101111561157957600080fd5b61158a82602083016020870161104d565b949350505050565b600080604083850312156115a557600080fd5b825167ffffffffffffffff808211156115bd57600080fd5b9084019060e082870312156115d157600080fd5b6115d9611193565b6115e2836114fe565b81526115f0602084016114fe565b602082015261160160408401611509565b60408201526116126060840161151a565b60608201526116236080840161153a565b608082015261163460a0840161153a565b60a082015260c08301518281111561164b57600080fd5b61165788828601611545565b60c083015250602086015190945091508082111561167457600080fd5b5061168185828601611545565b9150509250929050565b60006040828403121561169d57600080fd5b6116a561116a565b9050815181526020820151602082015292915050565b6000806000806000808688036101408112156116d657600080fd5b60408112156116e457600080fd5b506116ed61116a565b87516116f8816113eb565b815260208881015190820152604088015190965061171581611525565b606088015190955061172681611525565b9350611735886080890161168b565b92506117448860c0890161168b565b915061175488610100890161168b565b90509295509295509295565b60006040828403121561177257600080fd5b611046838361168b565b82516001600160601b031681526020808401516102008301916117a9908401826001600160601b03169052565b5060408401516117c460408401826001600160a01b03169052565b5060608401516117e1606084018280518252602090810151910152565b506080840151805160a0840152602081015160c08401525060a0840151805160e084015260208101516101008401525060c0840151805161012084015260208101516101408401525060e0840151805161016084015260208101516101808401525061010084015180516101a084015260208101516101c0840152506001600160a01b0383166101e0830152611046565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c060608401526118a560c0840187611071565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a086880312156118e157600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60006020828403121561191b57600080fd5b8151611046816113eb565b60006101e0828403121561193957600080fd5b6119416111b6565b61194a836114fe565b8152611958602084016114fe565b60208201526119696040840161153a565b604082015261197b846060850161168b565b606082015261198d8460a0850161168b565b608082015261199f8460e0850161168b565b60a08201526119b284610120850161168b565b60c08201526119c584610160850161168b565b60e08201526119d8846101a0850161168b565b6101008201529392505050565b6000602082840312156119f757600080fd5b815161104681611289565b600082611a1f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611a3657600080fd5b815161104681611525565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101611046565b600181811c90821680611ab257607f821691505b602082108103611ad257634e487b7160e01b600052602260045260246000fd5b50919050565b67ffffffffffffffff60c01b8316815260406020820152600061158a6040830184611071565b60018060a01b0388168152600067ffffffffffffffff60c01b808916602084015287604084015286606084015260e06080840152611b3f60e0840187611071565b6001600160601b039590951660a08401529290921660c0909101525095945050505050565b600060208284031215611b7657600080fd5b81516110468161113b56fe6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300a2646970667358221220158dd00892c70a25eec16e2d10910238dbdbb0f5bc2df4c67a8c8dc59afdde6064736f6c634300081400336548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300",
595
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063630361f6116100c3578063b6b412ba1161007c578063b6b412ba146102ff578063bbfbbfba14610312578063daafed4014610325578063db6dcc951461032d578063de7b5d1414610335578063f83d08ba1461034657600080fd5b8063630361f614610279578063644c45e01461028e578063893d20e814610296578063955fd7821461029e578063a69df4b5146102bf578063abd732ef146102c757600080fd5b80631bdd6b76116101155780631bdd6b76146102055780631eff4b221461022557806321df0da71461023a5780633f28c2ec1461024b5780635ab1bd531461025e5780635e78426b1461026657600080fd5b806301ffc9a7146101525780630fec111c1461019457806312abb9b3146101aa57806313299604146101cb5780631380bf23146101f0575b600080fd5b61017f61016036600461101c565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61019c61034e565b60405161018b92919061109d565b6101bd6101b836600461129e565b610578565b60405190815260200161018b565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161018b565b6101f8610604565b60405161018b9190611327565b61020d610739565b6040516001600160601b03909116815260200161018b565b6101bd600080516020611b8283398151915281565b6004546001600160a01b03166101d8565b61020d61025936600461133e565b6107b6565b6101d861082c565b6101bd610274366004611388565b610848565b61028c610287366004611413565b61085e565b005b61020d6108a1565b6101d86108df565b6102a661095a565b6040516001600160c01b0319909116815260200161018b565b61028c610989565b6102f26040518060400160405280600c81526020016b44454641554c545f5249534b60a01b81525081565b60405161018b919061145a565b61028c61030d36600461149d565b610a2a565b61028c6103203660046114d2565b610aca565b6101f8610ad8565b61020d610c0d565b6005546001600160a01b03166101d8565b61028c610c48565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c08201819052909180610392610cb0565b91509150600080600760009054906101000a90046001600160a01b03166001600160a01b0316630fec111c6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104149190810190611592565b9150915060008060008380602001905181019061043191906116bb565b6040805161012081018252600d546001600160601b038082168352600160601b90910416602080830191909152600480546001600160a01b031683850152835180850185526009548152600a5481840152606084015283518085018552600b548152600c5492810192909252608083019190915260a0820186905260c0820185905260e082018490528251632bd182d360e01b81528351969c50949a509298508e975095506101008601945073__$a23651848365a6a5ca15f07b4331037f48$__93632bd182d39380840193908290030181865af4158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b9190611760565b905260035460405161055a92916001600160a01b03169060200161177c565b60405160208183030381529060405298509850505050505050509091565b600654604051639cdaa7f960e01b81526000916001600160a01b031690639cdaa7f9906105b39089908b908a908a9089908b90600401611872565b60a060405180830381865afa1580156105d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f491906118c9565b50929a9950505050505050505050565b604080518082019091526000808252602082015260006106226108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106989190611909565b1561071d5760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa1580156106ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107139190611926565b6060015191505090565b5050604080518082019091526009548152600a54602082015290565b600061074361082c565b600754604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e906024015b602060405180830381865afa15801561078d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b191906119e5565b905090565b6000806107c161095a565b604080516020810190915260008152600d5491925090600160c01b900460ff16610812576107fe8260405180602001604052806000815250610e17565b600d805460ff60c01b1916600160c01b1790555b61082133838989858a8a610e49565b979650505050505050565b600080516020611b82833981519152546001600160a01b031690565b6000610855600a86611a02565b95945050505050565b6040513381527fb00037f8426b35b13d3428bd0d8bb6059e05f90d0da23ee636f827aee1718e489060200160405180910390a161089c838383610ed5565b505050565b600080516020611b8283398151915254604051636939560f60e11b81523060048201526000916001600160a01b03169063d272ac1e90602401610770565b6000600080516020611b8283398151915254604051630a57ebcf60e11b81523060048201526001600160a01b03909116906314afd79e90602401602060405180830381865afa158015610936573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b19190611a24565b60006107b16040518060400160405280600c81526020016b44454641554c545f5249534b60a01b815250610f55565b6109916108df565b6001600160a01b0316336001600160a01b0316146109ca5760405162461bcd60e51b81526004016109c190611a41565b60405180910390fd5b600154604051630bdb124f60e21b81523060048201526001600160a01b0390911690632f6c493c906024015b600060405180830381600087803b158015610a1057600080fd5b505af1158015610a24573d6000803e3d6000fd5b50505050565b610a326108df565b6001600160a01b0316336001600160a01b031614610a625760405162461bcd60e51b81526004016109c190611a41565b600654604051635b5a095d60e11b81526001600160a01b039091169063b6b412ba90610a949085908590600401611a78565b600060405180830381600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b505050505050565b610ad48282610fd6565b5050565b60408051808201909152600080825260208201526000610af66108a1565b60055460405163278b381b60e01b81526001600160601b03831660048201529192506001600160a01b03169063278b381b90602401602060405180830381865afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c9190611909565b15610bf15760055460405163f2b246c360e01b81526001600160601b03831660048201526001600160a01b039091169063f2b246c3906024016101e060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611926565b6080015191505090565b505060408051808201909152600b548152600c54602082015290565b6000610c1761082c565b600854604051636939560f60e11b81526001600160a01b03918216600482015291169063d272ac1e90602401610770565b610c506108df565b6001600160a01b0316336001600160a01b031614610c805760405162461bcd60e51b81526004016109c190611a41565b60015460405163f435f5a760e01b81523060048201526001600160a01b039091169063f435f5a7906024016109f6565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915260606000600080516020611b8283398151915290506040518060e00160405280610d13600090565b6001600160601b0390811682528354600160a01b908190049091166020830152600184015490810460ff9081166040840152600160a81b820416151560608301523060808301526001600160a01b031660a082015260028301805460c090920191610d7d90611a9e565b80601f0160208091040260200160405190810160405280929190818152602001828054610da990611a9e565b8015610df65780601f10610dcb57610100808354040283529160200191610df6565b820191906000526020600020905b815481529060010190602001808311610dd957829003601f168201915b50505050508152506040518060200160405280600081525092509250509091565b6006546040516304af15b960e11b81526001600160a01b039091169063095e2b7290610a949085908590600401611ad8565b60065460405163c2c7498760e01b81526000916001600160a01b03169063c2c7498790610e86908b908b908b908b908b908b908b90600401611afe565b6020604051808303816000875af1158015610ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec991906119e5565b98975050505050505050565b600654604051633181b0fb60e11b81526001600160601b0385166004820152831515602482015264ffffffffff831660448201526001600160a01b039091169063630361f690606401600060405180830381600087803b158015610f3857600080fd5b505af1158015610f4c573d6000803e3d6000fd5b50505050505050565b60405163253a42dd60e11b815260009073__$19a201e37be2e25dc57bd4aa563a0edb25$__90634a7485ba90610f8f90859060040161145a565b602060405180830381865af4158015610fac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd09190611b64565b92915050565b600654604051635dfddfdd60e11b81526001600160601b038416600482015264ffffffffff831660248201526001600160a01b039091169063bbfbbfba90604401610a94565b60006020828403121561102e57600080fd5b81356001600160e01b03198116811461104657600080fd5b9392505050565b60005b83811015611068578181015183820152602001611050565b50506000910152565b6000815180845261108981602086016020860161104d565b601f01601f19169290920160200192915050565b6040815260006001600160601b038085511660408401528060208601511660608401525060ff604085015116608083015260608401516110e160a084018215159052565b5060808401516001600160a01b03811660c08401525060a08401516001600160a01b03811660e08401525060c084015160e0610100840152611127610120840182611071565b905082810360208401526108558185611071565b6001600160c01b03198116811461115157600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561118d5761118d611154565b60405290565b60405160e0810167ffffffffffffffff8111828210171561118d5761118d611154565b604051610120810167ffffffffffffffff8111828210171561118d5761118d611154565b604051601f8201601f1916810167ffffffffffffffff8111828210171561120357611203611154565b604052919050565b600067ffffffffffffffff82111561122557611225611154565b50601f01601f191660200190565b600082601f83011261124457600080fd5b81356112576112528261120b565b6111da565b81815284602083860101111561126c57600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160601b038116811461115157600080fd5b60008060008060008060c087890312156112b757600080fd5b8635955060208701356112c98161113b565b945060408701359350606087013567ffffffffffffffff8111156112ec57600080fd5b6112f889828a01611233565b93505060808701356113098161113b565b915060a087013561131981611289565b809150509295509295509295565b815181526020808301519082015260408101610fd0565b6000806000806080858703121561135457600080fd5b8435935060208501359250604085013561136d81611289565b9150606085013561137d8161113b565b939692955090935050565b6000806000806080858703121561139e57600080fd5b8435935060208501356113b08161113b565b925060408501359150606085013567ffffffffffffffff8111156113d357600080fd5b6113df87828801611233565b91505092959194509250565b801515811461115157600080fd5b803564ffffffffff8116811461140e57600080fd5b919050565b60008060006060848603121561142857600080fd5b833561143381611289565b92506020840135611443816113eb565b9150611451604085016113f9565b90509250925092565b6020815260006110466020830184611071565b60006040828403121561147f57600080fd5b61148761116a565b9050813581526020820135602082015292915050565b600080608083850312156114b057600080fd5b6114ba848461146d565b91506114c9846040850161146d565b90509250929050565b600080604083850312156114e557600080fd5b82356114f081611289565b91506114c9602084016113f9565b805161140e81611289565b805160ff8116811461140e57600080fd5b805161140e816113eb565b6001600160a01b038116811461115157600080fd5b805161140e81611525565b600082601f83011261155657600080fd5b81516115646112528261120b565b81815284602083860101111561157957600080fd5b61158a82602083016020870161104d565b949350505050565b600080604083850312156115a557600080fd5b825167ffffffffffffffff808211156115bd57600080fd5b9084019060e082870312156115d157600080fd5b6115d9611193565b6115e2836114fe565b81526115f0602084016114fe565b602082015261160160408401611509565b60408201526116126060840161151a565b60608201526116236080840161153a565b608082015261163460a0840161153a565b60a082015260c08301518281111561164b57600080fd5b61165788828601611545565b60c083015250602086015190945091508082111561167457600080fd5b5061168185828601611545565b9150509250929050565b60006040828403121561169d57600080fd5b6116a561116a565b9050815181526020820151602082015292915050565b6000806000806000808688036101408112156116d657600080fd5b60408112156116e457600080fd5b506116ed61116a565b87516116f8816113eb565b815260208881015190820152604088015190965061171581611525565b606088015190955061172681611525565b9350611735886080890161168b565b92506117448860c0890161168b565b915061175488610100890161168b565b90509295509295509295565b60006040828403121561177257600080fd5b611046838361168b565b82516001600160601b031681526020808401516102008301916117a9908401826001600160601b03169052565b5060408401516117c460408401826001600160a01b03169052565b5060608401516117e1606084018280518252602090810151910152565b506080840151805160a0840152602081015160c08401525060a0840151805160e084015260208101516101008401525060c0840151805161012084015260208101516101408401525060e0840151805161016084015260208101516101808401525061010084015180516101a084015260208101516101c0840152506001600160a01b0383166101e0830152611046565b600067ffffffffffffffff60c01b808916835287602084015286604084015260c060608401526118a560c0840187611071565b6001600160601b039590951660808401529290921660a09091015250949350505050565b600080600080600060a086880312156118e157600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b60006020828403121561191b57600080fd5b8151611046816113eb565b60006101e0828403121561193957600080fd5b6119416111b6565b61194a836114fe565b8152611958602084016114fe565b60208201526119696040840161153a565b604082015261197b846060850161168b565b606082015261198d8460a0850161168b565b608082015261199f8460e0850161168b565b60a08201526119b284610120850161168b565b60c08201526119c584610160850161168b565b60e08201526119d8846101a0850161168b565b6101008201529392505050565b6000602082840312156119f757600080fd5b815161104681611289565b600082611a1f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611a3657600080fd5b815161104681611525565b60208082526017908201527f4552524f523a5247422d3030313a4e4f545f4f574e4552000000000000000000604082015260600190565b825181526020808401518183015282516040830152820151606082015260808101611046565b600181811c90821680611ab257607f821691505b602082108103611ad257634e487b7160e01b600052602260045260246000fd5b50919050565b67ffffffffffffffff60c01b8316815260406020820152600061158a6040830184611071565b60018060a01b0388168152600067ffffffffffffffff60c01b808916602084015287604084015286606084015260e06080840152611b3f60e0840187611071565b6001600160601b039590951660a08401529290921660c0909101525095945050505050565b600060208284031215611b7657600080fd5b81516110468161113b56fe6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300a2646970667358221220158dd00892c70a25eec16e2d10910238dbdbb0f5bc2df4c67a8c8dc59afdde6064736f6c63430008140033",
596
- "linkReferences": {
597
- "contracts/types/Fee.sol": {
598
- "FeeLib": [
599
- {
600
- "length": 20,
601
- "start": 4523
602
- }
603
- ]
604
- },
605
- "contracts/types/RiskId.sol": {
606
- "RiskIdLib": [
607
- {
608
- "length": 20,
609
- "start": 7219
610
- }
611
- ]
612
- }
613
- },
614
- "deployedLinkReferences": {
615
- "contracts/types/Fee.sol": {
616
- "FeeLib": [
617
- {
618
- "length": 20,
619
- "start": 1247
620
- }
621
- ]
622
- },
623
- "contracts/types/RiskId.sol": {
624
- "RiskIdLib": [
625
- {
626
- "length": 20,
627
- "start": 3943
628
- }
629
- ]
630
- }
631
- }
632
- }