@etherisc/gif-next 0.0.2-fd275d2-234 → 0.0.2-fd4931b-974

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