@etherisc/gif-next 0.0.2-d5b7b78-706 → 0.0.2-d5fac82-078

Sign up to get free protection for your applications and to get access to all the features.
Files changed (453) hide show
  1. package/README.md +8 -84
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  3. package/artifacts/contracts/{components → distribution}/Distribution.sol/Distribution.json +90 -14
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1575 -0
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +851 -0
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/{components → distribution}/IDistributionComponent.sol/IDistributionComponent.json +145 -14
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  11. package/artifacts/contracts/{instance/service → distribution}/IDistributionService.sol/IDistributionService.json +110 -283
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +6 -6
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +310 -2004
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +104 -55
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +420 -2725
  20. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.dbg.json +4 -0
  21. package/artifacts/contracts/instance/InstanceAdmin.sol/InstanceAdmin.json +746 -0
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +188 -0
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +366 -71
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +179 -214
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +121 -95
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2847 -0
  32. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  33. package/artifacts/contracts/instance/{Cloneable.sol → base/Cloneable.sol}/Cloneable.json +1 -1
  34. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
  36. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  37. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  38. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +61 -12
  39. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +8 -8
  41. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/{ObjectManager.sol → base/ObjectManager.sol}/ObjectManager.json +3 -3
  43. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
  44. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +1 -130
  45. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
  46. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +1 -1
  47. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
  48. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
  49. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
  50. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
  51. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
  52. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  53. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1307 -0
  54. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  55. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +767 -0
  56. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  57. package/artifacts/contracts/{instance/service → pool}/IBundleService.sol/IBundleService.json +234 -129
  58. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  59. package/artifacts/contracts/{components → pool}/IPoolComponent.sol/IPoolComponent.json +162 -21
  60. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  61. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1077 -0
  62. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  63. package/artifacts/contracts/{components → pool}/Pool.sol/Pool.json +91 -21
  64. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  65. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1641 -0
  66. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  67. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +779 -0
  68. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  69. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +937 -0
  70. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  71. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +719 -0
  72. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  73. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1405 -0
  74. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  75. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +819 -0
  76. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  77. package/artifacts/contracts/{instance/service/IClaimService.sol/IClaimService.json → product/IApplicationService.sol/IApplicationService.json} +184 -100
  78. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  79. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +753 -0
  80. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  81. package/artifacts/contracts/{instance/service → product}/IPolicyService.sol/IPolicyService.json +211 -100
  82. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  83. package/artifacts/contracts/{instance/service/IApplicationService.sol/IApplicationService.json → product/IPricingService.sol/IPricingService.json} +120 -166
  84. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  85. package/artifacts/contracts/{components → product}/IProductComponent.sol/IProductComponent.json +152 -21
  86. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
  87. package/artifacts/contracts/{instance/service → product}/IProductService.sol/IProductService.json +86 -28
  88. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  89. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1300 -0
  90. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  91. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +811 -0
  92. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  93. package/artifacts/contracts/product/PricingService.sol/PricingService.json +1023 -0
  94. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  95. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +759 -0
  96. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  97. package/artifacts/contracts/{components → product}/Product.sol/Product.json +82 -22
  98. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
  99. package/artifacts/contracts/product/ProductService.sol/ProductService.json +883 -0
  100. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  101. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +711 -0
  102. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  103. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  104. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +110 -30
  105. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
  106. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +165 -84
  107. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
  108. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  109. package/artifacts/contracts/registry/Registry.sol/Registry.json +133 -45
  110. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.dbg.json +4 -0
  111. package/artifacts/contracts/registry/RegistryAdmin.sol/RegistryAdmin.json +305 -0
  112. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
  113. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +209 -104
  114. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
  115. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +103 -55
  116. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
  117. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +542 -86
  118. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
  119. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +20 -35
  120. package/artifacts/contracts/shared/AccessManagerCustom.sol/AccessManagerCustom.dbg.json +4 -0
  121. package/artifacts/contracts/shared/AccessManagerCustom.sol/AccessManagerCustom.json +1193 -0
  122. package/artifacts/contracts/shared/AccessManagerExtended.sol/AccessManagerExtended.dbg.json +4 -0
  123. package/artifacts/contracts/shared/AccessManagerExtended.sol/AccessManagerExtended.json +1715 -0
  124. package/artifacts/contracts/shared/AccessManagerExtendedInitializeable.sol/AccessManagerExtendedInitializeable.dbg.json +4 -0
  125. package/artifacts/contracts/shared/AccessManagerExtendedInitializeable.sol/AccessManagerExtendedInitializeable.json +1728 -0
  126. package/artifacts/contracts/shared/AccessManagerExtendedWithDisable.sol/AccessManagerExtendedWithDisable.dbg.json +4 -0
  127. package/artifacts/contracts/shared/AccessManagerExtendedWithDisable.sol/AccessManagerExtendedWithDisable.json +1747 -0
  128. package/artifacts/contracts/shared/AccessManagerExtendedWithDisableInitializeable.sol/AccessManagerExtendedWithDisableInitializeable.dbg.json +4 -0
  129. package/artifacts/contracts/shared/AccessManagerExtendedWithDisableInitializeable.sol/AccessManagerExtendedWithDisableInitializeable.json +1765 -0
  130. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  131. package/artifacts/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +3 -3
  132. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  133. package/artifacts/contracts/{components → shared}/Component.sol/Component.json +67 -7
  134. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  135. package/artifacts/contracts/{instance/base → shared}/ComponentService.sol/ComponentService.json +133 -35
  136. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  137. package/artifacts/contracts/shared/IAccessManagerExtended.sol/IAccessManagerExtended.dbg.json +4 -0
  138. package/artifacts/contracts/shared/IAccessManagerExtended.sol/IAccessManagerExtended.json +1562 -0
  139. package/artifacts/contracts/shared/IAccessManagerExtendedWithDisable.sol/IAccessManagerExtendedWithDisable.dbg.json +4 -0
  140. package/artifacts/contracts/shared/IAccessManagerExtendedWithDisable.sol/IAccessManagerExtendedWithDisable.json +1594 -0
  141. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  142. package/artifacts/contracts/{components → shared}/IComponent.sol/IComponent.json +138 -7
  143. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.json +0 -13
  145. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
  146. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +69 -9
  147. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  148. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +0 -13
  149. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
  150. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.json +0 -13
  151. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
  152. package/artifacts/contracts/shared/IService.sol/IService.json +85 -27
  153. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  154. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
  155. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +23 -43
  156. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
  157. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +80 -26
  158. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
  159. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +81 -33
  160. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  161. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +27 -21
  162. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
  163. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -15
  164. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
  165. package/artifacts/contracts/shared/Service.sol/Service.json +110 -28
  166. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
  167. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +24 -6
  168. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
  169. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
  170. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  171. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  172. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +523 -0
  173. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  174. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +786 -0
  175. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  176. package/artifacts/contracts/staking/StakingServiceManager.sol/StakingServiceManager.json +699 -0
  177. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  178. package/artifacts/contracts/{types → type}/AddressSet.sol/LibAddressSet.json +3 -3
  179. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  180. package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
  181. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  182. package/artifacts/contracts/{types → type}/Blocknumber.sol/BlocknumberLib.json +3 -3
  183. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  184. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
  185. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  186. package/artifacts/contracts/{types → type}/DistributorType.sol/DistributorTypeLib.json +5 -5
  187. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  188. package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
  189. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  190. package/artifacts/contracts/{types → type}/Key32.sol/Key32Lib.json +3 -3
  191. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  192. package/artifacts/contracts/{types → type}/NftId.sol/NftIdLib.json +5 -5
  193. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  194. package/artifacts/contracts/{types → type}/NftIdSet.sol/LibNftIdSet.json +3 -3
  195. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  196. package/artifacts/contracts/{types → type}/ObjectType.sol/ObjectTypeLib.json +3 -3
  197. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  198. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  199. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  200. package/artifacts/contracts/{types → type}/Referral.sol/ReferralLib.json +5 -5
  201. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  202. package/artifacts/contracts/{types → type}/RiskId.sol/RiskIdLib.json +5 -5
  203. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  204. package/artifacts/contracts/{types → type}/RoleId.sol/RoleIdLib.json +5 -5
  205. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  206. package/artifacts/contracts/{types → type}/Seconds.sol/SecondsLib.json +3 -3
  207. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  208. package/artifacts/contracts/{types → type}/StateId.sol/StateIdLib.json +3 -3
  209. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  210. package/artifacts/contracts/{types → type}/Timestamp.sol/TimestampLib.json +20 -7
  211. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  212. package/artifacts/contracts/{types → type}/UFixed.sol/MathLib.json +3 -3
  213. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  214. package/artifacts/contracts/{types → type}/UFixed.sol/UFixedLib.json +3 -3
  215. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  216. package/artifacts/contracts/{types → type}/Version.sol/VersionLib.json +3 -3
  217. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  218. package/artifacts/contracts/{types → type}/Version.sol/VersionPartLib.json +3 -3
  219. package/contracts/{components → distribution}/Distribution.sol +21 -16
  220. package/contracts/distribution/DistributionService.sol +351 -0
  221. package/contracts/distribution/DistributionServiceManager.sol +42 -0
  222. package/contracts/{components → distribution}/IDistributionComponent.sol +7 -7
  223. package/contracts/{instance/service → distribution}/IDistributionService.sol +19 -30
  224. package/contracts/instance/BundleManager.sol +8 -9
  225. package/contracts/instance/IInstance.sol +45 -66
  226. package/contracts/instance/IInstanceService.sol +21 -20
  227. package/contracts/instance/Instance.sol +121 -218
  228. package/contracts/instance/InstanceAdmin.sol +354 -0
  229. package/contracts/instance/InstanceAuthorizationsLib.sol +320 -0
  230. package/contracts/instance/InstanceReader.sol +96 -18
  231. package/contracts/instance/InstanceService.sol +120 -317
  232. package/contracts/instance/InstanceServiceManager.sol +11 -21
  233. package/contracts/instance/InstanceStore.sol +211 -0
  234. package/contracts/instance/{Cloneable.sol → base/Cloneable.sol} +1 -1
  235. package/contracts/instance/base/IKeyValueStore.sol +14 -10
  236. package/contracts/instance/base/ILifecycle.sol +3 -3
  237. package/contracts/instance/base/KeyValueStore.sol +39 -45
  238. package/contracts/instance/base/Lifecycle.sol +17 -5
  239. package/contracts/instance/{ObjectManager.sol → base/ObjectManager.sol} +7 -7
  240. package/contracts/instance/module/IAccess.sol +3 -13
  241. package/contracts/instance/module/IBundle.sol +10 -8
  242. package/contracts/instance/module/IComponents.sol +11 -5
  243. package/contracts/instance/module/IDistribution.sol +7 -6
  244. package/contracts/instance/module/IPolicy.sol +22 -16
  245. package/contracts/instance/module/IRisk.sol +1 -1
  246. package/contracts/instance/module/ISetup.sol +4 -4
  247. package/contracts/instance/module/ITreasury.sol +2 -2
  248. package/contracts/pool/BundleService.sol +384 -0
  249. package/contracts/pool/BundleServiceManager.sol +42 -0
  250. package/contracts/pool/IBundleService.sol +118 -0
  251. package/contracts/{components → pool}/IPoolComponent.sol +14 -13
  252. package/contracts/pool/IPoolService.sol +114 -0
  253. package/contracts/{components → pool}/Pool.sol +25 -22
  254. package/contracts/pool/PoolService.sol +404 -0
  255. package/contracts/pool/PoolServiceManager.sol +42 -0
  256. package/contracts/product/ApplicationService.sol +187 -0
  257. package/contracts/{instance/service → product}/ApplicationServiceManager.sol +11 -8
  258. package/contracts/product/ClaimService.sol +443 -0
  259. package/contracts/{instance/service → product}/ClaimServiceManager.sol +11 -8
  260. package/contracts/{instance/service → product}/IApplicationService.sol +14 -34
  261. package/contracts/product/IClaimService.sol +93 -0
  262. package/contracts/{instance/service → product}/IPolicyService.sol +34 -26
  263. package/contracts/product/IPricingService.sol +37 -0
  264. package/contracts/{components → product}/IProductComponent.sol +11 -10
  265. package/contracts/{instance/service → product}/IProductService.sol +10 -10
  266. package/contracts/product/PolicyService.sol +378 -0
  267. package/contracts/product/PolicyServiceManager.sol +42 -0
  268. package/contracts/product/PricingService.sol +276 -0
  269. package/contracts/product/PricingServiceManager.sol +42 -0
  270. package/contracts/{components → product}/Product.sol +160 -74
  271. package/contracts/product/ProductService.sol +212 -0
  272. package/contracts/product/ProductServiceManager.sol +42 -0
  273. package/contracts/registry/IRegistry.sol +28 -17
  274. package/contracts/registry/IRegistryService.sol +29 -37
  275. package/contracts/registry/Registry.sol +46 -48
  276. package/contracts/registry/RegistryAdmin.sol +143 -0
  277. package/contracts/registry/RegistryService.sol +37 -88
  278. package/contracts/registry/RegistryServiceManager.sol +21 -23
  279. package/contracts/registry/ReleaseManager.sol +318 -177
  280. package/contracts/registry/TokenRegistry.sol +6 -4
  281. package/contracts/shared/AccessManagerCustom.sol +736 -0
  282. package/contracts/shared/AccessManagerExtended.sol +469 -0
  283. package/contracts/shared/AccessManagerExtendedInitializeable.sol +13 -0
  284. package/contracts/shared/AccessManagerExtendedWithDisable.sol +125 -0
  285. package/contracts/shared/AccessManagerExtendedWithDisableInitializeable.sol +14 -0
  286. package/contracts/{components → shared}/Component.sol +31 -11
  287. package/contracts/shared/ComponentService.sol +141 -0
  288. package/contracts/shared/IAccessManagerExtended.sol +74 -0
  289. package/contracts/shared/IAccessManagerExtendedWithDisable.sol +17 -0
  290. package/contracts/{components → shared}/IComponent.sol +22 -6
  291. package/contracts/shared/INftOwnable.sol +1 -1
  292. package/contracts/shared/IPolicyHolder.sol +24 -10
  293. package/contracts/shared/IRegistryLinked.sol +0 -1
  294. package/contracts/shared/IService.sol +6 -6
  295. package/contracts/shared/IVersionable.sol +1 -1
  296. package/contracts/shared/NftOwnable.sol +13 -16
  297. package/contracts/shared/PolicyHolder.sol +31 -18
  298. package/contracts/shared/ProxyManager.sol +34 -3
  299. package/contracts/shared/Registerable.sol +12 -11
  300. package/contracts/shared/RegistryLinked.sol +0 -5
  301. package/contracts/shared/Service.sol +23 -9
  302. package/contracts/shared/TokenHandler.sol +4 -2
  303. package/contracts/shared/Versionable.sol +1 -1
  304. package/contracts/staking/IStakingService.sol +102 -0
  305. package/contracts/staking/StakingService.sol +169 -0
  306. package/contracts/staking/StakingServiceManager.sol +40 -0
  307. package/contracts/type/Amount.sol +109 -0
  308. package/contracts/{types → type}/ClaimId.sol +25 -2
  309. package/contracts/{types → type}/Fee.sol +16 -8
  310. package/contracts/{types → type}/NftIdSet.sol +1 -1
  311. package/contracts/{types → type}/ObjectType.sol +10 -5
  312. package/contracts/{types → type}/PayoutId.sol +33 -5
  313. package/contracts/{types → type}/RoleId.sol +50 -8
  314. package/contracts/{types → type}/StateId.sol +6 -2
  315. package/contracts/{types → type}/Timestamp.sol +5 -0
  316. package/package.json +1 -1
  317. package/artifacts/contracts/components/Component.sol/Component.dbg.json +0 -4
  318. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  319. package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +0 -4
  320. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  321. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  322. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  323. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  324. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  325. package/artifacts/contracts/instance/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +0 -4
  326. package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +0 -4
  327. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +0 -4
  328. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +0 -1311
  329. package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +0 -4
  330. package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.json +0 -4
  331. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +0 -4
  332. package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +0 -968
  333. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +0 -4
  334. package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +0 -665
  335. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +0 -4
  336. package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +0 -1093
  337. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +0 -4
  338. package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +0 -661
  339. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +0 -4
  340. package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +0 -754
  341. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +0 -4
  342. package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +0 -637
  343. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  344. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -1732
  345. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +0 -4
  346. package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +0 -805
  347. package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +0 -4
  348. package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +0 -4
  349. package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +0 -4
  350. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  351. package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +0 -4
  352. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  353. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +0 -428
  354. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  355. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +0 -4
  356. package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +0 -1021
  357. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +0 -4
  358. package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +0 -689
  359. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  360. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -824
  361. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +0 -4
  362. package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +0 -657
  363. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  364. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -777
  365. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +0 -4
  366. package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +0 -649
  367. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +0 -4
  368. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +0 -285
  369. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +0 -4
  370. package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +0 -107
  371. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  372. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  373. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  374. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -383
  375. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  376. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  377. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  378. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -521
  379. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  380. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -376
  381. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  382. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  383. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  384. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -104
  385. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  386. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -376
  387. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  388. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  389. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  390. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.json +0 -10
  391. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +0 -4
  392. package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.json +0 -100
  393. package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +0 -4
  394. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  395. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  396. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  397. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  398. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  399. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +0 -4
  400. package/artifacts/contracts/types/NumberId.sol/NumberIdLib.json +0 -100
  401. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  402. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +0 -4
  403. package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.json +0 -100
  404. package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +0 -4
  405. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  406. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  407. package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +0 -4
  408. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  409. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  410. package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +0 -4
  411. package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +0 -4
  412. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  413. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  414. package/contracts/instance/InstanceAccessManager.sol +0 -522
  415. package/contracts/instance/base/ComponentService.sol +0 -134
  416. package/contracts/instance/service/ApplicationService.sol +0 -350
  417. package/contracts/instance/service/BundleService.sol +0 -336
  418. package/contracts/instance/service/BundleServiceManager.sol +0 -51
  419. package/contracts/instance/service/ClaimService.sol +0 -151
  420. package/contracts/instance/service/DistributionService.sol +0 -467
  421. package/contracts/instance/service/DistributionServiceManager.sol +0 -51
  422. package/contracts/instance/service/IBundleService.sol +0 -62
  423. package/contracts/instance/service/IClaimService.sol +0 -61
  424. package/contracts/instance/service/IPoolService.sol +0 -35
  425. package/contracts/instance/service/PolicyService.sol +0 -403
  426. package/contracts/instance/service/PolicyServiceManager.sol +0 -54
  427. package/contracts/instance/service/PoolService.sol +0 -220
  428. package/contracts/instance/service/PoolServiceManager.sol +0 -51
  429. package/contracts/instance/service/ProductService.sol +0 -241
  430. package/contracts/instance/service/ProductServiceManager.sol +0 -54
  431. package/contracts/registry/RegistryAccessManager.sol +0 -216
  432. package/contracts/shared/ContractDeployerLib.sol +0 -72
  433. package/contracts/test/TestFee.sol +0 -25
  434. package/contracts/test/TestRegisterable.sol +0 -18
  435. package/contracts/test/TestRoleId.sol +0 -14
  436. package/contracts/test/TestService.sol +0 -25
  437. package/contracts/test/TestToken.sol +0 -26
  438. package/contracts/test/TestVersion.sol +0 -44
  439. package/contracts/test/TestVersionable.sol +0 -17
  440. package/contracts/test/Usdc.sol +0 -26
  441. package/contracts/types/ChainId.sol +0 -38
  442. package/contracts/types/NumberId.sol +0 -52
  443. /package/contracts/{instance → shared}/AccessManagerUpgradeableInitializeable.sol +0 -0
  444. /package/contracts/{types → type}/AddressSet.sol +0 -0
  445. /package/contracts/{types → type}/Blocknumber.sol +0 -0
  446. /package/contracts/{types → type}/DistributorType.sol +0 -0
  447. /package/contracts/{types → type}/Key32.sol +0 -0
  448. /package/contracts/{types → type}/NftId.sol +0 -0
  449. /package/contracts/{types → type}/Referral.sol +0 -0
  450. /package/contracts/{types → type}/RiskId.sol +0 -0
  451. /package/contracts/{types → type}/Seconds.sol +0 -0
  452. /package/contracts/{types → type}/UFixed.sol +0 -0
  453. /package/contracts/{types → type}/Version.sol +0 -0
@@ -44,203 +44,166 @@
44
44
  {
45
45
  "inputs": [
46
46
  {
47
- "internalType": "ObjectType",
48
- "name": "objectType",
49
- "type": "uint8"
50
- },
51
- {
52
- "internalType": "StateId",
53
- "name": "fromStateId",
54
- "type": "uint8"
55
- },
56
- {
57
- "internalType": "StateId",
58
- "name": "toStateId",
59
- "type": "uint8"
47
+ "internalType": "address",
48
+ "name": "instanceBundleManager",
49
+ "type": "address"
60
50
  }
61
51
  ],
62
- "name": "ErrorInvalidStateTransition",
52
+ "name": "ErrorInstanceBundleManagerAlreadySet",
63
53
  "type": "error"
64
54
  },
65
55
  {
66
56
  "inputs": [
67
57
  {
68
- "internalType": "NftId",
69
- "name": "nftId",
70
- "type": "uint96"
58
+ "internalType": "address",
59
+ "name": "instanceAuthority",
60
+ "type": "address"
71
61
  }
72
62
  ],
73
- "name": "ErrorNftOwnableAlreadyLinked",
63
+ "name": "ErrorInstanceBundleManagerAuthorityMismatch",
74
64
  "type": "error"
75
65
  },
76
66
  {
77
67
  "inputs": [
78
68
  {
79
69
  "internalType": "address",
80
- "name": "contractAddress",
70
+ "name": "instance",
81
71
  "type": "address"
82
72
  }
83
73
  ],
84
- "name": "ErrorNftOwnableContractNotRegistered",
74
+ "name": "ErrorInstanceBundleManagerInstanceMismatch",
85
75
  "type": "error"
86
76
  },
