@etherisc/gif-next 0.0.2-fca9315-260 → 0.0.2-fd4931b-974

Sign up to get free protection for your applications and to get access to all the features.
Files changed (535) hide show
  1. package/README.md +8 -13
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  3. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1410 -0
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1343 -0
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +799 -0
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/{components/Pool.sol/Pool.json → distribution/IDistributionComponent.sol/IDistributionComponent.json} +366 -367
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  11. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +808 -0
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +68 -54
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +267 -1594
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +285 -211
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +412 -2526
  20. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
  21. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +480 -166
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +132 -0
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +610 -421
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +438 -399
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +348 -106
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +3468 -0
  32. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.dbg.json +4 -0
  33. package/artifacts/contracts/instance/base/BalanceStore.sol/BalanceStore.json +318 -0
  34. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  35. package/artifacts/contracts/instance/{Cloneable.sol → base/Cloneable.sol}/Cloneable.json +6 -1
  36. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  37. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +256 -0
  38. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  39. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +58 -75
  40. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  41. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  42. package/artifacts/contracts/instance/module/{ISetup.sol/ISetup.json → IComponents.sol/IComponents.json} +2 -2
  43. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  44. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  45. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  46. package/artifacts/contracts/mock/Dip.sol/Dip.dbg.json +4 -0
  47. package/artifacts/contracts/mock/Dip.sol/Dip.json +376 -0
  48. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  49. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1091 -0
  50. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  51. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +723 -0
  52. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  53. package/artifacts/contracts/{instance/service → pool}/IBundleService.sol/IBundleService.json +257 -288
  54. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  55. package/artifacts/contracts/{components → pool}/IPoolComponent.sol/IPoolComponent.json +565 -186
  56. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  57. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1044 -0
  58. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  59. package/artifacts/contracts/pool/Pool.sol/Pool.json +1559 -0
  60. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  61. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1411 -0
  62. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  63. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +719 -0
  64. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  65. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +820 -0
  66. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +699 -0
  68. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  69. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1264 -0
  70. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  71. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +787 -0
  72. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  73. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IApplicationService.sol/IApplicationService.json} +211 -212
  74. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  75. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +753 -0
  76. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  77. package/artifacts/contracts/{instance/service → product}/IPolicyService.sol/IPolicyService.json +237 -302
  78. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  79. package/artifacts/contracts/product/IPricingService.sol/IPricingService.json +530 -0
  80. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  81. package/artifacts/contracts/{components/Product.sol/Product.json → product/IProductComponent.sol/IProductComponent.json} +351 -311
  82. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
  83. package/artifacts/contracts/{instance/service/IDistributionService.sol/IDistributionService.json → product/IProductService.sol/IProductService.json} +112 -172
  84. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  85. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1132 -0
  86. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  87. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +731 -0
  88. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  89. package/artifacts/contracts/product/PricingService.sol/PricingService.json +969 -0
  90. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +755 -0
  92. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  93. package/artifacts/contracts/{components/IProductComponent.sol/IProductComponent.json → product/Product.sol/Product.json} +857 -214
  94. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
  95. package/artifacts/contracts/product/ProductService.sol/ProductService.json +673 -0
  96. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  97. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +675 -0
  98. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  99. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
  100. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  101. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +158 -13
  102. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +337 -225
  104. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  105. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +18 -0
  106. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  107. package/artifacts/contracts/registry/Registry.sol/Registry.json +277 -30
  108. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
  109. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +74 -61
  110. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  111. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +465 -267
  112. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  113. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +334 -93
  114. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  115. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +634 -69
  116. package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.dbg.json +4 -0
  117. package/artifacts/contracts/registry/ServiceAuthorizationsLib.sol/ServiceAuthorizationsLib.json +137 -0
  118. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +448 -50
  120. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  121. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  122. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  123. package/artifacts/contracts/{components/Distribution.sol/Distribution.json → shared/Component.sol/Component.json} +321 -280
  124. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  125. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +1461 -0
  126. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.dbg.json +4 -0
  127. package/artifacts/contracts/shared/ComponentServiceManager.sol/ComponentServiceManager.json +765 -0
  128. package/artifacts/contracts/shared/ComponentVerifyingService.sol/ComponentVerifyingService.dbg.json +4 -0
  129. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → shared/ComponentVerifyingService.sol/ComponentVerifyingService.json} +215 -226
  130. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  131. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  132. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  133. package/artifacts/contracts/{components/IDistributionComponent.sol/IDistributionComponent.json → shared/IComponent.sol/IComponent.json} +205 -228
  134. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.dbg.json +4 -0
  135. package/artifacts/contracts/shared/IComponentService.sol/IComponentService.json +854 -0
  136. package/artifacts/contracts/shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.dbg.json +4 -0
  137. package/artifacts/contracts/{components/Component.sol/Component.json → shared/IInstanceLinkedComponent.sol/IInstanceLinkedComponent.json} +203 -160
  138. package/artifacts/contracts/shared/IKeyValueStore.sol/IKeyValueStore.dbg.json +4 -0
  139. package/artifacts/contracts/{instance/base → shared}/IKeyValueStore.sol/IKeyValueStore.json +50 -1
  140. package/artifacts/contracts/shared/ILifecycle.sol/ILifecycle.dbg.json +4 -0
  141. package/artifacts/contracts/{instance/base → shared}/ILifecycle.sol/ILifecycle.json +1 -1
  142. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  143. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +27 -29
  144. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  145. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +207 -0
  146. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  147. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +8 -29
  148. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  149. package/artifacts/contracts/{experiment/inheritance/IA.sol/ISharedA.json → shared/IRegistryLinked.sol/IRegistryLinked.json} +15 -17
  150. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  151. package/artifacts/contracts/shared/IService.sol/IService.json +71 -160
  152. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  153. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +2 -152
  154. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.dbg.json +4 -0
  155. package/artifacts/contracts/shared/InstanceLinkedComponent.sol/InstanceLinkedComponent.json +1030 -0
  156. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.dbg.json +4 -0
  157. package/artifacts/contracts/shared/KeyValueStore.sol/KeyValueStore.json +581 -0
  158. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.dbg.json +4 -0
  159. package/artifacts/contracts/shared/Lifecycle.sol/Lifecycle.json +194 -0
  160. package/artifacts/contracts/shared/NftIdSetManager.sol/NftIdSetManager.dbg.json +4 -0
  161. package/artifacts/contracts/shared/NftIdSetManager.sol/NftIdSetManager.json +314 -0
  162. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  163. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +102 -35
  164. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  165. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +320 -0
  166. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  167. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +310 -74
  168. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  169. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +125 -60
  170. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  171. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  172. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  173. package/artifacts/contracts/shared/Service.sol/Service.json +172 -160
  174. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  175. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +60 -6
  176. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  177. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  178. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  179. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +2 -152
  180. package/artifacts/contracts/staking/IStaking.sol/IStaking.dbg.json +4 -0
  181. package/artifacts/contracts/staking/IStaking.sol/IStaking.json +1770 -0
  182. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  183. package/artifacts/contracts/{instance/base/ComponentService.sol/ComponentService.json → staking/IStakingService.sol/IStakingService.json} +261 -238
  184. package/artifacts/contracts/staking/Staking.sol/Staking.dbg.json +4 -0
  185. package/artifacts/contracts/staking/Staking.sol/Staking.json +2500 -0
  186. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.dbg.json +4 -0
  187. package/artifacts/contracts/staking/StakingManager.sol/StakingManager.json +844 -0
  188. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.dbg.json +4 -0
  189. package/artifacts/contracts/staking/StakingReader.sol/StakingReader.json +263 -0
  190. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  191. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +960 -0
  192. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  193. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +694 -0
  194. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.dbg.json +4 -0
  195. package/artifacts/contracts/staking/TargetManagerLib.sol/TargetManagerLib.json +308 -0
  196. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  197. package/artifacts/contracts/{types → type}/AddressSet.sol/LibAddressSet.json +3 -3
  198. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  199. package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
  200. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  201. package/artifacts/contracts/{types → type}/Blocknumber.sol/BlocknumberLib.json +16 -3
  202. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  203. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
  204. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  205. package/artifacts/contracts/{types → type}/DistributorType.sol/DistributorTypeLib.json +5 -5
  206. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  207. package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
  208. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  209. package/artifacts/contracts/{types → type}/Key32.sol/Key32Lib.json +3 -3
  210. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  211. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +185 -0
  212. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  213. package/artifacts/contracts/{types → type}/NftIdSet.sol/LibNftIdSet.json +3 -3
  214. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  215. package/artifacts/contracts/{types → type}/ObjectType.sol/ObjectTypeLib.json +3 -3
  216. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  217. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  218. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  219. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  220. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  221. package/artifacts/contracts/{types → type}/RiskId.sol/RiskIdLib.json +5 -5
  222. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  223. package/artifacts/contracts/{types → type}/RoleId.sol/RoleIdLib.json +5 -5
  224. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  225. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +148 -0
  226. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  227. package/artifacts/contracts/{types → type}/StateId.sol/StateIdLib.json +3 -3
  228. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  229. package/artifacts/contracts/{types → type}/Timestamp.sol/TimestampLib.json +39 -8
  230. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  231. package/artifacts/contracts/{types → type}/UFixed.sol/MathLib.json +3 -3
  232. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  233. package/artifacts/contracts/{types → type}/UFixed.sol/UFixedLib.json +3 -3
  234. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  235. package/artifacts/contracts/{types → type}/Version.sol/VersionLib.json +3 -3
  236. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  237. package/artifacts/contracts/{types → type}/Version.sol/VersionPartLib.json +3 -3
  238. package/contracts/distribution/Distribution.sol +263 -0
  239. package/contracts/distribution/DistributionService.sol +298 -0
  240. package/contracts/{instance/service → distribution}/DistributionServiceManager.sol +15 -12
  241. package/contracts/distribution/IDistributionComponent.sol +66 -0
  242. package/contracts/distribution/IDistributionService.sol +81 -0
  243. package/contracts/instance/BundleManager.sol +15 -14
  244. package/contracts/instance/IInstance.sol +49 -44
  245. package/contracts/instance/IInstanceService.sol +57 -15
  246. package/contracts/instance/Instance.sol +138 -179
  247. package/contracts/instance/InstanceAccessManager.sol +406 -161
  248. package/contracts/instance/InstanceAuthorizationsLib.sol +336 -0
  249. package/contracts/instance/InstanceReader.sol +135 -62
  250. package/contracts/instance/InstanceService.sol +240 -305
  251. package/contracts/instance/InstanceServiceManager.sol +12 -22
  252. package/contracts/instance/InstanceStore.sol +260 -0
  253. package/contracts/instance/base/BalanceStore.sol +118 -0
  254. package/contracts/instance/{Cloneable.sol → base/Cloneable.sol} +8 -3
  255. package/contracts/instance/{ObjectManager.sol → base/ObjectManager.sol} +12 -14
  256. package/contracts/instance/module/IAccess.sol +24 -18
  257. package/contracts/instance/module/IBundle.sol +8 -8
  258. package/contracts/instance/module/IComponents.sol +52 -0
  259. package/contracts/instance/module/IDistribution.sol +7 -4
  260. package/contracts/instance/module/IPolicy.sol +56 -17
  261. package/contracts/instance/module/IRisk.sol +1 -1
  262. package/contracts/{test/TestToken.sol → mock/Dip.sol} +5 -5
  263. package/contracts/pool/BundleService.sol +296 -0
  264. package/contracts/pool/BundleServiceManager.sol +42 -0
  265. package/contracts/pool/IBundleService.sol +106 -0
  266. package/contracts/pool/IPoolComponent.sol +112 -0
  267. package/contracts/pool/IPoolService.sol +147 -0
  268. package/contracts/pool/Pool.sol +299 -0
  269. package/contracts/pool/PoolService.sol +424 -0
  270. package/contracts/pool/PoolServiceManager.sol +42 -0
  271. package/contracts/product/ApplicationService.sol +254 -0
  272. package/contracts/product/ApplicationServiceManager.sol +38 -0
  273. package/contracts/product/ClaimService.sol +437 -0
  274. package/contracts/product/ClaimServiceManager.sol +38 -0
  275. package/contracts/product/IApplicationService.sol +62 -0
  276. package/contracts/product/IClaimService.sol +93 -0
  277. package/contracts/product/IPolicyService.sol +78 -0
  278. package/contracts/product/IPricingService.sol +39 -0
  279. package/contracts/product/IProductComponent.sol +42 -0
  280. package/contracts/product/IProductService.sol +33 -0
  281. package/contracts/product/PolicyService.sol +473 -0
  282. package/contracts/product/PolicyServiceManager.sol +42 -0
  283. package/contracts/product/PricingService.sol +301 -0
  284. package/contracts/product/PricingServiceManager.sol +42 -0
  285. package/contracts/product/Product.sol +377 -0
  286. package/contracts/product/ProductService.sol +124 -0
  287. package/contracts/product/ProductServiceManager.sol +42 -0
  288. package/contracts/registry/ChainNft.sol +15 -1
  289. package/contracts/registry/IRegistry.sol +38 -18
  290. package/contracts/registry/IRegistryService.sol +41 -38
  291. package/contracts/registry/ITransferInterceptor.sol +1 -0
  292. package/contracts/registry/Registry.sol +193 -82
  293. package/contracts/registry/RegistryAccessManager.sol +72 -121
  294. package/contracts/registry/RegistryService.sol +164 -98
  295. package/contracts/registry/RegistryServiceManager.sol +28 -18
  296. package/contracts/registry/ReleaseManager.sol +390 -192
  297. package/contracts/registry/ServiceAuthorizationsLib.sol +173 -0
  298. package/contracts/registry/TokenRegistry.sol +263 -56
  299. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  300. package/contracts/shared/Component.sol +286 -0
  301. package/contracts/shared/ComponentService.sol +595 -0
  302. package/contracts/shared/ComponentServiceManager.sol +35 -0
  303. package/contracts/shared/ComponentVerifyingService.sol +111 -0
  304. package/contracts/shared/ERC165.sol +14 -12
  305. package/contracts/shared/IComponent.sol +74 -0
  306. package/contracts/shared/IComponentService.sol +91 -0
  307. package/contracts/shared/IInstanceLinkedComponent.sol +46 -0
  308. package/contracts/{instance/base → shared}/IKeyValueStore.sol +14 -10
  309. package/contracts/{instance/base → shared}/ILifecycle.sol +3 -3
  310. package/contracts/shared/INftOwnable.sol +12 -11
  311. package/contracts/shared/IPolicyHolder.sol +45 -0
  312. package/contracts/shared/IRegisterable.sol +3 -3
  313. package/contracts/shared/IRegistryLinked.sol +11 -0
  314. package/contracts/shared/IService.sol +6 -4
  315. package/contracts/shared/IVersionable.sol +5 -48
  316. package/contracts/shared/InstanceLinkedComponent.sol +145 -0
  317. package/contracts/shared/KeyValueStore.sol +130 -0
  318. package/contracts/{instance/base → shared}/Lifecycle.sol +28 -7
  319. package/contracts/shared/NftIdSetManager.sol +69 -0
  320. package/contracts/shared/NftOwnable.sol +64 -85
  321. package/contracts/shared/PolicyHolder.sol +101 -0
  322. package/contracts/shared/ProxyManager.sol +126 -25
  323. package/contracts/shared/Registerable.sol +19 -30
  324. package/contracts/shared/RegistryLinked.sol +43 -0
  325. package/contracts/shared/Service.sol +37 -20
  326. package/contracts/shared/TokenHandler.sol +37 -6
  327. package/contracts/shared/Versionable.sol +4 -92
  328. package/contracts/staking/IStaking.sol +113 -0
  329. package/contracts/staking/IStakingService.sol +122 -0
  330. package/contracts/staking/Staking.sol +348 -0
  331. package/contracts/staking/StakingManager.sol +52 -0
  332. package/contracts/staking/StakingReader.sol +92 -0
  333. package/contracts/staking/StakingService.sol +294 -0
  334. package/contracts/staking/StakingServiceManager.sol +44 -0
  335. package/contracts/staking/TargetManagerLib.sol +141 -0
  336. package/contracts/type/Amount.sol +114 -0
  337. package/contracts/{types → type}/Blocknumber.sol +7 -1
  338. package/contracts/type/ClaimId.sol +75 -0
  339. package/contracts/{types → type}/DistributorType.sol +2 -2
  340. package/contracts/{types → type}/Fee.sol +32 -22
  341. package/contracts/{types → type}/NftId.sol +17 -11
  342. package/contracts/{types → type}/NftIdSet.sol +1 -1
  343. package/contracts/{types → type}/ObjectType.sol +26 -9
  344. package/contracts/type/PayoutId.sol +82 -0
  345. package/contracts/{types → type}/Referral.sol +4 -0
  346. package/contracts/type/RoleId.sol +143 -0
  347. package/contracts/type/Seconds.sol +63 -0
  348. package/contracts/{types → type}/StateId.sol +24 -6
  349. package/contracts/{types → type}/Timestamp.sol +18 -13
  350. package/contracts/{types → type}/UFixed.sol +1 -0
  351. package/contracts/{types → type}/Version.sol +1 -0
  352. package/package.json +3 -3
  353. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  354. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  355. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +0 -4
  356. package/artifacts/contracts/components/IComponent.sol/IComponent.json +0 -455
  357. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  358. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  359. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  360. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  361. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.dbg.json +0 -4
  363. package/artifacts/contracts/experiment/cloning/Cloner.sol/Cloner.json +0 -66
  364. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.dbg.json +0 -4
  365. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock1.json +0 -24
  366. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.dbg.json +0 -4
  367. package/artifacts/contracts/experiment/cloning/Cloner.sol/Mock2.json +0 -42
  368. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  369. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  370. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  371. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  372. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  373. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  374. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  375. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  376. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  377. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  378. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  379. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  380. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  381. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  382. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  383. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  384. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  385. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  386. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  387. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  388. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  389. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  390. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  391. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  392. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  393. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  394. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  395. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  396. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  397. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  398. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  399. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  400. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  401. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +0 -4
  402. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  403. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +0 -261
  404. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +0 -4
  405. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +0 -4
  406. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +0 -4
  407. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +0 -4
  408. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +0 -502
  409. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +0 -4
  410. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +0 -169
  411. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +0 -4
  412. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +0 -4
  413. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.json +0 -10
  414. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +0 -4
  415. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +0 -1102
  416. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +0 -4
  417. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +0 -449
  418. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  419. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -772
  420. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
  421. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -437
  422. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +0 -4
  423. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  424. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +0 -4
  425. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  426. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  427. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +0 -4
  428. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +0 -1227
  429. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
  430. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -505
  431. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  432. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -806
  433. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
  434. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -437
  435. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  436. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -856
  437. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  438. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -437
  439. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  440. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  441. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  442. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  443. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  444. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -313
  445. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  446. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  447. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  448. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -608
  449. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  450. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  451. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  452. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  453. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  454. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -286
  455. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  456. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  457. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  458. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  459. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  460. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  461. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  462. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  463. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  464. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  465. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  466. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  467. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  468. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  469. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  470. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  471. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  472. package/artifacts/contracts/types/Referral.sol/ReferralLib.json +0 -123
  473. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  474. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  475. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  476. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  477. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  478. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  479. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  480. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  481. package/contracts/components/Component.sol +0 -216
  482. package/contracts/components/Distribution.sol +0 -150
  483. package/contracts/components/IComponent.sol +0 -43
  484. package/contracts/components/IDistributionComponent.sol +0 -47
  485. package/contracts/components/IPoolComponent.sol +0 -60
  486. package/contracts/components/IProductComponent.sol +0 -39
  487. package/contracts/components/Pool.sol +0 -227
  488. package/contracts/components/Product.sol +0 -265
  489. package/contracts/experiment/cloning/Cloner.sol +0 -47
  490. package/contracts/experiment/errors/Require.sol +0 -38
  491. package/contracts/experiment/errors/Revert.sol +0 -44
  492. package/contracts/experiment/inheritance/A.sol +0 -53
  493. package/contracts/experiment/inheritance/B.sol +0 -28
  494. package/contracts/experiment/inheritance/C.sol +0 -34
  495. package/contracts/experiment/inheritance/IA.sol +0 -13
  496. package/contracts/experiment/inheritance/IB.sol +0 -10
  497. package/contracts/experiment/inheritance/IC.sol +0 -12
  498. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  499. package/contracts/experiment/statemachine/ISM.sol +0 -25
  500. package/contracts/experiment/statemachine/SM.sol +0 -57
  501. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  502. package/contracts/experiment/types/TypeA.sol +0 -47
  503. package/contracts/experiment/types/TypeB.sol +0 -29
  504. package/contracts/instance/base/ComponentService.sol +0 -134
  505. package/contracts/instance/base/KeyValueStore.sol +0 -172
  506. package/contracts/instance/module/ISetup.sol +0 -46
  507. package/contracts/instance/module/ITreasury.sol +0 -23
  508. package/contracts/instance/service/BundleService.sol +0 -293
  509. package/contracts/instance/service/BundleServiceManager.sol +0 -51
  510. package/contracts/instance/service/DistributionService.sol +0 -106
  511. package/contracts/instance/service/IBundleService.sol +0 -44
  512. package/contracts/instance/service/IDistributionService.sol +0 -12
  513. package/contracts/instance/service/IPolicyService.sol +0 -94
  514. package/contracts/instance/service/IPoolService.sol +0 -20
  515. package/contracts/instance/service/IProductService.sol +0 -40
  516. package/contracts/instance/service/PolicyService.sol +0 -538
  517. package/contracts/instance/service/PolicyServiceManager.sol +0 -54
  518. package/contracts/instance/service/PoolService.sol +0 -110
  519. package/contracts/instance/service/PoolServiceManager.sol +0 -51
  520. package/contracts/instance/service/ProductService.sol +0 -234
  521. package/contracts/instance/service/ProductServiceManager.sol +0 -54
  522. package/contracts/shared/ContractDeployerLib.sol +0 -72
  523. package/contracts/test/TestFee.sol +0 -25
  524. package/contracts/test/TestRegisterable.sol +0 -18
  525. package/contracts/test/TestRoleId.sol +0 -14
  526. package/contracts/test/TestService.sol +0 -25
  527. package/contracts/test/TestVersion.sol +0 -44
  528. package/contracts/test/TestVersionable.sol +0 -17
  529. package/contracts/test/Usdc.sol +0 -26
  530. package/contracts/types/ChainId.sol +0 -38
  531. package/contracts/types/NumberId.sol +0 -52
  532. package/contracts/types/RoleId.sol +0 -90
  533. /package/contracts/{types → type}/AddressSet.sol +0 -0
  534. /package/contracts/{types → type}/Key32.sol +0 -0
  535. /package/contracts/{types → type}/RiskId.sol +0 -0