87
77
  {
88
- "inputs": [],
89
- "name": "ErrorNftOwnableInitialOwnerZero",
78
+ "inputs": [
79
+ {
80
+ "internalType": "address",
81
+ "name": "InstanceAdmin",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "ErrorInstanceInstanceAdminAlreadySet",
90
86
  "type": "error"
91
87
  },
92
88
  {
93
89
  "inputs": [
94
90
  {
95
91
  "internalType": "address",
96
- "name": "account",
92
+ "name": "instanceAuthority",
97
93
  "type": "address"
98
94
  }
99
95
  ],
100
- "name": "ErrorNftOwnableNotOwner",
96
+ "name": "ErrorInstanceInstanceAdminAuthorityMismatch",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "ErrorInstanceInstanceAdminZero",
101
102
  "type": "error"
102
103
  },
103
104
  {
104
105
  "inputs": [
105
106
  {
106
- "internalType": "NftId",
107
- "name": "nftId",
108
- "type": "uint96"
109
- },
110
- {
111
- "internalType": "ObjectType",
112
- "name": "objectType",
113
- "type": "uint8"
107
+ "internalType": "address",
108
+ "name": "instanceAuthority",
109
+ "type": "address"
114
110
  }
115
111
  ],
116
- "name": "ErrorNoLifecycle",
112
+ "name": "ErrorInstanceInstanceReaderInstanceMismatch",
117
113
  "type": "error"
118
114
  },
119
115
  {
120
116
  "inputs": [
121
117
  {
122
118
  "internalType": "address",
123
- "name": "registryAddress",
119
+ "name": "instanceStore",
124
120
  "type": "address"
125
121
  }
126
122
  ],
127
- "name": "ErrorNotRegistry",
123
+ "name": "ErrorInstanceInstanceStoreAlreadySet",
128
124
  "type": "error"
129
125
  },
130
126
  {
131
- "inputs": [],
132
- "name": "InvalidInitialization",
127
+ "inputs": [
128
+ {
129
+ "internalType": "address",
130
+ "name": "instanceAuthority",
131
+ "type": "address"
132
+ }
133
+ ],
134
+ "name": "ErrorInstanceInstanceStoreAuthorityMismatch",
133
135
  "type": "error"
134
136
  },
135
137
  {
136
- "inputs": [],
137
- "name": "NotInitializing",
138
+ "inputs": [
139
+ {
140
+ "internalType": "NftId",
141
+ "name": "nftId",
142
+ "type": "uint96"
143
+ }
144
+ ],
145
+ "name": "ErrorNftOwnableAlreadyLinked",
138
146
  "type": "error"
139
147
  },
140
148
  {
141
- "anonymous": false,
142
149
  "inputs": [
143
150
  {
144
- "indexed": false,
145
151
  "internalType": "address",
146
- "name": "authority",
152
+ "name": "contractAddress",
147
153
  "type": "address"
148
154
  }
149
155
  ],
150
- "name": "AuthorityUpdated",
151
- "type": "event"
156
+ "name": "ErrorNftOwnableContractNotRegistered",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "ErrorNftOwnableInitialOwnerZero",
162
+ "type": "error"
152
163
  },
153
164
  {
154
- "anonymous": false,
155
165
  "inputs": [
156
166
  {
157
- "indexed": false,
158
- "internalType": "uint64",
159
- "name": "version",
160
- "type": "uint64"
167
+ "internalType": "address",
168
+ "name": "account",
169
+ "type": "address"
161
170
  }
162
171
  ],
163
- "name": "Initialized",
164
- "type": "event"
172
+ "name": "ErrorNftOwnableNotOwner",
173
+ "type": "error"
165
174
  },
166
175
  {
167
- "anonymous": false,
168
176
  "inputs": [
169
177
  {
170
- "indexed": false,
171
- "internalType": "ObjectType",
172
- "name": "objectType",
173
- "type": "uint8"
174
- },
175
- {
176
- "indexed": false,
177
- "internalType": "KeyId",
178
- "name": "keyId",
179
- "type": "bytes31"
180
- },
181
- {
182
- "indexed": false,
183
- "internalType": "StateId",
184
- "name": "state",
185
- "type": "uint8"
186
- },
187
- {
188
- "indexed": false,
189
- "internalType": "address",
190
- "name": "createdBy",
191
- "type": "address"
192
- },
193
- {
194
- "indexed": false,
195
178
  "internalType": "address",
196
- "name": "txOrigin",
179
+ "name": "registryAddress",
197
180
  "type": "address"
198
181
  }
199
182
  ],
200
- "name": "LogInfoCreated",
201
- "type": "event"
183
+ "name": "ErrorNotRegistry",
184
+ "type": "error"
185
+ },
186
+ {
187
+ "inputs": [],
188
+ "name": "InvalidInitialization",
189
+ "type": "error"
190
+ },
191
+ {
192
+ "inputs": [],
193
+ "name": "NotInitializing",
194
+ "type": "error"
202
195
  },
203
196
  {
204
197
  "anonymous": false,
205
198
  "inputs": [
206
- {
207
- "indexed": false,
208
- "internalType": "ObjectType",
209
- "name": "objectType",
210
- "type": "uint8"
211
- },
212
- {
213
- "indexed": false,
214
- "internalType": "KeyId",
215
- "name": "keyId",
216
- "type": "bytes31"
217
- },
218
- {
219
- "indexed": false,
220
- "internalType": "StateId",
221
- "name": "state",
222
- "type": "uint8"
223
- },
224
- {
225
- "indexed": false,
226
- "internalType": "address",
227
- "name": "updatedBy",
228
- "type": "address"
229
- },
230
199
  {
231
200
  "indexed": false,
232
201
  "internalType": "address",
233
- "name": "txOrigin",
202
+ "name": "authority",
234
203
  "type": "address"
235
- },
236
- {
237
- "indexed": false,
238
- "internalType": "Blocknumber",
239
- "name": "lastUpdatedIn",
240
- "type": "uint32"
241
204
  }
242
205
  ],
243
- "name": "LogInfoUpdated",
206
+ "name": "AuthorityUpdated",
244
207
  "type": "event"
245
208
  },
246
209
  {
@@ -248,58 +211,22 @@
248
211
  "inputs": [
249
212
  {
250
213
  "indexed": false,
251
- "internalType": "ObjectType",
252
- "name": "objectType",
253
- "type": "uint8"
254
- },
255
- {
256
- "indexed": false,
257
- "internalType": "KeyId",
258
- "name": "keyId",
259
- "type": "bytes31"
260
- },
261
- {
262
- "indexed": false,
263
- "internalType": "StateId",
264
- "name": "stateOld",
265
- "type": "uint8"
266
- },
267
- {
268
- "indexed": false,
269
- "internalType": "StateId",
270
- "name": "stateNew",
271
- "type": "uint8"
272
- },
273
- {
274
- "indexed": false,
275
- "internalType": "address",
276
- "name": "updatedBy",
277
- "type": "address"
278
- },
279
- {
280
- "indexed": false,
281
- "internalType": "address",
282
- "name": "txOrigin",
283
- "type": "address"
284
- },
285
- {
286
- "indexed": false,
287
- "internalType": "Blocknumber",
288
- "name": "lastUpdatedIn",
289
- "type": "uint32"
214
+ "internalType": "uint64",
215
+ "name": "version",
216
+ "type": "uint64"
290
217
  }
291
218
  ],
292
- "name": "LogStateUpdated",
219
+ "name": "Initialized",
293
220
  "type": "event"
294
221
  },
295
222
  {
296
223
  "inputs": [],
297
- "name": "ADMIN_ROLE",
224
+ "name": "GIF_MAJOR_VERSION",
298
225
  "outputs": [
299
226
  {
300
- "internalType": "uint64",
227
+ "internalType": "uint256",
301
228
  "name": "",
302
- "type": "uint64"
229
+ "type": "uint256"
303
230
  }
304
231
  ],
305
232
  "stateMutability": "view",
@@ -307,12 +234,12 @@
307
234
  },
308
235
  {
309
236
  "inputs": [],
310
- "name": "CUSTOM_ROLE_ID_MIN",
237
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
311
238
  "outputs": [
312
239
  {
313
- "internalType": "uint64",
240
+ "internalType": "bytes32",
314
241
  "name": "",
315
- "type": "uint64"
242
+ "type": "bytes32"
316
243
  }
317
244
  ],
318
245
  "stateMutability": "view",
@@ -320,12 +247,12 @@
320
247
  },
321
248
  {
322
249
  "inputs": [],
323
- "name": "EXECUTION_DELAY",
250
+ "name": "REGISTERABLE_LOCATION_V1",
324
251
  "outputs": [
325
252
  {
326
- "internalType": "uint32",
253
+ "internalType": "bytes32",
327
254
  "name": "",
328
- "type": "uint32"
255
+ "type": "bytes32"
329
256
  }
330
257
  ],
331
258
  "stateMutability": "view",
@@ -333,51 +260,72 @@
333
260
  },
334
261
  {
335
262
  "inputs": [],
336
- "name": "GIF_MAJOR_VERSION",
263
+ "name": "authority",
337
264
  "outputs": [
338
265
  {
339
- "internalType": "uint256",
266
+ "internalType": "address",
340
267
  "name": "",
341
- "type": "uint256"
268
+ "type": "address"
342
269
  }
343
270
  ],
344
271
  "stateMutability": "view",
345
272
  "type": "function"
346
273
  },
347
274
  {
348
- "inputs": [],
349
- "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
275
+ "inputs": [
276
+ {
277
+ "internalType": "string",
278
+ "name": "roleName",
279
+ "type": "string"
280
+ },
281
+ {
282
+ "internalType": "string",
283
+ "name": "adminName",
284
+ "type": "string"
285
+ }
286
+ ],
287
+ "name": "createRole",
350
288
  "outputs": [
351
289
  {
352
- "internalType": "bytes32",
353
- "name": "",
354
- "type": "bytes32"
290
+ "internalType": "RoleId",
291
+ "name": "roleId",
292
+ "type": "uint64"
293
+ },
294
+ {
295
+ "internalType": "RoleId",
296
+ "name": "admin",
297
+ "type": "uint64"
355
298
  }
356
299
  ],
357
- "stateMutability": "view",
300
+ "stateMutability": "nonpayable",
358
301
  "type": "function"
359
302
  },
360
303
  {
361
- "inputs": [],
362
- "name": "PUBLIC_ROLE",
363
- "outputs": [
304
+ "inputs": [
364
305
  {
365
- "internalType": "uint64",
366
- "name": "",
367
- "type": "uint64"
306
+ "internalType": "address",
307
+ "name": "target",
308
+ "type": "address"
309
+ },
310
+ {
311
+ "internalType": "string",
312
+ "name": "name",
313
+ "type": "string"
368
314
  }
369
315
  ],
370
- "stateMutability": "view",
316
+ "name": "createTarget",
317
+ "outputs": [],
318
+ "stateMutability": "nonpayable",
371
319
  "type": "function"
372
320
  },
373
321
  {
374
322
  "inputs": [],
375
- "name": "REGISTERABLE_LOCATION_V1",
323
+ "name": "getBundleManager",
376
324
  "outputs": [
377
325
  {
378
- "internalType": "bytes32",
326
+ "internalType": "contract BundleManager",
379
327
  "name": "",
380
- "type": "bytes32"
328
+ "type": "address"
381
329
  }
382
330
  ],
383
331
  "stateMutability": "view",
@@ -385,10 +333,10 @@
385
333
  },
386
334
  {
387
335
  "inputs": [],
388
- "name": "authority",
336
+ "name": "getBundleService",
389
337
  "outputs": [
390
338
  {
391
- "internalType": "address",
339
+ "internalType": "contract IBundleService",
392
340
  "name": "",
393
341
  "type": "address"
394
342
  }
@@ -397,1802 +345,212 @@
397
345
  "type": "function"
398
346
  },
399
347
  {
400
- "inputs": [
401
- {
402
- "internalType": "ObjectType",
403
- "name": "objectType",
404
- "type": "uint8"
405
- },
406
- {
407
- "internalType": "StateId",
408
- "name": "fromId",
409
- "type": "uint8"
410
- },
348
+ "inputs": [],
349
+ "name": "getDistributionService",
350
+ "outputs": [
411
351
  {
412
- "internalType": "StateId",
413
- "name": "toId",
414
- "type": "uint8"
352
+ "internalType": "contract IDistributionService",
353
+ "name": "",
354
+ "type": "address"
415
355
  }
416
356
  ],
417
- "name": "checkTransition",
418
- "outputs": [],
419
357
  "stateMutability": "view",
420
358
  "type": "function"
421
359
  },
422
360
  {
423
- "inputs": [
424
- {
425
- "internalType": "NftId",
426
- "name": "applicationNftId",
427
- "type": "uint96"
428
- },
361
+ "inputs": [],
362
+ "name": "getInitialInfo",
363
+ "outputs": [
429
364
  {
430
365
  "components": [
431
366
  {
432
367
  "internalType": "NftId",
433
- "name": "productNftId",
434
- "type": "uint96"
435
- },
436
- {
437
- "internalType": "NftId",
438
- "name": "bundleNftId",
368
+ "name": "nftId",
439
369
  "type": "uint96"
440
370
  },
441
- {
442
- "internalType": "ReferralId",
443
- "name": "referralId",
444
- "type": "bytes8"
445
- },
446
- {
447
- "internalType": "RiskId",
448
- "name": "riskId",
449
- "type": "bytes8"
450
- },
451
- {
452
- "internalType": "uint256",
453
- "name": "sumInsuredAmount",
454
- "type": "uint256"
455
- },
456
- {
457
- "internalType": "uint256",
458
- "name": "premiumAmount",
459
- "type": "uint256"
460
- },
461
- {
462
- "internalType": "uint256",
463
- "name": "premiumPaidAmount",
464
- "type": "uint256"
465
- },
466
- {
467
- "internalType": "Seconds",
468
- "name": "lifetime",
469
- "type": "uint40"
470
- },
471
- {
472
- "internalType": "bytes",
473
- "name": "applicationData",
474
- "type": "bytes"
475
- },
476
- {
477
- "internalType": "bytes",
478
- "name": "policyData",
479
- "type": "bytes"
480
- },
481
- {
482
- "internalType": "uint16",
483
- "name": "claimsCount",
484
- "type": "uint16"
485
- },
486
- {
487
- "internalType": "uint16",
488
- "name": "openClaimsCount",
489
- "type": "uint16"
490
- },
491
- {
492
- "internalType": "uint256",
493
- "name": "payoutAmount",
494
- "type": "uint256"
495
- },
496
- {
497
- "internalType": "Timestamp",
498
- "name": "activatedAt",
499
- "type": "uint40"
500
- },
501
- {
502
- "internalType": "Timestamp",
503
- "name": "expiredAt",
504
- "type": "uint40"
505
- },
506
- {
507
- "internalType": "Timestamp",
508
- "name": "closedAt",
509
- "type": "uint40"
510
- }
511
- ],
512
- "internalType": "struct IPolicy.PolicyInfo",
513
- "name": "policy",
514
- "type": "tuple"
515
- }
516
- ],
517
- "name": "createApplication",
518
- "outputs": [],
519
- "stateMutability": "nonpayable",
520
- "type": "function"
521
- },
522
- {
523
- "inputs": [
524
- {
525
- "internalType": "NftId",
526
- "name": "bundleNftId",
527
- "type": "uint96"
528
- },
529
- {
530
- "components": [
531
371
  {
532
372
  "internalType": "NftId",
533
- "name": "poolNftId",
373
+ "name": "parentNftId",
534
374
  "type": "uint96"
535
375
  },
536
376
  {
537
- "components": [
538
- {
539
- "internalType": "UFixed",
540
- "name": "fractionalFee",
541
- "type": "uint256"
542
- },
543
- {
544
- "internalType": "uint256",
545
- "name": "fixedFee",
546
- "type": "uint256"
547
- }
548
- ],
549
- "internalType": "struct Fee",
550
- "name": "fee",
551
- "type": "tuple"
552
- },
553
- {
554
- "internalType": "bytes",
555
- "name": "filter",
556
- "type": "bytes"
557
- },
558
- {
559
- "internalType": "uint256",
560
- "name": "capitalAmount",
561
- "type": "uint256"
562
- },
563
- {
564
- "internalType": "uint256",
565
- "name": "lockedAmount",
566
- "type": "uint256"
567
- },
568
- {
569
- "internalType": "uint256",
570
- "name": "balanceAmount",
571
- "type": "uint256"
572
- },
573
- {
574
- "internalType": "Seconds",
575
- "name": "lifetime",
576
- "type": "uint40"
577
- },
578
- {
579
- "internalType": "Timestamp",
580
- "name": "expiredAt",
581
- "type": "uint40"
582
- },
583
- {
584
- "internalType": "Timestamp",
585
- "name": "closedAt",
586
- "type": "uint40"
587
- }
588
- ],
589
- "internalType": "struct IBundle.BundleInfo",
590
- "name": "bundle",
591
- "type": "tuple"
592
- }
593
- ],
594
- "name": "createBundle",
595
- "outputs": [],
596
- "stateMutability": "nonpayable",
597
- "type": "function"
598
- },
599
- {
600
- "inputs": [
601
- {
602
- "internalType": "NftId",
603
- "name": "policyNftId",
604
- "type": "uint96"
605
- },
606
- {
607
- "internalType": "ClaimId",
608
- "name": "claimId",
609
- "type": "uint16"
610
- },
611
- {
612
- "components": [
613
- {
614
- "internalType": "uint256",
615
- "name": "claimAmount",
616
- "type": "uint256"
617
- },
618
- {
619
- "internalType": "uint256",
620
- "name": "paidAmount",
621
- "type": "uint256"
622
- },
623
- {
624
- "internalType": "bytes",
625
- "name": "data",
626
- "type": "bytes"
377
+ "internalType": "ObjectType",
378
+ "name": "objectType",
379
+ "type": "uint8"
627
380
  },
628
381
  {
629
- "internalType": "Timestamp",
630
- "name": "closedAt",
631
- "type": "uint40"
632
- }
633
- ],
634
- "internalType": "struct IPolicy.ClaimInfo",
635
- "name": "claim",
636
- "type": "tuple"
637
- }
638
- ],
639
- "name": "createClaim",
640
- "outputs": [],
641
- "stateMutability": "nonpayable",
642
- "type": "function"
643
- },
644
- {
645
- "inputs": [
646
- {
647
- "internalType": "NftId",
648
- "name": "distributionNftId",
649
- "type": "uint96"
650
- },
651
- {
652
- "components": [
653
- {
654
- "internalType": "NftId",
655
- "name": "productNftId",
656
- "type": "uint96"
382
+ "internalType": "bool",
383
+ "name": "isInterceptor",
384
+ "type": "bool"
657
385
  },
658
386
  {
659
- "internalType": "contract TokenHandler",
660
- "name": "tokenHandler",
387
+ "internalType": "address",
388
+ "name": "objectAddress",
661
389
  "type": "address"
662
390
  },
663
- {
664
- "components": [
665
- {
666
- "internalType": "UFixed",
667
- "name": "fractionalFee",
668
- "type": "uint256"
669
- },
670
- {
671
- "internalType": "uint256",
672
- "name": "fixedFee",
673
- "type": "uint256"
674
- }
675
- ],
676
- "internalType": "struct Fee",
677
- "name": "minDistributionOwnerFee",
678
- "type": "tuple"
679
- },
680
- {
681
- "components": [
682
- {
683
- "internalType": "UFixed",
684
- "name": "fractionalFee",
685
- "type": "uint256"
686
- },
687
- {
688
- "internalType": "uint256",
689
- "name": "fixedFee",
690
- "type": "uint256"
691
- }
692
- ],
693
- "internalType": "struct Fee",
694
- "name": "distributionFee",
695
- "type": "tuple"
696
- },
697
391
  {
698
392
  "internalType": "address",
699
- "name": "wallet",
393
+ "name": "initialOwner",
700
394
  "type": "address"
701
395
  },
702
- {
703
- "internalType": "uint256",
704
- "name": "sumDistributionOwnerFees",
705
- "type": "uint256"
706
- }
707
- ],
708
- "internalType": "struct ISetup.DistributionSetupInfo",
709
- "name": "setup",
710
- "type": "tuple"
711
- }
712
- ],
713
- "name": "createDistributionSetup",
714
- "outputs": [],
715
- "stateMutability": "nonpayable",
716
- "type": "function"
717
- },
718
- {
719
- "inputs": [
720
- {
721
- "internalType": "NftId",
722
- "name": "nftId",
723
- "type": "uint96"
724
- },
725
- {
726
- "components": [
727
- {
728
- "internalType": "DistributorType",
729
- "name": "distributorType",
730
- "type": "bytes8"
731
- },
732
- {
733
- "internalType": "bool",
734
- "name": "active",
735
- "type": "bool"
736
- },
737
- {
738
- "internalType": "bytes",
739
- "name": "data",
740
- "type": "bytes"
741
- },
742
- {
743
- "internalType": "uint256",
744
- "name": "sumCommisions",
745
- "type": "uint256"
746
- },
747
- {
748
- "internalType": "uint256",
749
- "name": "numPoliciesSold",
750
- "type": "uint256"
751
- }
752
- ],
753
- "internalType": "struct IDistribution.DistributorInfo",
754
- "name": "info",
755
- "type": "tuple"
756
- }
757
- ],
758
- "name": "createDistributor",
759
- "outputs": [],
760
- "stateMutability": "nonpayable",
761
- "type": "function"
762
- },
763
- {
764
- "inputs": [
765
- {
766
- "internalType": "Key32",
767
- "name": "distributorKey",
768
- "type": "bytes32"
769
- },
770
- {
771
- "components": [
772
- {
773
- "internalType": "string",
774
- "name": "name",
775
- "type": "string"
776
- },
777
- {
778
- "internalType": "UFixed",
779
- "name": "minDiscountPercentage",
780
- "type": "uint256"
781
- },
782
- {
783
- "internalType": "UFixed",
784
- "name": "maxDiscountPercentage",
785
- "type": "uint256"
786
- },
787
- {
788
- "internalType": "UFixed",
789
- "name": "commissionPercentage",
790
- "type": "uint256"
791
- },
792
- {
793
- "internalType": "uint32",
794
- "name": "maxReferralCount",
795
- "type": "uint32"
796
- },
797
- {
798
- "internalType": "uint32",
799
- "name": "maxReferralLifetime",
800
- "type": "uint32"
801
- },
802
- {
803
- "internalType": "bool",
804
- "name": "allowSelfReferrals",
805
- "type": "bool"
806
- },
807
- {
808
- "internalType": "bool",
809
- "name": "allowRenewals",
810
- "type": "bool"
811
- },
812
396
  {
813
397
  "internalType": "bytes",
814
398
  "name": "data",
815
399
  "type": "bytes"
816
400
  }
817
401
  ],
818
- "internalType": "struct IDistribution.DistributorTypeInfo",
402
+ "internalType": "struct IRegistry.ObjectInfo",
819
403
  "name": "info",
820
404
  "type": "tuple"
821
405
  }
822
406
  ],
823
- "name": "createDistributorType",
824
- "outputs": [],
825
- "stateMutability": "nonpayable",
407
+ "stateMutability": "view",
826
408
  "type": "function"
827
409
  },
828
410
  {
829
- "inputs": [
830
- {
831
- "internalType": "NftId",
832
- "name": "policyNftId",
833
- "type": "uint96"
834
- },
835
- {
836
- "internalType": "NumberId",
837
- "name": "payoutId",
838
- "type": "uint32"
839
- },
411
+ "inputs": [],
412
+ "name": "getInstanceAdmin",
413
+ "outputs": [
840
414
  {
841
- "components": [
842
- {
843
- "internalType": "ClaimId",
844
- "name": "claimId",
845
- "type": "uint16"
846
- },
847
- {
848
- "internalType": "uint256",
849
- "name": "amount",
850
- "type": "uint256"
851
- },
852
- {
853
- "internalType": "bytes",
854
- "name": "data",
855
- "type": "bytes"
856
- },
857
- {
858
- "internalType": "Timestamp",
859
- "name": "paidAt",
860
- "type": "uint40"
861
- }
862
- ],
863
- "internalType": "struct IPolicy.PayoutInfo",
864
- "name": "payout",
865
- "type": "tuple"
866
- }
867
- ],
868
- "name": "createPayout",
869
- "outputs": [],
870
- "stateMutability": "nonpayable",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [
875
- {
876
- "internalType": "NftId",
877
- "name": "poolNftId",
878
- "type": "uint96"
879
- },
880
- {
881
- "components": [
882
- {
883
- "internalType": "string",
884
- "name": "name",
885
- "type": "string"
886
- },
887
- {
888
- "internalType": "contract IERC20Metadata",
889
- "name": "token",
890
- "type": "address"
891
- },
892
- {
893
- "internalType": "contract TokenHandler",
894
- "name": "tokenHandler",
895
- "type": "address"
896
- },
897
- {
898
- "internalType": "address",
899
- "name": "wallet",
900
- "type": "address"
901
- },
902
- {
903
- "internalType": "bytes",
904
- "name": "data",
905
- "type": "bytes"
906
- }
907
- ],
908
- "internalType": "struct IComponents.ComponentInfo",
909
- "name": "info",
910
- "type": "tuple"
911
- }
912
- ],
913
- "name": "createPoolSetup",
914
- "outputs": [],
915
- "stateMutability": "nonpayable",
916
- "type": "function"
917
- },
918
- {
919
- "inputs": [
920
- {
921
- "internalType": "NftId",
922
- "name": "productNftId",
923
- "type": "uint96"
924
- },
925
- {
926
- "components": [
927
- {
928
- "internalType": "contract IERC20Metadata",
929
- "name": "token",
930
- "type": "address"
931
- },
932
- {
933
- "internalType": "contract TokenHandler",
934
- "name": "tokenHandler",
935
- "type": "address"
936
- },
937
- {
938
- "internalType": "NftId",
939
- "name": "distributionNftId",
940
- "type": "uint96"
941
- },
942
- {
943
- "internalType": "NftId",
944
- "name": "poolNftId",
945
- "type": "uint96"
946
- },
947
- {
948
- "components": [
949
- {
950
- "internalType": "UFixed",
951
- "name": "fractionalFee",
952
- "type": "uint256"
953
- },
954
- {
955
- "internalType": "uint256",
956
- "name": "fixedFee",
957
- "type": "uint256"
958
- }
959
- ],
960
- "internalType": "struct Fee",
961
- "name": "productFee",
962
- "type": "tuple"
963
- },
964
- {
965
- "components": [
966
- {
967
- "internalType": "UFixed",
968
- "name": "fractionalFee",
969
- "type": "uint256"
970
- },
971
- {
972
- "internalType": "uint256",
973
- "name": "fixedFee",
974
- "type": "uint256"
975
- }
976
- ],
977
- "internalType": "struct Fee",
978
- "name": "processingFee",
979
- "type": "tuple"
980
- },
981
- {
982
- "internalType": "bool",
983
- "name": "isIntercepting",
984
- "type": "bool"
985
- },
986
- {
987
- "internalType": "address",
988
- "name": "wallet",
989
- "type": "address"
990
- }
991
- ],
992
- "internalType": "struct ISetup.ProductSetupInfo",
993
- "name": "setup",
994
- "type": "tuple"
995
- }
996
- ],
997
- "name": "createProductSetup",
998
- "outputs": [],
999
- "stateMutability": "nonpayable",
1000
- "type": "function"
1001
- },
1002
- {
1003
- "inputs": [
1004
- {
1005
- "internalType": "Key32",
1006
- "name": "referralKey",
1007
- "type": "bytes32"
1008
- },
1009
- {
1010
- "components": [
1011
- {
1012
- "internalType": "NftId",
1013
- "name": "distributorNftId",
1014
- "type": "uint96"
1015
- },
1016
- {
1017
- "internalType": "string",
1018
- "name": "referralCode",
1019
- "type": "string"
1020
- },
1021
- {
1022
- "internalType": "UFixed",
1023
- "name": "discountPercentage",
1024
- "type": "uint256"
1025
- },
1026
- {
1027
- "internalType": "uint32",
1028
- "name": "maxReferrals",
1029
- "type": "uint32"
1030
- },
1031
- {
1032
- "internalType": "uint32",
1033
- "name": "usedReferrals",
1034
- "type": "uint32"
1035
- },
1036
- {
1037
- "internalType": "Timestamp",
1038
- "name": "expiryAt",
1039
- "type": "uint40"
1040
- },
1041
- {
1042
- "internalType": "bytes",
1043
- "name": "data",
1044
- "type": "bytes"
1045
- }
1046
- ],
1047
- "internalType": "struct IDistribution.ReferralInfo",
1048
- "name": "referralInfo",
1049
- "type": "tuple"
1050
- }
1051
- ],
1052
- "name": "createReferral",
1053
- "outputs": [],
1054
- "stateMutability": "nonpayable",
1055
- "type": "function"
1056
- },
1057
- {
1058
- "inputs": [
1059
- {
1060
- "internalType": "RiskId",
1061
- "name": "riskId",
1062
- "type": "bytes8"
1063
- },
1064
- {
1065
- "components": [
1066
- {
1067
- "internalType": "NftId",
1068
- "name": "productNftId",
1069
- "type": "uint96"
1070
- },
1071
- {
1072
- "internalType": "bytes",
1073
- "name": "data",
1074
- "type": "bytes"
1075
- }
1076
- ],
1077
- "internalType": "struct IRisk.RiskInfo",
1078
- "name": "risk",
1079
- "type": "tuple"
1080
- }
1081
- ],
1082
- "name": "createRisk",
1083
- "outputs": [],
1084
- "stateMutability": "nonpayable",
1085
- "type": "function"
1086
- },
1087
- {
1088
- "inputs": [
1089
- {
1090
- "internalType": "Key32",
1091
- "name": "key32",
1092
- "type": "bytes32"
1093
- }
1094
- ],
1095
- "name": "exists",
1096
- "outputs": [
1097
- {
1098
- "internalType": "bool",
1099
- "name": "",
1100
- "type": "bool"
1101
- }
1102
- ],
1103
- "stateMutability": "view",
1104
- "type": "function"
1105
- },
1106
- {
1107
- "inputs": [
1108
- {
1109
- "internalType": "Key32",
1110
- "name": "key32",
1111
- "type": "bytes32"
1112
- }
1113
- ],
1114
- "name": "get",
1115
- "outputs": [
1116
- {
1117
- "components": [
1118
- {
1119
- "components": [
1120
- {
1121
- "internalType": "ObjectType",
1122
- "name": "objectType",
1123
- "type": "uint8"
1124
- },
1125
- {
1126
- "internalType": "StateId",
1127
- "name": "state",
1128
- "type": "uint8"
1129
- },
1130
- {
1131
- "internalType": "address",
1132
- "name": "updatedBy",
1133
- "type": "address"
1134
- },
1135
- {
1136
- "internalType": "Blocknumber",
1137
- "name": "updatedIn",
1138
- "type": "uint32"
1139
- },
1140
- {
1141
- "internalType": "Blocknumber",
1142
- "name": "createdIn",
1143
- "type": "uint32"
1144
- }
1145
- ],
1146
- "internalType": "struct IKeyValueStore.Metadata",
1147
- "name": "metadata",
1148
- "type": "tuple"
1149
- },
1150
- {
1151
- "internalType": "bytes",
1152
- "name": "data",
1153
- "type": "bytes"
1154
- }
1155
- ],
1156
- "internalType": "struct IKeyValueStore.Value",
1157
- "name": "value",
1158
- "type": "tuple"
1159
- }
1160
- ],
1161
- "stateMutability": "view",
1162
- "type": "function"
1163
- },
1164
- {
1165
- "inputs": [],
1166
- "name": "getBundleManager",
1167
- "outputs": [
1168
- {
1169
- "internalType": "contract BundleManager",
1170
- "name": "",
1171
- "type": "address"
1172
- }
1173
- ],
1174
- "stateMutability": "view",
1175
- "type": "function"
1176
- },
1177
- {
1178
- "inputs": [],
1179
- "name": "getBundleService",
1180
- "outputs": [
1181
- {
1182
- "internalType": "contract IBundleService",
1183
- "name": "",
1184
- "type": "address"
1185
- }
1186
- ],
1187
- "stateMutability": "view",
1188
- "type": "function"
1189
- },
1190
- {
1191
- "inputs": [
1192
- {
1193
- "internalType": "Key32",
1194
- "name": "key32",
1195
- "type": "bytes32"
1196
- }
1197
- ],
1198
- "name": "getData",
1199
- "outputs": [
1200
- {
1201
- "internalType": "bytes",
1202
- "name": "data",
1203
- "type": "bytes"
1204
- }
1205
- ],
1206
- "stateMutability": "view",
1207
- "type": "function"
1208
- },
1209
- {
1210
- "inputs": [],
1211
- "name": "getDistributionService",
1212
- "outputs": [
1213
- {
1214
- "internalType": "contract IDistributionService",
1215
- "name": "",
1216
- "type": "address"
1217
- }
1218
- ],
1219
- "stateMutability": "view",
1220
- "type": "function"
1221
- },
1222
- {
1223
- "inputs": [],
1224
- "name": "getInitialInfo",
1225
- "outputs": [
1226
- {
1227
- "components": [
1228
- {
1229
- "internalType": "NftId",
1230
- "name": "nftId",
1231
- "type": "uint96"
1232
- },
1233
- {
1234
- "internalType": "NftId",
1235
- "name": "parentNftId",
1236
- "type": "uint96"
1237
- },
1238
- {
1239
- "internalType": "ObjectType",
1240
- "name": "objectType",
1241
- "type": "uint8"
1242
- },
1243
- {
1244
- "internalType": "bool",
1245
- "name": "isInterceptor",
1246
- "type": "bool"
1247
- },
1248
- {
1249
- "internalType": "address",
1250
- "name": "objectAddress",
1251
- "type": "address"
1252
- },
1253
- {
1254
- "internalType": "address",
1255
- "name": "initialOwner",
1256
- "type": "address"
1257
- },
1258
- {
1259
- "internalType": "bytes",
1260
- "name": "data",
1261
- "type": "bytes"
1262
- }
1263
- ],
1264
- "internalType": "struct IRegistry.ObjectInfo",
1265
- "name": "info",
1266
- "type": "tuple"
1267
- }
1268
- ],
1269
- "stateMutability": "view",
1270
- "type": "function"
1271
- },
1272
- {
1273
- "inputs": [
1274
- {
1275
- "internalType": "ObjectType",
1276
- "name": "objectType",
1277
- "type": "uint8"
1278
- }
1279
- ],
1280
- "name": "getInitialState",
1281
- "outputs": [
1282
- {
1283
- "internalType": "StateId",
1284
- "name": "",
1285
- "type": "uint8"
1286
- }
1287
- ],
1288
- "stateMutability": "view",
1289
- "type": "function"
1290
- },
1291
- {
1292
- "inputs": [],
1293
- "name": "getInstanceAccessManager",
1294
- "outputs": [
1295
- {
1296
- "internalType": "contract InstanceAccessManager",
1297
- "name": "",
1298
- "type": "address"
1299
- }
1300
- ],
1301
- "stateMutability": "view",
1302
- "type": "function"
1303
- },
1304
- {
1305
- "inputs": [],
1306
- "name": "getInstanceReader",
1307
- "outputs": [
1308
- {
1309
- "internalType": "contract InstanceReader",
1310
- "name": "",
1311
- "type": "address"
1312
- }
1313
- ],
1314
- "stateMutability": "view",
1315
- "type": "function"
1316
- },
1317
- {
1318
- "inputs": [],
1319
- "name": "getMajorVersion",
1320
- "outputs": [
1321
- {
1322
- "internalType": "VersionPart",
1323
- "name": "majorVersion",
1324
- "type": "uint8"
1325
- }
1326
- ],
1327
- "stateMutability": "pure",
1328
- "type": "function"
1329
- },
1330
- {
1331
- "inputs": [
1332
- {
1333
- "internalType": "Key32",
1334
- "name": "key32",
1335
- "type": "bytes32"
1336
- }
1337
- ],
1338
- "name": "getMetadata",
1339
- "outputs": [
1340
- {
1341
- "components": [
1342
- {
1343
- "internalType": "ObjectType",
1344
- "name": "objectType",
1345
- "type": "uint8"
1346
- },
1347
- {
1348
- "internalType": "StateId",
1349
- "name": "state",
1350
- "type": "uint8"
1351
- },
1352
- {
1353
- "internalType": "address",
1354
- "name": "updatedBy",
1355
- "type": "address"
1356
- },
1357
- {
1358
- "internalType": "Blocknumber",
1359
- "name": "updatedIn",
1360
- "type": "uint32"
1361
- },
1362
- {
1363
- "internalType": "Blocknumber",
1364
- "name": "createdIn",
1365
- "type": "uint32"
1366
- }
1367
- ],
1368
- "internalType": "struct IKeyValueStore.Metadata",
1369
- "name": "metadata",
1370
- "type": "tuple"
1371
- }
1372
- ],
1373
- "stateMutability": "view",
1374
- "type": "function"
1375
- },
1376
- {
1377
- "inputs": [],
1378
- "name": "getNftId",
1379
- "outputs": [
1380
- {
1381
- "internalType": "NftId",
1382
- "name": "",
1383
- "type": "uint96"
1384
- }
1385
- ],
1386
- "stateMutability": "view",
1387
- "type": "function"
1388
- },
1389
- {
1390
- "inputs": [],
1391
- "name": "getOwner",
1392
- "outputs": [
1393
- {
1394
- "internalType": "address",
1395
- "name": "",
1396
- "type": "address"
1397
- }
1398
- ],
1399
- "stateMutability": "view",
1400
- "type": "function"
1401
- },
1402
- {
1403
- "inputs": [],
1404
- "name": "getPolicyService",
1405
- "outputs": [
1406
- {
1407
- "internalType": "contract IPolicyService",
1408
- "name": "",
1409
- "type": "address"
1410
- }
1411
- ],
1412
- "stateMutability": "view",
1413
- "type": "function"
1414
- },
1415
- {
1416
- "inputs": [],
1417
- "name": "getPoolService",
1418
- "outputs": [
1419
- {
1420
- "internalType": "contract IPoolService",
1421
- "name": "",
1422
- "type": "address"
1423
- }
1424
- ],
1425
- "stateMutability": "view",
1426
- "type": "function"
1427
- },
1428
- {
1429
- "inputs": [],
1430
- "name": "getProductService",
1431
- "outputs": [
1432
- {
1433
- "internalType": "contract IProductService",
1434
- "name": "",
1435
- "type": "address"
1436
- }
1437
- ],
1438
- "stateMutability": "view",
1439
- "type": "function"
1440
- },
1441
- {
1442
- "inputs": [],
1443
- "name": "getRegistry",
1444
- "outputs": [
1445
- {
1446
- "internalType": "contract IRegistry",
1447
- "name": "",
1448
- "type": "address"
1449
- }
1450
- ],
1451
- "stateMutability": "view",
1452
- "type": "function"
1453
- },
1454
- {
1455
- "inputs": [],
1456
- "name": "getRegistryAddress",
1457
- "outputs": [
1458
- {
1459
- "internalType": "address",
1460
- "name": "",
1461
- "type": "address"
1462
- }
1463
- ],
1464
- "stateMutability": "view",
1465
- "type": "function"
1466
- },
1467
- {
1468
- "inputs": [
1469
- {
1470
- "internalType": "Key32",
1471
- "name": "key32",
1472
- "type": "bytes32"
1473
- }
1474
- ],
1475
- "name": "getState",
1476
- "outputs": [
1477
- {
1478
- "internalType": "StateId",
1479
- "name": "state",
1480
- "type": "uint8"
1481
- }
1482
- ],
1483
- "stateMutability": "view",
1484
- "type": "function"
1485
- },
1486
- {
1487
- "inputs": [
1488
- {
1489
- "internalType": "ObjectType",
1490
- "name": "objectType",
1491
- "type": "uint8"
1492
- }
1493
- ],
1494
- "name": "hasLifecycle",
1495
- "outputs": [
1496
- {
1497
- "internalType": "bool",
1498
- "name": "",
1499
- "type": "bool"
1500
- }
1501
- ],
1502
- "stateMutability": "view",
1503
- "type": "function"
1504
- },
1505
- {
1506
- "inputs": [
1507
- {
1508
- "internalType": "address",
1509
- "name": "authority",
1510
- "type": "address"
1511
- },
1512
- {
1513
- "internalType": "address",
1514
- "name": "registryAddress",
1515
- "type": "address"
1516
- },
1517
- {
1518
- "internalType": "address",
1519
- "name": "initialOwner",
1520
- "type": "address"
1521
- }
1522
- ],
1523
- "name": "initialize",
1524
- "outputs": [],
1525
- "stateMutability": "nonpayable",
1526
- "type": "function"
1527
- },
1528
- {
1529
- "inputs": [],
1530
- "name": "initializeERC165",
1531
- "outputs": [],
1532
- "stateMutability": "nonpayable",
1533
- "type": "function"
1534
- },
1535
- {
1536
- "inputs": [],
1537
- "name": "initializeLifecycle",
1538
- "outputs": [],
1539
- "stateMutability": "nonpayable",
1540
- "type": "function"
1541
- },
1542
- {
1543
- "inputs": [
1544
- {
1545
- "internalType": "address",
1546
- "name": "initialOwner",
1547
- "type": "address"
1548
- },
1549
- {
1550
- "internalType": "address",
1551
- "name": "registryAddress",
1552
- "type": "address"
1553
- }
1554
- ],
1555
- "name": "initializeNftOwnable",
1556
- "outputs": [],
1557
- "stateMutability": "nonpayable",
1558
- "type": "function"
1559
- },
1560
- {
1561
- "inputs": [
1562
- {
1563
- "internalType": "address",
1564
- "name": "registryAddress",
1565
- "type": "address"
1566
- },
1567
- {
1568
- "internalType": "NftId",
1569
- "name": "parentNftId",
1570
- "type": "uint96"
1571
- },
1572
- {
1573
- "internalType": "ObjectType",
1574
- "name": "objectType",
1575
- "type": "uint8"
1576
- },
1577
- {
1578
- "internalType": "bool",
1579
- "name": "isInterceptor",
1580
- "type": "bool"
1581
- },
1582
- {
1583
- "internalType": "address",
1584
- "name": "initialOwner",
1585
- "type": "address"
1586
- },
1587
- {
1588
- "internalType": "bytes",
1589
- "name": "registryData",
1590
- "type": "bytes"
1591
- }
1592
- ],
1593
- "name": "initializeRegisterable",
1594
- "outputs": [],
1595
- "stateMutability": "nonpayable",
1596
- "type": "function"
1597
- },
1598
- {
1599
- "inputs": [
1600
- {
1601
- "internalType": "address",
1602
- "name": "registryAddress",
1603
- "type": "address"
1604
- }
1605
- ],
1606
- "name": "initializeRegistryLinked",
1607
- "outputs": [],
1608
- "stateMutability": "nonpayable",
1609
- "type": "function"
1610
- },
1611
- {
1612
- "inputs": [],
1613
- "name": "isConsumingScheduledOp",
1614
- "outputs": [
1615
- {
1616
- "internalType": "bytes4",
1617
- "name": "",
1618
- "type": "bytes4"
1619
- }
1620
- ],
1621
- "stateMutability": "view",
1622
- "type": "function"
1623
- },
1624
- {
1625
- "inputs": [
1626
- {
1627
- "internalType": "ObjectType",
1628
- "name": "objectType",
1629
- "type": "uint8"
1630
- },
1631
- {
1632
- "internalType": "StateId",
1633
- "name": "fromId",
1634
- "type": "uint8"
1635
- },
1636
- {
1637
- "internalType": "StateId",
1638
- "name": "toId",
1639
- "type": "uint8"
1640
- }
1641
- ],
1642
- "name": "isValidTransition",
1643
- "outputs": [
1644
- {
1645
- "internalType": "bool",
1646
- "name": "",
1647
- "type": "bool"
1648
- }
1649
- ],
1650
- "stateMutability": "view",
1651
- "type": "function"
1652
- },
1653
- {
1654
- "inputs": [],
1655
- "name": "linkToRegisteredNftId",
1656
- "outputs": [],
1657
- "stateMutability": "nonpayable",
1658
- "type": "function"
1659
- },
1660
- {
1661
- "inputs": [
1662
- {
1663
- "internalType": "address",
1664
- "name": "to",
1665
- "type": "address"
1666
- },
1667
- {
1668
- "internalType": "uint256",
1669
- "name": "tokenId",
1670
- "type": "uint256"
1671
- }
1672
- ],
1673
- "name": "nftMint",
1674
- "outputs": [],
1675
- "stateMutability": "nonpayable",
1676
- "type": "function"
1677
- },
1678
- {
1679
- "inputs": [
1680
- {
1681
- "internalType": "address",
1682
- "name": "from",
1683
- "type": "address"
1684
- },
1685
- {
1686
- "internalType": "address",
1687
- "name": "to",
1688
- "type": "address"
1689
- },
1690
- {
1691
- "internalType": "uint256",
1692
- "name": "tokenId",
1693
- "type": "uint256"
1694
- }
1695
- ],
1696
- "name": "nftTransferFrom",
1697
- "outputs": [],
1698
- "stateMutability": "nonpayable",
1699
- "type": "function"
1700
- },
1701
- {
1702
- "inputs": [
1703
- {
1704
- "internalType": "bytes4",
1705
- "name": "interfaceId",
1706
- "type": "bytes4"
1707
- }
1708
- ],
1709
- "name": "registerInterface",
1710
- "outputs": [],
1711
- "stateMutability": "nonpayable",
1712
- "type": "function"
1713
- },
1714
- {
1715
- "inputs": [
1716
- {
1717
- "internalType": "address",
1718
- "name": "newAuthority",
1719
- "type": "address"
1720
- }
1721
- ],
1722
- "name": "setAuthority",
1723
- "outputs": [],
1724
- "stateMutability": "nonpayable",
1725
- "type": "function"
1726
- },
1727
- {
1728
- "inputs": [
1729
- {
1730
- "internalType": "contract BundleManager",
1731
- "name": "bundleManager",
1732
- "type": "address"
1733
- }
1734
- ],
1735
- "name": "setBundleManager",
1736
- "outputs": [],
1737
- "stateMutability": "nonpayable",
1738
- "type": "function"
1739
- },
1740
- {
1741
- "inputs": [
1742
- {
1743
- "internalType": "contract InstanceAccessManager",
1744
- "name": "accessManager",
1745
- "type": "address"
1746
- }
1747
- ],
1748
- "name": "setInstanceAccessManager",
1749
- "outputs": [],
1750
- "stateMutability": "nonpayable",
1751
- "type": "function"
1752
- },
1753
- {
1754
- "inputs": [
1755
- {
1756
- "internalType": "contract InstanceReader",
1757
- "name": "instanceReader",
1758
- "type": "address"
1759
- }
1760
- ],
1761
- "name": "setInstanceReader",
1762
- "outputs": [],
1763
- "stateMutability": "nonpayable",
1764
- "type": "function"
1765
- },
1766
- {
1767
- "inputs": [
1768
- {
1769
- "internalType": "bytes4",
1770
- "name": "interfaceId",
1771
- "type": "bytes4"
1772
- }
1773
- ],
1774
- "name": "supportsInterface",
1775
- "outputs": [
1776
- {
1777
- "internalType": "bool",
1778
- "name": "",
1779
- "type": "bool"
415
+ "internalType": "contract InstanceAdmin",
416
+ "name": "",
417
+ "type": "address"
1780
418
  }
1781
419
  ],
1782
420
  "stateMutability": "view",
1783
- "type": "function"
1784
- },
1785
- {
1786
- "inputs": [
1787
- {
1788
- "internalType": "NftId",
1789
- "name": "bundleNftId",
1790
- "type": "uint96"
1791
- }
1792
- ],
1793
- "name": "toBundleKey32",
1794
- "outputs": [
1795
- {
1796
- "internalType": "Key32",
1797
- "name": "",
1798
- "type": "bytes32"
1799
- }
1800
- ],
1801
- "stateMutability": "pure",
1802
- "type": "function"
1803
- },
1804
- {
1805
- "inputs": [
1806
- {
1807
- "internalType": "NftId",
1808
- "name": "distNftId",
1809
- "type": "uint96"
1810
- }
1811
- ],
1812
- "name": "toDistributionKey32",
1813
- "outputs": [
1814
- {
1815
- "internalType": "Key32",
1816
- "name": "",
1817
- "type": "bytes32"
1818
- }
1819
- ],
1820
- "stateMutability": "pure",
1821
- "type": "function"
1822
- },
1823
- {
1824
- "inputs": [
1825
- {
1826
- "internalType": "NftId",
1827
- "name": "distNftId",
1828
- "type": "uint96"
1829
- }
1830
- ],
1831
- "name": "toDistributorKey32",
1832
- "outputs": [
1833
- {
1834
- "internalType": "Key32",
1835
- "name": "",
1836
- "type": "bytes32"
1837
- }
1838
- ],
1839
- "stateMutability": "pure",
1840
- "type": "function"
1841
- },
1842
- {
1843
- "inputs": [
1844
- {
1845
- "internalType": "NftId",
1846
- "name": "distNftId",
1847
- "type": "uint96"
1848
- }
1849
- ],
1850
- "name": "toDistributorTypeKey32",
1851
- "outputs": [
1852
- {
1853
- "internalType": "Key32",
1854
- "name": "",
1855
- "type": "bytes32"
1856
- }
1857
- ],
1858
- "stateMutability": "pure",
1859
- "type": "function"
1860
- },
1861
- {
1862
- "inputs": [
1863
- {
1864
- "internalType": "ObjectType",
1865
- "name": "objectType",
1866
- "type": "uint8"
1867
- },
1868
- {
1869
- "internalType": "KeyId",
1870
- "name": "id",
1871
- "type": "bytes31"
1872
- }
1873
- ],
1874
- "name": "toKey32",
1875
- "outputs": [
1876
- {
1877
- "internalType": "Key32",
1878
- "name": "",
1879
- "type": "bytes32"
1880
- }
1881
- ],
1882
- "stateMutability": "pure",
1883
- "type": "function"
1884
- },
1885
- {
1886
- "inputs": [
1887
- {
1888
- "internalType": "NftId",
1889
- "name": "policyNftId",
1890
- "type": "uint96"
1891
- }
1892
- ],
1893
- "name": "toPolicyKey32",
1894
- "outputs": [
1895
- {
1896
- "internalType": "Key32",
1897
- "name": "",
1898
- "type": "bytes32"
1899
- }
1900
- ],
1901
- "stateMutability": "pure",
1902
- "type": "function"
1903
- },
1904
- {
1905
- "inputs": [
1906
- {
1907
- "internalType": "NftId",
1908
- "name": "applicationNftId",
1909
- "type": "uint96"
1910
- },
1911
- {
1912
- "components": [
1913
- {
1914
- "internalType": "NftId",
1915
- "name": "productNftId",
1916
- "type": "uint96"
1917
- },
1918
- {
1919
- "internalType": "NftId",
1920
- "name": "bundleNftId",
1921
- "type": "uint96"
1922
- },
1923
- {
1924
- "internalType": "ReferralId",
1925
- "name": "referralId",
1926
- "type": "bytes8"
1927
- },
1928
- {
1929
- "internalType": "RiskId",
1930
- "name": "riskId",
1931
- "type": "bytes8"
1932
- },
1933
- {
1934
- "internalType": "uint256",
1935
- "name": "sumInsuredAmount",
1936
- "type": "uint256"
1937
- },
1938
- {
1939
- "internalType": "uint256",
1940
- "name": "premiumAmount",
1941
- "type": "uint256"
1942
- },
1943
- {
1944
- "internalType": "uint256",
1945
- "name": "premiumPaidAmount",
1946
- "type": "uint256"
1947
- },
1948
- {
1949
- "internalType": "Seconds",
1950
- "name": "lifetime",
1951
- "type": "uint40"
1952
- },
1953
- {
1954
- "internalType": "bytes",
1955
- "name": "applicationData",
1956
- "type": "bytes"
1957
- },
1958
- {
1959
- "internalType": "bytes",
1960
- "name": "policyData",
1961
- "type": "bytes"
1962
- },
1963
- {
1964
- "internalType": "uint16",
1965
- "name": "claimsCount",
1966
- "type": "uint16"
1967
- },
1968
- {
1969
- "internalType": "uint16",
1970
- "name": "openClaimsCount",
1971
- "type": "uint16"
1972
- },
1973
- {
1974
- "internalType": "uint256",
1975
- "name": "payoutAmount",
1976
- "type": "uint256"
1977
- },
1978
- {
1979
- "internalType": "Timestamp",
1980
- "name": "activatedAt",
1981
- "type": "uint40"
1982
- },
1983
- {
1984
- "internalType": "Timestamp",
1985
- "name": "expiredAt",
1986
- "type": "uint40"
1987
- },
1988
- {
1989
- "internalType": "Timestamp",
1990
- "name": "closedAt",
1991
- "type": "uint40"
1992
- }
1993
- ],
1994
- "internalType": "struct IPolicy.PolicyInfo",
1995
- "name": "policy",
1996
- "type": "tuple"
1997
- },
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [],
425
+ "name": "getInstanceReader",
426
+ "outputs": [
1998
427
  {
1999
- "internalType": "StateId",
2000
- "name": "newState",
2001
- "type": "uint8"
428
+ "internalType": "contract InstanceReader",
429
+ "name": "",
430
+ "type": "address"
2002
431
  }
2003
432
  ],
2004
- "name": "updateApplication",
2005
- "outputs": [],
2006
- "stateMutability": "nonpayable",
433
+ "stateMutability": "view",
2007
434
  "type": "function"
2008
435
  },
2009
436
  {
2010
- "inputs": [
2011
- {
2012
- "internalType": "NftId",
2013
- "name": "applicationNftId",
2014
- "type": "uint96"
2015
- },
437
+ "inputs": [],
438
+ "name": "getInstanceStore",
439
+ "outputs": [
2016
440
  {
2017
- "internalType": "StateId",
2018
- "name": "newState",
2019
- "type": "uint8"
441
+ "internalType": "contract InstanceStore",
442
+ "name": "",
443
+ "type": "address"
2020
444
  }
2021
445
  ],
2022
- "name": "updateApplicationState",
2023
- "outputs": [],
2024
- "stateMutability": "nonpayable",
446
+ "stateMutability": "view",
2025
447
  "type": "function"
2026
448
  },
2027
449
  {
2028
- "inputs": [
2029
- {
2030
- "internalType": "NftId",
2031
- "name": "bundleNftId",
2032
- "type": "uint96"
2033
- },
2034
- {
2035
- "components": [
2036
- {
2037
- "internalType": "NftId",
2038
- "name": "poolNftId",
2039
- "type": "uint96"
2040
- },
2041
- {
2042
- "components": [
2043
- {
2044
- "internalType": "UFixed",
2045
- "name": "fractionalFee",
2046
- "type": "uint256"
2047
- },
2048
- {
2049
- "internalType": "uint256",
2050
- "name": "fixedFee",
2051
- "type": "uint256"
2052
- }
2053
- ],
2054
- "internalType": "struct Fee",
2055
- "name": "fee",
2056
- "type": "tuple"
2057
- },
2058
- {
2059
- "internalType": "bytes",
2060
- "name": "filter",
2061
- "type": "bytes"
2062
- },
2063
- {
2064
- "internalType": "uint256",
2065
- "name": "capitalAmount",
2066
- "type": "uint256"
2067
- },
2068
- {
2069
- "internalType": "uint256",
2070
- "name": "lockedAmount",
2071
- "type": "uint256"
2072
- },
2073
- {
2074
- "internalType": "uint256",
2075
- "name": "balanceAmount",
2076
- "type": "uint256"
2077
- },
2078
- {
2079
- "internalType": "Seconds",
2080
- "name": "lifetime",
2081
- "type": "uint40"
2082
- },
2083
- {
2084
- "internalType": "Timestamp",
2085
- "name": "expiredAt",
2086
- "type": "uint40"
2087
- },
2088
- {
2089
- "internalType": "Timestamp",
2090
- "name": "closedAt",
2091
- "type": "uint40"
2092
- }
2093
- ],
2094
- "internalType": "struct IBundle.BundleInfo",
2095
- "name": "bundle",
2096
- "type": "tuple"
2097
- },
450
+ "inputs": [],
451
+ "name": "getMajorVersion",
452
+ "outputs": [
2098
453
  {
2099
- "internalType": "StateId",
2100
- "name": "newState",
454
+ "internalType": "VersionPart",
455
+ "name": "majorVersion",
2101
456
  "type": "uint8"
2102
457
  }
2103
458
  ],
2104
- "name": "updateBundle",
2105
- "outputs": [],
2106
- "stateMutability": "nonpayable",
459
+ "stateMutability": "pure",
2107
460
  "type": "function"
2108
461
  },
2109
462
  {
2110
- "inputs": [
463
+ "inputs": [],
464
+ "name": "getNftId",
465
+ "outputs": [
2111
466
  {
2112
467
  "internalType": "NftId",
2113
- "name": "bundleNftId",
468
+ "name": "",
2114
469
  "type": "uint96"
2115
- },
470
+ }
471
+ ],
472
+ "stateMutability": "view",
473
+ "type": "function"
474
+ },
475
+ {
476
+ "inputs": [],
477
+ "name": "getOwner",
478
+ "outputs": [
2116
479
  {
2117
- "internalType": "StateId",
2118
- "name": "newState",
2119
- "type": "uint8"
480
+ "internalType": "address",
481
+ "name": "",
482
+ "type": "address"
2120
483
  }
2121
484
  ],
2122
- "name": "updateBundleState",
2123
- "outputs": [],
2124
- "stateMutability": "nonpayable",
485
+ "stateMutability": "view",
2125
486
  "type": "function"
2126
487
  },
2127
488
  {
2128
- "inputs": [
489
+ "inputs": [],
490
+ "name": "getPolicyService",
491
+ "outputs": [
2129
492
  {
2130
- "internalType": "NftId",
2131
- "name": "policyNftId",
2132
- "type": "uint96"
2133
- },
493
+ "internalType": "contract IPolicyService",
494
+ "name": "",
495
+ "type": "address"
496
+ }
497
+ ],
498
+ "stateMutability": "view",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [],
503
+ "name": "getPoolService",
504
+ "outputs": [
2134
505
  {
2135
- "internalType": "ClaimId",
2136
- "name": "claimId",
2137
- "type": "uint16"
2138
- },
506
+ "internalType": "contract IPoolService",
507
+ "name": "",
508
+ "type": "address"
509
+ }
510
+ ],
511
+ "stateMutability": "view",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [],
516
+ "name": "getProductService",
517
+ "outputs": [
2139
518
  {
2140
- "components": [
2141
- {
2142
- "internalType": "uint256",
2143
- "name": "claimAmount",
2144
- "type": "uint256"
2145
- },
2146
- {
2147
- "internalType": "uint256",
2148
- "name": "paidAmount",
2149
- "type": "uint256"
2150
- },
2151
- {
2152
- "internalType": "bytes",
2153
- "name": "data",
2154
- "type": "bytes"
2155
- },
2156
- {
2157
- "internalType": "Timestamp",
2158
- "name": "closedAt",
2159
- "type": "uint40"
2160
- }
2161
- ],
2162
- "internalType": "struct IPolicy.ClaimInfo",
2163
- "name": "claim",
2164
- "type": "tuple"
2165
- },
519
+ "internalType": "contract IProductService",
520
+ "name": "",
521
+ "type": "address"
522
+ }
523
+ ],
524
+ "stateMutability": "view",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [],
529
+ "name": "getRegistry",
530
+ "outputs": [
2166
531
  {
2167
- "internalType": "StateId",
2168
- "name": "newState",
2169
- "type": "uint8"
532
+ "internalType": "contract IRegistry",
533
+ "name": "",
534
+ "type": "address"
2170
535
  }
2171
536
  ],
2172
- "name": "updateClaim",
2173
- "outputs": [],
2174
- "stateMutability": "nonpayable",
537
+ "stateMutability": "view",
2175
538
  "type": "function"
2176
539
  },
2177
540
  {
2178
541
  "inputs": [
2179
542
  {
2180
- "internalType": "NftId",
2181
- "name": "policyNftId",
2182
- "type": "uint96"
2183
- },
2184
- {
2185
- "internalType": "ClaimId",
2186
- "name": "claimId",
2187
- "type": "uint16"
543
+ "internalType": "RoleId",
544
+ "name": "roleId",
545
+ "type": "uint64"
2188
546
  },
2189
547
  {
2190
- "internalType": "StateId",
2191
- "name": "newState",
2192
- "type": "uint8"
548
+ "internalType": "address",
549
+ "name": "account",
550
+ "type": "address"
2193
551
  }
2194
552
  ],
2195
- "name": "updateClaimState",
553
+ "name": "grantRole",
2196
554
  "outputs": [],
2197
555
  "stateMutability": "nonpayable",
2198
556
  "type": "function"
@@ -2200,78 +558,29 @@
2200
558
  {
2201
559
  "inputs": [
2202
560
  {
2203
- "internalType": "NftId",
2204
- "name": "distributionNftId",
2205
- "type": "uint96"
561
+ "internalType": "address",
562
+ "name": "authority",
563
+ "type": "address"
2206
564
  },
2207
565
  {
2208
- "components": [
2209
- {
2210
- "internalType": "NftId",
2211
- "name": "productNftId",
2212
- "type": "uint96"
2213
- },
2214
- {
2215
- "internalType": "contract TokenHandler",
2216
- "name": "tokenHandler",
2217
- "type": "address"
2218
- },
2219
- {
2220
- "components": [
2221
- {
2222
- "internalType": "UFixed",
2223
- "name": "fractionalFee",
2224
- "type": "uint256"
2225
- },
2226
- {
2227
- "internalType": "uint256",
2228
- "name": "fixedFee",
2229
- "type": "uint256"
2230
- }
2231
- ],
2232
- "internalType": "struct Fee",
2233
- "name": "minDistributionOwnerFee",
2234
- "type": "tuple"
2235
- },
2236
- {
2237
- "components": [
2238
- {
2239
- "internalType": "UFixed",
2240
- "name": "fractionalFee",
2241
- "type": "uint256"
2242
- },
2243
- {
2244
- "internalType": "uint256",
2245
- "name": "fixedFee",
2246
- "type": "uint256"
2247
- }
2248
- ],
2249
- "internalType": "struct Fee",
2250
- "name": "distributionFee",
2251
- "type": "tuple"
2252
- },
2253
- {
2254
- "internalType": "address",
2255
- "name": "wallet",
2256
- "type": "address"
2257
- },
2258
- {
2259
- "internalType": "uint256",
2260
- "name": "sumDistributionOwnerFees",
2261
- "type": "uint256"
2262
- }
2263
- ],
2264
- "internalType": "struct ISetup.DistributionSetupInfo",
2265
- "name": "setup",
2266
- "type": "tuple"
566
+ "internalType": "address",
567
+ "name": "registryAddress",
568
+ "type": "address"
2267
569
  },
2268
570
  {
2269
- "internalType": "StateId",
2270
- "name": "newState",
2271
- "type": "uint8"
571
+ "internalType": "address",
572
+ "name": "initialOwner",
573
+ "type": "address"
2272
574
  }
2273
575
  ],
2274
- "name": "updateDistributionSetup",
576
+ "name": "initialize",
577
+ "outputs": [],
578
+ "stateMutability": "nonpayable",
579
+ "type": "function"
580
+ },
581
+ {
582
+ "inputs": [],
583
+ "name": "initializeERC165",
2275
584
  "outputs": [],
2276
585
  "stateMutability": "nonpayable",
2277
586
  "type": "function"
@@ -2279,67 +588,55 @@
2279
588
  {
2280
589
  "inputs": [
2281
590
  {
2282
- "internalType": "NftId",
2283
- "name": "distributionNftId",
2284
- "type": "uint96"
591
+ "internalType": "address",
592
+ "name": "initialOwner",
593
+ "type": "address"
2285
594
  },
2286
595
  {
2287
- "internalType": "StateId",
2288
- "name": "newState",
2289
- "type": "uint8"
596
+ "internalType": "address",
597
+ "name": "registryAddress",
598
+ "type": "address"
2290
599
  }
2291
600
  ],
2292
- "name": "updateDistributionSetupState",
601
+ "name": "initializeNftOwnable",
2293
602
  "outputs": [],
2294
603
  "stateMutability": "nonpayable",
2295
604
  "type": "function"
2296
605
  },
2297
606
  {
2298
607
  "inputs": [
608
+ {
609
+ "internalType": "address",
610
+ "name": "registryAddress",
611
+ "type": "address"
612
+ },
2299
613
  {
2300
614
  "internalType": "NftId",
2301
- "name": "nftId",
615
+ "name": "parentNftId",
2302
616
  "type": "uint96"
2303
617
  },
2304
618
  {
2305
- "components": [
2306
- {
2307
- "internalType": "DistributorType",
2308
- "name": "distributorType",
2309
- "type": "bytes8"
2310
- },
2311
- {
2312
- "internalType": "bool",
2313
- "name": "active",
2314
- "type": "bool"
2315
- },
2316
- {
2317
- "internalType": "bytes",
2318
- "name": "data",
2319
- "type": "bytes"
2320
- },
2321
- {
2322
- "internalType": "uint256",
2323
- "name": "sumCommisions",
2324
- "type": "uint256"
2325
- },
2326
- {
2327
- "internalType": "uint256",
2328
- "name": "numPoliciesSold",
2329
- "type": "uint256"
2330
- }
2331
- ],
2332
- "internalType": "struct IDistribution.DistributorInfo",
2333
- "name": "info",
2334
- "type": "tuple"
619
+ "internalType": "ObjectType",
620
+ "name": "objectType",
621
+ "type": "uint8"
2335
622
  },
2336
623
  {
2337
- "internalType": "StateId",
2338
- "name": "newState",
2339
- "type": "uint8"
624
+ "internalType": "bool",
625
+ "name": "isInterceptor",
626
+ "type": "bool"
627
+ },
628
+ {
629
+ "internalType": "address",
630
+ "name": "initialOwner",
631
+ "type": "address"
632
+ },
633
+ {
634
+ "internalType": "bytes",
635
+ "name": "registryData",
636
+ "type": "bytes"
2340
637
  }
2341
638
  ],
2342
- "name": "updateDistributor",
639
+ "name": "initializeRegisterable",
2343
640
  "outputs": [],
2344
641
  "stateMutability": "nonpayable",
2345
642
  "type": "function"
@@ -2347,105 +644,51 @@
2347
644
  {
2348
645
  "inputs": [
2349
646
  {
2350
- "internalType": "NftId",
2351
- "name": "nftId",
2352
- "type": "uint96"
2353
- },
2354
- {
2355
- "internalType": "StateId",
2356
- "name": "newState",
2357
- "type": "uint8"
647
+ "internalType": "address",
648
+ "name": "registryAddress",
649
+ "type": "address"
2358
650
  }
2359
651
  ],
2360
- "name": "updateDistributorState",
652
+ "name": "initializeRegistryLinked",
2361
653
  "outputs": [],
2362
654
  "stateMutability": "nonpayable",
2363
655
  "type": "function"
2364
656
  },
2365
657
  {
2366
- "inputs": [
2367
- {
2368
- "internalType": "Key32",
2369
- "name": "distributorKey",
2370
- "type": "bytes32"
2371
- },
2372
- {
2373
- "components": [
2374
- {
2375
- "internalType": "string",
2376
- "name": "name",
2377
- "type": "string"
2378
- },
2379
- {
2380
- "internalType": "UFixed",
2381
- "name": "minDiscountPercentage",
2382
- "type": "uint256"
2383
- },
2384
- {
2385
- "internalType": "UFixed",
2386
- "name": "maxDiscountPercentage",
2387
- "type": "uint256"
2388
- },
2389
- {
2390
- "internalType": "UFixed",
2391
- "name": "commissionPercentage",
2392
- "type": "uint256"
2393
- },
2394
- {
2395
- "internalType": "uint32",
2396
- "name": "maxReferralCount",
2397
- "type": "uint32"
2398
- },
2399
- {
2400
- "internalType": "uint32",
2401
- "name": "maxReferralLifetime",
2402
- "type": "uint32"
2403
- },
2404
- {
2405
- "internalType": "bool",
2406
- "name": "allowSelfReferrals",
2407
- "type": "bool"
2408
- },
2409
- {
2410
- "internalType": "bool",
2411
- "name": "allowRenewals",
2412
- "type": "bool"
2413
- },
2414
- {
2415
- "internalType": "bytes",
2416
- "name": "data",
2417
- "type": "bytes"
2418
- }
2419
- ],
2420
- "internalType": "struct IDistribution.DistributorTypeInfo",
2421
- "name": "info",
2422
- "type": "tuple"
2423
- },
658
+ "inputs": [],
659
+ "name": "isConsumingScheduledOp",
660
+ "outputs": [
2424
661
  {
2425
- "internalType": "StateId",
2426
- "name": "newState",
2427
- "type": "uint8"
662
+ "internalType": "bytes4",
663
+ "name": "",
664
+ "type": "bytes4"
2428
665
  }
2429
666
  ],
2430
- "name": "updateDistributorType",
2431
- "outputs": [],
2432
- "stateMutability": "nonpayable",
667
+ "stateMutability": "view",
2433
668
  "type": "function"
2434
669
  },
2435
670
  {
2436
671
  "inputs": [
2437
672
  {
2438
- "internalType": "Key32",
2439
- "name": "distributorKey",
2440
- "type": "bytes32"
2441
- },
673
+ "internalType": "address",
674
+ "name": "nftOwnableAddress",
675
+ "type": "address"
676
+ }
677
+ ],
678
+ "name": "linkToNftOwnable",
679
+ "outputs": [
2442
680
  {
2443
- "internalType": "StateId",
2444
- "name": "newState",
2445
- "type": "uint8"
681
+ "internalType": "NftId",
682
+ "name": "",
683
+ "type": "uint96"
2446
684
  }
2447
685
  ],
2448
- "name": "updateDistributorTypeState",
686
+ "stateMutability": "nonpayable",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "linkToRegisteredNftId",
2449
692
  "outputs": [],
2450
693
  "stateMutability": "nonpayable",
2451
694
  "type": "function"
@@ -2453,49 +696,17 @@
2453
696
  {
2454
697
  "inputs": [
2455
698
  {
2456
- "internalType": "NftId",
2457
- "name": "policyNftId",
2458
- "type": "uint96"
2459
- },
2460
- {
2461
- "internalType": "NumberId",
2462
- "name": "payoutId",
2463
- "type": "uint32"
2464
- },
2465
- {
2466
- "components": [
2467
- {
2468
- "internalType": "ClaimId",
2469
- "name": "claimId",
2470
- "type": "uint16"
2471
- },
2472
- {
2473
- "internalType": "uint256",
2474
- "name": "amount",
2475
- "type": "uint256"
2476
- },
2477
- {
2478
- "internalType": "bytes",
2479
- "name": "data",
2480
- "type": "bytes"
2481
- },
2482
- {
2483
- "internalType": "Timestamp",
2484
- "name": "paidAt",
2485
- "type": "uint40"
2486
- }
2487
- ],
2488
- "internalType": "struct IPolicy.PayoutInfo",
2489
- "name": "payout",
2490
- "type": "tuple"
699
+ "internalType": "address",
700
+ "name": "to",
701
+ "type": "address"
2491
702
  },
2492
703
  {
2493
- "internalType": "StateId",
2494
- "name": "newState",
2495
- "type": "uint8"
704
+ "internalType": "uint256",
705
+ "name": "tokenId",
706
+ "type": "uint256"
2496
707
  }
2497
708
  ],
2498
- "name": "updatePayout",
709
+ "name": "nftMint",
2499
710
  "outputs": [],
2500
711
  "stateMutability": "nonpayable",
2501
712
  "type": "function"
@@ -2503,17 +714,22 @@
2503
714
  {
2504
715
  "inputs": [
2505
716
  {
2506
- "internalType": "NftId",
2507
- "name": "policyNftId",
2508
- "type": "uint96"
717
+ "internalType": "address",
718
+ "name": "from",
719
+ "type": "address"
2509
720
  },
2510
721
  {
2511
- "internalType": "StateId",
2512
- "name": "newState",
2513
- "type": "uint8"
722
+ "internalType": "address",
723
+ "name": "to",
724
+ "type": "address"
725
+ },
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "tokenId",
729
+ "type": "uint256"
2514
730
  }
2515
731
  ],
2516
- "name": "updatePayoutState",
732
+ "name": "nftTransferFrom",
2517
733
  "outputs": [],
2518
734
  "stateMutability": "nonpayable",
2519
735
  "type": "function"
@@ -2521,104 +737,12 @@
2521
737
  {
2522
738
  "inputs": [
2523
739
  {
2524
- "internalType": "NftId",
2525
- "name": "policyNftId",
2526
- "type": "uint96"
2527
- },
2528
- {
2529
- "components": [
2530
- {
2531
- "internalType": "NftId",
2532
- "name": "productNftId",
2533
- "type": "uint96"
2534
- },
2535
- {
2536
- "internalType": "NftId",
2537
- "name": "bundleNftId",
2538
- "type": "uint96"
2539
- },
2540
- {
2541
- "internalType": "ReferralId",
2542
- "name": "referralId",
2543
- "type": "bytes8"
2544
- },
2545
- {
2546
- "internalType": "RiskId",
2547
- "name": "riskId",
2548
- "type": "bytes8"
2549
- },
2550
- {
2551
- "internalType": "uint256",
2552
- "name": "sumInsuredAmount",
2553
- "type": "uint256"
2554
- },
2555
- {
2556
- "internalType": "uint256",
2557
- "name": "premiumAmount",
2558
- "type": "uint256"
2559
- },
2560
- {
2561
- "internalType": "uint256",
2562
- "name": "premiumPaidAmount",
2563
- "type": "uint256"
2564
- },
2565
- {
2566
- "internalType": "Seconds",
2567
- "name": "lifetime",
2568
- "type": "uint40"
2569
- },
2570
- {
2571
- "internalType": "bytes",
2572
- "name": "applicationData",
2573
- "type": "bytes"
2574
- },
2575
- {
2576
- "internalType": "bytes",
2577
- "name": "policyData",
2578
- "type": "bytes"
2579
- },
2580
- {
2581
- "internalType": "uint16",
2582
- "name": "claimsCount",
2583
- "type": "uint16"
2584
- },
2585
- {
2586
- "internalType": "uint16",
2587
- "name": "openClaimsCount",
2588
- "type": "uint16"
2589
- },
2590
- {
2591
- "internalType": "uint256",
2592
- "name": "payoutAmount",
2593
- "type": "uint256"
2594
- },
2595
- {
2596
- "internalType": "Timestamp",
2597
- "name": "activatedAt",
2598
- "type": "uint40"
2599
- },
2600
- {
2601
- "internalType": "Timestamp",
2602
- "name": "expiredAt",
2603
- "type": "uint40"
2604
- },
2605
- {
2606
- "internalType": "Timestamp",
2607
- "name": "closedAt",
2608
- "type": "uint40"
2609
- }
2610
- ],
2611
- "internalType": "struct IPolicy.PolicyInfo",
2612
- "name": "policy",
2613
- "type": "tuple"
2614
- },
2615
- {
2616
- "internalType": "StateId",
2617
- "name": "newState",
2618
- "type": "uint8"
740
+ "internalType": "bytes4",
741
+ "name": "interfaceId",
742
+ "type": "bytes4"
2619
743
  }
2620
744
  ],
2621
- "name": "updatePolicy",
745
+ "name": "registerInterface",
2622
746
  "outputs": [],
2623
747
  "stateMutability": "nonpayable",
2624
748
  "type": "function"
@@ -2626,17 +750,17 @@
2626
750
  {
2627
751
  "inputs": [
2628
752
  {
2629
- "internalType": "NftId",
2630
- "name": "policyNftId",
2631
- "type": "uint96"
753
+ "internalType": "RoleId",
754
+ "name": "roleId",
755
+ "type": "uint64"
2632
756
  },
2633
757
  {
2634
- "internalType": "StateId",
2635
- "name": "newState",
2636
- "type": "uint8"
758
+ "internalType": "address",
759
+ "name": "account",
760
+ "type": "address"
2637
761
  }
2638
762
  ],
2639
- "name": "updatePolicyState",
763
+ "name": "revokeRole",
2640
764
  "outputs": [],
2641
765
  "stateMutability": "nonpayable",
2642
766
  "type": "function"
@@ -2644,49 +768,12 @@
2644
768
  {
2645
769
  "inputs": [
2646
770
  {
2647
- "internalType": "NftId",
2648
- "name": "poolNftId",
2649
- "type": "uint96"
2650
- },
2651
- {
2652
- "components": [
2653
- {
2654
- "internalType": "string",
2655
- "name": "name",
2656
- "type": "string"
2657
- },
2658
- {
2659
- "internalType": "contract IERC20Metadata",
2660
- "name": "token",
2661
- "type": "address"
2662
- },
2663
- {
2664
- "internalType": "contract TokenHandler",
2665
- "name": "tokenHandler",
2666
- "type": "address"
2667
- },
2668
- {
2669
- "internalType": "address",
2670
- "name": "wallet",
2671
- "type": "address"
2672
- },
2673
- {
2674
- "internalType": "bytes",
2675
- "name": "data",
2676
- "type": "bytes"
2677
- }
2678
- ],
2679
- "internalType": "struct IComponents.ComponentInfo",
2680
- "name": "info",
2681
- "type": "tuple"
2682
- },
2683
- {
2684
- "internalType": "StateId",
2685
- "name": "newState",
2686
- "type": "uint8"
771
+ "internalType": "address",
772
+ "name": "newAuthority",
773
+ "type": "address"
2687
774
  }
2688
775
  ],
2689
- "name": "updatePoolSetup",
776
+ "name": "setAuthority",
2690
777
  "outputs": [],
2691
778
  "stateMutability": "nonpayable",
2692
779
  "type": "function"
@@ -2694,17 +781,12 @@
2694
781
  {
2695
782
  "inputs": [
2696
783
  {
2697
- "internalType": "NftId",
2698
- "name": "poolNftId",
2699
- "type": "uint96"
2700
- },
2701
- {
2702
- "internalType": "StateId",
2703
- "name": "newState",
2704
- "type": "uint8"
784
+ "internalType": "contract BundleManager",
785
+ "name": "bundleManager",
786
+ "type": "address"
2705
787
  }
2706
788
  ],
2707
- "name": "updatePoolSetupState",
789
+ "name": "setBundleManager",
2708
790
  "outputs": [],
2709
791
  "stateMutability": "nonpayable",
2710
792
  "type": "function"
@@ -2712,88 +794,12 @@
2712
794
  {
2713
795
  "inputs": [
2714
796
  {
2715
- "internalType": "NftId",
2716
- "name": "productNftId",
2717
- "type": "uint96"
2718
- },
2719
- {
2720
- "components": [
2721
- {
2722
- "internalType": "contract IERC20Metadata",
2723
- "name": "token",
2724
- "type": "address"
2725
- },
2726
- {
2727
- "internalType": "contract TokenHandler",
2728
- "name": "tokenHandler",
2729
- "type": "address"
2730
- },
2731
- {
2732
- "internalType": "NftId",
2733
- "name": "distributionNftId",
2734
- "type": "uint96"
2735
- },
2736
- {
2737
- "internalType": "NftId",
2738
- "name": "poolNftId",
2739
- "type": "uint96"
2740
- },
2741
- {
2742
- "components": [
2743
- {
2744
- "internalType": "UFixed",
2745
- "name": "fractionalFee",
2746
- "type": "uint256"
2747
- },
2748
- {
2749
- "internalType": "uint256",
2750
- "name": "fixedFee",
2751
- "type": "uint256"
2752
- }
2753
- ],
2754
- "internalType": "struct Fee",
2755
- "name": "productFee",
2756
- "type": "tuple"
2757
- },
2758
- {
2759
- "components": [
2760
- {
2761
- "internalType": "UFixed",
2762
- "name": "fractionalFee",
2763
- "type": "uint256"
2764
- },
2765
- {
2766
- "internalType": "uint256",
2767
- "name": "fixedFee",
2768
- "type": "uint256"
2769
- }
2770
- ],
2771
- "internalType": "struct Fee",
2772
- "name": "processingFee",
2773
- "type": "tuple"
2774
- },
2775
- {
2776
- "internalType": "bool",
2777
- "name": "isIntercepting",
2778
- "type": "bool"
2779
- },
2780
- {
2781
- "internalType": "address",
2782
- "name": "wallet",
2783
- "type": "address"
2784
- }
2785
- ],
2786
- "internalType": "struct ISetup.ProductSetupInfo",
2787
- "name": "setup",
2788
- "type": "tuple"
2789
- },
2790
- {
2791
- "internalType": "StateId",
2792
- "name": "newState",
2793
- "type": "uint8"
797
+ "internalType": "contract InstanceAdmin",
798
+ "name": "accessManager",
799
+ "type": "address"
2794
800
  }
2795
801
  ],
2796
- "name": "updateProductSetup",
802
+ "name": "setInstanceAdmin",
2797
803
  "outputs": [],
2798
804
  "stateMutability": "nonpayable",
2799
805
  "type": "function"
@@ -2801,17 +807,12 @@
2801
807
  {
2802
808
  "inputs": [
2803
809
  {
2804
- "internalType": "NftId",
2805
- "name": "productNftId",
2806
- "type": "uint96"
2807
- },
2808
- {
2809
- "internalType": "StateId",
2810
- "name": "newState",
2811
- "type": "uint8"
810
+ "internalType": "contract InstanceReader",
811
+ "name": "instanceReader",
812
+ "type": "address"
2812
813
  }
2813
814
  ],
2814
- "name": "updateProductSetupState",
815
+ "name": "setInstanceReader",
2815
816
  "outputs": [],
2816
817
  "stateMutability": "nonpayable",
2817
818
  "type": "function"
@@ -2819,59 +820,12 @@
2819
820
  {
2820
821
  "inputs": [
2821
822
  {
2822
- "internalType": "Key32",
2823
- "name": "referralKey",
2824
- "type": "bytes32"
2825
- },
2826
- {
2827
- "components": [
2828
- {
2829
- "internalType": "NftId",
2830
- "name": "distributorNftId",
2831
- "type": "uint96"
2832
- },
2833
- {
2834
- "internalType": "string",
2835
- "name": "referralCode",
2836
- "type": "string"
2837
- },
2838
- {
2839
- "internalType": "UFixed",
2840
- "name": "discountPercentage",
2841
- "type": "uint256"
2842
- },
2843
- {
2844
- "internalType": "uint32",
2845
- "name": "maxReferrals",
2846
- "type": "uint32"
2847
- },
2848
- {
2849
- "internalType": "uint32",
2850
- "name": "usedReferrals",
2851
- "type": "uint32"
2852
- },
2853
- {
2854
- "internalType": "Timestamp",
2855
- "name": "expiryAt",
2856
- "type": "uint40"
2857
- },
2858
- {
2859
- "internalType": "bytes",
2860
- "name": "data",
2861
- "type": "bytes"
2862
- }
2863
- ],
2864
- "internalType": "struct IDistribution.ReferralInfo",
2865
- "name": "referralInfo",
2866
- "type": "tuple"
2867
- },
2868
- {
2869
- "internalType": "StateId",
2870
- "name": "newState",
2871
- "type": "uint8"
823
+ "internalType": "contract InstanceStore",
824
+ "name": "instanceStore",
825
+ "type": "address"
2872
826
  }
2873
827
  ],
2874
- "name": "updateReferral",
828
+ "name": "setInstanceStore",
2875
829
  "outputs": [],
2876
830
  "stateMutability": "nonpayable",
2877
831
  "type": "function"
@@ -2879,17 +833,22 @@
2879
833
  {
2880
834
  "inputs": [
2881
835
  {
2882
- "internalType": "Key32",
2883
- "name": "referralKey",
2884
- "type": "bytes32"
836
+ "internalType": "string",
837
+ "name": "targetName",
838
+ "type": "string"
2885
839
  },
2886
840
  {
2887
- "internalType": "StateId",
2888
- "name": "newState",
2889
- "type": "uint8"
841
+ "internalType": "bytes4[]",
842
+ "name": "selectors",
843
+ "type": "bytes4[]"
844
+ },
845
+ {
846
+ "internalType": "RoleId",
847
+ "name": "roleId",
848
+ "type": "uint64"
2890
849
  }
2891
850
  ],
2892
- "name": "updateReferralState",
851
+ "name": "setTargetFunctionRole",
2893
852
  "outputs": [],
2894
853
  "stateMutability": "nonpayable",
2895
854
  "type": "function"
@@ -2897,34 +856,17 @@
2897
856
  {
2898
857
  "inputs": [
2899
858
  {
2900
- "internalType": "RiskId",
2901
- "name": "riskId",
2902
- "type": "bytes8"
2903
- },
2904
- {
2905
- "components": [
2906
- {
2907
- "internalType": "NftId",
2908
- "name": "productNftId",
2909
- "type": "uint96"
2910
- },
2911
- {
2912
- "internalType": "bytes",
2913
- "name": "data",
2914
- "type": "bytes"
2915
- }
2916
- ],
2917
- "internalType": "struct IRisk.RiskInfo",
2918
- "name": "risk",
2919
- "type": "tuple"
859
+ "internalType": "address",
860
+ "name": "target",
861
+ "type": "address"
2920
862
  },
2921
863
  {
2922
- "internalType": "StateId",
2923
- "name": "newState",
2924
- "type": "uint8"
864
+ "internalType": "bool",
865
+ "name": "locked",
866
+ "type": "bool"
2925
867
  }
2926
868
  ],
2927
- "name": "updateRisk",
869
+ "name": "setTargetLocked",
2928
870
  "outputs": [],
2929
871
  "stateMutability": "nonpayable",
2930
872
  "type": "function"
@@ -2932,336 +874,89 @@
2932
874
  {
2933
875
  "inputs": [
2934
876
  {
2935
- "internalType": "RiskId",
2936
- "name": "riskId",
2937
- "type": "bytes8"
2938
- },
877
+ "internalType": "bytes4",
878
+ "name": "interfaceId",
879
+ "type": "bytes4"
880
+ }
881
+ ],
882
+ "name": "supportsInterface",
883
+ "outputs": [
2939
884
  {
2940
- "internalType": "StateId",
2941
- "name": "newState",
2942
- "type": "uint8"
885
+ "internalType": "bool",
886
+ "name": "",
887
+ "type": "bool"
2943
888
  }
2944
889
  ],
2945
- "name": "updateRiskState",
2946
- "outputs": [],
2947
- "stateMutability": "nonpayable",
890
+ "stateMutability": "view",
2948
891
  "type": "function"
2949
892
  }
2950
893
  ],
2951
- "bytecode": "0x608060405234801561001057600080fd5b50615d3980620000216000396000f3fe608060405234801561001057600080fd5b50600436106104d85760003560e01c806375b238fc11610283578063bf7e214f1161015c578063e9e96c70116100ce578063f7c34ee011610092578063f7c34ee014610bcb578063fa145b6d14610bde578063fb4a8e3414610bf1578063fbc1a3a014610c04578063fe1f18d614610c17578063fed3d63f14610c2a57600080fd5b8063e9e96c7014610b54578063f21de1e814610830578063f48016ce14610b92578063f7b442d114610ba5578063f7bc431c14610bb857600080fd5b8063cf947d2011610120578063cf947d2014610aea578063d2f21a2914610afd578063dee3262314610b10578063e1033e7d14610b23578063e5f6cd2714610b2b578063e7f7fb8614610b4157600080fd5b8063bf7e214f14610abf578063c0c53b8b14610ac7578063c29948fc14610635578063ca600b1c14610ada578063cde749f414610ae257600080fd5b8063a5961b4c116101f5578063afa5e130116101b9578063afa5e130146107c4578063afcc743914610a60578063b3260e9314610a73578063b6d7cd6214610a86578063bb1e0e5914610a99578063bf1db3f914610aac57600080fd5b8063a5961b4c14610961578063a671495e14610a12578063a76ee01814610a25578063a898967514610a38578063ada9652e14610a4b57600080fd5b80638e28413f116102475780638e28413f146108e75780638eaa6ac0146108fa5780638fb360371461091a5780639df0280b146105f25780639e90178c1461093b578063a13df2ab1461094e57600080fd5b806375b238fc1461089e5780637a9e5e4b146108a65780637b8c388f146108b95780637cef4842146108cc578063893d20e8146108df57600080fd5b806338a699a4116103b557806354d747a8116103275780635d4345cc116102eb5780635d4345cc146105f25780635dfa73db1461084157806361f5f4201461084a578063644c45e01461085b578063675393bf146108835780636b9bf08b1461089657600080fd5b806354d747a8146107d757806354f6127f146107ea5780635772b1011461080a57806358dff9ea1461081d5780635ab1bd531461083057600080fd5b8063422c9d0011610379578063422c9d001461077b5780634288121d1461078e578063447fc48f14610796578063468a1867146107a9578063468bce06146107bc5780635378cd3c146107c457600080fd5b806338a699a4146107095780633c0d6a411461071c5780633ca7c02a1461072f5780633e35aba81461075557806340529b0f1461076857600080fd5b8063138461e01161044e5780632781d443116104125780632781d443146106a357806327953f48146106ab57806327bb7a33146106be5780632f61088a146106d157806336fc697e146106e457806337f135d7146106ec57600080fd5b8063138461e01461062d5780631518afb9146106355780631b38d5f4146106485780631eff4b2214610669578063214cdb801461069057600080fd5b80630f03144a116104a05780630f03144a146105b95780630f526f7d146105cc5780630f749a89146105df5780630fad0eb1146105f25780630fec111c146106055780631204b5531461061a57600080fd5b806301ffc9a7146104dd57806302cd30711461051f57806309648a9d146105445780630cbc6b891461057e5780630d35818114610593575b600080fd5b61050a6104eb366004613ec1565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6006546001600160a01b03165b6040516001600160a01b039091168152602001610516565b61056c610552366004613eeb565b600090815260046020526040902054610100900460ff1690565b60405160ff9091168152602001610516565b61059161058c366004614157565b610c32565b005b61056c6105a13660046141a3565b60ff9081166000908152600260205260409020541690565b6105916105c7366004614328565b610c78565b6105916105da366004614377565b610cb6565b6105916105ed3660046143b0565b610cd3565b610591610600366004614377565b610e41565b61060d610e56565b604051610516919061441d565b6105916106283660046144a8565b611005565b61059161102b565b61059161064336600461467e565b61122d565b61065b6106563660046146c5565b611253565b604051908152602001610516565b61065b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b61059161069e366004613ec1565b6112f2565b61065b600381565b6105916106b93660046147d2565b61131f565b6105916106cc36600461480e565b61133d565b6105916106df366004614900565b6113c9565b610591611464565b6106f4600081565b60405163ffffffff9091168152602001610516565b61050a610717366004613eeb565b6114aa565b61059161072a3660046149bc565b611539565b61073d6001600160401b0381565b6040516001600160401b039091168152602001610516565b61065b6107633660046146c5565b61155f565b610591610776366004614377565b61158c565b6105916107893660046143b0565b6115a1565b61052c6117a7565b6105916107a4366004614a1d565b61183a565b61065b6107b73660046146c5565b611866565b610591611893565b6105916107d2366004614a91565b6118bd565b6105916107e5366004614b72565b6118d0565b6107fd6107f8366004613eeb565b6118ee565b6040516105169190614bae565b610591610818366004614c04565b611993565b61059161082b366004614d0c565b6119b9565b6001546001600160a01b031661052c565b61073d61271081565b6007546001600160a01b031661052c565b600080516020615cc4833981519152546040516001600160601b039091168152602001610516565b6105916108913660046143b0565b6119e1565b61052c611aed565b61073d600081565b6105916108b43660046143b0565b611b16565b61065b6108c73660046146c5565b611b99565b6105916108da366004614d53565b611bc6565b61052c611c50565b6105916108f5366004614d71565b611d87565b61090d610908366004613eeb565b611daf565b6040516105169190614e00565b610922611ef0565b6040516001600160e01b03199091168152602001610516565b610591610949366004614ed1565b611f28565b61065b61095c3660046146c5565b611f50565b610a0561096f366004613eeb565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260046020908152604091829020825160a081018452905460ff8082168352610100820416928201929092526001600160a01b03620100008304169281019290925263ffffffff600160b01b820481166060840152600160d01b90910416608082015290565b6040516105169190614f08565b610591610a20366004614f97565b611f7d565b610591610a33366004614fdc565b611fa3565b610591610a46366004615023565b61203e565b61065b600080516020615cc483398151915281565b610591610a6e366004615063565b61212f565b610591610a813660046150a8565b612155565b610591610a943660046150e6565b612173565b610591610aa7366004615116565b612188565b61050a610aba3660046141a3565b61234d565b61052c61239a565b610591610ad5366004615142565b6123b6565b61052c612563565b61056c61258c565b610591610af8366004615182565b612603565b610591610b0b366004614377565b612621565b610591610b1e366004614377565b612638565b61052c61264f565b60055461010090046001600160a01b031661052c565b610591610b4f3660046151c0565b612678565b61050a610b62366004615023565b60ff9283166000908152600360209081526040808320948616835293815283822092851682529190915220541690565b61065b610ba0366004615211565b612852565b610591610bb336600461523f565b6128dd565b610591610bc63660046143b0565b612905565b610591610bd9366004615280565b6129f2565b610591610bec3660046152ae565b612a69565b610591610bff366004615305565b612a8f565b610591610c1236600461534c565b612ab5565b610591610c25366004614377565b612add565b61052c612af2565b610c3f335b600036612b1b565b610c73610c4d84606e612c21565b83604051602001610c5e919061537a565b60405160208183030381529060405283612c6d565b505050565b610c8133610c37565b610cb2610c8d83611f50565b82604051602001610c9e9190615429565b604051602081830303815290604052612c78565b5050565b610cbf33610c37565b610cb2610ccd83608c612c21565b82612c82565b610cdc33610c37565b60055461010090046001600160a01b031615610d3f5760405162461bcd60e51b815260206004820152601c60248201527f496e7374616e63654163636573734d616e61676572206973207365740000000060448201526064015b60405180910390fd5b610d4761239a565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db291906154e5565b6001600160a01b031614610e195760405162461bcd60e51b815260206004820152602860248201527f496e7374616e63654163636573734d616e6167657220617574686f72697479206044820152670dad2e6dac2e8c6d60c31b6064820152608401610d36565b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610e4a33610c37565b610cb2610ccd83611866565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b90910416151591810191909152600182018054919291606084019190610f0190615502565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d90615502565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b50505050508152505090506040518060e00160405280610f98600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610fe9611c50565b6001600160a01b03168152602001826060015181525091505090565b61100e33610c37565b610c7361101a84611f50565b83604051602001610c5e9190615429565b6000600080516020615cc483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561109a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110be919061553c565b156110ea5780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610d36565b306110fd6001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611169919061553c565b6111915760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610d36565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa1580156111e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112099190615559565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b61123633610c37565b610c7361124284611866565b83604051602001610c5e9190615576565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660795b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af41580156112c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ec91906156c4565b92915050565b6112fa612c8c565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61132833610c37565b610cb28282604051602001610c9e91906156dd565b611345612c8c565b61134f82876129f2565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016113bf83826157d3565b5050505050505050565b6113d233610c37565b6040516355ee627560e01b81526001600160c01b031983166004820152610cb29073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af415801561142f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145391906156c4565b82604051602001610c9e9190615892565b61146c612c8c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600081815260046020819052604080832054905163b2466acf60e01b815261010090910460ff169181019190915273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024015b602060405180830381865af4158015611515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ec919061553c565b61154233610c37565b610c7361154e84611866565b82604051602001610c9e91906158c0565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607861127c565b61159533610c37565b610cb2610ccd83611b99565b6115aa33610c37565b6007546001600160a01b0316156115fa5760405162461bcd60e51b8152602060048201526014602482015273109d5b991b1953585b9859d95c881a5cc81cd95d60621b6044820152606401610d36565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611642573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166691906154e5565b6001600160a01b0316146116bc5760405162461bcd60e51b815260206004820152601f60248201527f42756e646c654d616e6167657220696e7374616e6365206d69736d61746368006044820152606401610d36565b6116c461239a565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f91906154e5565b6001600160a01b0316146117855760405162461bcd60e51b815260206004820181905260248201527f42756e646c654d616e6167657220617574686f72697479206d69736d617463686044820152606401610d36565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60006117bb6001546001600160a01b031690565b6001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff909116600482015260036024820152604401602060405180830381865afa158015611811573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183591906154e5565b905090565b61184333610c37565b61186061184f85611866565b83604051602001610c5e91906158c0565b50505050565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d361127c565b61189b612c8c565b6118a3612cd5565b6118ab612df8565b6118b3612eeb565b6118bb612ff9565b565b6118c633610c37565b610cb28282612c82565b6118d933610c37565b610cb28282604051602001610c9e9190615911565b600081815260046020526040902060010180546060919061190e90615502565b80601f016020809104026020016040519081016040528092919081815260200182805461193a90615502565b80156119875780601f1061195c57610100808354040283529160200191611987565b820191906000526020600020905b81548152906001019060200180831161196a57829003601f168201915b50505050509050919050565b61199c33610c37565b6118606119a885611866565b83604051602001610c5e91906159ac565b6119c233610c37565b610c736119d084608c612c21565b83604051602001610c5e91906159dc565b6119e9612c8c565b806001600160a01b03163b600003611a1f5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610d36565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015611a99575060408051601f3d908101601f19168201909252611a969181019061553c565b60015b611ac15760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610d36565b80610cb25760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610d36565b50565b6000611b016001546001600160a01b031690565b6001600160a01b031663d39e6043608c6117cc565b33611b1f61239a565b6001600160a01b0316816001600160a01b031614611b5a5760405162d1953b60e31b81526001600160a01b0382166004820152602401610d36565b816001600160a01b03163b600003611b90576040516361798f2f60e11b81526001600160a01b0383166004820152602401610d36565b610cb2826130b5565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607a61127c565b611bcf33610c37565b6040516355ee627560e01b81526001600160c01b031983166004820152610cb29073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015611c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccd91906156c4565b600080600080516020615cc483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611cc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce4919061553c565b15611d71576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611d47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6b91906154e5565b91505090565b54600160601b90046001600160a01b0316919050565b611d9033610c37565b610cb2611d9e83608c612c21565b82604051602001610c9e91906159dc565b6040805160e081018252600091810182815260608083018490526080830184905260a0830184905260c083019390935281526020810191909152600082815260046020908152604091829020825160e081018452815460ff80821695830195865261010082041660608301526001600160a01b0362010000820416608083015263ffffffff600160b01b8204811660a0840152600160d01b9091041660c08201529283526001810180549192840191611e6790615502565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9390615502565b8015611ee05780601f10611eb557610100808354040283529160200191611ee0565b820191906000526020600020905b815481529060010190602001808311611ec357829003601f168201915b5050505050815250509050919050565b600080516020615ce4833981519152805460009190600160a01b900460ff16611f1a576000611d6b565b638fb3603760e01b91505090565b611f3133610c37565b610cb2611f3f836078612c21565b82604051602001610c9e9190615a43565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc61127c565b611f8633610c37565b610cb2611f9283611b99565b82604051602001610c9e9190615ab7565b611fac33610c37565b6040516355ee627560e01b81526001600160c01b031984166004820152610c739073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015612009573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202d91906156c4565b83604051602001610c5e9190615892565b60ff8381166000908152600260205260409081902054905163037c8cb160e51b81529116600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af41580156120a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c7919061553c565b156120d157505050565b60ff808416600090815260036020908152604080832086851684528252808320858516845290915290205416610c7357604051636bb20ea760e01b815260ff8085166004830152808416602483015282166044820152606401610d36565b61213833610c37565b610cb261214483611866565b82604051602001610c9e9190615576565b61215e33610c37565b610c738383604051602001610c5e91906156dd565b61217c33610c37565b610c73610ccd84611866565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f591906154e5565b6001600160a01b0316336001600160a01b03161461221257600080fd5b60055461010090046001600160a01b03166303014974612230613116565b6040516001600160e01b031960e084901b1681526001600160401b039091166004820152602401602060405180830381865afa158015612274573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229891906156c4565b156122a5576122a5615b15565b60055461010090046001600160a01b031663b428b0b06122c3613116565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b03851660248201526044016020604051808303816000875af1158015612318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233c919061553c565b1515600114610cb257610cb2615b15565b60ff81811660009081526002602052604080822054905163b2466acf60e01b8152921660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024016114f8565b600080516020615ce4833981519152546001600160a01b031690565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156123fb5750825b90506000826001600160401b031660011480156124175750303b155b905081158015612425575080155b156124435760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561246d57845460ff60401b1916600160401b1785555b6124768861318e565b60008790506124fb88826001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e19190615559565b604660018b6040518060200160405280600081525061133d565b612503611893565b61251363200c173160e01b6112f2565b5083156113bf57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b60006125776001546001600160a01b031690565b6001600160a01b031663d39e604360786117cc565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af41580156125df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118359190615b2b565b61260c33610c37565b610c738383604051602001610c5e9190615911565b61262a33610c37565b610cb2610ccd836078612c21565b61264133610c37565b610cb2610ccd83606e612c21565b60006126636001546001600160a01b031690565b6001600160a01b031663d39e604360d36117cc565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e591906154e5565b6001600160a01b0316336001600160a01b03161461270257600080fd5b60055461010090046001600160a01b031663b7d2b162612720613116565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b03861660248201526044016020604051808303816000875af1158015612775573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612799919061553c565b15156001146127aa576127aa615b15565b60055461010090046001600160a01b031663b428b0b06127c8613116565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b03851660248201526044016020604051808303816000875af115801561281d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612841919061553c565b1515600114610c7357610c73615b15565b604051637a400b6760e11b815260ff8316600482015260ff198216602482015260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__9063f48016ce906044015b602060405180830381865af41580156128b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d691906156c4565b9392505050565b6128e633610c37565b610c736128f4846078612c21565b83604051602001610c5e9190615a43565b61290e33610c37565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015612956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061297a91906154e5565b6001600160a01b0316146129d05760405162461bcd60e51b815260206004820181905260248201527f496e7374616e636552656164657220696e7374616e6365206d69736d617463686044820152606401610d36565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6129fa612c8c565b612a03816119e1565b612a0b611464565b6001600160a01b038216612a325760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020615cc483398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b612a7233610c37565b610c73612a7e84611866565b82604051602001610c9e91906159ac565b612a9833610c37565b610c73612aa484611b99565b83604051602001610c5e9190615ab7565b612abe33610c37565b610cb2612acc83606e612c21565b82604051602001610c9e919061537a565b612ae633610c37565b610cb2610ccd83611f50565b6000612b066001546001600160a01b031690565b6001600160a01b031663d39e604360dc6117cc565b600080516020615ce4833981519152600080612b56612b3861239a565b8730612b48600460008a8c615b48565b612b5191615b72565b61319f565b9150915081612c195763ffffffff811615612bf657825460ff60a01b1916600160a01b178355612b8461239a565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401612bb393929190615ba2565b600060405180830381600087803b158015612bcd57600080fd5b505af1158015612be1573d6000803e3d6000fd5b5050845460ff60a01b1916855550612c199050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610d36565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff8216602482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__90633889a4c890604401612895565b610c738383836132ab565b610cb28282613753565b610cb28282613b6c565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166118bb57604051631afcd79f60e31b815260040160405180910390fd5b7f4bee8dc518469fb8c73831886b94afa96b3ef3e3ee55b9076720259192220ef08054606460ff19918216179091557ffb39f406c8d3ff86a211d5f8c6729c90fce2fed80808bb47b6dc39e975a7d4d68054821660019081179091557fe59968928be831d9cd5403370c74d9f1dac318690d88a2efef2b29079332ee4f80548316821790557fe78520cf30689bb50fce16ae1e25040217df710de55e9ed38f2b2722b2a984688054909216811790915560dc600090815260036020527fa093975c0a88af8b2bf4799c5b4be14d42fc326c2a331b9f3fb3caecbaa5104f90606e5b60ff1660ff1681526020019081526020016000206000612dd460c890565b60ff1681526020810191909152604001600020805460ff1916911515919091179055565b7f7673bcbb3401a7cbae68f81d40eea2cf35afdaf7ecd016ebf3f02857fcc1260a8054606460ff1991821681179092557fa1c69de77e78d12e062170d002ba111ba52c8f452f3b0ca326991b7298fd7aaf80548216600190811790915560008381527f6dcc58afd04aec67a07f8168234edce351865815e87e6f9a62e977830ebfce226020527f5267f8fb4089eaca6dac10383f9a063927ca0092f9c59d7ca3b3d61812638b028054909316821790925591600391905b60ff1660ff1681526020019081526020016000206000612ecd606e90565b60ff1660ff1681526020019081526020016000206000612dd460d290565b7feb6856e0ae0d71a8a9e0bc42aca98fe96c3be13699c5c2d551c94a190e39043d8054600a60ff19918216179091557f4b5a0a5953a753e51be29e6e2b638995162612852ea3b46cff09cbac61f9cb568054821660019081179091557fb7939d1e06f7236b22c8e9bf344ab29b7c87eec9f53e55d389378ef7585ffd7e80548316821790557f158b1af96972c14cb1a5e39cbdbd793a3bc4f7c57c85ef22cf298bf517d6e0b380548316821790557f6160f9e22b3793ed435de7ac6b8dd0ee9d3110d626fe8135ffbb7d38470f229a8054909216811790915560d3600090815260036020527fb0b6d2d73fcb69de4c434c711239319c2c669ebf6407f36fc258ff9f98f803fa906064612db6565b7fec56eb74d500f9b1bf8f0c5cc42ff5ed51e8d9e3a2ebb6e83a26383f297e0f1e8054606460ff1991821681179092557fe63626ccd25c67b6e53c3bd622e9c77c962be121e55eb3904854ac631eb8f9f080548216600190811790915560009283527fa74711c3b0f698a9dde85849aefdd2d454c235a4c161e6f019356c5ec8490c816020527fbed2f4a35dfbfdf2c5294831261529ea73fa5b94705484f5af8ba1bc3cb59362805490921681179091559060039060c8612eaf565b600080516020615ce483398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6040516368aebf7b60e01b815261076c600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af415801561316a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118359190615be2565b613196612c8c565b611aea81613eb0565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161320e9190615c0b565b600060405180830381855afa9150503d8060008114613249576040519150601f19603f3d011682016040523d82523d6000602084013e61324e565b606091505b509150915081156132a057604081511061328057808060200190518101906132769190615c27565b90945092506132a0565b60208151106132a0578080602001905181019061329d919061553c565b93505b505094509492505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af41580156132fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613321919061553c565b61336d5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3032303a53544154455f554e444546494e45440000006044820152606401610d36565b6000838152600460208190526040918290208054925163b2466acf60e01b815261010090930460ff169183018290529173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af41580156133d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133fd919061553c565b6134495760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3032313a4e4f545f4558495354494e470000000000006044820152606401610d36565b600085815260046020526040902060010161346485826157d3565b508154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b909104166134a94390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018890527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af415801561353b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061355f9190615b2b565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156135af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135d39190615c56565b85888632876040516135eb9796959493929190615c73565b60405180910390a1604051634b00e98f60e11b8152600481018890527f7bd0ab7f1746bd20a814d6705a46876c84f1aa2d35c80d8c173e268bd6d4b26c9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015613665573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136899190615b2b565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156136d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136fd9190615c56565b6040805160ff938416815260ff199092166020830152918816918101919091526001600160a01b038416606082015232608082015263ffffffff831660a082015260c0015b60405180910390a150505050505050565b604051634b00e98f60e11b81526004810183905260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af41580156137a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ca9190615b2b565b60405163b2466acf60e01b815260ff8216600482015290915073__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf90602401602060405180830381865af415801561381f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613843919061553c565b61388f5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4b56532d3031303a545950455f554e444546494e4544000000006044820152606401610d36565b6000838152600460208190526040918290208054925163037c8cb160e51b815261010090930460ff16918301919091529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af41580156138fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613920919061553c565b61396c5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3031323a414c52454144595f435245415445440000006044820152606401610d36565b334360006139798561234d565b61398457606461399a565b60ff808616600090815260026020526040902054165b845460ff87811661ffff1990921691909117610100918316919091021762010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85169081029190911763ffffffff60d01b1916600160d01b919091021785556000888152600460205260409020909150600101613a2487826157d3565b50604051634b00e98f60e11b8152600481018890527ffcb75eb7b317145f986c763e1a3eab5f9b4dbaf7955504f70f986d799c3ab39d9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015613a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613abb9190615b2b565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015613b0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b2f9190615c56565b6040805160ff938416815260ff199092166020830152918416918101919091526001600160a01b038516606082015232608082015260a001613742565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015613bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613be2919061553c565b613c2e5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3034303a53544154455f554e444546494e45440000006044820152606401610d36565b6000828152600460208190526040918290208054925163b2466acf60e01b815261010090930460ff169183018290529173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015613c9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cbe919061553c565b613d0a5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3034313a4e4f545f4558495354494e470000000000006044820152606401610d36565b8154613d1a9060ff16828561203e565b8154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b90910416613d5e4390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018790527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015613df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e149190615b2b565b604051630713cfad60e31b81526004810189905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015613e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e889190615c56565b8588863287604051613ea09796959493929190615c73565b60405180910390a1505050505050565b613eb8612c8c565b611aea816130b5565b600060208284031215613ed357600080fd5b81356001600160e01b0319811681146128d657600080fd5b600060208284031215613efd57600080fd5b5035919050565b6001600160601b0381168114611aea57600080fd5b8035613f2481613f04565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715613f6157613f61613f29565b60405290565b60405161010081016001600160401b0381118282101715613f6157613f61613f29565b60405161012081016001600160401b0381118282101715613f6157613f61613f29565b60405161020081016001600160401b0381118282101715613f6157613f61613f29565b604051608081016001600160401b0381118282101715613f6157613f61613f29565b60405160e081016001600160401b0381118282101715613f6157613f61613f29565b60405160a081016001600160401b0381118282101715613f6157613f61613f29565b6001600160a01b0381168114611aea57600080fd5b8035613f2481614036565b60006040828403121561406857600080fd5b614070613f3f565b9050813581526020820135602082015292915050565b8015158114611aea57600080fd5b8035613f2481614086565b600061014082840312156140b257600080fd5b6140ba613f67565b90506140c58261404b565b81526140d36020830161404b565b60208201526140e460408301613f19565b60408201526140f560608301613f19565b60608201526141078360808401614056565b60808201526141198360c08401614056565b60a082015261412b6101008301614094565b60c082015261413d610120830161404b565b60e082015292915050565b60ff81168114611aea57600080fd5b6000806000610180848603121561416d57600080fd5b833561417881613f04565b9250614187856020860161409f565b915061016084013561419881614148565b809150509250925092565b6000602082840312156141b557600080fd5b81356128d681614148565b600082601f8301126141d157600080fd5b81356001600160401b03808211156141eb576141eb613f29565b604051601f8301601f19908116603f0116810190828211818310171561421357614213613f29565b8160405283815286602085880101111561422c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b64ffffffffff81168114611aea57600080fd5b8035613f248161424c565b6000610140828403121561427d57600080fd5b614285613f8a565b905061429082613f19565b815261429f8360208401614056565b602082015260608201356001600160401b038111156142bd57600080fd5b6142c9848285016141c0565b6040830152506080820135606082015260a0820135608082015260c082013560a08201526142f960e0830161425f565b60c082015261010061430c81840161425f565b60e083015261431e610120840161425f565b9082015292915050565b6000806040838503121561433b57600080fd5b823561434681613f04565b915060208301356001600160401b0381111561436157600080fd5b61436d8582860161426a565b9150509250929050565b6000806040838503121561438a57600080fd5b823561439581613f04565b915060208301356143a581614148565b809150509250929050565b6000602082840312156143c257600080fd5b81356128d681614036565b60005b838110156143e85781810151838201526020016143d0565b50506000910152565b600081518084526144098160208601602086016143cd565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a083015161448660c08401826001600160a01b03169052565b5060c083015160e0808401526144a06101008401826143f1565b949350505050565b6000806000606084860312156144bd57600080fd5b83356144c881613f04565b925060208401356001600160401b038111156144e357600080fd5b6144ef8682870161426a565b925050604084013561419881614148565b6001600160c01b031981168114611aea57600080fd5b8035613f2481614500565b61ffff81168114611aea57600080fd5b8035613f2481614521565b6000610200828403121561454f57600080fd5b614557613fad565b905061456282613f19565b815261457060208301613f19565b602082015261458160408301614516565b604082015261459260608301614516565b60608201526080820135608082015260a082013560a082015260c082013560c08201526145c160e0830161425f565b60e0820152610100808301356001600160401b03808211156145e257600080fd5b6145ee868387016141c0565b8385015261012092508285013591508082111561460a57600080fd5b50614617858286016141c0565b82840152505061014061462b818401614531565b9082015261016061463d838201614531565b9082015261018082810135908201526101a061465a81840161425f565b908201526101c061466c83820161425f565b908201526101e061431e83820161425f565b60008060006060848603121561469357600080fd5b833561469e81613f04565b925060208401356001600160401b038111156146b957600080fd5b6144ef8682870161453c565b6000602082840312156146d757600080fd5b81356128d681613f04565b63ffffffff81168114611aea57600080fd5b8035613f24816146e2565b6000610120828403121561471257600080fd5b61471a613f8a565b905081356001600160401b038082111561473357600080fd5b61473f858386016141c0565b835260208401356020840152604084013560408401526060840135606084015261476b608085016146f4565b608084015261477c60a085016146f4565b60a084015261478d60c08501614094565b60c084015261479e60e08501614094565b60e0840152610100915081840135818111156147b957600080fd5b6147c5868287016141c0565b8385015250505092915050565b600080604083850312156147e557600080fd5b8235915060208301356001600160401b0381111561480257600080fd5b61436d858286016146ff565b60008060008060008060c0878903121561482757600080fd5b863561483281614036565b9550602087013561484281613f04565b9450604087013561485281614148565b9350606087013561486281614086565b9250608087013561487281614036565b915060a08701356001600160401b0381111561488d57600080fd5b61489989828a016141c0565b9150509295509295509295565b6000604082840312156148b857600080fd5b6148c0613f3f565b905081356148cd81613f04565b815260208201356001600160401b038111156148e857600080fd5b6148f4848285016141c0565b60208301525092915050565b6000806040838503121561491357600080fd5b823561491e81614500565b915060208301356001600160401b0381111561493957600080fd5b61436d858286016148a6565b60006080828403121561495757600080fd5b61495f613fd0565b9050813561496c81614521565b81526020828101359082015260408201356001600160401b0381111561499157600080fd5b61499d848285016141c0565b60408301525060608201356149b18161424c565b606082015292915050565b6000806000606084860312156149d157600080fd5b83356149dc81613f04565b925060208401356149ec816146e2565b915060408401356001600160401b03811115614a0757600080fd5b614a1386828701614945565b9150509250925092565b60008060008060808587031215614a3357600080fd5b8435614a3e81613f04565b93506020850135614a4e816146e2565b925060408501356001600160401b03811115614a6957600080fd5b614a7587828801614945565b9250506060850135614a8681614148565b939692955090935050565b60008060408385031215614aa457600080fd5b8235915060208301356143a581614148565b600060e08284031215614ac857600080fd5b614ad0613ff2565b9050614adb82613f19565b815260208201356001600160401b0380821115614af757600080fd5b614b03858386016141c0565b602084015260408401356040840152614b1e606085016146f4565b6060840152614b2f608085016146f4565b6080840152614b4060a0850161425f565b60a084015260c0840135915080821115614b5957600080fd5b50614b66848285016141c0565b60c08301525092915050565b60008060408385031215614b8557600080fd5b8235915060208301356001600160401b03811115614ba257600080fd5b61436d85828601614ab6565b6020815260006128d660208301846143f1565b600060808284031215614bd357600080fd5b614bdb613fd0565b9050813581526020820135602082015260408201356001600160401b0381111561499157600080fd5b60008060008060808587031215614c1a57600080fd5b8435614c2581613f04565b93506020850135614c3581614521565b925060408501356001600160401b03811115614c5057600080fd5b614a7587828801614bc1565b600060a08284031215614c6e57600080fd5b614c76614014565b905081356001600160401b0380821115614c8f57600080fd5b614c9b858386016141c0565b835260208401359150614cad82614036565b81602084015260408401359150614cc382614036565b81604084015260608401359150614cd982614036565b8160608401526080840135915080821115614cf357600080fd5b50614d00848285016141c0565b60808301525092915050565b600080600060608486031215614d2157600080fd5b8335614d2c81613f04565b925060208401356001600160401b03811115614d4757600080fd5b6144ef86828701614c5c565b60008060408385031215614d6657600080fd5b823561439581614500565b60008060408385031215614d8457600080fd5b8235614d8f81613f04565b915060208301356001600160401b03811115614daa57600080fd5b61436d85828601614c5c565b60ff815116825260ff602082015116602083015260018060a01b036040820151166040830152606081015163ffffffff808216606085015280608084015116608085015250505050565b60208152614e12602082018351614db6565b6000602083015160c0808401526144a060e08401826143f1565b60006101008284031215614e3f57600080fd5b60405160c081018181106001600160401b0382111715614e6157614e61613f29565b6040529050808235614e7281613f04565b81526020830135614e8281614036565b6020820152614e948460408501614056565b6040820152614ea68460808501614056565b606082015260c0830135614eb981614036565b8060808301525060e083013560a08201525092915050565b6000806101208385031215614ee557600080fd5b8235614ef081613f04565b9150614eff8460208501614e2c565b90509250929050565b60a081016112ec8284614db6565b600060a08284031215614f2857600080fd5b614f30614014565b90508135614f3d81614500565b81526020820135614f4d81614086565b602082015260408201356001600160401b03811115614f6b57600080fd5b614f77848285016141c0565b604083015250606082013560608201526080820135608082015292915050565b60008060408385031215614faa57600080fd5b8235614fb581613f04565b915060208301356001600160401b03811115614fd057600080fd5b61436d85828601614f16565b600080600060608486031215614ff157600080fd5b8335614ffc81614500565b925060208401356001600160401b0381111561501757600080fd5b6144ef868287016148a6565b60008060006060848603121561503857600080fd5b833561504381614148565b9250602084013561505381614148565b9150604084013561419881614148565b6000806040838503121561507657600080fd5b823561508181613f04565b915060208301356001600160401b0381111561509c57600080fd5b61436d8582860161453c565b6000806000606084860312156150bd57600080fd5b8335925060208401356001600160401b038111156150da57600080fd5b6144ef868287016146ff565b6000806000606084860312156150fb57600080fd5b833561510681613f04565b9250602084013561505381614521565b6000806040838503121561512957600080fd5b823561513481614036565b946020939093013593505050565b60008060006060848603121561515757600080fd5b833561516281614036565b9250602084013561517281614036565b9150604084013561419881614036565b60008060006060848603121561519757600080fd5b8335925060208401356001600160401b038111156151b457600080fd5b6144ef86828701614ab6565b6000806000606084860312156151d557600080fd5b83356151e081614036565b925060208401356151f081614036565b929592945050506040919091013590565b60ff1981168114611aea57600080fd5b6000806040838503121561522457600080fd5b823561522f81614148565b915060208301356143a581615201565b6000806000610140848603121561525557600080fd5b833561526081613f04565b925061526f8560208601614e2c565b915061012084013561419881614148565b6000806040838503121561529357600080fd5b823561529e81614036565b915060208301356143a581614036565b6000806000606084860312156152c357600080fd5b83356152ce81613f04565b925060208401356152de81614521565b915060408401356001600160401b038111156152f957600080fd5b614a1386828701614bc1565b60008060006060848603121561531a57600080fd5b833561532581613f04565b925060208401356001600160401b0381111561534057600080fd5b6144ef86828701614f16565b600080610160838503121561536057600080fd5b823561536b81613f04565b9150614eff846020850161409f565b81516001600160a01b039081168252602080840151909116908201526040808301516001600160601b0316908201526060808301516101408301916153c9908401826001600160601b03169052565b5060808301516153e6608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c08301518015156101008401525060e08301516001600160a01b0381166101208401525092915050565b602081526154436020820183516001600160601b03169052565b60006020830151615461604084018280518252602090810151910152565b50604083015161014080608085015261547e6101608501836143f1565b9150606085015160a0850152608085015160c085015260a085015160e085015260c08501516101006154b88187018364ffffffffff169052565b60e087015164ffffffffff811661012088015291505b9095015164ffffffffff1693019290925250919050565b6000602082840312156154f757600080fd5b81516128d681614036565b600181811c9082168061551657607f821691505b60208210810361553657634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561554e57600080fd5b81516128d681614086565b60006020828403121561556b57600080fd5b81516128d681613f04565b602081526155906020820183516001600160601b03169052565b600060208301516155ac60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e08301516101006156118185018364ffffffffff169052565b8085015191505061020061012081818601526156316102208601846143f1565b9250808601519050610140601f19868503018187015261565184836143f1565b93508087015191505061016061566c8187018361ffff169052565b86015190506101806156838682018361ffff169052565b8601516101a08681019190915286015190506101c06156aa8187018364ffffffffff169052565b86015190506101e06154ce8682018364ffffffffff169052565b6000602082840312156156d657600080fd5b5051919050565b60208152600082516101208060208501526156fc6101408501836143f1565b9150602085015160408501526040850151606085015260608501516080850152608085015161573360a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e08501516101006157698187018315159052565b860151858403601f190183870152905061578383826143f1565b9695505050505050565b601f821115610c7357600081815260208120601f850160051c810160208610156157b45750805b601f850160051c820191505b81811015612c19578281556001016157c0565b81516001600160401b038111156157ec576157ec613f29565b615800816157fa8454615502565b8461578d565b602080601f831160018114615835576000841561581d5750858301515b600019600386901b1c1916600185901b178555612c19565b600085815260208120601f198616915b8281101561586457888601518255948401946001909101908401615845565b50858210156158825787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602081526001600160601b038251166020820152600060208301516040808401526144a060608401826143f1565b6020815261ffff82511660208201526020820151604082015260006040830151608060608401526158f460a08401826143f1565b905064ffffffffff60608501511660808401528091505092915050565b602081526001600160601b0382511660208201526000602083015160e060408401526159416101008401826143f1565b90506040840151606084015263ffffffff6060850151166080840152608084015161597460a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e08501526159a382826143f1565b95945050505050565b60208152815160208201526020820151604082015260006040830151608060608401526158f460a08401826143f1565b602081526000825160a060208401526159f860c08401826143f1565b9050602084015160018060a01b03808216604086015280604087015116606086015280606087015116608086015250506080840151601f198483030160a08501526159a382826143f1565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015261010083019190606085015180516080860152602081015160a0860152915060808501511660c08401525060a09092015160e09091015290565b602081526001600160401b0360c01b82511660208201526020820151151560408201526000604083015160a06060840152615af560c08401826143f1565b905060608401516080840152608084015160a08401528091505092915050565b634e487b7160e01b600052600160045260246000fd5b600060208284031215615b3d57600080fd5b81516128d681614148565b60008085851115615b5857600080fd5b83861115615b6557600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015615b9a5780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b600060208284031215615bf457600080fd5b81516001600160401b03811681146128d657600080fd5b60008251615c1d8184602087016143cd565b9190910192915050565b60008060408385031215615c3a57600080fd5b8251615c4581614086565b60208401519092506143a5816146e2565b600060208284031215615c6857600080fd5b81516128d681615201565b60ff978816815260ff1996909616602087015293861660408601529190941660608401526001600160a01b03938416608084015290921660a082015263ffffffff9190911660c082015260e0019056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220e049e50ee6b5934f82ffdbad61686d21dbc2f26f8dde3b29d305a89ee52bac4364736f6c63430008140033",
2952
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106104d85760003560e01c806375b238fc11610283578063bf7e214f1161015c578063e9e96c70116100ce578063f7c34ee011610092578063f7c34ee014610bcb578063fa145b6d14610bde578063fb4a8e3414610bf1578063fbc1a3a014610c04578063fe1f18d614610c17578063fed3d63f14610c2a57600080fd5b8063e9e96c7014610b54578063f21de1e814610830578063f48016ce14610b92578063f7b442d114610ba5578063f7bc431c14610bb857600080fd5b8063cf947d2011610120578063cf947d2014610aea578063d2f21a2914610afd578063dee3262314610b10578063e1033e7d14610b23578063e5f6cd2714610b2b578063e7f7fb8614610b4157600080fd5b8063bf7e214f14610abf578063c0c53b8b14610ac7578063c29948fc14610635578063ca600b1c14610ada578063cde749f414610ae257600080fd5b8063a5961b4c116101f5578063afa5e130116101b9578063afa5e130146107c4578063afcc743914610a60578063b3260e9314610a73578063b6d7cd6214610a86578063bb1e0e5914610a99578063bf1db3f914610aac57600080fd5b8063a5961b4c14610961578063a671495e14610a12578063a76ee01814610a25578063a898967514610a38578063ada9652e14610a4b57600080fd5b80638e28413f116102475780638e28413f146108e75780638eaa6ac0146108fa5780638fb360371461091a5780639df0280b146105f25780639e90178c1461093b578063a13df2ab1461094e57600080fd5b806375b238fc1461089e5780637a9e5e4b146108a65780637b8c388f146108b95780637cef4842146108cc578063893d20e8146108df57600080fd5b806338a699a4116103b557806354d747a8116103275780635d4345cc116102eb5780635d4345cc146105f25780635dfa73db1461084157806361f5f4201461084a578063644c45e01461085b578063675393bf146108835780636b9bf08b1461089657600080fd5b806354d747a8146107d757806354f6127f146107ea5780635772b1011461080a57806358dff9ea1461081d5780635ab1bd531461083057600080fd5b8063422c9d0011610379578063422c9d001461077b5780634288121d1461078e578063447fc48f14610796578063468a1867146107a9578063468bce06146107bc5780635378cd3c146107c457600080fd5b806338a699a4146107095780633c0d6a411461071c5780633ca7c02a1461072f5780633e35aba81461075557806340529b0f1461076857600080fd5b8063138461e01161044e5780632781d443116104125780632781d443146106a357806327953f48146106ab57806327bb7a33146106be5780632f61088a146106d157806336fc697e146106e457806337f135d7146106ec57600080fd5b8063138461e01461062d5780631518afb9146106355780631b38d5f4146106485780631eff4b2214610669578063214cdb801461069057600080fd5b80630f03144a116104a05780630f03144a146105b95780630f526f7d146105cc5780630f749a89146105df5780630fad0eb1146105f25780630fec111c146106055780631204b5531461061a57600080fd5b806301ffc9a7146104dd57806302cd30711461051f57806309648a9d146105445780630cbc6b891461057e5780630d35818114610593575b600080fd5b61050a6104eb366004613ec1565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6006546001600160a01b03165b6040516001600160a01b039091168152602001610516565b61056c610552366004613eeb565b600090815260046020526040902054610100900460ff1690565b60405160ff9091168152602001610516565b61059161058c366004614157565b610c32565b005b61056c6105a13660046141a3565b60ff9081166000908152600260205260409020541690565b6105916105c7366004614328565b610c78565b6105916105da366004614377565b610cb6565b6105916105ed3660046143b0565b610cd3565b610591610600366004614377565b610e41565b61060d610e56565b604051610516919061441d565b6105916106283660046144a8565b611005565b61059161102b565b61059161064336600461467e565b61122d565b61065b6106563660046146c5565b611253565b604051908152602001610516565b61065b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b61059161069e366004613ec1565b6112f2565b61065b600381565b6105916106b93660046147d2565b61131f565b6105916106cc36600461480e565b61133d565b6105916106df366004614900565b6113c9565b610591611464565b6106f4600081565b60405163ffffffff9091168152602001610516565b61050a610717366004613eeb565b6114aa565b61059161072a3660046149bc565b611539565b61073d6001600160401b0381565b6040516001600160401b039091168152602001610516565b61065b6107633660046146c5565b61155f565b610591610776366004614377565b61158c565b6105916107893660046143b0565b6115a1565b61052c6117a7565b6105916107a4366004614a1d565b61183a565b61065b6107b73660046146c5565b611866565b610591611893565b6105916107d2366004614a91565b6118bd565b6105916107e5366004614b72565b6118d0565b6107fd6107f8366004613eeb565b6118ee565b6040516105169190614bae565b610591610818366004614c04565b611993565b61059161082b366004614d0c565b6119b9565b6001546001600160a01b031661052c565b61073d61271081565b6007546001600160a01b031661052c565b600080516020615cc4833981519152546040516001600160601b039091168152602001610516565b6105916108913660046143b0565b6119e1565b61052c611aed565b61073d600081565b6105916108b43660046143b0565b611b16565b61065b6108c73660046146c5565b611b99565b6105916108da366004614d53565b611bc6565b61052c611c50565b6105916108f5366004614d71565b611d87565b61090d610908366004613eeb565b611daf565b6040516105169190614e00565b610922611ef0565b6040516001600160e01b03199091168152602001610516565b610591610949366004614ed1565b611f28565b61065b61095c3660046146c5565b611f50565b610a0561096f366004613eeb565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260046020908152604091829020825160a081018452905460ff8082168352610100820416928201929092526001600160a01b03620100008304169281019290925263ffffffff600160b01b820481166060840152600160d01b90910416608082015290565b6040516105169190614f08565b610591610a20366004614f97565b611f7d565b610591610a33366004614fdc565b611fa3565b610591610a46366004615023565b61203e565b61065b600080516020615cc483398151915281565b610591610a6e366004615063565b61212f565b610591610a813660046150a8565b612155565b610591610a943660046150e6565b612173565b610591610aa7366004615116565b612188565b61050a610aba3660046141a3565b61234d565b61052c61239a565b610591610ad5366004615142565b6123b6565b61052c612563565b61056c61258c565b610591610af8366004615182565b612603565b610591610b0b366004614377565b612621565b610591610b1e366004614377565b612638565b61052c61264f565b60055461010090046001600160a01b031661052c565b610591610b4f3660046151c0565b612678565b61050a610b62366004615023565b60ff9283166000908152600360209081526040808320948616835293815283822092851682529190915220541690565b61065b610ba0366004615211565b612852565b610591610bb336600461523f565b6128dd565b610591610bc63660046143b0565b612905565b610591610bd9366004615280565b6129f2565b610591610bec3660046152ae565b612a69565b610591610bff366004615305565b612a8f565b610591610c1236600461534c565b612ab5565b610591610c25366004614377565b612add565b61052c612af2565b610c3f335b600036612b1b565b610c73610c4d84606e612c21565b83604051602001610c5e919061537a565b60405160208183030381529060405283612c6d565b505050565b610c8133610c37565b610cb2610c8d83611f50565b82604051602001610c9e9190615429565b604051602081830303815290604052612c78565b5050565b610cbf33610c37565b610cb2610ccd83608c612c21565b82612c82565b610cdc33610c37565b60055461010090046001600160a01b031615610d3f5760405162461bcd60e51b815260206004820152601c60248201527f496e7374616e63654163636573734d616e61676572206973207365740000000060448201526064015b60405180910390fd5b610d4761239a565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db291906154e5565b6001600160a01b031614610e195760405162461bcd60e51b815260206004820152602860248201527f496e7374616e63654163636573734d616e6167657220617574686f72697479206044820152670dad2e6dac2e8c6d60c31b6064820152608401610d36565b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610e4a33610c37565b610cb2610ccd83611866565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820152907f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3006040805160808101825282546001600160601b038116825260ff600160601b820481166020840152600160681b90910416151591810191909152600182018054919291606084019190610f0190615502565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d90615502565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b50505050508152505090506040518060e00160405280610f98600090565b6001600160601b0316815260200182600001516001600160601b03168152602001826020015160ff168152602001826040015115158152602001306001600160a01b03168152602001610fe9611c50565b6001600160a01b03168152602001826060015181525091505090565b61100e33610c37565b610c7361101a84611f50565b83604051602001610c5e9190615429565b6000600080516020615cc483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af415801561109a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110be919061553c565b156110ea5780546040516301ab8b6760e21b81526001600160601b039091166004820152602401610d36565b306110fd6001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611169919061553c565b6111915760405163b9304b0d60e01b81526001600160a01b0382166004820152602401610d36565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa1580156111e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112099190615559565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b61123633610c37565b610c7361124284611866565b83604051602001610c5e9190615576565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660795b6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af41580156112c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ec91906156c4565b92915050565b6112fa612c8c565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61132833610c37565b610cb28282604051602001610c9e91906156dd565b611345612c8c565b61134f82876129f2565b60007f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0388166cffffffffffffffffffffffffff1990911617600160601b60ff8816021760ff60681b1916600160681b861515021781559050600181016113bf83826157d3565b5050505050505050565b6113d233610c37565b6040516355ee627560e01b81526001600160c01b031983166004820152610cb29073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af415801561142f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145391906156c4565b82604051602001610c9e9190615892565b61146c612c8c565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b600081815260046020819052604080832054905163b2466acf60e01b815261010090910460ff169181019190915273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024015b602060405180830381865af4158015611515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ec919061553c565b61154233610c37565b610c7361154e84611866565b82604051602001610c9e91906158c0565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607861127c565b61159533610c37565b610cb2610ccd83611b99565b6115aa33610c37565b6007546001600160a01b0316156115fa5760405162461bcd60e51b8152602060048201526014602482015273109d5b991b1953585b9859d95c881a5cc81cd95d60621b6044820152606401610d36565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611642573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166691906154e5565b6001600160a01b0316146116bc5760405162461bcd60e51b815260206004820152601f60248201527f42756e646c654d616e6167657220696e7374616e6365206d69736d61746368006044820152606401610d36565b6116c461239a565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f91906154e5565b6001600160a01b0316146117855760405162461bcd60e51b815260206004820181905260248201527f42756e646c654d616e6167657220617574686f72697479206d69736d617463686044820152606401610d36565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60006117bb6001546001600160a01b031690565b6001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff909116600482015260036024820152604401602060405180830381865afa158015611811573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183591906154e5565b905090565b61184333610c37565b61186061184f85611866565b83604051602001610c5e91906158c0565b50505050565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660d361127c565b61189b612c8c565b6118a3612cd5565b6118ab612df8565b6118b3612eeb565b6118bb612ff9565b565b6118c633610c37565b610cb28282612c82565b6118d933610c37565b610cb28282604051602001610c9e9190615911565b600081815260046020526040902060010180546060919061190e90615502565b80601f016020809104026020016040519081016040528092919081815260200182805461193a90615502565b80156119875780601f1061195c57610100808354040283529160200191611987565b820191906000526020600020905b81548152906001019060200180831161196a57829003601f168201915b50505050509050919050565b61199c33610c37565b6118606119a885611866565b83604051602001610c5e91906159ac565b6119c233610c37565b610c736119d084608c612c21565b83604051602001610c5e91906159dc565b6119e9612c8c565b806001600160a01b03163b600003611a1f5760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610d36565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015611a99575060408051601f3d908101601f19168201909252611a969181019061553c565b60015b611ac15760405163fdeac91f60e01b81526001600160a01b0382166004820152602401610d36565b80610cb25760405163fdeac91f60e01b81526001600160a01b0383166004820152602401610d36565b50565b6000611b016001546001600160a01b031690565b6001600160a01b031663d39e6043608c6117cc565b33611b1f61239a565b6001600160a01b0316816001600160a01b031614611b5a5760405162d1953b60e31b81526001600160a01b0382166004820152602401610d36565b816001600160a01b03163b600003611b90576040516361798f2f60e11b81526001600160a01b0383166004820152602401610d36565b610cb2826130b5565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b038416607a61127c565b611bcf33610c37565b6040516355ee627560e01b81526001600160c01b031983166004820152610cb29073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015611c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccd91906156c4565b600080600080516020615cc483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__906330b8415f90602401602060405180830381865af4158015611cc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce4919061553c565b15611d71576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611d47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6b91906154e5565b91505090565b54600160601b90046001600160a01b0316919050565b611d9033610c37565b610cb2611d9e83608c612c21565b82604051602001610c9e91906159dc565b6040805160e081018252600091810182815260608083018490526080830184905260a0830184905260c083019390935281526020810191909152600082815260046020908152604091829020825160e081018452815460ff80821695830195865261010082041660608301526001600160a01b0362010000820416608083015263ffffffff600160b01b8204811660a0840152600160d01b9091041660c08201529283526001810180549192840191611e6790615502565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9390615502565b8015611ee05780601f10611eb557610100808354040283529160200191611ee0565b820191906000526020600020905b815481529060010190602001808311611ec357829003601f168201915b5050505050815250509050919050565b600080516020615ce4833981519152805460009190600160a01b900460ff16611f1a576000611d6b565b638fb3603760e01b91505090565b611f3133610c37565b610cb2611f3f836078612c21565b82604051602001610c9e9190615a43565b600073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__633889a4c86001600160601b03841660dc61127c565b611f8633610c37565b610cb2611f9283611b99565b82604051602001610c9e9190615ab7565b611fac33610c37565b6040516355ee627560e01b81526001600160c01b031984166004820152610c739073__$19a201e37be2e25dc57bd4aa563a0edb25$__906355ee627590602401602060405180830381865af4158015612009573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202d91906156c4565b83604051602001610c5e9190615892565b60ff8381166000908152600260205260409081902054905163037c8cb160e51b81529116600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af41580156120a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c7919061553c565b156120d157505050565b60ff808416600090815260036020908152604080832086851684528252808320858516845290915290205416610c7357604051636bb20ea760e01b815260ff8085166004830152808416602483015282166044820152606401610d36565b61213833610c37565b610cb261214483611866565b82604051602001610c9e9190615576565b61215e33610c37565b610c738383604051602001610c5e91906156dd565b61217c33610c37565b610c73610ccd84611866565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f591906154e5565b6001600160a01b0316336001600160a01b03161461221257600080fd5b60055461010090046001600160a01b03166303014974612230613116565b6040516001600160e01b031960e084901b1681526001600160401b039091166004820152602401602060405180830381865afa158015612274573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229891906156c4565b156122a5576122a5615b15565b60055461010090046001600160a01b031663b428b0b06122c3613116565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b03851660248201526044016020604051808303816000875af1158015612318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233c919061553c565b1515600114610cb257610cb2615b15565b60ff81811660009081526002602052604080822054905163b2466acf60e01b8152921660048301529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf906024016114f8565b600080516020615ce4833981519152546001600160a01b031690565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156123fb5750825b90506000826001600160401b031660011480156124175750303b155b905081158015612425575080155b156124435760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561246d57845460ff60401b1916600160401b1785555b6124768861318e565b60008790506124fb88826001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e19190615559565b604660018b6040518060200160405280600081525061133d565b612503611893565b61251363200c173160e01b6112f2565b5083156113bf57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b60006125776001546001600160a01b031690565b6001600160a01b031663d39e604360786117cc565b604051632392b61b60e21b81526003600482015260009073__$9dab98ad7ae1a426029e5739f922230a41$__90638e4ad86c90602401602060405180830381865af41580156125df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118359190615b2b565b61260c33610c37565b610c738383604051602001610c5e9190615911565b61262a33610c37565b610cb2610ccd836078612c21565b61264133610c37565b610cb2610ccd83606e612c21565b60006126636001546001600160a01b031690565b6001600160a01b031663d39e604360d36117cc565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e591906154e5565b6001600160a01b0316336001600160a01b03161461270257600080fd5b60055461010090046001600160a01b031663b7d2b162612720613116565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b03861660248201526044016020604051808303816000875af1158015612775573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612799919061553c565b15156001146127aa576127aa615b15565b60055461010090046001600160a01b031663b428b0b06127c8613116565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b03851660248201526044016020604051808303816000875af115801561281d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612841919061553c565b1515600114610c7357610c73615b15565b604051637a400b6760e11b815260ff8316600482015260ff198216602482015260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__9063f48016ce906044015b602060405180830381865af41580156128b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128d691906156c4565b9392505050565b6128e633610c37565b610c736128f4846078612c21565b83604051602001610c5e9190615a43565b61290e33610c37565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015612956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061297a91906154e5565b6001600160a01b0316146129d05760405162461bcd60e51b815260206004820181905260248201527f496e7374616e636552656164657220696e7374616e6365206d69736d617463686044820152606401610d36565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6129fa612c8c565b612a03816119e1565b612a0b611464565b6001600160a01b038216612a325760405163f17ef42d60e01b815260040160405180910390fd5b50600080516020615cc483398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b612a7233610c37565b610c73612a7e84611866565b82604051602001610c9e91906159ac565b612a9833610c37565b610c73612aa484611b99565b83604051602001610c5e9190615ab7565b612abe33610c37565b610cb2612acc83606e612c21565b82604051602001610c9e919061537a565b612ae633610c37565b610cb2610ccd83611f50565b6000612b066001546001600160a01b031690565b6001600160a01b031663d39e604360dc6117cc565b600080516020615ce4833981519152600080612b56612b3861239a565b8730612b48600460008a8c615b48565b612b5191615b72565b61319f565b9150915081612c195763ffffffff811615612bf657825460ff60a01b1916600160a01b178355612b8461239a565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401612bb393929190615ba2565b600060405180830381600087803b158015612bcd57600080fd5b505af1158015612be1573d6000803e3d6000fd5b5050845460ff60a01b1916855550612c199050565b60405162d1953b60e31b81526001600160a01b0387166004820152602401610d36565b505050505050565b604051630711349960e31b81526001600160601b038316600482015260ff8216602482015260009073__$6facc32ab6029a5f5de2a1d5e55ea9da0e$__90633889a4c890604401612895565b610c738383836132ab565b610cb28282613753565b610cb28282613b6c565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166118bb57604051631afcd79f60e31b815260040160405180910390fd5b7f4bee8dc518469fb8c73831886b94afa96b3ef3e3ee55b9076720259192220ef08054606460ff19918216179091557ffb39f406c8d3ff86a211d5f8c6729c90fce2fed80808bb47b6dc39e975a7d4d68054821660019081179091557fe59968928be831d9cd5403370c74d9f1dac318690d88a2efef2b29079332ee4f80548316821790557fe78520cf30689bb50fce16ae1e25040217df710de55e9ed38f2b2722b2a984688054909216811790915560dc600090815260036020527fa093975c0a88af8b2bf4799c5b4be14d42fc326c2a331b9f3fb3caecbaa5104f90606e5b60ff1660ff1681526020019081526020016000206000612dd460c890565b60ff1681526020810191909152604001600020805460ff1916911515919091179055565b7f7673bcbb3401a7cbae68f81d40eea2cf35afdaf7ecd016ebf3f02857fcc1260a8054606460ff1991821681179092557fa1c69de77e78d12e062170d002ba111ba52c8f452f3b0ca326991b7298fd7aaf80548216600190811790915560008381527f6dcc58afd04aec67a07f8168234edce351865815e87e6f9a62e977830ebfce226020527f5267f8fb4089eaca6dac10383f9a063927ca0092f9c59d7ca3b3d61812638b028054909316821790925591600391905b60ff1660ff1681526020019081526020016000206000612ecd606e90565b60ff1660ff1681526020019081526020016000206000612dd460d290565b7feb6856e0ae0d71a8a9e0bc42aca98fe96c3be13699c5c2d551c94a190e39043d8054600a60ff19918216179091557f4b5a0a5953a753e51be29e6e2b638995162612852ea3b46cff09cbac61f9cb568054821660019081179091557fb7939d1e06f7236b22c8e9bf344ab29b7c87eec9f53e55d389378ef7585ffd7e80548316821790557f158b1af96972c14cb1a5e39cbdbd793a3bc4f7c57c85ef22cf298bf517d6e0b380548316821790557f6160f9e22b3793ed435de7ac6b8dd0ee9d3110d626fe8135ffbb7d38470f229a8054909216811790915560d3600090815260036020527fb0b6d2d73fcb69de4c434c711239319c2c669ebf6407f36fc258ff9f98f803fa906064612db6565b7fec56eb74d500f9b1bf8f0c5cc42ff5ed51e8d9e3a2ebb6e83a26383f297e0f1e8054606460ff1991821681179092557fe63626ccd25c67b6e53c3bd622e9c77c962be121e55eb3904854ac631eb8f9f080548216600190811790915560009283527fa74711c3b0f698a9dde85849aefdd2d454c235a4c161e6f019356c5ec8490c816020527fbed2f4a35dfbfdf2c5294831261529ea73fa5b94705484f5af8ba1bc3cb59362805490921681179091559060039060c8612eaf565b600080516020615ce483398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b6040516368aebf7b60e01b815261076c600482015260009073__$cd131c2b3ba46b9dbe046aaf4458b9777d$__906368aebf7b90602401602060405180830381865af415801561316a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118359190615be2565b613196612c8c565b611aea81613eb0565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b1790525161320e9190615c0b565b600060405180830381855afa9150503d8060008114613249576040519150601f19603f3d011682016040523d82523d6000602084013e61324e565b606091505b509150915081156132a057604081511061328057808060200190518101906132769190615c27565b90945092506132a0565b60208151106132a0578080602001905181019061329d919061553c565b93505b505094509492505050565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af41580156132fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613321919061553c565b61336d5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3032303a53544154455f554e444546494e45440000006044820152606401610d36565b6000838152600460208190526040918290208054925163b2466acf60e01b815261010090930460ff169183018290529173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af41580156133d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133fd919061553c565b6134495760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3032313a4e4f545f4558495354494e470000000000006044820152606401610d36565b600085815260046020526040902060010161346485826157d3565b508154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b909104166134a94390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018890527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af415801561353b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061355f9190615b2b565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156135af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135d39190615c56565b85888632876040516135eb9796959493929190615c73565b60405180910390a1604051634b00e98f60e11b8152600481018890527f7bd0ab7f1746bd20a814d6705a46876c84f1aa2d35c80d8c173e268bd6d4b26c9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015613665573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136899190615b2b565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af41580156136d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136fd9190615c56565b6040805160ff938416815260ff199092166020830152918816918101919091526001600160a01b038416606082015232608082015263ffffffff831660a082015260c0015b60405180910390a150505050505050565b604051634b00e98f60e11b81526004810183905260009073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af41580156137a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ca9190615b2b565b60405163b2466acf60e01b815260ff8216600482015290915073__$fb4566b39bd2075cb32f600f6f40bfaef2$__9063b2466acf90602401602060405180830381865af415801561381f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613843919061553c565b61388f5760405162461bcd60e51b815260206004820152601c60248201527f4552524f523a4b56532d3031303a545950455f554e444546494e4544000000006044820152606401610d36565b6000838152600460208190526040918290208054925163037c8cb160e51b815261010090930460ff16918301919091529073__$2a12cf1a40369f689f3a67e70f4b31dadc$__90636f91962090602401602060405180830381865af41580156138fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613920919061553c565b61396c5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3031323a414c52454144595f435245415445440000006044820152606401610d36565b334360006139798561234d565b61398457606461399a565b60ff808616600090815260026020526040902054165b845460ff87811661ffff1990921691909117610100918316919091021762010000600160d01b031916620100006001600160a01b0386160263ffffffff60b01b191617600160b01b63ffffffff85169081029190911763ffffffff60d01b1916600160d01b919091021785556000888152600460205260409020909150600101613a2487826157d3565b50604051634b00e98f60e11b8152600481018890527ffcb75eb7b317145f986c763e1a3eab5f9b4dbaf7955504f70f986d799c3ab39d9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015613a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613abb9190615b2b565b604051630713cfad60e31b8152600481018a905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015613b0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b2f9190615c56565b6040805160ff938416815260ff199092166020830152918416918101919091526001600160a01b038516606082015232608082015260a001613742565b60405163b2466acf60e01b815260ff8216600482015273__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015613bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613be2919061553c565b613c2e5760405162461bcd60e51b815260206004820152601d60248201527f4552524f523a4b56532d3034303a53544154455f554e444546494e45440000006044820152606401610d36565b6000828152600460208190526040918290208054925163b2466acf60e01b815261010090930460ff169183018290529173__$2a12cf1a40369f689f3a67e70f4b31dadc$__9063b2466acf90602401602060405180830381865af4158015613c9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cbe919061553c565b613d0a5760405162461bcd60e51b815260206004820152601a60248201527f4552524f523a4b56532d3034313a4e4f545f4558495354494e470000000000006044820152606401610d36565b8154613d1a9060ff16828561203e565b8154620100003390810262010000600160b01b031960ff87166101000216610100600160b01b03198416171784559063ffffffff600160b01b90910416613d5e4390565b845463ffffffff91909116600160b01b0263ffffffff60b01b19909116178455604051634b00e98f60e11b8152600481018790527fe41a93c15e024a0b2371127599959a8e543dd6a8d820238e906c93a3004248fa9073__$c8f743efd2b4f0c9300f2558c784479d3e$__90639601d31e90602401602060405180830381865af4158015613df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e149190615b2b565b604051630713cfad60e31b81526004810189905273__$c8f743efd2b4f0c9300f2558c784479d3e$__9063389e7d6890602401602060405180830381865af4158015613e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e889190615c56565b8588863287604051613ea09796959493929190615c73565b60405180910390a1505050505050565b613eb8612c8c565b611aea816130b5565b600060208284031215613ed357600080fd5b81356001600160e01b0319811681146128d657600080fd5b600060208284031215613efd57600080fd5b5035919050565b6001600160601b0381168114611aea57600080fd5b8035613f2481613f04565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715613f6157613f61613f29565b60405290565b60405161010081016001600160401b0381118282101715613f6157613f61613f29565b60405161012081016001600160401b0381118282101715613f6157613f61613f29565b60405161020081016001600160401b0381118282101715613f6157613f61613f29565b604051608081016001600160401b0381118282101715613f6157613f61613f29565b60405160e081016001600160401b0381118282101715613f6157613f61613f29565b60405160a081016001600160401b0381118282101715613f6157613f61613f29565b6001600160a01b0381168114611aea57600080fd5b8035613f2481614036565b60006040828403121561406857600080fd5b614070613f3f565b9050813581526020820135602082015292915050565b8015158114611aea57600080fd5b8035613f2481614086565b600061014082840312156140b257600080fd5b6140ba613f67565b90506140c58261404b565b81526140d36020830161404b565b60208201526140e460408301613f19565b60408201526140f560608301613f19565b60608201526141078360808401614056565b60808201526141198360c08401614056565b60a082015261412b6101008301614094565b60c082015261413d610120830161404b565b60e082015292915050565b60ff81168114611aea57600080fd5b6000806000610180848603121561416d57600080fd5b833561417881613f04565b9250614187856020860161409f565b915061016084013561419881614148565b809150509250925092565b6000602082840312156141b557600080fd5b81356128d681614148565b600082601f8301126141d157600080fd5b81356001600160401b03808211156141eb576141eb613f29565b604051601f8301601f19908116603f0116810190828211818310171561421357614213613f29565b8160405283815286602085880101111561422c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b64ffffffffff81168114611aea57600080fd5b8035613f248161424c565b6000610140828403121561427d57600080fd5b614285613f8a565b905061429082613f19565b815261429f8360208401614056565b602082015260608201356001600160401b038111156142bd57600080fd5b6142c9848285016141c0565b6040830152506080820135606082015260a0820135608082015260c082013560a08201526142f960e0830161425f565b60c082015261010061430c81840161425f565b60e083015261431e610120840161425f565b9082015292915050565b6000806040838503121561433b57600080fd5b823561434681613f04565b915060208301356001600160401b0381111561436157600080fd5b61436d8582860161426a565b9150509250929050565b6000806040838503121561438a57600080fd5b823561439581613f04565b915060208301356143a581614148565b809150509250929050565b6000602082840312156143c257600080fd5b81356128d681614036565b60005b838110156143e85781810151838201526020016143d0565b50506000910152565b600081518084526144098160208601602086016143cd565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a083015161448660c08401826001600160a01b03169052565b5060c083015160e0808401526144a06101008401826143f1565b949350505050565b6000806000606084860312156144bd57600080fd5b83356144c881613f04565b925060208401356001600160401b038111156144e357600080fd5b6144ef8682870161426a565b925050604084013561419881614148565b6001600160c01b031981168114611aea57600080fd5b8035613f2481614500565b61ffff81168114611aea57600080fd5b8035613f2481614521565b6000610200828403121561454f57600080fd5b614557613fad565b905061456282613f19565b815261457060208301613f19565b602082015261458160408301614516565b604082015261459260608301614516565b60608201526080820135608082015260a082013560a082015260c082013560c08201526145c160e0830161425f565b60e0820152610100808301356001600160401b03808211156145e257600080fd5b6145ee868387016141c0565b8385015261012092508285013591508082111561460a57600080fd5b50614617858286016141c0565b82840152505061014061462b818401614531565b9082015261016061463d838201614531565b9082015261018082810135908201526101a061465a81840161425f565b908201526101c061466c83820161425f565b908201526101e061431e83820161425f565b60008060006060848603121561469357600080fd5b833561469e81613f04565b925060208401356001600160401b038111156146b957600080fd5b6144ef8682870161453c565b6000602082840312156146d757600080fd5b81356128d681613f04565b63ffffffff81168114611aea57600080fd5b8035613f24816146e2565b6000610120828403121561471257600080fd5b61471a613f8a565b905081356001600160401b038082111561473357600080fd5b61473f858386016141c0565b835260208401356020840152604084013560408401526060840135606084015261476b608085016146f4565b608084015261477c60a085016146f4565b60a084015261478d60c08501614094565b60c084015261479e60e08501614094565b60e0840152610100915081840135818111156147b957600080fd5b6147c5868287016141c0565b8385015250505092915050565b600080604083850312156147e557600080fd5b8235915060208301356001600160401b0381111561480257600080fd5b61436d858286016146ff565b60008060008060008060c0878903121561482757600080fd5b863561483281614036565b9550602087013561484281613f04565b9450604087013561485281614148565b9350606087013561486281614086565b9250608087013561487281614036565b915060a08701356001600160401b0381111561488d57600080fd5b61489989828a016141c0565b9150509295509295509295565b6000604082840312156148b857600080fd5b6148c0613f3f565b905081356148cd81613f04565b815260208201356001600160401b038111156148e857600080fd5b6148f4848285016141c0565b60208301525092915050565b6000806040838503121561491357600080fd5b823561491e81614500565b915060208301356001600160401b0381111561493957600080fd5b61436d858286016148a6565b60006080828403121561495757600080fd5b61495f613fd0565b9050813561496c81614521565b81526020828101359082015260408201356001600160401b0381111561499157600080fd5b61499d848285016141c0565b60408301525060608201356149b18161424c565b606082015292915050565b6000806000606084860312156149d157600080fd5b83356149dc81613f04565b925060208401356149ec816146e2565b915060408401356001600160401b03811115614a0757600080fd5b614a1386828701614945565b9150509250925092565b60008060008060808587031215614a3357600080fd5b8435614a3e81613f04565b93506020850135614a4e816146e2565b925060408501356001600160401b03811115614a6957600080fd5b614a7587828801614945565b9250506060850135614a8681614148565b939692955090935050565b60008060408385031215614aa457600080fd5b8235915060208301356143a581614148565b600060e08284031215614ac857600080fd5b614ad0613ff2565b9050614adb82613f19565b815260208201356001600160401b0380821115614af757600080fd5b614b03858386016141c0565b602084015260408401356040840152614b1e606085016146f4565b6060840152614b2f608085016146f4565b6080840152614b4060a0850161425f565b60a084015260c0840135915080821115614b5957600080fd5b50614b66848285016141c0565b60c08301525092915050565b60008060408385031215614b8557600080fd5b8235915060208301356001600160401b03811115614ba257600080fd5b61436d85828601614ab6565b6020815260006128d660208301846143f1565b600060808284031215614bd357600080fd5b614bdb613fd0565b9050813581526020820135602082015260408201356001600160401b0381111561499157600080fd5b60008060008060808587031215614c1a57600080fd5b8435614c2581613f04565b93506020850135614c3581614521565b925060408501356001600160401b03811115614c5057600080fd5b614a7587828801614bc1565b600060a08284031215614c6e57600080fd5b614c76614014565b905081356001600160401b0380821115614c8f57600080fd5b614c9b858386016141c0565b835260208401359150614cad82614036565b81602084015260408401359150614cc382614036565b81604084015260608401359150614cd982614036565b8160608401526080840135915080821115614cf357600080fd5b50614d00848285016141c0565b60808301525092915050565b600080600060608486031215614d2157600080fd5b8335614d2c81613f04565b925060208401356001600160401b03811115614d4757600080fd5b6144ef86828701614c5c565b60008060408385031215614d6657600080fd5b823561439581614500565b60008060408385031215614d8457600080fd5b8235614d8f81613f04565b915060208301356001600160401b03811115614daa57600080fd5b61436d85828601614c5c565b60ff815116825260ff602082015116602083015260018060a01b036040820151166040830152606081015163ffffffff808216606085015280608084015116608085015250505050565b60208152614e12602082018351614db6565b6000602083015160c0808401526144a060e08401826143f1565b60006101008284031215614e3f57600080fd5b60405160c081018181106001600160401b0382111715614e6157614e61613f29565b6040529050808235614e7281613f04565b81526020830135614e8281614036565b6020820152614e948460408501614056565b6040820152614ea68460808501614056565b606082015260c0830135614eb981614036565b8060808301525060e083013560a08201525092915050565b6000806101208385031215614ee557600080fd5b8235614ef081613f04565b9150614eff8460208501614e2c565b90509250929050565b60a081016112ec8284614db6565b600060a08284031215614f2857600080fd5b614f30614014565b90508135614f3d81614500565b81526020820135614f4d81614086565b602082015260408201356001600160401b03811115614f6b57600080fd5b614f77848285016141c0565b604083015250606082013560608201526080820135608082015292915050565b60008060408385031215614faa57600080fd5b8235614fb581613f04565b915060208301356001600160401b03811115614fd057600080fd5b61436d85828601614f16565b600080600060608486031215614ff157600080fd5b8335614ffc81614500565b925060208401356001600160401b0381111561501757600080fd5b6144ef868287016148a6565b60008060006060848603121561503857600080fd5b833561504381614148565b9250602084013561505381614148565b9150604084013561419881614148565b6000806040838503121561507657600080fd5b823561508181613f04565b915060208301356001600160401b0381111561509c57600080fd5b61436d8582860161453c565b6000806000606084860312156150bd57600080fd5b8335925060208401356001600160401b038111156150da57600080fd5b6144ef868287016146ff565b6000806000606084860312156150fb57600080fd5b833561510681613f04565b9250602084013561505381614521565b6000806040838503121561512957600080fd5b823561513481614036565b946020939093013593505050565b60008060006060848603121561515757600080fd5b833561516281614036565b9250602084013561517281614036565b9150604084013561419881614036565b60008060006060848603121561519757600080fd5b8335925060208401356001600160401b038111156151b457600080fd5b6144ef86828701614ab6565b6000806000606084860312156151d557600080fd5b83356151e081614036565b925060208401356151f081614036565b929592945050506040919091013590565b60ff1981168114611aea57600080fd5b6000806040838503121561522457600080fd5b823561522f81614148565b915060208301356143a581615201565b6000806000610140848603121561525557600080fd5b833561526081613f04565b925061526f8560208601614e2c565b915061012084013561419881614148565b6000806040838503121561529357600080fd5b823561529e81614036565b915060208301356143a581614036565b6000806000606084860312156152c357600080fd5b83356152ce81613f04565b925060208401356152de81614521565b915060408401356001600160401b038111156152f957600080fd5b614a1386828701614bc1565b60008060006060848603121561531a57600080fd5b833561532581613f04565b925060208401356001600160401b0381111561534057600080fd5b6144ef86828701614f16565b600080610160838503121561536057600080fd5b823561536b81613f04565b9150614eff846020850161409f565b81516001600160a01b039081168252602080840151909116908201526040808301516001600160601b0316908201526060808301516101408301916153c9908401826001600160601b03169052565b5060808301516153e6608084018280518252602090810151910152565b5060a0830151805160c0840152602081015160e08401525060c08301518015156101008401525060e08301516001600160a01b0381166101208401525092915050565b602081526154436020820183516001600160601b03169052565b60006020830151615461604084018280518252602090810151910152565b50604083015161014080608085015261547e6101608501836143f1565b9150606085015160a0850152608085015160c085015260a085015160e085015260c08501516101006154b88187018364ffffffffff169052565b60e087015164ffffffffff811661012088015291505b9095015164ffffffffff1693019290925250919050565b6000602082840312156154f757600080fd5b81516128d681614036565b600181811c9082168061551657607f821691505b60208210810361553657634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561554e57600080fd5b81516128d681614086565b60006020828403121561556b57600080fd5b81516128d681613f04565b602081526155906020820183516001600160601b03169052565b600060208301516155ac60408401826001600160601b03169052565b5060408301516001600160c01b0319811660608401525060608301516001600160c01b03198116608084015250608083015160a083015260a083015160c083015260c083015160e083015260e08301516101006156118185018364ffffffffff169052565b8085015191505061020061012081818601526156316102208601846143f1565b9250808601519050610140601f19868503018187015261565184836143f1565b93508087015191505061016061566c8187018361ffff169052565b86015190506101806156838682018361ffff169052565b8601516101a08681019190915286015190506101c06156aa8187018364ffffffffff169052565b86015190506101e06154ce8682018364ffffffffff169052565b6000602082840312156156d657600080fd5b5051919050565b60208152600082516101208060208501526156fc6101408501836143f1565b9150602085015160408501526040850151606085015260608501516080850152608085015161573360a086018263ffffffff169052565b5060a085015163ffffffff811660c08601525060c085015180151560e08601525060e08501516101006157698187018315159052565b860151858403601f190183870152905061578383826143f1565b9695505050505050565b601f821115610c7357600081815260208120601f850160051c810160208610156157b45750805b601f850160051c820191505b81811015612c19578281556001016157c0565b81516001600160401b038111156157ec576157ec613f29565b615800816157fa8454615502565b8461578d565b602080601f831160018114615835576000841561581d5750858301515b600019600386901b1c1916600185901b178555612c19565b600085815260208120601f198616915b8281101561586457888601518255948401946001909101908401615845565b50858210156158825787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b602081526001600160601b038251166020820152600060208301516040808401526144a060608401826143f1565b6020815261ffff82511660208201526020820151604082015260006040830151608060608401526158f460a08401826143f1565b905064ffffffffff60608501511660808401528091505092915050565b602081526001600160601b0382511660208201526000602083015160e060408401526159416101008401826143f1565b90506040840151606084015263ffffffff6060850151166080840152608084015161597460a085018263ffffffff169052565b5060a084015164ffffffffff811660c08501525060c0840151838203601f190160e08501526159a382826143f1565b95945050505050565b60208152815160208201526020820151604082015260006040830151608060608401526158f460a08401826143f1565b602081526000825160a060208401526159f860c08401826143f1565b9050602084015160018060a01b03808216604086015280604087015116606086015280606087015116608086015250506080840151601f198483030160a08501526159a382826143f1565b81516001600160601b031681526020808301516001600160a01b039081168284015260408085015180519185019190915291820151606084015261010083019190606085015180516080860152602081015160a0860152915060808501511660c08401525060a09092015160e09091015290565b602081526001600160401b0360c01b82511660208201526020820151151560408201526000604083015160a06060840152615af560c08401826143f1565b905060608401516080840152608084015160a08401528091505092915050565b634e487b7160e01b600052600160045260246000fd5b600060208284031215615b3d57600080fd5b81516128d681614148565b60008085851115615b5857600080fd5b83861115615b6557600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015615b9a5780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b600060208284031215615bf457600080fd5b81516001600160401b03811681146128d657600080fd5b60008251615c1d8184602087016143cd565b9190910192915050565b60008060408385031215615c3a57600080fd5b8251615c4581614086565b60208401519092506143a5816146e2565b600060208284031215615c6857600080fd5b81516128d681615201565b60ff978816815260ff1996909616602087015293861660408601529190941660608401526001600160a01b03938416608084015290921660a082015263ffffffff9190911660c082015260e0019056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220e049e50ee6b5934f82ffdbad61686d21dbc2f26f8dde3b29d305a89ee52bac4364736f6c63430008140033",
894
+ "bytecode": "0x608060405234801561001057600080fd5b506127bf806100206000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c80636b9bf08b11610146578063bf7e214f116100c3578063d4cda0d811610087578063d4cda0d814610554578063e1033e7d14610565578063e7f7fb861461056d578063f7bc431c14610580578063f7c34ee014610593578063fed3d63f146105a657600080fd5b8063bf7e214f146104e4578063c0c53b8b146104ec578063ca600b1c146104ff578063cde749f414610507578063d2192dbf1461052157600080fd5b80638fb360371161010a5780638fb3603714610475578063ada9652e14610496578063b428b0b0146104ab578063b7d2b162146104be578063bb1e0e59146104d157600080fd5b80636b9bf08b1461042c578063770ab102146104345780637a9e5e4b14610447578063868923131461045a578063893d20e81461046d57600080fd5b8063311adb68116101d45780635ab1bd53116101985780635ab1bd53146103c65780635fa8aad4146103d757806361f5f420146103ea578063644c45e0146103fb578063675393bf1461041957600080fd5b8063311adb681461036757806336fc697e1461037857806340be237614610380578063422c9d00146103ab5780634288121d146103be57600080fd5b8063214cdb801161021b578063214cdb80146103135780632449aea8146103265780632781d4431461033957806327bb7a331461034157806329db8c3d1461035457600080fd5b806301ffc9a71461025857806302cd30711461029a5780630fec111c146102bf578063138461e0146102d45780631eff4b22146102de575b600080fd5b610285610266366004611e29565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610291565b6102c76105ae565b6040516102919190611e9b565b6102dc610701565b005b6103057f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610291565b6102dc610321366004611e29565b61070d565b6102dc610334366004611f3b565b61073a565b610305600381565b6102dc61034f366004612015565b610855565b6102dc610362366004612101565b6108fa565b6002546001600160a01b03166102a7565b6102dc610967565b61039361038e366004611f3b565b6109ad565b6040516001600160601b039091168152602001610291565b6102dc6103b9366004611f3b565b6109fb565b6102a7610ba5565b6001546001600160a01b03166102a7565b6102dc6103e53660046121ab565b610c38565b6004546001600160a01b03166102a7565b60008051602061274a833981519152546001600160601b0316610393565b6102dc610427366004611f3b565b610ca9565b6102a7610db6565b6102dc610442366004611f3b565b610ddf565b6102dc610455366004611f3b565b610ef1565b6102dc6104683660046121fa565b610f74565b6102a7610fb7565b61047d6110ee565b6040516001600160e01b03199091168152602001610291565b61030560008051602061274a83398151915281565b6102dc6104b9366004612233565b611126565b6102dc6104cc366004612233565b611208565b6102dc6104df366004612261565b6112e3565b6102a76113a6565b6102dc6104fa36600461228d565b6113c2565b6102a761158e565b61050f6115b7565b60405160ff9091168152602001610291565b61053461052f3660046122d8565b61162e565b604080516001600160401b03938416815292909116602083015201610291565b6005546001600160a01b03166102a7565b6102a76116b9565b6102dc61057b366004612331565b6116e2565b6102dc61058e366004611f3b565b6117d8565b6102dc6105a1366004612372565b611898565b6102a761190f565b6040805160e0808201835260008083526020830181905282840181905260608084018290526080840182905260a0840182905260c0840152835191820190935290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300919081906001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161065d610fb7565b6001600160a01b0316815260200182600101805461067a90612390565b80601f01602080910402602001604051908101604052809291908181526020018280546106a690612390565b80156106f35780601f106106c8576101008083540402835291602001916106f3565b820191906000526020600020905b8154815290600101906020018083116106d657829003601f168201915b505050505081525091505090565b61070a30611938565b50565b610715611b39565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610747335b600036611b84565b6005546001600160a01b03161561078557600554604051632e67e2ab60e21b81526001600160a01b0390911660048201526024015b60405180910390fd5b61078d6113a6565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f891906123ca565b6001600160a01b0316146108335761080e6113a6565b6040516348263eef60e01b81526001600160a01b03909116600482015260240161077c565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61085d611b39565b6108678287611898565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3016108f08382612432565b5050505050505050565b6109033361073f565b6002546040516329db8c3d60e01b81526001600160a01b03909116906329db8c3d906109399087908790879087906004016124f1565b600060405180830381600087803b15801561095357600080fd5b505af11580156108f0573d6000803e3d6000fd5b61096f611b39565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b60006109b7610fb7565b6001600160a01b0316336001600160a01b0316146109ea5760405163086391f760e31b815233600482015260240161077c565b6109f382611938565b90505b919050565b610a043361073f565b6004546001600160a01b031615610a40576004805460405163384c2dbd60e11b81526001600160a01b039091169181019190915260240161077c565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aac91906123ca565b6001600160a01b031614610ad55760405163decb98c560e01b815230600482015260240161077c565b610add6113a6565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4891906123ca565b6001600160a01b031614610b8357610b5e6113a6565b604051630312205960e41b81526001600160a01b03909116600482015260240161077c565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610bb96001546001600160a01b031690565b6001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff909116600482015260036024820152604401602060405180830381865afa158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3391906123ca565b905090565b610c413361073f565b6002546040516317ea2ab560e21b81526001600160a01b0390911690635fa8aad490610c739085908590600401612566565b600060405180830381600087803b158015610c8d57600080fd5b505af1158015610ca1573d6000803e3d6000fd5b505050505050565b610cb1611b39565b806001600160a01b03163b600003610ce75760405163fdeac91f60e01b81526001600160a01b038216600482015260240161077c565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526312da491160e01b60048201526301ffc9a790602401602060405180830381865afa925050508015610d61575060408051601f3d908101601f19168201909252610d5e9181019061258a565b60015b610d895760405163fdeac91f60e01b81526001600160a01b038216600482015260240161077c565b80610db25760405163fdeac91f60e01b81526001600160a01b038316600482015260240161077c565b5050565b6000610dca6001546001600160a01b031690565b6001600160a01b031663d39e6043608c610bca565b610de83361073f565b6002546001600160a01b031615610e215760025460405163078a818f60e31b81526001600160a01b03909116600482015260240161077c565b610e296113a6565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9491906123ca565b6001600160a01b031614610ecf57610eaa6113a6565b60405163021f1e5360e61b81526001600160a01b03909116600482015260240161077c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b33610efa6113a6565b6001600160a01b0316816001600160a01b031614610f355760405162d1953b60e31b81526001600160a01b038216600482015260240161077c565b816001600160a01b03163b600003610f6b576040516361798f2f60e11b81526001600160a01b038316600482015260240161077c565b610db282611c82565b610f7d3361073f565b6002546040516308b6d1c760e21b81526001600160a01b0384811660048301528315156024830152909116906322db471c90604401610c73565b60008060008051602061274a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611027573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104b919061258a565b156110d8576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d291906123ca565b91505090565b54600160601b90046001600160a01b0316919050565b60008051602061276a833981519152805460009190600160a01b900460ff166111185760006110d2565b638fb3603760e01b91505090565b61112f3361073f565b6111376113a6565b604051631517388760e21b81526001600160401b03841660048201526001600160a01b0391909116906325c471a09073__$1d92393fa9ccd763988368ce8a1cb90d26$__9063545ce21c90602401602060405180830381865af41580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c691906125a7565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b038416602482015260006044820152606401610c73565b6112113361073f565b6112196113a6565b604051631517388760e21b81526001600160401b03841660048201526001600160a01b03919091169063b7d2b1629073__$1d92393fa9ccd763988368ce8a1cb90d26$__9063545ce21c90602401602060405180830381865af4158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a891906125a7565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b0384166024820152604401610c73565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561132c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135091906123ca565b6001600160a01b0316336001600160a01b03161461136d57600080fd5b600254604051632f42b9a560e11b8152600060048201526001600160a01b03848116602483015290911690635e85734a90604401610c73565b60008051602061276a833981519152546001600160a01b031690565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156114075750825b90506000826001600160401b031660011480156114235750303b155b905081158015611431575080155b1561144f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561147957845460ff60401b1916600160401b1785555b6001600160a01b0388166114a0576040516377dbcd1760e01b815260040160405180910390fd5b6114a988611ce3565b600087905061152e88826001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151491906125c4565b604660018b60405180602001604052806000815250610855565b61153e634b596f2560e11b61070d565b5083156108f057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b60006115a26001546001600160a01b031690565b6001600160a01b031663d39e60436078610bca565b604051632392b61b60e21b81526003600482015260009073__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af415801561160a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3391906125e1565b60008061163a3361073f565b60025460405163d2192dbf60e01b81526001600160a01b039091169063d2192dbf9061166c90879087906004016125fe565b60408051808303816000875af115801561168a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ae919061262c565b909590945092505050565b60006116cd6001546001600160a01b031690565b6001600160a01b031663d39e604360d3610bca565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561172b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f91906123ca565b6001600160a01b0316336001600160a01b03161461176c57600080fd5b600254604051632f42b9a560e11b81526001600160a01b038581166004830152848116602483015290911690635e85734a90604401600060405180830381600087803b1580156117bb57600080fd5b505af11580156117cf573d6000803e3d6000fd5b50505050505050565b6117e13361073f565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184d91906123ca565b6001600160a01b031614611876576040516345789cf560e01b815230600482015260240161077c565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6118a0611b39565b6118a981610ca9565b6118b1610967565b6001600160a01b0382166118d85760405163f17ef42d60e01b815260040160405180910390fd5b5060008051602061274a83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b60006119236001546001600160a01b031690565b6001600160a01b031663d39e604360dc610bca565b60008060008051602061274a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156119a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cc919061258a565b156119f85780546040516301ab8b6760e21b81526001600160601b03909116600482015260240161077c565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a70919061258a565b611a985760405163b9304b0d60e01b81526001600160a01b038416600482015260240161077c565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038581166004830152919091169063d272ac1e90602401602060405180830381865afa158015611aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1091906125c4565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611b8257604051631afcd79f60e31b815260040160405180910390fd5b565b60008051602061276a833981519152600080611bbf611ba16113a6565b8730611bb1600460008a8c61265b565b611bba91612685565b611cf4565b9150915081610ca15763ffffffff811615611c5f57825460ff60a01b1916600160a01b178355611bed6113a6565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611c1c939291906126b5565b600060405180830381600087803b158015611c3657600080fd5b505af1158015611c4a573d6000803e3d6000fd5b5050845460ff60a01b1916855550610ca19050565b60405162d1953b60e31b81526001600160a01b038716600482015260240161077c565b60008051602061276a83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611ceb611b39565b61070a81611e00565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611d6391906126f5565b600060405180830381855afa9150503d8060008114611d9e576040519150601f19603f3d011682016040523d82523d6000602084013e611da3565b606091505b50915091508115611df5576040815110611dd55780806020019051810190611dcb9190612711565b9094509250611df5565b6020815110611df55780806020019051810190611df2919061258a565b93505b505094509492505050565b611e08611b39565b61070a81611c82565b80356001600160e01b0319811681146109f657600080fd5b600060208284031215611e3b57600080fd5b611e4482611e11565b9392505050565b60005b83811015611e66578181015183820152602001611e4e565b50506000910152565b60008151808452611e87816020860160208601611e4b565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151611f0460c08401826001600160a01b03169052565b5060c083015160e080840152611f1e610100840182611e6f565b949350505050565b6001600160a01b038116811461070a57600080fd5b600060208284031215611f4d57600080fd5b8135611e4481611f26565b6001600160601b038116811461070a57600080fd5b60ff8116811461070a57600080fd5b801515811461070a57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611fba57611fba611f8a565b604051601f8501601f19908116603f01168101908282118183101715611fe257611fe2611f8a565b81604052809350858152868686011115611ffb57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060008060c0878903121561202e57600080fd5b863561203981611f26565b9550602087013561204981611f58565b9450604087013561205981611f6d565b9350606087013561206981611f7c565b9250608087013561207981611f26565b915060a08701356001600160401b0381111561209457600080fd5b8701601f810189136120a557600080fd5b6120b489823560208401611fa0565b9150509295509295509295565b600082601f8301126120d257600080fd5b611e4483833560208501611fa0565b6001600160401b038116811461070a57600080fd5b80356109f6816120e1565b6000806000806060858703121561211757600080fd5b84356001600160401b038082111561212e57600080fd5b61213a888389016120c1565b9550602087013591508082111561215057600080fd5b818701915087601f83011261216457600080fd5b81358181111561217357600080fd5b8860208260051b850101111561218857600080fd5b6020830195508094505050506121a0604086016120f6565b905092959194509250565b600080604083850312156121be57600080fd5b82356121c981611f26565b915060208301356001600160401b038111156121e457600080fd5b6121f0858286016120c1565b9150509250929050565b6000806040838503121561220d57600080fd5b823561221881611f26565b9150602083013561222881611f7c565b809150509250929050565b6000806040838503121561224657600080fd5b8235612251816120e1565b9150602083013561222881611f26565b6000806040838503121561227457600080fd5b823561227f81611f26565b946020939093013593505050565b6000806000606084860312156122a257600080fd5b83356122ad81611f26565b925060208401356122bd81611f26565b915060408401356122cd81611f26565b809150509250925092565b600080604083850312156122eb57600080fd5b82356001600160401b038082111561230257600080fd5b61230e868387016120c1565b9350602085013591508082111561232457600080fd5b506121f0858286016120c1565b60008060006060848603121561234657600080fd5b833561235181611f26565b9250602084013561236181611f26565b929592945050506040919091013590565b6000806040838503121561238557600080fd5b823561225181611f26565b600181811c908216806123a457607f821691505b6020821081036123c457634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156123dc57600080fd5b8151611e4481611f26565b601f82111561242d57600081815260208120601f850160051c8101602086101561240e5750805b601f850160051c820191505b81811015610ca15782815560010161241a565b505050565b81516001600160401b0381111561244b5761244b611f8a565b61245f816124598454612390565b846123e7565b602080601f831160018114612494576000841561247c5750858301515b600019600386901b1c1916600185901b178555610ca1565b600085815260208120601f198616915b828110156124c3578886015182559484019460019091019084016124a4565b50858210156124e15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6060815260006125046060830187611e6f565b8281036020848101919091528582528691810160005b87811015612547576001600160e01b031961253485611e11565b168252928201929082019060010161251a565b508093505050506001600160401b038316604083015295945050505050565b6001600160a01b0383168152604060208201819052600090611f1e90830184611e6f565b60006020828403121561259c57600080fd5b8151611e4481611f7c565b6000602082840312156125b957600080fd5b8151611e44816120e1565b6000602082840312156125d657600080fd5b8151611e4481611f58565b6000602082840312156125f357600080fd5b8151611e4481611f6d565b6040815260006126116040830185611e6f565b82810360208401526126238185611e6f565b95945050505050565b6000806040838503121561263f57600080fd5b825161264a816120e1565b6020840151909250612228816120e1565b6000808585111561266b57600080fd5b8386111561267857600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156126ad5780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008251612707818460208701611e4b565b9190910192915050565b6000806040838503121561272457600080fd5b825161272f81611f7c565b602084015190925063ffffffff8116811461222857600080fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220f4b9180b0761ef99433b84d686be4d8fb82ea83f087093dc8bd7bee7563af80a64736f6c63430008140033",
895
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102535760003560e01c80636b9bf08b11610146578063bf7e214f116100c3578063d4cda0d811610087578063d4cda0d814610554578063e1033e7d14610565578063e7f7fb861461056d578063f7bc431c14610580578063f7c34ee014610593578063fed3d63f146105a657600080fd5b8063bf7e214f146104e4578063c0c53b8b146104ec578063ca600b1c146104ff578063cde749f414610507578063d2192dbf1461052157600080fd5b80638fb360371161010a5780638fb3603714610475578063ada9652e14610496578063b428b0b0146104ab578063b7d2b162146104be578063bb1e0e59146104d157600080fd5b80636b9bf08b1461042c578063770ab102146104345780637a9e5e4b14610447578063868923131461045a578063893d20e81461046d57600080fd5b8063311adb68116101d45780635ab1bd53116101985780635ab1bd53146103c65780635fa8aad4146103d757806361f5f420146103ea578063644c45e0146103fb578063675393bf1461041957600080fd5b8063311adb681461036757806336fc697e1461037857806340be237614610380578063422c9d00146103ab5780634288121d146103be57600080fd5b8063214cdb801161021b578063214cdb80146103135780632449aea8146103265780632781d4431461033957806327bb7a331461034157806329db8c3d1461035457600080fd5b806301ffc9a71461025857806302cd30711461029a5780630fec111c146102bf578063138461e0146102d45780631eff4b22146102de575b600080fd5b610285610266366004611e29565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b039091168152602001610291565b6102c76105ae565b6040516102919190611e9b565b6102dc610701565b005b6103057f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610291565b6102dc610321366004611e29565b61070d565b6102dc610334366004611f3b565b61073a565b610305600381565b6102dc61034f366004612015565b610855565b6102dc610362366004612101565b6108fa565b6002546001600160a01b03166102a7565b6102dc610967565b61039361038e366004611f3b565b6109ad565b6040516001600160601b039091168152602001610291565b6102dc6103b9366004611f3b565b6109fb565b6102a7610ba5565b6001546001600160a01b03166102a7565b6102dc6103e53660046121ab565b610c38565b6004546001600160a01b03166102a7565b60008051602061274a833981519152546001600160601b0316610393565b6102dc610427366004611f3b565b610ca9565b6102a7610db6565b6102dc610442366004611f3b565b610ddf565b6102dc610455366004611f3b565b610ef1565b6102dc6104683660046121fa565b610f74565b6102a7610fb7565b61047d6110ee565b6040516001600160e01b03199091168152602001610291565b61030560008051602061274a83398151915281565b6102dc6104b9366004612233565b611126565b6102dc6104cc366004612233565b611208565b6102dc6104df366004612261565b6112e3565b6102a76113a6565b6102dc6104fa36600461228d565b6113c2565b6102a761158e565b61050f6115b7565b60405160ff9091168152602001610291565b61053461052f3660046122d8565b61162e565b604080516001600160401b03938416815292909116602083015201610291565b6005546001600160a01b03166102a7565b6102a76116b9565b6102dc61057b366004612331565b6116e2565b6102dc61058e366004611f3b565b6117d8565b6102dc6105a1366004612372565b611898565b6102a761190f565b6040805160e0808201835260008083526020830181905282840181905260608084018290526080840182905260a0840182905260c0840152835191820190935290917f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa300919081906001600160601b0390811682528354908116602083015260ff600160601b820481166040840152600160681b909104161515606082015230608082015260a00161065d610fb7565b6001600160a01b0316815260200182600101805461067a90612390565b80601f01602080910402602001604051908101604052809291908181526020018280546106a690612390565b80156106f35780601f106106c8576101008083540402835291602001916106f3565b820191906000526020600020905b8154815290600101906020018083116106d657829003601f168201915b505050505081525091505090565b61070a30611938565b50565b610715611b39565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610747335b600036611b84565b6005546001600160a01b03161561078557600554604051632e67e2ab60e21b81526001600160a01b0390911660048201526024015b60405180910390fd5b61078d6113a6565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f891906123ca565b6001600160a01b0316146108335761080e6113a6565b6040516348263eef60e01b81526001600160a01b03909116600482015260240161077c565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61085d611b39565b6108678287611898565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa3016108f08382612432565b5050505050505050565b6109033361073f565b6002546040516329db8c3d60e01b81526001600160a01b03909116906329db8c3d906109399087908790879087906004016124f1565b600060405180830381600087803b15801561095357600080fd5b505af11580156108f0573d6000803e3d6000fd5b61096f611b39565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b60006109b7610fb7565b6001600160a01b0316336001600160a01b0316146109ea5760405163086391f760e31b815233600482015260240161077c565b6109f382611938565b90505b919050565b610a043361073f565b6004546001600160a01b031615610a40576004805460405163384c2dbd60e11b81526001600160a01b039091169181019190915260240161077c565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aac91906123ca565b6001600160a01b031614610ad55760405163decb98c560e01b815230600482015260240161077c565b610add6113a6565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4891906123ca565b6001600160a01b031614610b8357610b5e6113a6565b604051630312205960e41b81526001600160a01b03909116600482015260240161077c565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610bb96001546001600160a01b031690565b6001600160a01b031663d39e6043606e5b6040516001600160e01b031960e084901b16815260ff909116600482015260036024820152604401602060405180830381865afa158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3391906123ca565b905090565b610c413361073f565b6002546040516317ea2ab560e21b81526001600160a01b0390911690635fa8aad490610c739085908590600401612566565b600060405180830381600087803b158015610c8d57600080fd5b505af1158015610ca1573d6000803e3d6000fd5b505050505050565b610cb1611b39565b806001600160a01b03163b600003610ce75760405163fdeac91f60e01b81526001600160a01b038216600482015260240161077c565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526312da491160e01b60048201526301ffc9a790602401602060405180830381865afa925050508015610d61575060408051601f3d908101601f19168201909252610d5e9181019061258a565b60015b610d895760405163fdeac91f60e01b81526001600160a01b038216600482015260240161077c565b80610db25760405163fdeac91f60e01b81526001600160a01b038316600482015260240161077c565b5050565b6000610dca6001546001600160a01b031690565b6001600160a01b031663d39e6043608c610bca565b610de83361073f565b6002546001600160a01b031615610e215760025460405163078a818f60e31b81526001600160a01b03909116600482015260240161077c565b610e296113a6565b6001600160a01b0316816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9491906123ca565b6001600160a01b031614610ecf57610eaa6113a6565b60405163021f1e5360e61b81526001600160a01b03909116600482015260240161077c565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b33610efa6113a6565b6001600160a01b0316816001600160a01b031614610f355760405162d1953b60e31b81526001600160a01b038216600482015260240161077c565b816001600160a01b03163b600003610f6b576040516361798f2f60e11b81526001600160a01b038316600482015260240161077c565b610db282611c82565b610f7d3361073f565b6002546040516308b6d1c760e21b81526001600160a01b0384811660048301528315156024830152909116906322db471c90604401610c73565b60008060008051602061274a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611027573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104b919061258a565b156110d8576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d291906123ca565b91505090565b54600160601b90046001600160a01b0316919050565b60008051602061276a833981519152805460009190600160a01b900460ff166111185760006110d2565b638fb3603760e01b91505090565b61112f3361073f565b6111376113a6565b604051631517388760e21b81526001600160401b03841660048201526001600160a01b0391909116906325c471a09073__$1d92393fa9ccd763988368ce8a1cb90d26$__9063545ce21c90602401602060405180830381865af41580156111a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c691906125a7565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b038416602482015260006044820152606401610c73565b6112113361073f565b6112196113a6565b604051631517388760e21b81526001600160401b03841660048201526001600160a01b03919091169063b7d2b1629073__$1d92393fa9ccd763988368ce8a1cb90d26$__9063545ce21c90602401602060405180830381865af4158015611284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a891906125a7565b6040516001600160e01b031960e084901b1681526001600160401b0390911660048201526001600160a01b0384166024820152604401610c73565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561132c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135091906123ca565b6001600160a01b0316336001600160a01b03161461136d57600080fd5b600254604051632f42b9a560e11b8152600060048201526001600160a01b03848116602483015290911690635e85734a90604401610c73565b60008051602061276a833981519152546001600160a01b031690565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156114075750825b90506000826001600160401b031660011480156114235750303b155b905081158015611431575080155b1561144f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561147957845460ff60401b1916600160401b1785555b6001600160a01b0388166114a0576040516377dbcd1760e01b815260040160405180910390fd5b6114a988611ce3565b600087905061152e88826001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151491906125c4565b604660018b60405180602001604052806000815250610855565b61153e634b596f2560e11b61070d565b5083156108f057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050505050565b60006115a26001546001600160a01b031690565b6001600160a01b031663d39e60436078610bca565b604051632392b61b60e21b81526003600482015260009073__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af415801561160a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3391906125e1565b60008061163a3361073f565b60025460405163d2192dbf60e01b81526001600160a01b039091169063d2192dbf9061166c90879087906004016125fe565b60408051808303816000875af115801561168a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ae919061262c565b909590945092505050565b60006116cd6001546001600160a01b031690565b6001600160a01b031663d39e604360d3610bca565b6001546001600160a01b03166001600160a01b031663120726c36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561172b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f91906123ca565b6001600160a01b0316336001600160a01b03161461176c57600080fd5b600254604051632f42b9a560e11b81526001600160a01b038581166004830152848116602483015290911690635e85734a90604401600060405180830381600087803b1580156117bb57600080fd5b505af11580156117cf573d6000803e3d6000fd5b50505050505050565b6117e13361073f565b306001600160a01b0316816001600160a01b031663de7b5d146040518163ffffffff1660e01b8152600401602060405180830381865afa158015611829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184d91906123ca565b6001600160a01b031614611876576040516345789cf560e01b815230600482015260240161077c565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6118a0611b39565b6118a981610ca9565b6118b1610967565b6001600160a01b0382166118d85760405163f17ef42d60e01b815260040160405180910390fd5b5060008051602061274a83398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b60006119236001546001600160a01b031690565b6001600160a01b031663d39e604360dc610bca565b60008060008051602061274a83398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af41580156119a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119cc919061258a565b156119f85780546040516301ab8b6760e21b81526001600160601b03909116600482015260240161077c565b6001546001600160a01b031660405163c3c5a54760e01b81526001600160a01b038581166004830152919091169063c3c5a54790602401602060405180830381865afa158015611a4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a70919061258a565b611a985760405163b9304b0d60e01b81526001600160a01b038416600482015260240161077c565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038581166004830152919091169063d272ac1e90602401602060405180830381865afa158015611aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1091906125c4565b81546bffffffffffffffffffffffff19166001600160601b039190911690811790915592915050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611b8257604051631afcd79f60e31b815260040160405180910390fd5b565b60008051602061276a833981519152600080611bbf611ba16113a6565b8730611bb1600460008a8c61265b565b611bba91612685565b611cf4565b9150915081610ca15763ffffffff811615611c5f57825460ff60a01b1916600160a01b178355611bed6113a6565b6001600160a01b03166394c7d7ee8787876040518463ffffffff1660e01b8152600401611c1c939291906126b5565b600060405180830381600087803b158015611c3657600080fd5b505af1158015611c4a573d6000803e3d6000fd5b5050845460ff60a01b1916855550610ca19050565b60405162d1953b60e31b81526001600160a01b038716600482015260240161077c565b60008051602061276a83398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b611ceb611b39565b61070a81611e00565b6040516001600160a01b03848116602483015283811660448301526001600160e01b03198316606483015260009182918291829189169060840160408051601f198184030181529181526020820180516001600160e01b031663b700961360e01b17905251611d6391906126f5565b600060405180830381855afa9150503d8060008114611d9e576040519150601f19603f3d011682016040523d82523d6000602084013e611da3565b606091505b50915091508115611df5576040815110611dd55780806020019051810190611dcb9190612711565b9094509250611df5565b6020815110611df55780806020019051810190611df2919061258a565b93505b505094509492505050565b611e08611b39565b61070a81611c82565b80356001600160e01b0319811681146109f657600080fd5b600060208284031215611e3b57600080fd5b611e4482611e11565b9392505050565b60005b83811015611e66578181015183820152602001611e4e565b50506000910152565b60008151808452611e87816020860160208601611e4b565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a0830151611f0460c08401826001600160a01b03169052565b5060c083015160e080840152611f1e610100840182611e6f565b949350505050565b6001600160a01b038116811461070a57600080fd5b600060208284031215611f4d57600080fd5b8135611e4481611f26565b6001600160601b038116811461070a57600080fd5b60ff8116811461070a57600080fd5b801515811461070a57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611fba57611fba611f8a565b604051601f8501601f19908116603f01168101908282118183101715611fe257611fe2611f8a565b81604052809350858152868686011115611ffb57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060008060c0878903121561202e57600080fd5b863561203981611f26565b9550602087013561204981611f58565b9450604087013561205981611f6d565b9350606087013561206981611f7c565b9250608087013561207981611f26565b915060a08701356001600160401b0381111561209457600080fd5b8701601f810189136120a557600080fd5b6120b489823560208401611fa0565b9150509295509295509295565b600082601f8301126120d257600080fd5b611e4483833560208501611fa0565b6001600160401b038116811461070a57600080fd5b80356109f6816120e1565b6000806000806060858703121561211757600080fd5b84356001600160401b038082111561212e57600080fd5b61213a888389016120c1565b9550602087013591508082111561215057600080fd5b818701915087601f83011261216457600080fd5b81358181111561217357600080fd5b8860208260051b850101111561218857600080fd5b6020830195508094505050506121a0604086016120f6565b905092959194509250565b600080604083850312156121be57600080fd5b82356121c981611f26565b915060208301356001600160401b038111156121e457600080fd5b6121f0858286016120c1565b9150509250929050565b6000806040838503121561220d57600080fd5b823561221881611f26565b9150602083013561222881611f7c565b809150509250929050565b6000806040838503121561224657600080fd5b8235612251816120e1565b9150602083013561222881611f26565b6000806040838503121561227457600080fd5b823561227f81611f26565b946020939093013593505050565b6000806000606084860312156122a257600080fd5b83356122ad81611f26565b925060208401356122bd81611f26565b915060408401356122cd81611f26565b809150509250925092565b600080604083850312156122eb57600080fd5b82356001600160401b038082111561230257600080fd5b61230e868387016120c1565b9350602085013591508082111561232457600080fd5b506121f0858286016120c1565b60008060006060848603121561234657600080fd5b833561235181611f26565b9250602084013561236181611f26565b929592945050506040919091013590565b6000806040838503121561238557600080fd5b823561225181611f26565b600181811c908216806123a457607f821691505b6020821081036123c457634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156123dc57600080fd5b8151611e4481611f26565b601f82111561242d57600081815260208120601f850160051c8101602086101561240e5750805b601f850160051c820191505b81811015610ca15782815560010161241a565b505050565b81516001600160401b0381111561244b5761244b611f8a565b61245f816124598454612390565b846123e7565b602080601f831160018114612494576000841561247c5750858301515b600019600386901b1c1916600185901b178555610ca1565b600085815260208120601f198616915b828110156124c3578886015182559484019460019091019084016124a4565b50858210156124e15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6060815260006125046060830187611e6f565b8281036020848101919091528582528691810160005b87811015612547576001600160e01b031961253485611e11565b168252928201929082019060010161251a565b508093505050506001600160401b038316604083015295945050505050565b6001600160a01b0383168152604060208201819052600090611f1e90830184611e6f565b60006020828403121561259c57600080fd5b8151611e4481611f7c565b6000602082840312156125b957600080fd5b8151611e44816120e1565b6000602082840312156125d657600080fd5b8151611e4481611f58565b6000602082840312156125f357600080fd5b8151611e4481611f6d565b6040815260006126116040830185611e6f565b82810360208401526126238185611e6f565b95945050505050565b6000806040838503121561263f57600080fd5b825161264a816120e1565b6020840151909250612228816120e1565b6000808585111561266b57600080fd5b8386111561267857600080fd5b5050820193919092039150565b6001600160e01b031981358181169160048510156126ad5780818660040360031b1b83161692505b505092915050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008251612707818460208701611e4b565b9190910192915050565b6000806040838503121561272457600080fd5b825161272f81611f7c565b602084015190925063ffffffff8116811461222857600080fdfe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00a2646970667358221220f4b9180b0761ef99433b84d686be4d8fb82ea83f087093dc8bd7bee7563af80a64736f6c63430008140033",
2953
896
  "linkReferences": {
2954
- "contracts/types/Key32.sol": {
2955
- "Key32Lib": [
2956
- {
2957
- "length": 20,
2958
- "start": 10392
2959
- },
2960
- {
2961
- "length": 20,
2962
- "start": 13602
2963
- },
2964
- {
2965
- "length": 20,
2966
- "start": 13718
2967
- },
2968
- {
2969
- "length": 20,
2970
- "start": 13900
2971
- },
2972
- {
2973
- "length": 20,
2974
- "start": 14016
2975
- },
2976
- {
2977
- "length": 20,
2978
- "start": 14221
2979
- },
2980
- {
2981
- "length": 20,
2982
- "start": 14974
2983
- },
2984
- {
2985
- "length": 20,
2986
- "start": 15090
2987
- },
2988
- {
2989
- "length": 20,
2990
- "start": 15831
2991
- },
2992
- {
2993
- "length": 20,
2994
- "start": 15947
2995
- }
2996
- ]
2997
- },
2998
- "contracts/types/NftId.sol": {
897
+ "contracts/type/NftId.sol": {
2999
898
  "NftIdLib": [
3000
899
  {
3001
900
  "length": 20,
3002
- "start": 4225
3003
- },
3004
- {
3005
- "length": 20,
3006
- "start": 4728
3007
- },
3008
- {
3009
- "length": 20,
3010
- "start": 5508
3011
- },
3012
- {
3013
- "length": 20,
3014
- "start": 6283
3015
- },
3016
- {
3017
- "length": 20,
3018
- "start": 7102
3019
- },
3020
- {
3021
- "length": 20,
3022
- "start": 7335
3023
- },
3024
- {
3025
- "length": 20,
3026
- "start": 8053
901
+ "start": 4109
3027
902
  },
3028
903
  {
3029
904
  "length": 20,
3030
- "start": 11372
905
+ "start": 6542
3031
906
  }
3032
907
  ]
3033
908
  },
3034
- "contracts/types/ObjectType.sol": {
3035
- "ObjectTypeLib": [
3036
- {
3037
- "length": 20,
3038
- "start": 14342
3039
- }
3040
- ]
3041
- },
3042
- "contracts/types/RiskId.sol": {
3043
- "RiskIdLib": [
3044
- {
3045
- "length": 20,
3046
- "start": 5142
3047
- },
3048
- {
3049
- "length": 20,
3050
- "start": 7187
3051
- },
3052
- {
3053
- "length": 20,
3054
- "start": 8176
3055
- }
3056
- ]
3057
- },
3058
- "contracts/types/RoleId.sol": {
909
+ "contracts/type/RoleId.sol": {
3059
910
  "RoleIdLib": [
3060
911
  {
3061
912
  "length": 20,
3062
- "start": 12625
3063
- }
3064
- ]
3065
- },
3066
- "contracts/types/StateId.sol": {
3067
- "StateIdLib": [
3068
- {
3069
- "length": 20,
3070
- "start": 5371
3071
- },
3072
- {
3073
- "length": 20,
3074
- "start": 8330
3075
- },
3076
- {
3077
- "length": 20,
3078
- "start": 9113
3079
- },
3080
- {
3081
- "length": 20,
3082
- "start": 13028
3083
- },
3084
- {
3085
- "length": 20,
3086
- "start": 13248
3087
- },
3088
- {
3089
- "length": 20,
3090
- "start": 14563
913
+ "start": 4488
3091
914
  },
3092
915
  {
3093
916
  "length": 20,
3094
- "start": 15269
3095
- },
3096
- {
3097
- "length": 20,
3098
- "start": 15489
917
+ "start": 4714
3099
918
  }
3100
919
  ]
3101
920
  },
3102
- "contracts/types/Version.sol": {
921
+ "contracts/type/Version.sol": {
3103
922
  "VersionPartLib": [
3104
923
  {
3105
924
  "length": 20,
3106
- "start": 9670
925
+ "start": 5616
3107
926
  }
3108
927
  ]
3109
928
  }
3110
929
  },
3111
930
  "deployedLinkReferences": {
3112
- "contracts/types/Key32.sol": {
3113
- "Key32Lib": [
3114
- {
3115
- "length": 20,
3116
- "start": 10359
3117
- },
3118
- {
3119
- "length": 20,
3120
- "start": 13569
3121
- },
3122
- {
3123
- "length": 20,
3124
- "start": 13685
3125
- },
3126
- {
3127
- "length": 20,
3128
- "start": 13867
3129
- },
3130
- {
3131
- "length": 20,
3132
- "start": 13983
3133
- },
3134
- {
3135
- "length": 20,
3136
- "start": 14188
3137
- },
3138
- {
3139
- "length": 20,
3140
- "start": 14941
3141
- },
3142
- {
3143
- "length": 20,
3144
- "start": 15057
3145
- },
3146
- {
3147
- "length": 20,
3148
- "start": 15798
3149
- },
3150
- {
3151
- "length": 20,
3152
- "start": 15914
3153
- }
3154
- ]
3155
- },
3156
- "contracts/types/NftId.sol": {
931
+ "contracts/type/NftId.sol": {
3157
932
  "NftIdLib": [
3158
933
  {
3159
934
  "length": 20,
3160
- "start": 4192
3161
- },
3162
- {
3163
- "length": 20,
3164
- "start": 4695
3165
- },
3166
- {
3167
- "length": 20,
3168
- "start": 5475
3169
- },
3170
- {
3171
- "length": 20,
3172
- "start": 6250
3173
- },
3174
- {
3175
- "length": 20,
3176
- "start": 7069
3177
- },
3178
- {
3179
- "length": 20,
3180
- "start": 7302
3181
- },
3182
- {
3183
- "length": 20,
3184
- "start": 8020
3185
- },
3186
- {
3187
- "length": 20,
3188
- "start": 11339
3189
- }
3190
- ]
3191
- },
3192
- "contracts/types/ObjectType.sol": {
3193
- "ObjectTypeLib": [
3194
- {
3195
- "length": 20,
3196
- "start": 14309
3197
- }
3198
- ]
3199
- },
3200
- "contracts/types/RiskId.sol": {
3201
- "RiskIdLib": [
3202
- {
3203
- "length": 20,
3204
- "start": 5109
3205
- },
3206
- {
3207
- "length": 20,
3208
- "start": 7154
935
+ "start": 4077
3209
936
  },
3210
937
  {
3211
938
  "length": 20,
3212
- "start": 8143
939
+ "start": 6510
3213
940
  }
3214
941
  ]
3215
942
  },
3216
- "contracts/types/RoleId.sol": {
943
+ "contracts/type/RoleId.sol": {
3217
944
  "RoleIdLib": [
3218
945
  {
3219
946
  "length": 20,
3220
- "start": 12592
3221
- }
3222
- ]
3223
- },
3224
- "contracts/types/StateId.sol": {
3225
- "StateIdLib": [
3226
- {
3227
- "length": 20,
3228
- "start": 5338
3229
- },
3230
- {
3231
- "length": 20,
3232
- "start": 8297
3233
- },
3234
- {
3235
- "length": 20,
3236
- "start": 9080
3237
- },
3238
- {
3239
- "length": 20,
3240
- "start": 12995
3241
- },
3242
- {
3243
- "length": 20,
3244
- "start": 13215
3245
- },
3246
- {
3247
- "length": 20,
3248
- "start": 14530
3249
- },
3250
- {
3251
- "length": 20,
3252
- "start": 15236
947
+ "start": 4456
3253
948
  },
3254
949
  {
3255
950
  "length": 20,
3256
- "start": 15456
951
+ "start": 4682
3257
952
  }
3258
953
  ]
3259
954
  },
3260
- "contracts/types/Version.sol": {
955
+ "contracts/type/Version.sol": {
3261
956
  "VersionPartLib": [
3262
957
  {
3263
958
  "length": 20,
3264
- "start": 9637
959
+ "start": 5584
3265
960
  }
3266
961
  ]
3267
962
  }