@@ -0,0 +1,1343 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "DistributionService",
4
+ "sourceName": "contracts/distribution/DistributionService.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "authority",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "AccessManagedInvalidAuthority",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "caller",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint32",
26
+ "name": "delay",
27
+ "type": "uint32"
28
+ }
29
+ ],
30
+ "name": "AccessManagedRequiredDelay",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "caller",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "AccessManagedUnauthorized",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "NftId",
48
+ "name": "componentNftId",
49
+ "type": "uint96"
50
+ }
51
+ ],
52
+ "name": "ErrorComponentVerifyingServiceComponentIsLocked",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "componentNftId",
60
+ "type": "uint96"
61
+ },
62
+ {
63
+ "internalType": "ObjectType",
64
+ "name": "expectedType",
65
+ "type": "uint8"
66
+ },
67
+ {
68
+ "internalType": "ObjectType",
69
+ "name": "actualType",
70
+ "type": "uint8"
71
+ }
72
+ ],
73
+ "name": "ErrorComponentVerifyingServiceComponentTypeInvalid",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "caller",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "ErrorDistributionServiceCallerNotRegistered",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "Amount",
91
+ "name": "transferredDistributionFeeAmount",
92
+ "type": "uint96"
93
+ },
94
+ {
95
+ "internalType": "Amount",
96
+ "name": "expectedDistributionFeeAmount",
97
+ "type": "uint96"
98
+ }
99
+ ],
100
+ "name": "ErrorDistributionServiceInvalidFeeTransferred",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "caller",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "ErrorIDistributionServiceCallerNotDistributor",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "uint256",
118
+ "name": "commissionPercentage",
119
+ "type": "uint256"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "maxCommissionPercentage",
124
+ "type": "uint256"
125
+ }
126
+ ],
127
+ "name": "ErrorIDistributionServiceCommissionTooHigh",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "uint256",
134
+ "name": "maxDiscountPercentage",
135
+ "type": "uint256"
136
+ },
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "discountPercentage",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "name": "ErrorIDistributionServiceDiscountTooHigh",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "uint256",
150
+ "name": "minDiscountPercentage",
151
+ "type": "uint256"
152
+ },
153
+ {
154
+ "internalType": "uint256",
155
+ "name": "discountPercentage",
156
+ "type": "uint256"
157
+ }
158
+ ],
159
+ "name": "ErrorIDistributionServiceDiscountTooLow",
160
+ "type": "error"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "Timestamp",
166
+ "name": "expiryAt",
167
+ "type": "uint40"
168
+ }
169
+ ],
170
+ "name": "ErrorIDistributionServiceExpirationInvalid",
171
+ "type": "error"
172
+ },
173
+ {
174
+ "inputs": [
175
+ {
176
+ "internalType": "uint256",
177
+ "name": "maxReferralLifetime",
178
+ "type": "uint256"
179
+ },
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "expiryAt",
183
+ "type": "uint256"
184
+ }
185
+ ],
186
+ "name": "ErrorIDistributionServiceExpiryTooLong",
187
+ "type": "error"
188
+ },
189
+ {
190
+ "inputs": [
191
+ {
192
+ "internalType": "string",
193
+ "name": "code",
194
+ "type": "string"
195
+ }
196
+ ],
197
+ "name": "ErrorIDistributionServiceInvalidReferral",
198
+ "type": "error"
199
+ },
200
+ {
201
+ "inputs": [
202
+ {
203
+ "internalType": "ReferralId",
204
+ "name": "referralId",
205
+ "type": "bytes8"
206
+ }
207
+ ],
208
+ "name": "ErrorIDistributionServiceInvalidReferralId",
209
+ "type": "error"
210
+ },
211
+ {
212
+ "inputs": [
213
+ {
214
+ "internalType": "uint256",
215
+ "name": "maxDiscountPercentage",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "internalType": "uint256",
220
+ "name": "limit",
221
+ "type": "uint256"
222
+ }
223
+ ],
224
+ "name": "ErrorIDistributionServiceMaxDiscountTooHigh",
225
+ "type": "error"
226
+ },
227
+ {
228
+ "inputs": [
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "maxReferrals",
232
+ "type": "uint256"
233
+ }
234
+ ],
235
+ "name": "ErrorIDistributionServiceMaxReferralsExceeded",
236
+ "type": "error"
237
+ },
238
+ {
239
+ "inputs": [
240
+ {
241
+ "internalType": "uint256",
242
+ "name": "minFee",
243
+ "type": "uint256"
244
+ },
245
+ {
246
+ "internalType": "uint256",
247
+ "name": "limit",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "ErrorIDistributionServiceMinFeeTooHigh",
252
+ "type": "error"
253
+ },
254
+ {
255
+ "inputs": [
256
+ {
257
+ "internalType": "NftId",
258
+ "name": "nftId",
259
+ "type": "uint96"
260
+ },
261
+ {
262
+ "internalType": "NftId",
263
+ "name": "parentNftId",
264
+ "type": "uint96"
265
+ }
266
+ ],
267
+ "name": "ErrorIDistributionServiceParentNftIdNotInstance",
268
+ "type": "error"
269
+ },
270
+ {
271
+ "inputs": [
272
+ {
273
+ "internalType": "NftId",
274
+ "name": "distributionNftId",
275
+ "type": "uint96"
276
+ },
277
+ {
278
+ "internalType": "ReferralId",
279
+ "name": "referralId",
280
+ "type": "bytes8"
281
+ }
282
+ ],
283
+ "name": "ErrorIDistributionServiceReferralInvalid",
284
+ "type": "error"
285
+ },
286
+ {
287
+ "inputs": [
288
+ {
289
+ "internalType": "NftId",
290
+ "name": "nftId",
291
+ "type": "uint96"
292
+ }
293
+ ],
294
+ "name": "ErrorNftOwnableAlreadyLinked",
295
+ "type": "error"
296
+ },
297
+ {
298
+ "inputs": [
299
+ {
300
+ "internalType": "address",
301
+ "name": "contractAddress",
302
+ "type": "address"
303
+ }
304
+ ],
305
+ "name": "ErrorNftOwnableContractNotRegistered",
306
+ "type": "error"
307
+ },
308
+ {
309
+ "inputs": [],
310
+ "name": "ErrorNftOwnableInitialOwnerZero",
311
+ "type": "error"
312
+ },
313
+ {
314
+ "inputs": [
315
+ {
316
+ "internalType": "address",
317
+ "name": "account",
318
+ "type": "address"
319
+ }
320
+ ],
321
+ "name": "ErrorNftOwnableNotOwner",
322
+ "type": "error"
323
+ },
324
+ {
325
+ "inputs": [
326
+ {
327
+ "internalType": "address",
328
+ "name": "registryAddress",
329
+ "type": "address"
330
+ }
331
+ ],
332
+ "name": "ErrorNotRegistry",
333
+ "type": "error"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "ErrorServiceNotImplemented",
338
+ "type": "error"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "InvalidInitialization",
343
+ "type": "error"
344
+ },
345
+ {
346
+ "inputs": [],
347
+ "name": "NotInitializing",
348
+ "type": "error"
349
+ },
350
+ {
351
+ "anonymous": false,
352
+ "inputs": [
353
+ {
354
+ "indexed": false,
355
+ "internalType": "address",
356
+ "name": "authority",
357
+ "type": "address"
358
+ }
359
+ ],
360
+ "name": "AuthorityUpdated",
361
+ "type": "event"
362
+ },
363
+ {
364
+ "anonymous": false,
365
+ "inputs": [
366
+ {
367
+ "indexed": false,
368
+ "internalType": "uint64",
369
+ "name": "version",
370
+ "type": "uint64"
371
+ }
372
+ ],
373
+ "name": "Initialized",
374
+ "type": "event"
375
+ },
376
+ {
377
+ "inputs": [],
378
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
379
+ "outputs": [
380
+ {
381
+ "internalType": "bytes32",
382
+ "name": "",
383
+ "type": "bytes32"
384
+ }
385
+ ],
386
+ "stateMutability": "view",
387
+ "type": "function"
388
+ },
389
+ {
390
+ "inputs": [],
391
+ "name": "REGISTERABLE_LOCATION_V1",
392
+ "outputs": [
393
+ {
394
+ "internalType": "bytes32",
395
+ "name": "",
396
+ "type": "bytes32"
397
+ }
398
+ ],
399
+ "stateMutability": "view",
400
+ "type": "function"
401
+ },
402
+ {
403
+ "inputs": [],
404
+ "name": "authority",
405
+ "outputs": [
406
+ {
407
+ "internalType": "address",
408
+ "name": "",
409
+ "type": "address"
410
+ }
411
+ ],
412
+ "stateMutability": "view",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "internalType": "address",
419
+ "name": "distributor",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "internalType": "DistributorType",
424
+ "name": "distributorType",
425
+ "type": "bytes8"
426
+ },
427
+ {
428
+ "internalType": "bytes",
429
+ "name": "data",
430
+ "type": "bytes"
431
+ }
432
+ ],
433
+ "name": "createDistributor",
434
+ "outputs": [
435
+ {
436
+ "internalType": "NftId",
437
+ "name": "distributorNftId",
438
+ "type": "uint96"
439
+ }
440
+ ],
441
+ "stateMutability": "nonpayable",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [
446
+ {
447
+ "internalType": "string",
448
+ "name": "name",
449
+ "type": "string"
450
+ },
451
+ {
452
+ "internalType": "UFixed",
453
+ "name": "minDiscountPercentage",
454
+ "type": "uint256"
455
+ },
456
+ {
457
+ "internalType": "UFixed",
458
+ "name": "maxDiscountPercentage",
459
+ "type": "uint256"
460
+ },
461
+ {
462
+ "internalType": "UFixed",
463
+ "name": "commissionPercentage",
464
+ "type": "uint256"
465
+ },
466
+ {
467
+ "internalType": "uint32",
468
+ "name": "maxReferralCount",
469
+ "type": "uint32"
470
+ },
471
+ {
472
+ "internalType": "uint32",
473
+ "name": "maxReferralLifetime",
474
+ "type": "uint32"
475
+ },
476
+ {
477
+ "internalType": "bool",
478
+ "name": "allowSelfReferrals",
479
+ "type": "bool"
480
+ },
481
+ {
482
+ "internalType": "bool",
483
+ "name": "allowRenewals",
484
+ "type": "bool"
485
+ },
486
+ {
487
+ "internalType": "bytes",
488
+ "name": "data",
489
+ "type": "bytes"
490
+ }
491
+ ],
492
+ "name": "createDistributorType",
493
+ "outputs": [
494
+ {
495
+ "internalType": "DistributorType",
496
+ "name": "distributorType",
497
+ "type": "bytes8"
498
+ }
499
+ ],
500
+ "stateMutability": "nonpayable",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [
505
+ {
506
+ "internalType": "NftId",
507
+ "name": "distributorNftId",
508
+ "type": "uint96"
509
+ },
510
+ {
511
+ "internalType": "string",
512
+ "name": "code",
513
+ "type": "string"
514
+ },
515
+ {
516
+ "internalType": "UFixed",
517
+ "name": "discountPercentage",
518
+ "type": "uint256"
519
+ },
520
+ {
521
+ "internalType": "uint32",
522
+ "name": "maxReferrals",
523
+ "type": "uint32"
524
+ },
525
+ {
526
+ "internalType": "Timestamp",
527
+ "name": "expiryAt",
528
+ "type": "uint40"
529
+ },
530
+ {
531
+ "internalType": "bytes",
532
+ "name": "data",
533
+ "type": "bytes"
534
+ }
535
+ ],
536
+ "name": "createReferral",
537
+ "outputs": [
538
+ {
539
+ "internalType": "ReferralId",
540
+ "name": "referralId",
541
+ "type": "bytes8"
542
+ }
543
+ ],
544
+ "stateMutability": "nonpayable",
545
+ "type": "function"
546
+ },
547
+ {
548
+ "inputs": [],
549
+ "name": "getDomain",
550
+ "outputs": [
551
+ {
552
+ "internalType": "ObjectType",
553
+ "name": "",
554
+ "type": "uint8"
555
+ }
556
+ ],
557
+ "stateMutability": "pure",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [],
562
+ "name": "getInitialInfo",
563
+ "outputs": [
564
+ {
565
+ "components": [
566
+ {
567
+ "internalType": "NftId",
568
+ "name": "nftId",
569
+ "type": "uint96"
570
+ },
571
+ {
572
+ "internalType": "NftId",
573
+ "name": "parentNftId",
574
+ "type": "uint96"
575
+ },
576
+ {
577
+ "internalType": "ObjectType",
578
+ "name": "objectType",
579
+ "type": "uint8"
580
+ },
581
+ {
582
+ "internalType": "bool",
583
+ "name": "isInterceptor",
584
+ "type": "bool"
585
+ },
586
+ {
587
+ "internalType": "address",
588
+ "name": "objectAddress",
589
+ "type": "address"
590
+ },
591
+ {
592
+ "internalType": "address",
593
+ "name": "initialOwner",
594
+ "type": "address"
595
+ },
596
+ {
597
+ "internalType": "bytes",
598
+ "name": "data",
599
+ "type": "bytes"
600
+ }
601
+ ],
602
+ "internalType": "struct IRegistry.ObjectInfo",
603
+ "name": "info",
604
+ "type": "tuple"
605
+ }
606
+ ],
607
+ "stateMutability": "view",
608
+ "type": "function"
609
+ },
610
+ {
611
+ "inputs": [],
612
+ "name": "getNftId",
613
+ "outputs": [
614
+ {
615
+ "internalType": "NftId",
616
+ "name": "",
617
+ "type": "uint96"
618
+ }
619
+ ],
620
+ "stateMutability": "view",
621
+ "type": "function"
622
+ },
623
+ {
624
+ "inputs": [],
625
+ "name": "getOwner",
626
+ "outputs": [
627
+ {
628
+ "internalType": "address",
629
+ "name": "",
630
+ "type": "address"
631
+ }
632
+ ],
633
+ "stateMutability": "view",
634
+ "type": "function"
635
+ },
636
+ {
637
+ "inputs": [],
638
+ "name": "getRegistry",
639
+ "outputs": [
640
+ {
641
+ "internalType": "contract IRegistry",
642
+ "name": "",
643
+ "type": "address"
644
+ }
645
+ ],
646
+ "stateMutability": "view",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "inputs": [],
651
+ "name": "getVersion",
652
+ "outputs": [
653
+ {
654
+ "internalType": "Version",
655
+ "name": "",
656
+ "type": "uint24"
657
+ }
658
+ ],
659
+ "stateMutability": "pure",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [],
664
+ "name": "initializeERC165",
665
+ "outputs": [],
666
+ "stateMutability": "nonpayable",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "inputs": [
671
+ {
672
+ "internalType": "address",
673
+ "name": "initialOwner",
674
+ "type": "address"
675
+ },
676
+ {
677
+ "internalType": "address",
678
+ "name": "registryAddress",
679
+ "type": "address"
680
+ }
681
+ ],
682
+ "name": "initializeNftOwnable",
683
+ "outputs": [],
684
+ "stateMutability": "nonpayable",
685
+ "type": "function"
686
+ },
687
+ {
688
+ "inputs": [
689
+ {
690
+ "internalType": "address",
691
+ "name": "registryAddress",
692
+ "type": "address"
693
+ },
694
+ {
695
+ "internalType": "NftId",
696
+ "name": "parentNftId",
697
+ "type": "uint96"
698
+ },
699
+ {
700
+ "internalType": "ObjectType",
701
+ "name": "objectType",
702
+ "type": "uint8"
703
+ },
704
+ {
705
+ "internalType": "bool",
706
+ "name": "isInterceptor",
707
+ "type": "bool"
708
+ },
709
+ {
710
+ "internalType": "address",
711
+ "name": "initialOwner",
712
+ "type": "address"
713
+ },
714
+ {
715
+ "internalType": "bytes",
716
+ "name": "registryData",
717
+ "type": "bytes"
718
+ }
719
+ ],
720
+ "name": "initializeRegisterable",
721
+ "outputs": [],
722
+ "stateMutability": "nonpayable",
723
+ "type": "function"
724
+ },
725
+ {
726
+ "inputs": [
727
+ {
728
+ "internalType": "address",
729
+ "name": "registryAddress",
730
+ "type": "address"
731
+ }
732
+ ],
733
+ "name": "initializeRegistryLinked",
734
+ "outputs": [],
735
+ "stateMutability": "nonpayable",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "inputs": [
740
+ {
741
+ "internalType": "address",
742
+ "name": "registry",
743
+ "type": "address"
744
+ },
745
+ {
746
+ "internalType": "address",
747
+ "name": "authority",
748
+ "type": "address"
749
+ },
750
+ {
751
+ "internalType": "address",
752
+ "name": "initialOwner",
753
+ "type": "address"
754
+ }
755
+ ],
756
+ "name": "initializeService",
757
+ "outputs": [],
758
+ "stateMutability": "nonpayable",
759
+ "type": "function"
760
+ },
761
+ {
762
+ "inputs": [
763
+ {
764
+ "internalType": "address",
765
+ "name": "activatedBy",
766
+ "type": "address"
767
+ },
768
+ {
769
+ "internalType": "bytes",
770
+ "name": "data",
771
+ "type": "bytes"
772
+ }
773
+ ],
774
+ "name": "initializeVersionable",
775
+ "outputs": [],
776
+ "stateMutability": "nonpayable",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [],
781
+ "name": "isConsumingScheduledOp",
782
+ "outputs": [
783
+ {
784
+ "internalType": "bytes4",
785
+ "name": "",
786
+ "type": "bytes4"
787
+ }
788
+ ],
789
+ "stateMutability": "view",
790
+ "type": "function"
791
+ },
792
+ {
793
+ "inputs": [],
794
+ "name": "linkToRegisteredNftId",
795
+ "outputs": [],
796
+ "stateMutability": "nonpayable",
797
+ "type": "function"
798
+ },
799
+ {
800
+ "inputs": [
801
+ {
802
+ "internalType": "NftId",
803
+ "name": "distributionNftId",
804
+ "type": "uint96"
805
+ },
806
+ {
807
+ "internalType": "ReferralId",
808
+ "name": "referralId",
809
+ "type": "bytes8"
810
+ },
811
+ {
812
+ "components": [
813
+ {
814
+ "internalType": "Amount",
815
+ "name": "productFeeAmount",
816
+ "type": "uint96"
817
+ },
818
+ {
819
+ "internalType": "Amount",
820
+ "name": "distributionFeeAndCommissionAmount",
821
+ "type": "uint96"
822
+ },
823
+ {
824
+ "internalType": "Amount",
825
+ "name": "poolPremiumAndFeeAmount",
826
+ "type": "uint96"
827
+ },
828
+ {
829
+ "internalType": "uint256",
830
+ "name": "netPremiumAmount",
831
+ "type": "uint256"
832
+ },
833
+ {
834
+ "internalType": "uint256",
835
+ "name": "fullPremiumAmount",
836
+ "type": "uint256"
837
+ },
838
+ {
839
+ "internalType": "uint256",
840
+ "name": "premiumAmount",
841
+ "type": "uint256"
842
+ },
843
+ {
844
+ "internalType": "uint256",
845
+ "name": "productFeeFixAmount",
846
+ "type": "uint256"
847
+ },
848
+ {
849
+ "internalType": "uint256",
850
+ "name": "poolFeeFixAmount",
851
+ "type": "uint256"
852
+ },
853
+ {
854
+ "internalType": "uint256",
855
+ "name": "bundleFeeFixAmount",
856
+ "type": "uint256"
857
+ },
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "distributionFeeFixAmount",
861
+ "type": "uint256"
862
+ },
863
+ {
864
+ "internalType": "uint256",
865
+ "name": "productFeeVarAmount",
866
+ "type": "uint256"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "poolFeeVarAmount",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "bundleFeeVarAmount",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "uint256",
880
+ "name": "distributionFeeVarAmount",
881
+ "type": "uint256"
882
+ },
883
+ {
884
+ "internalType": "uint256",
885
+ "name": "distributionOwnerFeeFixAmount",
886
+ "type": "uint256"
887
+ },
888
+ {
889
+ "internalType": "uint256",
890
+ "name": "distributionOwnerFeeVarAmount",
891
+ "type": "uint256"
892
+ },
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "commissionAmount",
896
+ "type": "uint256"
897
+ },
898
+ {
899
+ "internalType": "uint256",
900
+ "name": "discountAmount",
901
+ "type": "uint256"
902
+ }
903
+ ],
904
+ "internalType": "struct IPolicy.Premium",
905
+ "name": "premium",
906
+ "type": "tuple"
907
+ }
908
+ ],
909
+ "name": "processSale",
910
+ "outputs": [],
911
+ "stateMutability": "nonpayable",
912
+ "type": "function"
913
+ },
914
+ {
915
+ "inputs": [
916
+ {
917
+ "internalType": "NftId",
918
+ "name": "distributionNftId",
919
+ "type": "uint96"
920
+ },
921
+ {
922
+ "internalType": "ReferralId",
923
+ "name": "referralId",
924
+ "type": "bytes8"
925
+ }
926
+ ],
927
+ "name": "referralIsValid",
928
+ "outputs": [
929
+ {
930
+ "internalType": "bool",
931
+ "name": "isValid",
932
+ "type": "bool"
933
+ }
934
+ ],
935
+ "stateMutability": "view",
936
+ "type": "function"
937
+ },
938
+ {
939
+ "inputs": [
940
+ {
941
+ "internalType": "bytes4",
942
+ "name": "interfaceId",
943
+ "type": "bytes4"
944
+ }
945
+ ],
946
+ "name": "registerInterface",
947
+ "outputs": [],
948
+ "stateMutability": "nonpayable",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
953
+ {
954
+ "internalType": "address",
955
+ "name": "newAuthority",
956
+ "type": "address"
957
+ }
958
+ ],
959
+ "name": "setAuthority",
960
+ "outputs": [],
961
+ "stateMutability": "nonpayable",
962
+ "type": "function"
963
+ },
964
+ {
965
+ "inputs": [
966
+ {
967
+ "internalType": "bytes4",
968
+ "name": "interfaceId",
969
+ "type": "bytes4"
970
+ }
971
+ ],
972
+ "name": "supportsInterface",
973
+ "outputs": [
974
+ {
975
+ "internalType": "bool",
976
+ "name": "",
977
+ "type": "bool"
978
+ }
979
+ ],
980
+ "stateMutability": "view",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [
985
+ {
986
+ "internalType": "bytes",
987
+ "name": "data",
988
+ "type": "bytes"
989
+ }
990
+ ],
991
+ "name": "upgradeVersionable",
992
+ "outputs": [],
993
+ "stateMutability": "nonpayable",
994
+ "type": "function"
995
+ }
996
+ ],
997
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b614cab80620000e66000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80635dcb3bae116100de5780638e32e97911610097578063ada9652e11610071578063ada9652e146103c2578063b68d1809146103d7578063bf7e214f146103e6578063f7c34ee0146103ee57600080fd5b80638e32e9791461037b5780638fb360371461038e578063ab54c545146103af57600080fd5b80635dcb3bae146102f1578063644c45e01461031c578063675393bf1461033a5780637a9e5e4b1461034d578063893d20e8146103605780638dd2b7811461036857600080fd5b806325d073841161014b578063329d6e7411610125578063329d6e741461029e57806336fc697e146102b157806349bb9e4b146102b95780635ab1bd53146102cc57600080fd5b806325d073841461025857806327bb7a331461026b5780632b5198b11461027e57600080fd5b806301ffc9a7146101935780630d8e6e2c146101d55780630fec111c146101f1578063138461e0146102065780631eff4b2214610210578063214cdb8014610245575b600080fd5b6101c06101a13660046137f3565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101dd610401565b60405162ffffff90911681526020016101cc565b6101f961048b565b6040516101cc919061386d565b61020e61061c565b005b6102377f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6040519081526020016101cc565b61020e6102533660046137f3565b610823565b6101c0610266366004613933565b610850565b61020e610279366004613b1e565b610c96565b61029161028c366004613bc8565b610d3b565b6040516101cc9190613c94565b61020e6102ac366004613ca9565b6112ee565b61020e61143b565b61020e6102c7366004613cdd565b611481565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101cc565b6103046102ff366004613d22565b611580565b6040516001600160601b0390911681526020016101cc565b600080516020614c16833981519152546001600160601b0316610304565b61020e610348366004613d83565b61186b565b61020e61035b366004613d83565b611979565b6102d96119fc565b610291610376366004613db3565b611b33565b61020e610389366004613e4d565b61239f565b6103966125d8565b6040516001600160e01b031990911681526020016101cc565b61020e6103bd366004613e98565b612610565b610237600080516020614c1683398151915281565b604051607881526020016101cc565b6102d9612b89565b61020e6103fc366004613fd5565b612ba5565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$8eede297b65ed5a56eb3f84d8232ae93f5$__90632efe011390606401602060405180830381865af4158015610462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104869190614003565b905090565b6104936137b5565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528073__$94a2c899be079b00d952d0d84fffaa5c34$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561050c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105309190614033565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016105786119fc565b6001600160a01b0316815260200182600101805461059590614050565b80601f01602080910402602001604051908101604052809291908181526020018280546105c190614050565b801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b505050505081525091505090565b6000600080516020614c1683398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561068b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106af9190614095565b156106e05780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306106f36001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561073b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075f9190614095565b6107875760405163b9304b0d60e01b81526001600160a01b03821660048201526024016106d7565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa1580156107db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ff9190614033565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b61082b612c1c565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051630a4d29dd60e31b81526001600160601b038316600482015260009073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af41580156108ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cf9190614095565b806109575750604051637bc32ecf60e01b815273__$05887d5853069c88bcd4c0a2107db45f29$__90637bc32ecf90610916906001600160c01b0319861690600401613c94565b602060405180830381865af4158015610933573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190614095565b1561096457506000610c90565b600061096f84612c55565b90506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d591906140b2565b6001600160a01b0316631d3be477856040518263ffffffff1660e01b8152600401610a009190613c94565b600060405180830381865afa158015610a1d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a45919081019061412a565b8051604051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af4158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190614095565b15610ad757600092505050610c90565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015610b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b579190614095565b80610c69575060a0810151604051638d38cd4b60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__90638d38cd4b90602401602060405180830381865af4158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd9190614095565b8015610c695750610c6973__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c549190614208565b8260a0015164ffffffffff9081169116111590565b9250828015610c8b5750806060015163ffffffff16816080015163ffffffff16105b925050505b92915050565b610c9e612c1c565b610ca88287612ba5565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610d31838261426b565b5050505050505050565b60008080610d496078612d7e565b92505091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db291906140b2565b90506000610dc08285612f1a565b90506000836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2691906140b2565b6040516302d764c760e21b81526001600160601b03841660048201526001600160a01b039190911690630b5d931c9060240161020060405180830381865afa158015610e76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9a9190614378565b60a08101515160405163771602f760e01b81526004810191909152602481018e905290915060009073__$bf7bc340cbb9229ef1de2c568356e67902$__9063771602f790604401602060405180830381865af4158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f229190614438565b60808301515160405163b67d77c560e01b815260048101919091526024810182905290915060009073__$bf7bc340cbb9229ef1de2c568356e67902$__9063b67d77c590604401602060405180830381865af4158015610f86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faa9190614438565b90508e73__$bf7bc340cbb9229ef1de2c568356e67902$__6321e5749b9091836040518363ffffffff1660e01b8152600401610ff0929190918252602082015260400190565b602060405180830381865af415801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190614095565b15611148578e73__$bf7bc340cbb9229ef1de2c568356e67902$__6344aa683690916040518263ffffffff1660e01b815260040161107191815260200190565b602060405180830381865af415801561108e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b29190614438565b604051632255341b60e11b81526004810183905273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111269190614438565b60405163e2ed03dd60e01b8152600481019290925260248201526044016106d7565b5050505073__$1919c6d2c69d787ccb2653a371d7e5737d$__63578c3039848f6040518363ffffffff1660e01b8152600401611185929190614451565b602060405180830381865af41580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c69190614473565b935060006040518061012001604052808f81526020018e81526020018d81526020018c81526020018b63ffffffff1681526020018a63ffffffff16815260200189151581526020018815158152602001878152509050826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561125a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127e91906140b2565b6001600160a01b03166330a130ba86836040518363ffffffff1660e01b81526004016112ab929190614490565b600060405180830381600087803b1580156112c557600080fd5b505af11580156112d9573d6000803e3d6000fd5b50505050505050509998505050505050505050565b73__$8eede297b65ed5a56eb3f84d8232ae93f5$__63a123b37c611310610401565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015611350573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113749190614553565b600080516020614c568339815191528054600160401b900460ff16806113a7575080546001600160401b03808416911610155b156113c55760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b1781556113ef83612f9d565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b611443612c1c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020614c568339815191528054600160401b810460ff1615906001600160401b03166000811580156114b45750825b90506000826001600160401b031660011480156114d05750303b155b9050811580156114de575080155b156114fc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561152657845460ff60401b1916600160401b1785555b6115308787612fa5565b831561157757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b6000808061158e6078612d7e565b6004546040805160e0810180835263bc1b392d60e01b905290519496509194506001600160a01b0316926357a8fba79250819073__$94a2c899be079b00d952d0d84fffaa5c34$__9063bc1b392d9060e4808501916020918187030181865af41580156115ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116239190614033565b6001600160601b03168152602001856001600160601b03168152602001611648607a90565b60ff16815260200160011515815260200160006001600160a01b03168152602001896001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b81526004016116a7919061386d565b6020604051808303816000875af11580156116c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ea9190614033565b925060006040518060a00160405280876001600160c01b031916815260200160011515815260200186815260200173__$3bac17678db7ae928afa209f2f44deec9c$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611761573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117859190614033565b6001600160601b03168152602001600063ffffffff168152509050816001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180291906140b2565b6001600160a01b0316637cca112485836040518363ffffffff1660e01b815260040161182f9291906145e2565b600060405180830381600087803b15801561184957600080fd5b505af115801561185d573d6000803e3d6000fd5b505050505050509392505050565b611873612c1c565b806001600160a01b03163b6000036118a95760405163fdeac91f60e01b81526001600160a01b03821660048201526024016106d7565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152633135064760e11b60048201526301ffc9a790602401602060405180830381865afa925050508015611923575060408051601f3d908101601f1916820190925261192091810190614095565b60015b61194b5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016106d7565b806119745760405163fdeac91f60e01b81526001600160a01b03831660048201526024016106d7565b505b50565b33611982612b89565b6001600160a01b0316816001600160a01b0316146119bd5760405162d1953b60e31b81526001600160a01b03821660048201526024016106d7565b816001600160a01b03163b6000036119f3576040516361798f2f60e11b81526001600160a01b03831660048201526024016106d7565b6119748261314a565b600080600080516020614c1683398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611a6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a909190614095565b15611b1d576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1791906140b2565b91505090565b54600160601b90046001600160a01b0316919050565b60008080611b416078612d7e565b92505091508751600003611b6a5787604051634fad6a5360e11b81526004016106d7919061460f565b60405163790a38ad60e01b815264ffffffffff8616600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015611bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be49190614095565b15611c0b5760405163df85467b60e01b815264ffffffffff861660048201526024016106d7565b6000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6f91906140b2565b6040516313d8ebc960e11b81526001600160601b038c1660048201529091506000906001600160a01b038316906327b1d79290602401600060405180830381865afa158015611cc2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cea9190810190614622565b516040516368322c6360e11b81529091506000906001600160a01b0384169063d06458c690611d1d908590600401613c94565b600060405180830381865afa158015611d3a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d6291908101906146e1565b90508863ffffffff16816080015163ffffffff161015611da3576080810151604051636fcee12560e01b815263ffffffff90911660048201526024016106d7565b60208101518a1015611ebf576020810151604051632255341b60e11b8152600481019190915273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611e05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e299190614438565b604051632255341b60e11b8152600481018c905273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9d9190614438565b6040516338a25a8b60e21b8152600481019290925260248201526044016106d7565b60408101518a1115611fdb576040818101519051632255341b60e11b8152600481019190915273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f459190614438565b604051632255341b60e11b8152600481018c905273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611f95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb99190614438565b604051631e1ea4f360e31b8152600481019290925260248201526044016106d7565b8060a0015163ffffffff1673__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af415801561202f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120539190614208565b604051633682752160e21b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063da09d48490602401602060405180830381865af41580156120aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ce9190614438565b604051633682752160e21b815264ffffffffff8b16600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063da09d48490602401602060405180830381865af4158015612124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121489190614438565b61215291906147ee565b11156121fe5760a0810151604051633682752160e21b815264ffffffffff8a16600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063da09d48490602401602060405180830381865af41580156121b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d79190614438565b6040516331fa6ab160e11b815263ffffffff909216600483015260248201526044016106d7565b604051631f849e6b60e11b815273__$05887d5853069c88bcd4c0a2107db45f29$__90633f093cd6906122379088908f90600401614451565b602060405180830381865af4158015612254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122789190614473565b955060006040518060e001604052808e6001600160601b031681526020018d81526020018c81526020018b63ffffffff168152602001600063ffffffff1681526020018a64ffffffffff168152602001898152509050846001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561230c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233091906140b2565b6001600160a01b031663ca0e7f0888836040518363ffffffff1660e01b815260040161235d92919061487d565b600060405180830381600087803b15801561237757600080fd5b505af115801561238b573d6000803e3d6000fd5b505050505050505050509695505050505050565b6123a7612c1c565b61242783846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061240d9190614033565b603c60008560405180602001604052806000815250610c96565b6001600160a01b038216156124445761243f826131ab565b6125b3565b60006124586001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af41580156124b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124dc91906148ad565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612521573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254591906140b2565b90506125b1816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ac91906140b2565b6131ab565b505b6125c3634a531f3360e01b610823565b6125d363b68d180960e01b610823565b505050565b600080516020614c36833981519152805460009190600160a01b900460ff16612602576000611b17565b638fb3603760e01b91505090565b61261c336000366131bc565b600061262784612c55565b90506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268d91906140b2565b90506000826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f391906140b2565b9050600073__$3bac17678db7ae928afa209f2f44deec9c$__634c41dd96866101e00151876101c0015161272791906148ca565b6040518263ffffffff1660e01b815260040161274591815260200190565b602060405180830381865af4158015612762573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127869190614033565b90506127928787610850565b15612a9b57610200850151604051632620eecb60e11b815260009173__$3bac17678db7ae928afa209f2f44deec9c$__91634c41dd96916127d99160040190815260200190565b602060405180830381865af41580156127f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061281a9190614033565b6002546040516374933c2f60e01b81529192506001600160a01b0316906374933c2f906128519086908c90869088906004016148dd565b600060405180830381600087803b15801561286b57600080fd5b505af115801561287f573d6000803e3d6000fd5b5050604051631d3be47760e01b8152600092506001600160a01b0387169150631d3be477906128b2908b90600401613c94565b600060405180830381865afa1580156128cf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128f7919081019061412a565b905060018160800181815161290c919061490f565b63ffffffff169052506040516330882f0760e11b81526001600160a01b038516906361105e0e90612946908b90859060ff90600401614933565b600060405180830381600087803b15801561296057600080fd5b505af1158015612974573d6000803e3d6000fd5b505082516040516313d8ebc960e11b81526001600160601b039091166004820152600092506001600160a01b03881691506327b1d79290602401600060405180830381865afa1580156129cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129f39190810190614622565b9050612a038160600151846132c2565b6001600160601b0316606082015260808101805160019190612a2690839061490f565b63ffffffff169052508151604051631e40b36360e01b81526001600160a01b03871691631e40b36391612a619190859060ff9060040161496b565b600060405180830381600087803b158015612a7b57600080fd5b505af1158015612a8f573d6000803e3d6000fd5b50505050505050611577565b600260009054906101000a90046001600160a01b03166001600160a01b03166374933c2f838973__$3bac17678db7ae928afa209f2f44deec9c$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015612b0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b2e9190614033565b856040518563ffffffff1660e01b8152600401612b4e94939291906148dd565b600060405180830381600087803b158015612b6857600080fd5b505af1158015612b7c573d6000803e3d6000fd5b5050505050505050505050565b600080516020614c36833981519152546001600160a01b031690565b612bad612c1c565b612bb68161186b565b612bbe61143b565b6001600160a01b038216612be55760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020614c1683398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b600080516020614c5683398151915254600160401b900460ff16612c5357604051631afcd79f60e31b815260040160405180910390fd5b565b600080612c6a6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03851660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015612cb9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ce1919081019061498d565b6020015190506000612cfb6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015612d4a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d72919081019061498d565b60800151949350505050565b6000612d886137b5565b6000612d9c6001546001600160a01b031690565b604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa158015612de2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e069190614033565b9250612e128385613350565b8092508193505050806001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015612e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7c91906140b2565b6080830151604051629b7b3560e61b81526001600160a01b0391821660048201529116906326decd4090602401602060405180830381865afa158015612ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eea9190614095565b15612f1357604051637d71120960e11b81526001600160601b03841660048201526024016106d7565b9193909250565b60405163f0ea17c360e01b81526001600160601b03821660048201526000906001600160a01b0384169063f0ea17c390602401600060405180830381865afa158015612f6a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612f929190810190614a2d565b602001519392505050565b61018e612c1c565b600080516020614c568339815191528054600160401b810460ff1615906001600160401b0316600081158015612fd85750825b90506000826001600160401b03166001148015612ff45750303b155b905081158015613002575080155b156130205760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561304a57845460ff60401b1916600160401b1785555b600080878060200190518101906130619190614b01565b925090506130718160008b61239f565b61308060646134f6565b6134f6565b600280546001600160a01b0319166001600160a01b03929092169190911790556130ab61307b604690565b600380546001600160a01b0319166001600160a01b03929092169190911790556130d661307b602890565b600480546001600160a01b0319166001600160a01b03929092169190911790556131066375cca25f60e01b610823565b5050831561157757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200161156e565b600080516020614c3683398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6131b3612c1c565b61197681613603565b600080516020614c368339815191526000806131f76131d9612b89565b87306131e9600460008a8c614b30565b6131f291614b5a565b613614565b91509150816132ba5763ffffffff81161561329757825460ff60a01b1916600160a01b178355613225612b89565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b815260040161325493929190614b8a565b600060405180830381600087803b15801561326e57600080fd5b505af1158015613282573d6000803e3d6000fd5b5050845460ff60a01b19168555506132ba9050565b60405162d1953b60e31b81526001600160a01b03871660048201526024016106d7565b505050505050565b60405163274acb3560e01b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063274acb3590604401602060405180830381865af4158015613325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133499190614033565b9392505050565b6133586137b5565b60008061336d6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03871660048201529091506001600160a01b0382169063a48f42e090602401600060405180830381865afa1580156133bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526133e5919081019061498d565b925060ff841660641461344357604083015160ff85811691161461343e57604080840151905163b83d92cb60e01b81526001600160601b038716600482015260ff808716602483015290911660448201526064016106d7565b6134df565b61345e8360400151613453606e90565b60ff90811691161490565b8061347457506134748360400151613453608c90565b8061348a575061348a8360400151613453607890565b806134a057506134a08360400151613453608290565b6134df57604080840151905163b83d92cb60e01b81526001600160601b038716600482015260ff808716602483015290911660448201526064016106d7565b6134ec8360200151613720565b9150509250929050565b600061350a6001546001600160a01b031690565b6001600160a01b031663d39e604383613521610401565b60405163c9e66e2960e01b815262ffffff909116600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__9063c9e66e2990602401602060405180830381865af4158015613576573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061359a91906148ad565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa1580156135df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9091906140b2565b61360b612c1c565b6119768161314a565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b179052516136839190614bca565b600060405180830381855afa9150503d80600081146136be576040519150601f19603f3d011682016040523d82523d6000602084013e6136c3565b606091505b509150915081156137155760408151106136f557808060200190518101906136eb9190614be6565b9094509250613715565b602081511061371557808060200190518101906137129190614095565b93505b505094509492505050565b60006137346001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015613783573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137ab919081019061498d565b6080015192915050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561380557600080fd5b81356001600160e01b03198116811461334957600080fd5b60005b83811015613838578181015183820152602001613820565b50506000910152565b6000815180845261385981602086016020860161381d565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516138d660c08401826001600160a01b03169052565b5060c083015160e0808401526138f0610100840182613841565b949350505050565b6001600160601b038116811461197657600080fd5b8035613918816138f8565b919050565b6001600160c01b03198116811461197657600080fd5b6000806040838503121561394657600080fd5b8235613951816138f8565b915060208301356139618161391d565b809150509250929050565b6001600160a01b038116811461197657600080fd5b60ff8116811461197657600080fd5b801515811461197657600080fd5b803561391881613990565b634e487b7160e01b600052604160045260246000fd5b60405161024081016001600160401b03811182821017156139e2576139e26139a9565b60405290565b60405160e081016001600160401b03811182821017156139e2576139e26139a9565b60405161012081016001600160401b03811182821017156139e2576139e26139a9565b60405160a081016001600160401b03811182821017156139e2576139e26139a9565b60405160c081016001600160401b03811182821017156139e2576139e26139a9565b604051601f8201601f191681016001600160401b0381118282101715613a9957613a996139a9565b604052919050565b60006001600160401b03821115613aba57613aba6139a9565b50601f01601f191660200190565b600082601f830112613ad957600080fd5b8135613aec613ae782613aa1565b613a71565b818152846020838601011115613b0157600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613b3757600080fd5b8635613b428161396c565b95506020870135613b52816138f8565b94506040870135613b6281613981565b93506060870135613b7281613990565b92506080870135613b828161396c565b915060a08701356001600160401b03811115613b9d57600080fd5b613ba989828a01613ac8565b9150509295509295509295565b63ffffffff8116811461197657600080fd5b60008060008060008060008060006101208a8c031215613be757600080fd5b89356001600160401b0380821115613bfe57600080fd5b613c0a8d838e01613ac8565b9a5060208c0135995060408c0135985060608c0135975060808c01359150613c3182613bb6565b90955060a08b013590613c4382613bb6565b819550613c5260c08d0161399e565b9450613c6060e08d0161399e565b93506101008c0135915080821115613c7757600080fd5b50613c848c828d01613ac8565b9150509295985092959850929598565b6001600160c01b031991909116815260200190565b600060208284031215613cbb57600080fd5b81356001600160401b03811115613cd157600080fd5b6138f084828501613ac8565b60008060408385031215613cf057600080fd5b8235613cfb8161396c565b915060208301356001600160401b03811115613d1657600080fd5b6134ec85828601613ac8565b600080600060608486031215613d3757600080fd5b8335613d428161396c565b92506020840135613d528161391d565b915060408401356001600160401b03811115613d6d57600080fd5b613d7986828701613ac8565b9150509250925092565b600060208284031215613d9557600080fd5b81356133498161396c565b64ffffffffff8116811461197657600080fd5b60008060008060008060c08789031215613dcc57600080fd5b8635613dd7816138f8565b955060208701356001600160401b0380821115613df357600080fd5b613dff8a838b01613ac8565b96506040890135955060608901359150613e1882613bb6565b909350608088013590613e2a82613da0565b90925060a08801359080821115613e4057600080fd5b50613ba989828a01613ac8565b600080600060608486031215613e6257600080fd5b8335613e6d8161396c565b92506020840135613e7d8161396c565b91506040840135613e8d8161396c565b809150509250925092565b6000806000838503610280811215613eaf57600080fd5b8435613eba816138f8565b93506020850135613eca8161391d565b9250610240603f198201811315613ee057600080fd5b613ee86139bf565b9150613ef66040870161390d565b8252613f046060870161390d565b6020830152613f156080870161390d565b604083015260a0860135606083015260c0860135608083015260e086013560a08301526101008087013560c08401526101208088013560e085015261014080890135838601526101609250828901358286015261018091508189013581860152506101a080890135838601526101c0925082890135828601526101e0915081890135818601525061020080890135838601526102209250828901358286015283890135818601525050610260870135818401525050809150509250925092565b60008060408385031215613fe857600080fd5b8235613ff38161396c565b915060208301356139618161396c565b60006020828403121561401557600080fd5b815162ffffff8116811461334957600080fd5b8051613918816138f8565b60006020828403121561404557600080fd5b8151613349816138f8565b600181811c9082168061406457607f821691505b60208210810361408457634e487b7160e01b600052602260045260246000fd5b50919050565b805161391881613990565b6000602082840312156140a757600080fd5b815161334981613990565b6000602082840312156140c457600080fd5b81516133498161396c565b600082601f8301126140e057600080fd5b81516140ee613ae782613aa1565b81815284602083860101111561410357600080fd5b6138f082602083016020870161381d565b805161391881613bb6565b805161391881613da0565b60006020828403121561413c57600080fd5b81516001600160401b038082111561415357600080fd5b9083019060e0828603121561416757600080fd5b61416f6139e8565b61417883614028565b815260208301518281111561418c57600080fd5b614198878286016140cf565b602083015250604083015160408201526141b460608401614114565b60608201526141c560808401614114565b60808201526141d660a0840161411f565b60a082015260c0830151828111156141ed57600080fd5b6141f9878286016140cf565b60c08301525095945050505050565b60006020828403121561421a57600080fd5b815161334981613da0565b601f8211156125d357600081815260208120601f850160051c8101602086101561424c5750805b601f850160051c820191505b818110156132ba57828155600101614258565b81516001600160401b03811115614284576142846139a9565b614298816142928454614050565b84614225565b602080601f8311600181146142cd57600084156142b55750858301515b600019600386901b1c1916600185901b1785556132ba565b600085815260208120601f198616915b828110156142fc578886015182559484019460019091019084016142dd565b508582101561431a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006040828403121561433c57600080fd5b604051604081018181106001600160401b038211171561435e5761435e6139a9565b604052825181526020928301519281019290925250919050565b6000610200828403121561438b57600080fd5b614393613a0a565b61439c83614028565b81526143aa60208401614028565b60208201526143bc846040850161432a565b60408201526143ce846080850161432a565b60608201526143e08460c0850161432a565b60808201526101006143f48582860161432a565b60a083015261440785610140860161432a565b60c083015261441a85610180860161432a565b60e083015261442d856101c0860161432a565b908201529392505050565b60006020828403121561444a57600080fd5b5051919050565b6001600160601b03831681526040602082015260006138f06040830184613841565b60006020828403121561448557600080fd5b81516133498161391d565b6001600160401b0360c01b8316815260406020820152600082516101208060408501526144c1610160850183613841565b91506020850151606085015260408501516080850152606085015160a085015260808501516144f860c086018263ffffffff169052565b5060a085015163ffffffff811660e08601525060c08501516101006145208187018315159052565b60e087015115159286019290925250840151603f19848303016101408501526145498282613841565b9695505050505050565b60006020828403121561456557600080fd5b81516001600160401b038116811461334957600080fd5b6001600160401b0360c01b81511682526020810151151560208301526000604082015160a060408501526145b360a0850182613841565b90506001600160601b03606084015116606085015263ffffffff60808401511660808501528091505092915050565b6001600160601b03831681526040602082015260006138f0604083018461457c565b80516139188161396c565b6020815260006133496020830184613841565b60006020828403121561463457600080fd5b81516001600160401b038082111561464b57600080fd5b9083019060a0828603121561465f57600080fd5b614667613a2d565b82516146728161391d565b8152602083015161468281613990565b602082015260408301518281111561469957600080fd5b6146a5878286016140cf565b604083015250606083015191506146bb826138f8565b816060820152608083015192506146d183613bb6565b6080810192909252509392505050565b6000602082840312156146f357600080fd5b81516001600160401b038082111561470a57600080fd5b90830190610120828603121561471f57600080fd5b614727613a0a565b82518281111561473657600080fd5b614742878286016140cf565b82525060208301516020820152604083015160408201526060830151606082015261476f60808401614114565b608082015261478060a08401614114565b60a082015261479160c0840161408a565b60c08201526147a260e0840161408a565b60e082015261010080840151838111156147bb57600080fd5b6147c7888287016140cf565b918301919091525095945050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610c9057610c906147d8565b6001600160601b0381511682526000602082015160e0602085015261482960e0850182613841565b905060408301516040850152606083015163ffffffff8082166060870152806080860151166080870152505064ffffffffff60a08401511660a085015260c083015184820360c0860152610c8b8282613841565b6001600160401b0360c01b831681526040602082015260006138f06040830184614801565b805161391881613981565b6000602082840312156148bf57600080fd5b815161334981613981565b80820180821115610c9057610c906147d8565b6001600160a01b039490941684526001600160601b039283166020850152908216604084015216606082015260800190565b63ffffffff81811683821601908082111561492c5761492c6147d8565b5092915050565b6001600160401b0360c01b841681526060602082015260006149586060830185614801565b905060ff83166040830152949350505050565b6001600160601b0384168152606060208201526000614958606083018561457c565b60006020828403121561499f57600080fd5b81516001600160401b03808211156149b657600080fd5b9083019060e082860312156149ca57600080fd5b6149d26139e8565b6149db83614028565b81526149e960208401614028565b60208201526149fa604084016148a2565b6040820152614a0b6060840161408a565b6060820152614a1c60808401614604565b60808201526141d660a08401614604565b600060208284031215614a3f57600080fd5b81516001600160401b0380821115614a5657600080fd5b9083019060c08286031215614a6a57600080fd5b614a72613a4f565b825182811115614a8157600080fd5b614a8d878286016140cf565b825250614a9c60208401614028565b6020820152614aad60408401614604565b6040820152614abe60608401614604565b6060820152614acf60808401614604565b608082015260a083015182811115614ae657600080fd5b614af2878286016140cf565b60a08301525095945050505050565b60008060408385031215614b1457600080fd5b8251614b1f8161396c565b60208401519092506139618161396c565b60008085851115614b4057600080fd5b83861115614b4d57600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015614b825780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008251614bdc81846020870161381d565b9190910192915050565b60008060408385031215614bf957600080fd5b8251614c0481613990565b602084015190925061396181613bb656fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220a38aee41761450b279cb0218ab4cbd0f51a88de57f62466a56edd1a4024c1f4064736f6c63430008140033",
998
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80635dcb3bae116100de5780638e32e97911610097578063ada9652e11610071578063ada9652e146103c2578063b68d1809146103d7578063bf7e214f146103e6578063f7c34ee0146103ee57600080fd5b80638e32e9791461037b5780638fb360371461038e578063ab54c545146103af57600080fd5b80635dcb3bae146102f1578063644c45e01461031c578063675393bf1461033a5780637a9e5e4b1461034d578063893d20e8146103605780638dd2b7811461036857600080fd5b806325d073841161014b578063329d6e7411610125578063329d6e741461029e57806336fc697e146102b157806349bb9e4b146102b95780635ab1bd53146102cc57600080fd5b806325d073841461025857806327bb7a331461026b5780632b5198b11461027e57600080fd5b806301ffc9a7146101935780630d8e6e2c146101d55780630fec111c146101f1578063138461e0146102065780631eff4b2214610210578063214cdb8014610245575b600080fd5b6101c06101a13660046137f3565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6101dd610401565b60405162ffffff90911681526020016101cc565b6101f961048b565b6040516101cc919061386d565b61020e61061c565b005b6102377f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b6040519081526020016101cc565b61020e6102533660046137f3565b610823565b6101c0610266366004613933565b610850565b61020e610279366004613b1e565b610c96565b61029161028c366004613bc8565b610d3b565b6040516101cc9190613c94565b61020e6102ac366004613ca9565b6112ee565b61020e61143b565b61020e6102c7366004613cdd565b611481565b6001546001600160a01b03165b6040516001600160a01b0390911681526020016101cc565b6103046102ff366004613d22565b611580565b6040516001600160601b0390911681526020016101cc565b600080516020614c16833981519152546001600160601b0316610304565b61020e610348366004613d83565b61186b565b61020e61035b366004613d83565b611979565b6102d96119fc565b610291610376366004613db3565b611b33565b61020e610389366004613e4d565b61239f565b6103966125d8565b6040516001600160e01b031990911681526020016101cc565b61020e6103bd366004613e98565b612610565b610237600080516020614c1683398151915281565b604051607881526020016101cc565b6102d9612b89565b61020e6103fc366004613fd5565b612ba5565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$8eede297b65ed5a56eb3f84d8232ae93f5$__90632efe011390606401602060405180830381865af4158015610462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104869190614003565b905090565b6104936137b5565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30090506040518060e0016040528073__$94a2c899be079b00d952d0d84fffaa5c34$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af415801561050c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105309190614033565b6001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a0016105786119fc565b6001600160a01b0316815260200182600101805461059590614050565b80601f01602080910402602001604051908101604052809291908181526020018280546105c190614050565b801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b505050505081525091505090565b6000600080516020614c1683398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af415801561068b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106af9190614095565b156106e05780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306106f36001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa15801561073b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075f9190614095565b6107875760405163b9304b0d60e01b81526001600160a01b03821660048201526024016106d7565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa1580156107db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ff9190614033565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b61082b612c1c565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b604051630a4d29dd60e31b81526001600160601b038316600482015260009073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af41580156108ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cf9190614095565b806109575750604051637bc32ecf60e01b815273__$05887d5853069c88bcd4c0a2107db45f29$__90637bc32ecf90610916906001600160c01b0319861690600401613c94565b602060405180830381865af4158015610933573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190614095565b1561096457506000610c90565b600061096f84612c55565b90506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d591906140b2565b6001600160a01b0316631d3be477856040518263ffffffff1660e01b8152600401610a009190613c94565b600060405180830381865afa158015610a1d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a45919081019061412a565b8051604051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af4158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190614095565b15610ad757600092505050610c90565b60a081015160405163790a38ad60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015610b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b579190614095565b80610c69575060a0810151604051638d38cd4b60e01b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__90638d38cd4b90602401602060405180830381865af4158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd9190614095565b8015610c695750610c6973__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015610c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c549190614208565b8260a0015164ffffffffff9081169116111590565b9250828015610c8b5750806060015163ffffffff16816080015163ffffffff16105b925050505b92915050565b610c9e612c1c565b610ca88287612ba5565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610d31838261426b565b5050505050505050565b60008080610d496078612d7e565b92505091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db291906140b2565b90506000610dc08285612f1a565b90506000836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2691906140b2565b6040516302d764c760e21b81526001600160601b03841660048201526001600160a01b039190911690630b5d931c9060240161020060405180830381865afa158015610e76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9a9190614378565b60a08101515160405163771602f760e01b81526004810191909152602481018e905290915060009073__$bf7bc340cbb9229ef1de2c568356e67902$__9063771602f790604401602060405180830381865af4158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f229190614438565b60808301515160405163b67d77c560e01b815260048101919091526024810182905290915060009073__$bf7bc340cbb9229ef1de2c568356e67902$__9063b67d77c590604401602060405180830381865af4158015610f86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610faa9190614438565b90508e73__$bf7bc340cbb9229ef1de2c568356e67902$__6321e5749b9091836040518363ffffffff1660e01b8152600401610ff0929190918252602082015260400190565b602060405180830381865af415801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190614095565b15611148578e73__$bf7bc340cbb9229ef1de2c568356e67902$__6344aa683690916040518263ffffffff1660e01b815260040161107191815260200190565b602060405180830381865af415801561108e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b29190614438565b604051632255341b60e11b81526004810183905273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111269190614438565b60405163e2ed03dd60e01b8152600481019290925260248201526044016106d7565b5050505073__$1919c6d2c69d787ccb2653a371d7e5737d$__63578c3039848f6040518363ffffffff1660e01b8152600401611185929190614451565b602060405180830381865af41580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c69190614473565b935060006040518061012001604052808f81526020018e81526020018d81526020018c81526020018b63ffffffff1681526020018a63ffffffff16815260200189151581526020018815158152602001878152509050826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561125a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127e91906140b2565b6001600160a01b03166330a130ba86836040518363ffffffff1660e01b81526004016112ab929190614490565b600060405180830381600087803b1580156112c557600080fd5b505af11580156112d9573d6000803e3d6000fd5b50505050505050509998505050505050505050565b73__$8eede297b65ed5a56eb3f84d8232ae93f5$__63a123b37c611310610401565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015611350573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113749190614553565b600080516020614c568339815191528054600160401b900460ff16806113a7575080546001600160401b03808416911610155b156113c55760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b1781556113ef83612f9d565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050565b611443612c1c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600080516020614c568339815191528054600160401b810460ff1615906001600160401b03166000811580156114b45750825b90506000826001600160401b031660011480156114d05750303b155b9050811580156114de575080155b156114fc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561152657845460ff60401b1916600160401b1785555b6115308787612fa5565b831561157757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b6000808061158e6078612d7e565b6004546040805160e0810180835263bc1b392d60e01b905290519496509194506001600160a01b0316926357a8fba79250819073__$94a2c899be079b00d952d0d84fffaa5c34$__9063bc1b392d9060e4808501916020918187030181865af41580156115ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116239190614033565b6001600160601b03168152602001856001600160601b03168152602001611648607a90565b60ff16815260200160011515815260200160006001600160a01b03168152602001896001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b81526004016116a7919061386d565b6020604051808303816000875af11580156116c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ea9190614033565b925060006040518060a00160405280876001600160c01b031916815260200160011515815260200186815260200173__$3bac17678db7ae928afa209f2f44deec9c$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015611761573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117859190614033565b6001600160601b03168152602001600063ffffffff168152509050816001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180291906140b2565b6001600160a01b0316637cca112485836040518363ffffffff1660e01b815260040161182f9291906145e2565b600060405180830381600087803b15801561184957600080fd5b505af115801561185d573d6000803e3d6000fd5b505050505050509392505050565b611873612c1c565b806001600160a01b03163b6000036118a95760405163fdeac91f60e01b81526001600160a01b03821660048201526024016106d7565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152633135064760e11b60048201526301ffc9a790602401602060405180830381865afa925050508015611923575060408051601f3d908101601f1916820190925261192091810190614095565b60015b61194b5760405163fdeac91f60e01b81526001600160a01b03821660048201526024016106d7565b806119745760405163fdeac91f60e01b81526001600160a01b03831660048201526024016106d7565b505b50565b33611982612b89565b6001600160a01b0316816001600160a01b0316146119bd5760405162d1953b60e31b81526001600160a01b03821660048201526024016106d7565b816001600160a01b03163b6000036119f3576040516361798f2f60e11b81526001600160a01b03831660048201526024016106d7565b6119748261314a565b600080600080516020614c1683398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611a6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a909190614095565b15611b1d576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1791906140b2565b91505090565b54600160601b90046001600160a01b0316919050565b60008080611b416078612d7e565b92505091508751600003611b6a5787604051634fad6a5360e11b81526004016106d7919061460f565b60405163790a38ad60e01b815264ffffffffff8616600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063790a38ad90602401602060405180830381865af4158015611bc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be49190614095565b15611c0b5760405163df85467b60e01b815264ffffffffff861660048201526024016106d7565b6000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6f91906140b2565b6040516313d8ebc960e11b81526001600160601b038c1660048201529091506000906001600160a01b038316906327b1d79290602401600060405180830381865afa158015611cc2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cea9190810190614622565b516040516368322c6360e11b81529091506000906001600160a01b0384169063d06458c690611d1d908590600401613c94565b600060405180830381865afa158015611d3a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611d6291908101906146e1565b90508863ffffffff16816080015163ffffffff161015611da3576080810151604051636fcee12560e01b815263ffffffff90911660048201526024016106d7565b60208101518a1015611ebf576020810151604051632255341b60e11b8152600481019190915273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611e05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e299190614438565b604051632255341b60e11b8152600481018c905273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9d9190614438565b6040516338a25a8b60e21b8152600481019290925260248201526044016106d7565b60408101518a1115611fdb576040818101519051632255341b60e11b8152600481019190915273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f459190614438565b604051632255341b60e11b8152600481018c905273__$bf7bc340cbb9229ef1de2c568356e67902$__906344aa683690602401602060405180830381865af4158015611f95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb99190614438565b604051631e1ea4f360e31b8152600481019290925260248201526044016106d7565b8060a0015163ffffffff1673__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af415801561202f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120539190614208565b604051633682752160e21b815264ffffffffff909116600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063da09d48490602401602060405180830381865af41580156120aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ce9190614438565b604051633682752160e21b815264ffffffffff8b16600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063da09d48490602401602060405180830381865af4158015612124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121489190614438565b61215291906147ee565b11156121fe5760a0810151604051633682752160e21b815264ffffffffff8a16600482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063da09d48490602401602060405180830381865af41580156121b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d79190614438565b6040516331fa6ab160e11b815263ffffffff909216600483015260248201526044016106d7565b604051631f849e6b60e11b815273__$05887d5853069c88bcd4c0a2107db45f29$__90633f093cd6906122379088908f90600401614451565b602060405180830381865af4158015612254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122789190614473565b955060006040518060e001604052808e6001600160601b031681526020018d81526020018c81526020018b63ffffffff168152602001600063ffffffff1681526020018a64ffffffffff168152602001898152509050846001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561230c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233091906140b2565b6001600160a01b031663ca0e7f0888836040518363ffffffff1660e01b815260040161235d92919061487d565b600060405180830381600087803b15801561237757600080fd5b505af115801561238b573d6000803e3d6000fd5b505050505050505050509695505050505050565b6123a7612c1c565b61242783846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061240d9190614033565b603c60008560405180602001604052806000815250610c96565b6001600160a01b038216156124445761243f826131ab565b6125b3565b60006124586001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af41580156124b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124dc91906148ad565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015612521573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254591906140b2565b90506125b1816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ac91906140b2565b6131ab565b505b6125c3634a531f3360e01b610823565b6125d363b68d180960e01b610823565b505050565b600080516020614c36833981519152805460009190600160a01b900460ff16612602576000611b17565b638fb3603760e01b91505090565b61261c336000366131bc565b600061262784612c55565b90506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015612669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268d91906140b2565b90506000826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f391906140b2565b9050600073__$3bac17678db7ae928afa209f2f44deec9c$__634c41dd96866101e00151876101c0015161272791906148ca565b6040518263ffffffff1660e01b815260040161274591815260200190565b602060405180830381865af4158015612762573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127869190614033565b90506127928787610850565b15612a9b57610200850151604051632620eecb60e11b815260009173__$3bac17678db7ae928afa209f2f44deec9c$__91634c41dd96916127d99160040190815260200190565b602060405180830381865af41580156127f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061281a9190614033565b6002546040516374933c2f60e01b81529192506001600160a01b0316906374933c2f906128519086908c90869088906004016148dd565b600060405180830381600087803b15801561286b57600080fd5b505af115801561287f573d6000803e3d6000fd5b5050604051631d3be47760e01b8152600092506001600160a01b0387169150631d3be477906128b2908b90600401613c94565b600060405180830381865afa1580156128cf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128f7919081019061412a565b905060018160800181815161290c919061490f565b63ffffffff169052506040516330882f0760e11b81526001600160a01b038516906361105e0e90612946908b90859060ff90600401614933565b600060405180830381600087803b15801561296057600080fd5b505af1158015612974573d6000803e3d6000fd5b505082516040516313d8ebc960e11b81526001600160601b039091166004820152600092506001600160a01b03881691506327b1d79290602401600060405180830381865afa1580156129cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129f39190810190614622565b9050612a038160600151846132c2565b6001600160601b0316606082015260808101805160019190612a2690839061490f565b63ffffffff169052508151604051631e40b36360e01b81526001600160a01b03871691631e40b36391612a619190859060ff9060040161496b565b600060405180830381600087803b158015612a7b57600080fd5b505af1158015612a8f573d6000803e3d6000fd5b50505050505050611577565b600260009054906101000a90046001600160a01b03166001600160a01b03166374933c2f838973__$3bac17678db7ae928afa209f2f44deec9c$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af4158015612b0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b2e9190614033565b856040518563ffffffff1660e01b8152600401612b4e94939291906148dd565b600060405180830381600087803b158015612b6857600080fd5b505af1158015612b7c573d6000803e3d6000fd5b5050505050505050505050565b600080516020614c36833981519152546001600160a01b031690565b612bad612c1c565b612bb68161186b565b612bbe61143b565b6001600160a01b038216612be55760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020614c1683398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b600080516020614c5683398151915254600160401b900460ff16612c5357604051631afcd79f60e31b815260040160405180910390fd5b565b600080612c6a6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03851660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015612cb9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ce1919081019061498d565b6020015190506000612cfb6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015612d4a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612d72919081019061498d565b60800151949350505050565b6000612d886137b5565b6000612d9c6001546001600160a01b031690565b604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa158015612de2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e069190614033565b9250612e128385613350565b8092508193505050806001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015612e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e7c91906140b2565b6080830151604051629b7b3560e61b81526001600160a01b0391821660048201529116906326decd4090602401602060405180830381865afa158015612ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eea9190614095565b15612f1357604051637d71120960e11b81526001600160601b03841660048201526024016106d7565b9193909250565b60405163f0ea17c360e01b81526001600160601b03821660048201526000906001600160a01b0384169063f0ea17c390602401600060405180830381865afa158015612f6a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612f929190810190614a2d565b602001519392505050565b61018e612c1c565b600080516020614c568339815191528054600160401b810460ff1615906001600160401b0316600081158015612fd85750825b90506000826001600160401b03166001148015612ff45750303b155b905081158015613002575080155b156130205760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561304a57845460ff60401b1916600160401b1785555b600080878060200190518101906130619190614b01565b925090506130718160008b61239f565b61308060646134f6565b6134f6565b600280546001600160a01b0319166001600160a01b03929092169190911790556130ab61307b604690565b600380546001600160a01b0319166001600160a01b03929092169190911790556130d661307b602890565b600480546001600160a01b0319166001600160a01b03929092169190911790556131066375cca25f60e01b610823565b5050831561157757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200161156e565b600080516020614c3683398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6131b3612c1c565b61197681613603565b600080516020614c368339815191526000806131f76131d9612b89565b87306131e9600460008a8c614b30565b6131f291614b5a565b613614565b91509150816132ba5763ffffffff81161561329757825460ff60a01b1916600160a01b178355613225612b89565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b815260040161325493929190614b8a565b600060405180830381600087803b15801561326e57600080fd5b505af1158015613282573d6000803e3d6000fd5b5050845460ff60a01b19168555506132ba9050565b60405162d1953b60e31b81526001600160a01b03871660048201526024016106d7565b505050505050565b60405163274acb3560e01b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063274acb3590604401602060405180830381865af4158015613325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133499190614033565b9392505050565b6133586137b5565b60008061336d6001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03871660048201529091506001600160a01b0382169063a48f42e090602401600060405180830381865afa1580156133bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526133e5919081019061498d565b925060ff841660641461344357604083015160ff85811691161461343e57604080840151905163b83d92cb60e01b81526001600160601b038716600482015260ff808716602483015290911660448201526064016106d7565b6134df565b61345e8360400151613453606e90565b60ff90811691161490565b8061347457506134748360400151613453608c90565b8061348a575061348a8360400151613453607890565b806134a057506134a08360400151613453608290565b6134df57604080840151905163b83d92cb60e01b81526001600160601b038716600482015260ff808716602483015290911660448201526064016106d7565b6134ec8360200151613720565b9150509250929050565b600061350a6001546001600160a01b031690565b6001600160a01b031663d39e604383613521610401565b60405163c9e66e2960e01b815262ffffff909116600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__9063c9e66e2990602401602060405180830381865af4158015613576573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061359a91906148ad565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa1580156135df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9091906140b2565b61360b612c1c565b6119768161314a565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b179052516136839190614bca565b600060405180830381855afa9150503d80600081146136be576040519150601f19603f3d011682016040523d82523d6000602084013e6136c3565b606091505b509150915081156137155760408151106136f557808060200190518101906136eb9190614be6565b9094509250613715565b602081511061371557808060200190518101906137129190614095565b93505b505094509492505050565b60006137346001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015613783573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137ab919081019061498d565b6080015192915050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561380557600080fd5b81356001600160e01b03198116811461334957600080fd5b60005b83811015613838578181015183820152602001613820565b50506000910152565b6000815180845261385981602086016020860161381d565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a08301516138d660c08401826001600160a01b03169052565b5060c083015160e0808401526138f0610100840182613841565b949350505050565b6001600160601b038116811461197657600080fd5b8035613918816138f8565b919050565b6001600160c01b03198116811461197657600080fd5b6000806040838503121561394657600080fd5b8235613951816138f8565b915060208301356139618161391d565b809150509250929050565b6001600160a01b038116811461197657600080fd5b60ff8116811461197657600080fd5b801515811461197657600080fd5b803561391881613990565b634e487b7160e01b600052604160045260246000fd5b60405161024081016001600160401b03811182821017156139e2576139e26139a9565b60405290565b60405160e081016001600160401b03811182821017156139e2576139e26139a9565b60405161012081016001600160401b03811182821017156139e2576139e26139a9565b60405160a081016001600160401b03811182821017156139e2576139e26139a9565b60405160c081016001600160401b03811182821017156139e2576139e26139a9565b604051601f8201601f191681016001600160401b0381118282101715613a9957613a996139a9565b604052919050565b60006001600160401b03821115613aba57613aba6139a9565b50601f01601f191660200190565b600082601f830112613ad957600080fd5b8135613aec613ae782613aa1565b613a71565b818152846020838601011115613b0157600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613b3757600080fd5b8635613b428161396c565b95506020870135613b52816138f8565b94506040870135613b6281613981565b93506060870135613b7281613990565b92506080870135613b828161396c565b915060a08701356001600160401b03811115613b9d57600080fd5b613ba989828a01613ac8565b9150509295509295509295565b63ffffffff8116811461197657600080fd5b60008060008060008060008060006101208a8c031215613be757600080fd5b89356001600160401b0380821115613bfe57600080fd5b613c0a8d838e01613ac8565b9a5060208c0135995060408c0135985060608c0135975060808c01359150613c3182613bb6565b90955060a08b013590613c4382613bb6565b819550613c5260c08d0161399e565b9450613c6060e08d0161399e565b93506101008c0135915080821115613c7757600080fd5b50613c848c828d01613ac8565b9150509295985092959850929598565b6001600160c01b031991909116815260200190565b600060208284031215613cbb57600080fd5b81356001600160401b03811115613cd157600080fd5b6138f084828501613ac8565b60008060408385031215613cf057600080fd5b8235613cfb8161396c565b915060208301356001600160401b03811115613d1657600080fd5b6134ec85828601613ac8565b600080600060608486031215613d3757600080fd5b8335613d428161396c565b92506020840135613d528161391d565b915060408401356001600160401b03811115613d6d57600080fd5b613d7986828701613ac8565b9150509250925092565b600060208284031215613d9557600080fd5b81356133498161396c565b64ffffffffff8116811461197657600080fd5b60008060008060008060c08789031215613dcc57600080fd5b8635613dd7816138f8565b955060208701356001600160401b0380821115613df357600080fd5b613dff8a838b01613ac8565b96506040890135955060608901359150613e1882613bb6565b909350608088013590613e2a82613da0565b90925060a08801359080821115613e4057600080fd5b50613ba989828a01613ac8565b600080600060608486031215613e6257600080fd5b8335613e6d8161396c565b92506020840135613e7d8161396c565b91506040840135613e8d8161396c565b809150509250925092565b6000806000838503610280811215613eaf57600080fd5b8435613eba816138f8565b93506020850135613eca8161391d565b9250610240603f198201811315613ee057600080fd5b613ee86139bf565b9150613ef66040870161390d565b8252613f046060870161390d565b6020830152613f156080870161390d565b604083015260a0860135606083015260c0860135608083015260e086013560a08301526101008087013560c08401526101208088013560e085015261014080890135838601526101609250828901358286015261018091508189013581860152506101a080890135838601526101c0925082890135828601526101e0915081890135818601525061020080890135838601526102209250828901358286015283890135818601525050610260870135818401525050809150509250925092565b60008060408385031215613fe857600080fd5b8235613ff38161396c565b915060208301356139618161396c565b60006020828403121561401557600080fd5b815162ffffff8116811461334957600080fd5b8051613918816138f8565b60006020828403121561404557600080fd5b8151613349816138f8565b600181811c9082168061406457607f821691505b60208210810361408457634e487b7160e01b600052602260045260246000fd5b50919050565b805161391881613990565b6000602082840312156140a757600080fd5b815161334981613990565b6000602082840312156140c457600080fd5b81516133498161396c565b600082601f8301126140e057600080fd5b81516140ee613ae782613aa1565b81815284602083860101111561410357600080fd5b6138f082602083016020870161381d565b805161391881613bb6565b805161391881613da0565b60006020828403121561413c57600080fd5b81516001600160401b038082111561415357600080fd5b9083019060e0828603121561416757600080fd5b61416f6139e8565b61417883614028565b815260208301518281111561418c57600080fd5b614198878286016140cf565b602083015250604083015160408201526141b460608401614114565b60608201526141c560808401614114565b60808201526141d660a0840161411f565b60a082015260c0830151828111156141ed57600080fd5b6141f9878286016140cf565b60c08301525095945050505050565b60006020828403121561421a57600080fd5b815161334981613da0565b601f8211156125d357600081815260208120601f850160051c8101602086101561424c5750805b601f850160051c820191505b818110156132ba57828155600101614258565b81516001600160401b03811115614284576142846139a9565b614298816142928454614050565b84614225565b602080601f8311600181146142cd57600084156142b55750858301515b600019600386901b1c1916600185901b1785556132ba565b600085815260208120601f198616915b828110156142fc578886015182559484019460019091019084016142dd565b508582101561431a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006040828403121561433c57600080fd5b604051604081018181106001600160401b038211171561435e5761435e6139a9565b604052825181526020928301519281019290925250919050565b6000610200828403121561438b57600080fd5b614393613a0a565b61439c83614028565b81526143aa60208401614028565b60208201526143bc846040850161432a565b60408201526143ce846080850161432a565b60608201526143e08460c0850161432a565b60808201526101006143f48582860161432a565b60a083015261440785610140860161432a565b60c083015261441a85610180860161432a565b60e083015261442d856101c0860161432a565b908201529392505050565b60006020828403121561444a57600080fd5b5051919050565b6001600160601b03831681526040602082015260006138f06040830184613841565b60006020828403121561448557600080fd5b81516133498161391d565b6001600160401b0360c01b8316815260406020820152600082516101208060408501526144c1610160850183613841565b91506020850151606085015260408501516080850152606085015160a085015260808501516144f860c086018263ffffffff169052565b5060a085015163ffffffff811660e08601525060c08501516101006145208187018315159052565b60e087015115159286019290925250840151603f19848303016101408501526145498282613841565b9695505050505050565b60006020828403121561456557600080fd5b81516001600160401b038116811461334957600080fd5b6001600160401b0360c01b81511682526020810151151560208301526000604082015160a060408501526145b360a0850182613841565b90506001600160601b03606084015116606085015263ffffffff60808401511660808501528091505092915050565b6001600160601b03831681526040602082015260006138f0604083018461457c565b80516139188161396c565b6020815260006133496020830184613841565b60006020828403121561463457600080fd5b81516001600160401b038082111561464b57600080fd5b9083019060a0828603121561465f57600080fd5b614667613a2d565b82516146728161391d565b8152602083015161468281613990565b602082015260408301518281111561469957600080fd5b6146a5878286016140cf565b604083015250606083015191506146bb826138f8565b816060820152608083015192506146d183613bb6565b6080810192909252509392505050565b6000602082840312156146f357600080fd5b81516001600160401b038082111561470a57600080fd5b90830190610120828603121561471f57600080fd5b614727613a0a565b82518281111561473657600080fd5b614742878286016140cf565b82525060208301516020820152604083015160408201526060830151606082015261476f60808401614114565b608082015261478060a08401614114565b60a082015261479160c0840161408a565b60c08201526147a260e0840161408a565b60e082015261010080840151838111156147bb57600080fd5b6147c7888287016140cf565b918301919091525095945050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610c9057610c906147d8565b6001600160601b0381511682526000602082015160e0602085015261482960e0850182613841565b905060408301516040850152606083015163ffffffff8082166060870152806080860151166080870152505064ffffffffff60a08401511660a085015260c083015184820360c0860152610c8b8282613841565b6001600160401b0360c01b831681526040602082015260006138f06040830184614801565b805161391881613981565b6000602082840312156148bf57600080fd5b815161334981613981565b80820180821115610c9057610c906147d8565b6001600160a01b039490941684526001600160601b039283166020850152908216604084015216606082015260800190565b63ffffffff81811683821601908082111561492c5761492c6147d8565b5092915050565b6001600160401b0360c01b841681526060602082015260006149586060830185614801565b905060ff83166040830152949350505050565b6001600160601b0384168152606060208201526000614958606083018561457c565b60006020828403121561499f57600080fd5b81516001600160401b03808211156149b657600080fd5b9083019060e082860312156149ca57600080fd5b6149d26139e8565b6149db83614028565b81526149e960208401614028565b60208201526149fa604084016148a2565b6040820152614a0b6060840161408a565b6060820152614a1c60808401614604565b60808201526141d660a08401614604565b600060208284031215614a3f57600080fd5b81516001600160401b0380821115614a5657600080fd5b9083019060c08286031215614a6a57600080fd5b614a72613a4f565b825182811115614a8157600080fd5b614a8d878286016140cf565b825250614a9c60208401614028565b6020820152614aad60408401614604565b6040820152614abe60608401614604565b6060820152614acf60808401614604565b608082015260a083015182811115614ae657600080fd5b614af2878286016140cf565b60a08301525095945050505050565b60008060408385031215614b1457600080fd5b8251614b1f8161396c565b60208401519092506139618161396c565b60008085851115614b4057600080fd5b83861115614b4d57600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015614b825780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008251614bdc81846020870161381d565b9190910192915050565b60008060408385031215614bf957600080fd5b8251614c0481613990565b602084015190925061396181613bb656fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220a38aee41761450b279cb0218ab4cbd0f51a88de57f62466a56edd1a4024c1f4064736f6c63430008140033",
999
+ "linkReferences": {
1000
+ "contracts/type/Amount.sol": {
1001
+ "AmountLib": [
1002
+ {
1003
+ "length": 20,
1004
+ "start": 6144
1005
+ },
1006
+ {
1007
+ "length": 20,
1008
+ "start": 10207
1009
+ },
1010
+ {
1011
+ "length": 20,
1012
+ "start": 10389
1013
+ },
1014
+ {
1015
+ "length": 20,
1016
+ "start": 11177
1017
+ },
1018
+ {
1019
+ "length": 20,
1020
+ "start": 13265
1021
+ }
1022
+ ]
1023
+ },
1024
+ "contracts/type/DistributorType.sol": {
1025
+ "DistributorTypeLib": [
1026
+ {
1027
+ "length": 20,
1028
+ "start": 4660
1029
+ }
1030
+ ]
1031
+ },
1032
+ "contracts/type/NftId.sol": {
1033
+ "NftIdLib": [
1034
+ {
1035
+ "length": 20,
1036
+ "start": 1451
1037
+ },
1038
+ {
1039
+ "length": 20,
1040
+ "start": 1847
1041
+ },
1042
+ {
1043
+ "length": 20,
1044
+ "start": 2391
1045
+ },
1046
+ {
1047
+ "length": 20,
1048
+ "start": 2895
1049
+ },
1050
+ {
1051
+ "length": 20,
1052
+ "start": 5801
1053
+ },
1054
+ {
1055
+ "length": 20,
1056
+ "start": 6936
1057
+ }
1058
+ ]
1059
+ },
1060
+ "contracts/type/Referral.sol": {
1061
+ "ReferralLib": [
1062
+ {
1063
+ "length": 20,
1064
+ "start": 2506
1065
+ },
1066
+ {
1067
+ "length": 20,
1068
+ "start": 8947
1069
+ }
1070
+ ]
1071
+ },
1072
+ "contracts/type/Timestamp.sol": {
1073
+ "TimestampLib": [
1074
+ {
1075
+ "length": 20,
1076
+ "start": 3039
1077
+ },
1078
+ {
1079
+ "length": 20,
1080
+ "start": 3173
1081
+ },
1082
+ {
1083
+ "length": 20,
1084
+ "start": 3279
1085
+ },
1086
+ {
1087
+ "length": 20,
1088
+ "start": 7276
1089
+ },
1090
+ {
1091
+ "length": 20,
1092
+ "start": 8398
1093
+ },
1094
+ {
1095
+ "length": 20,
1096
+ "start": 8534
1097
+ },
1098
+ {
1099
+ "length": 20,
1100
+ "start": 8656
1101
+ },
1102
+ {
1103
+ "length": 20,
1104
+ "start": 8799
1105
+ }
1106
+ ]
1107
+ },
1108
+ "contracts/type/UFixed.sol": {
1109
+ "UFixedLib": [
1110
+ {
1111
+ "length": 20,
1112
+ "start": 4010
1113
+ },
1114
+ {
1115
+ "length": 20,
1116
+ "start": 4146
1117
+ },
1118
+ {
1119
+ "length": 20,
1120
+ "start": 4245
1121
+ },
1122
+ {
1123
+ "length": 20,
1124
+ "start": 4383
1125
+ },
1126
+ {
1127
+ "length": 20,
1128
+ "start": 4526
1129
+ },
1130
+ {
1131
+ "length": 20,
1132
+ "start": 7857
1133
+ },
1134
+ {
1135
+ "length": 20,
1136
+ "start": 7973
1137
+ },
1138
+ {
1139
+ "length": 20,
1140
+ "start": 8141
1141
+ },
1142
+ {
1143
+ "length": 20,
1144
+ "start": 8257
1145
+ }
1146
+ ]
1147
+ },
1148
+ "contracts/type/Version.sol": {
1149
+ "VersionLib": [
1150
+ {
1151
+ "length": 20,
1152
+ "start": 1294
1153
+ },
1154
+ {
1155
+ "length": 20,
1156
+ "start": 5078
1157
+ },
1158
+ {
1159
+ "length": 20,
1160
+ "start": 13858
1161
+ }
1162
+ ],
1163
+ "VersionPartLib": [
1164
+ {
1165
+ "length": 20,
1166
+ "start": 9572
1167
+ }
1168
+ ]
1169
+ }
1170
+ },
1171
+ "deployedLinkReferences": {
1172
+ "contracts/type/Amount.sol": {
1173
+ "AmountLib": [
1174
+ {
1175
+ "length": 20,
1176
+ "start": 5914
1177
+ },
1178
+ {
1179
+ "length": 20,
1180
+ "start": 9977
1181
+ },
1182
+ {
1183
+ "length": 20,
1184
+ "start": 10159
1185
+ },
1186
+ {
1187
+ "length": 20,
1188
+ "start": 10947
1189
+ },
1190
+ {
1191
+ "length": 20,
1192
+ "start": 13035
1193
+ }
1194
+ ]
1195
+ },
1196
+ "contracts/type/DistributorType.sol": {
1197
+ "DistributorTypeLib": [
1198
+ {
1199
+ "length": 20,
1200
+ "start": 4430
1201
+ }
1202
+ ]
1203
+ },
1204
+ "contracts/type/NftId.sol": {
1205
+ "NftIdLib": [
1206
+ {
1207
+ "length": 20,
1208
+ "start": 1221
1209
+ },
1210
+ {
1211
+ "length": 20,
1212
+ "start": 1617
1213
+ },
1214
+ {
1215
+ "length": 20,
1216
+ "start": 2161
1217
+ },
1218
+ {
1219
+ "length": 20,
1220
+ "start": 2665
1221
+ },
1222
+ {
1223
+ "length": 20,
1224
+ "start": 5571
1225
+ },
1226
+ {
1227
+ "length": 20,
1228
+ "start": 6706
1229
+ }
1230
+ ]
1231
+ },
1232
+ "contracts/type/Referral.sol": {
1233
+ "ReferralLib": [
1234
+ {
1235
+ "length": 20,
1236
+ "start": 2276
1237
+ },
1238
+ {
1239
+ "length": 20,
1240
+ "start": 8717
1241
+ }
1242
+ ]
1243
+ },
1244
+ "contracts/type/Timestamp.sol": {
1245
+ "TimestampLib": [
1246
+ {
1247
+ "length": 20,
1248
+ "start": 2809
1249
+ },
1250
+ {
1251
+ "length": 20,
1252
+ "start": 2943
1253
+ },
1254
+ {
1255
+ "length": 20,
1256
+ "start": 3049
1257
+ },
1258
+ {
1259
+ "length": 20,
1260
+ "start": 7046
1261
+ },
1262
+ {
1263
+ "length": 20,
1264
+ "start": 8168
1265
+ },
1266
+ {
1267
+ "length": 20,
1268
+ "start": 8304
1269
+ },
1270
+ {
1271
+ "length": 20,
1272
+ "start": 8426
1273
+ },
1274
+ {
1275
+ "length": 20,
1276
+ "start": 8569
1277
+ }
1278
+ ]
1279
+ },
1280
+ "contracts/type/UFixed.sol": {
1281
+ "UFixedLib": [
1282
+ {
1283
+ "length": 20,
1284
+ "start": 3780
1285
+ },
1286
+ {
1287
+ "length": 20,
1288
+ "start": 3916
1289
+ },
1290
+ {
1291
+ "length": 20,
1292
+ "start": 4015
1293
+ },
1294
+ {
1295
+ "length": 20,
1296
+ "start": 4153
1297
+ },
1298
+ {
1299
+ "length": 20,
1300
+ "start": 4296
1301
+ },
1302
+ {
1303
+ "length": 20,
1304
+ "start": 7627
1305
+ },
1306
+ {
1307
+ "length": 20,
1308
+ "start": 7743
1309
+ },
1310
+ {
1311
+ "length": 20,
1312
+ "start": 7911
1313
+ },
1314
+ {
1315
+ "length": 20,
1316
+ "start": 8027
1317
+ }
1318
+ ]
1319
+ },
1320
+ "contracts/type/Version.sol": {
1321
+ "VersionLib": [
1322
+ {
1323
+ "length": 20,
1324
+ "start": 1064
1325
+ },
1326
+ {
1327
+ "length": 20,
1328
+ "start": 4848
1329
+ },
1330
+ {
1331
+ "length": 20,
1332
+ "start": 13628
1333
+ }
1334
+ ],
1335
+ "VersionPartLib": [
1336
+ {
1337
+ "length": 20,
1338
+ "start": 9342
1339
+ }
1340
+ ]
1341
+ }
1342
+ }
1343
+ }