@etherisc/gif-next 0.0.2-cddad6b-504 → 0.0.2-ce3fd5e-324

Sign up to get free protection for your applications and to get access to all the features.
Files changed (575) hide show
  1. package/README.md +218 -39
  2. package/artifacts/contracts/distribution/Distribution.sol/Distribution.dbg.json +4 -0
  3. package/artifacts/contracts/distribution/Distribution.sol/Distribution.json +1376 -0
  4. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.dbg.json +4 -0
  5. package/artifacts/contracts/distribution/DistributionService.sol/DistributionService.json +1556 -0
  6. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +4 -0
  7. package/artifacts/contracts/distribution/DistributionServiceManager.sol/DistributionServiceManager.json +780 -0
  8. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
  9. package/artifacts/contracts/distribution/IDistributionComponent.sol/IDistributionComponent.json +1000 -0
  10. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.dbg.json +4 -0
  11. package/artifacts/contracts/distribution/IDistributionService.sol/IDistributionService.json +840 -0
  12. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +4 -0
  13. package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +778 -0
  14. package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
  15. package/artifacts/contracts/instance/IInstance.sol/IInstance.json +295 -1649
  16. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +4 -0
  17. package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.json +616 -0
  18. package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
  19. package/artifacts/contracts/instance/Instance.sol/Instance.json +470 -1918
  20. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +4 -0
  21. package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +1348 -0
  22. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.dbg.json +4 -0
  23. package/artifacts/contracts/instance/InstanceAuthorizationsLib.sol/InstanceAuthorizationsLib.json +124 -0
  24. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +4 -0
  25. package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +1569 -0
  26. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +4 -0
  27. package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +979 -0
  28. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +4 -0
  29. package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +656 -0
  30. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.dbg.json +4 -0
  31. package/artifacts/contracts/instance/InstanceStore.sol/InstanceStore.json +2837 -0
  32. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.dbg.json +4 -0
  33. package/artifacts/contracts/instance/base/Cloneable.sol/Cloneable.json +190 -0
  34. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
  35. package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +76 -158
  36. package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
  37. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
  38. package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +120 -249
  39. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
  40. package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +38 -13
  41. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.dbg.json +4 -0
  42. package/artifacts/contracts/instance/base/ObjectManager.sol/ObjectManager.json +256 -0
  43. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +4 -0
  44. package/artifacts/contracts/instance/module/IAccess.sol/IAccess.json +237 -0
  45. package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +4 -0
  46. package/artifacts/contracts/instance/module/{bundle/IBundle.sol → IBundle.sol}/IBundle.json +1 -1
  47. package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
  48. package/artifacts/contracts/instance/module/{access/IAccess.sol/IAccess.json → IComponents.sol/IComponents.json} +2 -2
  49. package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +4 -0
  50. package/artifacts/contracts/instance/module/{distribution/IDistribution.sol → IDistribution.sol}/IDistribution.json +1 -1
  51. package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +4 -0
  52. package/artifacts/contracts/instance/module/{policy/IPolicy.sol → IPolicy.sol}/IPolicy.json +1 -1
  53. package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +4 -0
  54. package/artifacts/contracts/instance/module/{risk/IRisk.sol → IRisk.sol}/IRisk.json +1 -1
  55. package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +4 -0
  56. package/artifacts/contracts/instance/{base/ModuleBase.sol/ModuleBase.json → module/ISetup.sol/ISetup.json} +2 -2
  57. package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +4 -0
  58. package/artifacts/contracts/instance/module/{treasury/ITreasury.sol → ITreasury.sol}/ITreasury.json +1 -1
  59. package/artifacts/contracts/pool/BundleService.sol/BundleService.dbg.json +4 -0
  60. package/artifacts/contracts/pool/BundleService.sol/BundleService.json +1288 -0
  61. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.dbg.json +4 -0
  62. package/artifacts/contracts/pool/BundleServiceManager.sol/BundleServiceManager.json +696 -0
  63. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.dbg.json +4 -0
  64. package/artifacts/contracts/pool/IBundleService.sol/IBundleService.json +735 -0
  65. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.dbg.json +4 -0
  66. package/artifacts/contracts/pool/IPoolComponent.sol/IPoolComponent.json +1095 -0
  67. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.dbg.json +4 -0
  68. package/artifacts/contracts/pool/IPoolService.sol/IPoolService.json +1077 -0
  69. package/artifacts/contracts/pool/Pool.sol/Pool.dbg.json +4 -0
  70. package/artifacts/contracts/pool/Pool.sol/Pool.json +1407 -0
  71. package/artifacts/contracts/pool/PoolService.sol/PoolService.dbg.json +4 -0
  72. package/artifacts/contracts/pool/PoolService.sol/PoolService.json +1622 -0
  73. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.dbg.json +4 -0
  74. package/artifacts/contracts/pool/PoolServiceManager.sol/PoolServiceManager.json +708 -0
  75. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.dbg.json +4 -0
  76. package/artifacts/contracts/product/ApplicationService.sol/ApplicationService.json +918 -0
  77. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +4 -0
  78. package/artifacts/contracts/product/ApplicationServiceManager.sol/ApplicationServiceManager.json +648 -0
  79. package/artifacts/contracts/product/ClaimService.sol/ClaimService.dbg.json +4 -0
  80. package/artifacts/contracts/product/ClaimService.sol/ClaimService.json +1376 -0
  81. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +4 -0
  82. package/artifacts/contracts/product/ClaimServiceManager.sol/ClaimServiceManager.json +748 -0
  83. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.dbg.json +4 -0
  84. package/artifacts/contracts/product/IApplicationService.sol/IApplicationService.json +493 -0
  85. package/artifacts/contracts/product/IClaimService.sol/IClaimService.dbg.json +4 -0
  86. package/artifacts/contracts/product/IClaimService.sol/IClaimService.json +743 -0
  87. package/artifacts/contracts/product/IPolicyService.sol/IPolicyService.dbg.json +4 -0
  88. package/artifacts/contracts/{instance/service/IProductService.sol/IProductService.json → product/IPolicyService.sol/IPolicyService.json} +364 -343
  89. package/artifacts/contracts/product/IPricingService.sol/IPricingService.dbg.json +4 -0
  90. package/artifacts/contracts/{components/IPoolComponent.sol/IPoolComponent.json → product/IPricingService.sol/IPricingService.json} +283 -260
  91. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.dbg.json +4 -0
  92. package/artifacts/contracts/product/IProductComponent.sol/IProductComponent.json +861 -0
  93. package/artifacts/contracts/product/IProductService.sol/IProductService.dbg.json +4 -0
  94. package/artifacts/contracts/{instance/service/IPoolService.sol/IPoolService.json → product/IProductService.sol/IProductService.json} +217 -215
  95. package/artifacts/contracts/product/PolicyService.sol/PolicyService.dbg.json +4 -0
  96. package/artifacts/contracts/product/PolicyService.sol/PolicyService.json +1281 -0
  97. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +4 -0
  98. package/artifacts/contracts/product/PolicyServiceManager.sol/PolicyServiceManager.json +740 -0
  99. package/artifacts/contracts/product/PricingService.sol/PricingService.dbg.json +4 -0
  100. package/artifacts/contracts/product/PricingService.sol/PricingService.json +1004 -0
  101. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.dbg.json +4 -0
  102. package/artifacts/contracts/product/PricingServiceManager.sol/PricingServiceManager.json +688 -0
  103. package/artifacts/contracts/product/Product.sol/Product.dbg.json +4 -0
  104. package/artifacts/contracts/product/Product.sol/Product.json +1198 -0
  105. package/artifacts/contracts/product/ProductService.sol/ProductService.dbg.json +4 -0
  106. package/artifacts/contracts/product/ProductService.sol/ProductService.json +864 -0
  107. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.dbg.json +4 -0
  108. package/artifacts/contracts/product/ProductServiceManager.sol/ProductServiceManager.json +640 -0
  109. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
  110. package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +199 -12
  111. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
  112. package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +485 -34
  113. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
  114. package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +858 -0
  115. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
  116. package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +52 -0
  117. package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
  118. package/artifacts/contracts/registry/Registry.sol/Registry.json +491 -105
  119. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +4 -0
  120. package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +285 -0
  121. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
  122. package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +1150 -0
  123. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
  124. package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +657 -0
  125. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +4 -0
  126. package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +559 -0
  127. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +4 -0
  128. package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +485 -0
  129. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.dbg.json +4 -0
  130. package/artifacts/contracts/shared/AccessManagerUpgradeableInitializeable.sol/AccessManagerUpgradeableInitializeable.json +1206 -0
  131. package/artifacts/contracts/shared/Component.sol/Component.dbg.json +4 -0
  132. package/artifacts/contracts/shared/Component.sol/Component.json +873 -0
  133. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.dbg.json +4 -0
  134. package/artifacts/contracts/shared/ComponentService.sol/ComponentService.json +631 -0
  135. package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
  136. package/artifacts/contracts/shared/ERC165.sol/ERC165.json +41 -3
  137. package/artifacts/contracts/shared/IComponent.sol/IComponent.dbg.json +4 -0
  138. package/artifacts/contracts/shared/IComponent.sol/IComponent.json +636 -0
  139. package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +4 -0
  140. package/artifacts/contracts/{instance/module/component/ComponentModule.sol/ComponentModule.json → shared/INftOwnable.sol/INftOwnable.json} +64 -56
  141. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +4 -0
  142. package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.json +189 -0
  143. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
  144. package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +91 -37
  145. package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +4 -0
  146. package/artifacts/contracts/{registry → shared}/IRegistryLinked.sol/IRegistryLinked.json +13 -2
  147. package/artifacts/contracts/shared/IService.sol/IService.dbg.json +4 -0
  148. package/artifacts/contracts/{instance/service/IDistributionService.sol/IDistributionService.json → shared/IService.sol/IService.json} +162 -160
  149. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
  150. package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +16 -125
  151. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
  152. package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +238 -0
  153. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +4 -0
  154. package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +302 -0
  155. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
  156. package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +569 -0
  157. package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
  158. package/artifacts/contracts/shared/Registerable.sol/Registerable.json +245 -27
  159. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +4 -0
  160. package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +71 -0
  161. package/artifacts/contracts/shared/Service.sol/Service.dbg.json +4 -0
  162. package/artifacts/contracts/{registry/IChainNft.sol/IChainNft.json → shared/Service.sol/Service.json} +256 -220
  163. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +4 -0
  164. package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +114 -0
  165. package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
  166. package/artifacts/contracts/shared/{Proxy.sol/ProxyWithProxyAdminGetter.json → UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json} +4 -4
  167. package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
  168. package/artifacts/contracts/shared/Versionable.sol/Versionable.json +29 -115
  169. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.dbg.json +4 -0
  170. package/artifacts/contracts/staking/IStakingService.sol/IStakingService.json +523 -0
  171. package/artifacts/contracts/staking/StakeingServiceManager.sol/StakingServiceManager.dbg.json +4 -0
  172. package/artifacts/contracts/staking/StakeingServiceManager.sol/StakingServiceManager.json +628 -0
  173. package/artifacts/contracts/staking/StakingService.sol/StakingService.dbg.json +4 -0
  174. package/artifacts/contracts/staking/StakingService.sol/StakingService.json +767 -0
  175. package/artifacts/contracts/type/AddressSet.sol/LibAddressSet.dbg.json +4 -0
  176. package/artifacts/contracts/{types → type}/AddressSet.sol/LibAddressSet.json +3 -3
  177. package/artifacts/contracts/type/Amount.sol/AmountLib.dbg.json +4 -0
  178. package/artifacts/contracts/type/Amount.sol/AmountLib.json +281 -0
  179. package/artifacts/contracts/type/Blocknumber.sol/BlocknumberLib.dbg.json +4 -0
  180. package/artifacts/contracts/{types → type}/Blocknumber.sol/BlocknumberLib.json +3 -3
  181. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.dbg.json +4 -0
  182. package/artifacts/contracts/type/ClaimId.sol/ClaimIdLib.json +179 -0
  183. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.dbg.json +4 -0
  184. package/artifacts/contracts/type/DistributorType.sol/DistributorTypeLib.json +104 -0
  185. package/artifacts/contracts/type/Fee.sol/FeeLib.dbg.json +4 -0
  186. package/artifacts/contracts/type/Fee.sol/FeeLib.json +312 -0
  187. package/artifacts/contracts/type/Key32.sol/Key32Lib.dbg.json +4 -0
  188. package/artifacts/contracts/type/Key32.sol/Key32Lib.json +125 -0
  189. package/artifacts/contracts/type/NftId.sol/NftIdLib.dbg.json +4 -0
  190. package/artifacts/contracts/type/NftId.sol/NftIdLib.json +166 -0
  191. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.dbg.json +4 -0
  192. package/artifacts/contracts/type/NftIdSet.sol/LibNftIdSet.json +33 -0
  193. package/artifacts/contracts/type/ObjectType.sol/ObjectTypeLib.dbg.json +4 -0
  194. package/artifacts/contracts/{types → type}/ObjectType.sol/ObjectTypeLib.json +3 -3
  195. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.dbg.json +4 -0
  196. package/artifacts/contracts/type/PayoutId.sol/PayoutIdLib.json +209 -0
  197. package/artifacts/contracts/type/Referral.sol/ReferralLib.dbg.json +4 -0
  198. package/artifacts/contracts/type/Referral.sol/ReferralLib.json +142 -0
  199. package/artifacts/contracts/type/RiskId.sol/RiskIdLib.dbg.json +4 -0
  200. package/artifacts/contracts/{types → type}/RiskId.sol/RiskIdLib.json +5 -5
  201. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.dbg.json +4 -0
  202. package/artifacts/contracts/type/RoleId.sol/RoleIdLib.json +156 -0
  203. package/artifacts/contracts/type/Seconds.sol/SecondsLib.dbg.json +4 -0
  204. package/artifacts/contracts/type/Seconds.sol/SecondsLib.json +124 -0
  205. package/artifacts/contracts/type/StateId.sol/StateIdLib.dbg.json +4 -0
  206. package/artifacts/contracts/{types → type}/StateId.sol/StateIdLib.json +3 -3
  207. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.dbg.json +4 -0
  208. package/artifacts/contracts/type/Timestamp.sol/TimestampLib.json +280 -0
  209. package/artifacts/contracts/type/UFixed.sol/MathLib.dbg.json +4 -0
  210. package/artifacts/contracts/{types/ChainId.sol/ChainIdLib.json → type/UFixed.sol/MathLib.json} +4 -4
  211. package/artifacts/contracts/type/UFixed.sol/UFixedLib.dbg.json +4 -0
  212. package/artifacts/contracts/{types/UFixed.sol/UFixedMathLib.json → type/UFixed.sol/UFixedLib.json} +4 -4
  213. package/artifacts/contracts/type/Version.sol/VersionLib.dbg.json +4 -0
  214. package/artifacts/contracts/type/Version.sol/VersionLib.json +177 -0
  215. package/artifacts/contracts/type/Version.sol/VersionPartLib.dbg.json +4 -0
  216. package/artifacts/contracts/type/Version.sol/VersionPartLib.json +49 -0
  217. package/contracts/distribution/Distribution.sol +285 -0
  218. package/contracts/distribution/DistributionService.sol +349 -0
  219. package/contracts/distribution/DistributionServiceManager.sol +51 -0
  220. package/contracts/distribution/IDistributionComponent.sol +71 -0
  221. package/contracts/distribution/IDistributionService.sol +87 -0
  222. package/contracts/instance/BundleManager.sol +126 -0
  223. package/contracts/instance/IInstance.sol +68 -44
  224. package/contracts/instance/IInstanceService.sol +73 -0
  225. package/contracts/instance/Instance.sol +214 -59
  226. package/contracts/instance/InstanceAccessManager.sol +543 -0
  227. package/contracts/instance/InstanceAuthorizationsLib.sol +308 -0
  228. package/contracts/instance/InstanceReader.sol +368 -0
  229. package/contracts/instance/InstanceService.sol +308 -0
  230. package/contracts/instance/InstanceServiceManager.sol +54 -0
  231. package/contracts/instance/InstanceStore.sol +211 -0
  232. package/contracts/instance/base/Cloneable.sol +51 -0
  233. package/contracts/instance/base/IKeyValueStore.sol +22 -19
  234. package/contracts/instance/base/ILifecycle.sol +4 -4
  235. package/contracts/instance/base/KeyValueStore.sol +61 -54
  236. package/contracts/instance/base/Lifecycle.sol +28 -8
  237. package/contracts/instance/base/ObjectManager.sol +82 -0
  238. package/contracts/instance/module/IAccess.sol +54 -0
  239. package/contracts/instance/module/IBundle.sol +23 -0
  240. package/contracts/instance/module/IComponents.sol +41 -0
  241. package/contracts/instance/module/IDistribution.sol +42 -0
  242. package/contracts/instance/module/IPolicy.sol +77 -0
  243. package/contracts/instance/module/IRisk.sol +11 -0
  244. package/contracts/instance/module/ISetup.sol +33 -0
  245. package/contracts/instance/module/ITreasury.sol +23 -0
  246. package/contracts/pool/BundleService.sol +382 -0
  247. package/contracts/pool/BundleServiceManager.sol +51 -0
  248. package/contracts/pool/IBundleService.sol +118 -0
  249. package/contracts/pool/IPoolComponent.sol +114 -0
  250. package/contracts/pool/IPoolService.sol +114 -0
  251. package/contracts/pool/Pool.sol +302 -0
  252. package/contracts/pool/PoolService.sol +403 -0
  253. package/contracts/pool/PoolServiceManager.sol +51 -0
  254. package/contracts/product/ApplicationService.sol +186 -0
  255. package/contracts/product/ApplicationServiceManager.sol +35 -0
  256. package/contracts/product/ClaimService.sol +437 -0
  257. package/contracts/product/ClaimServiceManager.sol +35 -0
  258. package/contracts/product/IApplicationService.sol +62 -0
  259. package/contracts/product/IClaimService.sol +90 -0
  260. package/contracts/product/IPolicyService.sol +80 -0
  261. package/contracts/product/IPricingService.sol +37 -0
  262. package/contracts/product/IProductComponent.sol +41 -0
  263. package/contracts/product/IProductService.sol +40 -0
  264. package/contracts/product/PolicyService.sol +376 -0
  265. package/contracts/product/PolicyServiceManager.sol +54 -0
  266. package/contracts/product/PricingService.sol +275 -0
  267. package/contracts/product/PricingServiceManager.sol +51 -0
  268. package/contracts/product/Product.sol +375 -0
  269. package/contracts/product/ProductService.sol +210 -0
  270. package/contracts/product/ProductServiceManager.sol +54 -0
  271. package/contracts/registry/ChainNft.sol +87 -36
  272. package/contracts/registry/IRegistry.sol +71 -27
  273. package/contracts/registry/IRegistryService.sol +66 -0
  274. package/contracts/registry/ITransferInterceptor.sol +7 -0
  275. package/contracts/registry/Registry.sol +372 -286
  276. package/contracts/registry/RegistryAccessManager.sol +216 -0
  277. package/contracts/registry/RegistryService.sol +285 -0
  278. package/contracts/registry/RegistryServiceManager.sol +60 -0
  279. package/contracts/registry/ReleaseManager.sol +328 -0
  280. package/contracts/registry/TokenRegistry.sol +116 -0
  281. package/contracts/shared/AccessManagerUpgradeableInitializeable.sol +13 -0
  282. package/contracts/shared/Component.sol +271 -0
  283. package/contracts/shared/ComponentService.sol +150 -0
  284. package/contracts/shared/ERC165.sol +14 -8
  285. package/contracts/shared/IComponent.sol +90 -0
  286. package/contracts/shared/INftOwnable.sol +23 -0
  287. package/contracts/shared/IPolicyHolder.sol +40 -0
  288. package/contracts/shared/IRegisterable.sol +10 -19
  289. package/contracts/shared/IRegistryLinked.sol +11 -0
  290. package/contracts/shared/IService.sol +18 -0
  291. package/contracts/shared/IVersionable.sol +38 -37
  292. package/contracts/shared/NftOwnable.sol +118 -0
  293. package/contracts/shared/PolicyHolder.sol +94 -0
  294. package/contracts/shared/ProxyManager.sol +169 -0
  295. package/contracts/shared/Registerable.sol +54 -65
  296. package/contracts/shared/RegistryLinked.sol +43 -0
  297. package/contracts/shared/Service.sol +72 -0
  298. package/contracts/shared/TokenHandler.sol +35 -0
  299. package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
  300. package/contracts/shared/Versionable.sol +38 -68
  301. package/contracts/staking/IStakingService.sol +102 -0
  302. package/contracts/staking/StakeingServiceManager.sol +37 -0
  303. package/contracts/staking/StakingService.sol +166 -0
  304. package/contracts/type/Amount.sol +109 -0
  305. package/contracts/{types → type}/Blocknumber.sol +1 -0
  306. package/contracts/type/ClaimId.sol +75 -0
  307. package/contracts/type/DistributorType.sol +55 -0
  308. package/contracts/{types → type}/Fee.sol +19 -10
  309. package/contracts/{types → type}/Key32.sol +8 -3
  310. package/contracts/{types → type}/NftId.sol +8 -0
  311. package/contracts/type/NftIdSet.sol +62 -0
  312. package/contracts/{types → type}/ObjectType.sol +45 -14
  313. package/contracts/type/PayoutId.sol +82 -0
  314. package/contracts/type/Referral.sol +89 -0
  315. package/contracts/type/RoleId.sol +132 -0
  316. package/contracts/type/Seconds.sol +54 -0
  317. package/contracts/{types → type}/StateId.sol +12 -3
  318. package/contracts/{types → type}/Timestamp.sol +22 -13
  319. package/contracts/{types → type}/UFixed.sol +129 -12
  320. package/contracts/{types → type}/Version.sol +14 -1
  321. package/package.json +6 -5
  322. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +0 -4
  323. package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +0 -174
  324. package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +0 -4
  325. package/artifacts/contracts/components/Distribution.sol/Distribution.json +0 -405
  326. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +0 -4
  327. package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +0 -174
  328. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +0 -4
  329. package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +0 -340
  330. package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +0 -4
  331. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +0 -4
  332. package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +0 -370
  333. package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +0 -4
  334. package/artifacts/contracts/components/Pool.sol/Pool.json +0 -578
  335. package/artifacts/contracts/components/Product.sol/Product.dbg.json +0 -4
  336. package/artifacts/contracts/components/Product.sol/Product.json +0 -444
  337. package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +0 -4
  338. package/artifacts/contracts/experiment/errors/Require.sol/Require.json +0 -105
  339. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +0 -4
  340. package/artifacts/contracts/experiment/errors/Revert.sol/Revert.json +0 -105
  341. package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +0 -4
  342. package/artifacts/contracts/experiment/inheritance/A.sol/A.json +0 -128
  343. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +0 -4
  344. package/artifacts/contracts/experiment/inheritance/A.sol/AShared.json +0 -42
  345. package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +0 -4
  346. package/artifacts/contracts/experiment/inheritance/B.sol/B.json +0 -76
  347. package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +0 -4
  348. package/artifacts/contracts/experiment/inheritance/C.sol/C.json +0 -89
  349. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +0 -4
  350. package/artifacts/contracts/experiment/inheritance/IA.sol/IA.json +0 -128
  351. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +0 -4
  352. package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.json +0 -37
  353. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +0 -4
  354. package/artifacts/contracts/experiment/inheritance/IB.sol/IB.json +0 -50
  355. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +0 -4
  356. package/artifacts/contracts/experiment/inheritance/IC.sol/IC.json +0 -63
  357. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +0 -4
  358. package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.json +0 -59
  359. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +0 -4
  360. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.json +0 -124
  361. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +0 -4
  362. package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.json +0 -74
  363. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +0 -4
  364. package/artifacts/contracts/experiment/statemachine/SM.sol/SM.json +0 -124
  365. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +0 -4
  366. package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.json +0 -207
  367. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +0 -4
  368. package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.json +0 -10
  369. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +0 -4
  370. package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.json +0 -10
  371. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +0 -4
  372. package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.json +0 -24
  373. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +0 -4
  374. package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +0 -300
  375. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +0 -4
  376. package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +0 -113
  377. package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +0 -4
  378. package/artifacts/contracts/instance/base/IService.sol/IService.json +0 -300
  379. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +0 -4
  380. package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +0 -376
  381. package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +0 -4
  382. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +0 -4
  383. package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +0 -300
  384. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +0 -4
  385. package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.json +0 -333
  386. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +0 -4
  387. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +0 -4
  388. package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.json +0 -333
  389. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +0 -4
  390. package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.json +0 -297
  391. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +0 -4
  392. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +0 -4
  393. package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.json +0 -297
  394. package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +0 -4
  395. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +0 -4
  396. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.json +0 -10
  397. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +0 -4
  398. package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.json +0 -117
  399. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +0 -4
  400. package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +0 -10
  401. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +0 -4
  402. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +0 -4
  403. package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.json +0 -10
  404. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +0 -4
  405. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +0 -4
  406. package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.json +0 -284
  407. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +0 -4
  408. package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +0 -284
  409. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +0 -4
  410. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.json +0 -10
  411. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +0 -4
  412. package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +0 -144
  413. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +0 -4
  414. package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -144
  415. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +0 -4
  416. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +0 -4
  417. package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.json +0 -113
  418. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +0 -4
  419. package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +0 -131
  420. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +0 -4
  421. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +0 -4
  422. package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +0 -511
  423. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +0 -4
  424. package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +0 -76
  425. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +0 -4
  426. package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +0 -511
  427. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +0 -4
  428. package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +0 -531
  429. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +0 -4
  430. package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +0 -420
  431. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +0 -4
  432. package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +0 -364
  433. package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +0 -4
  434. package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +0 -4
  435. package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +0 -4
  436. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +0 -4
  437. package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +0 -543
  438. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +0 -4
  439. package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +0 -858
  440. package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +0 -4
  441. package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
  442. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.dbg.json +0 -4
  443. package/artifacts/contracts/registry/RegistryUpgradeable.sol/RegistryUpgradeable.json +0 -495
  444. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +0 -4
  445. package/artifacts/contracts/shared/IOwnable.sol/IOwnable.json +0 -24
  446. package/artifacts/contracts/shared/Proxy.sol/Proxy.dbg.json +0 -4
  447. package/artifacts/contracts/shared/Proxy.sol/Proxy.json +0 -178
  448. package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +0 -4
  449. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.dbg.json +0 -4
  450. package/artifacts/contracts/shared/VersionableUpgradeable.sol/VersionableUpgradeable.json +0 -187
  451. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +0 -4
  452. package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +0 -405
  453. package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +0 -4
  454. package/artifacts/contracts/test/TestFee.sol/TestFee.json +0 -119
  455. package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +0 -4
  456. package/artifacts/contracts/test/TestPool.sol/TestPool.json +0 -578
  457. package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +0 -4
  458. package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +0 -575
  459. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +0 -4
  460. package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +0 -137
  461. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +0 -4
  462. package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +0 -116
  463. package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +0 -4
  464. package/artifacts/contracts/test/TestService.sol/TestService.json +0 -379
  465. package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +0 -4
  466. package/artifacts/contracts/test/TestToken.sol/TestUsdc.json +0 -338
  467. package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +0 -4
  468. package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +0 -218
  469. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +0 -4
  470. package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +0 -206
  471. package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +0 -4
  472. package/artifacts/contracts/test/Usdc.sol/USDC.json +0 -338
  473. package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +0 -4
  474. package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +0 -4
  475. package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +0 -4
  476. package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +0 -4
  477. package/artifacts/contracts/types/Fee.sol/FeeLib.json +0 -257
  478. package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +0 -4
  479. package/artifacts/contracts/types/Key32.sol/Key32Lib.json +0 -111
  480. package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +0 -4
  481. package/artifacts/contracts/types/NftId.sol/NftIdLib.json +0 -153
  482. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +0 -4
  483. package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +0 -10
  484. package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +0 -4
  485. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +0 -4
  486. package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +0 -99
  487. package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +0 -4
  488. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +0 -4
  489. package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +0 -30
  490. package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +0 -4
  491. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +0 -4
  492. package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +0 -236
  493. package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +0 -4
  494. package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +0 -4
  495. package/artifacts/contracts/types/Version.sol/VersionLib.json +0 -139
  496. package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +0 -4
  497. package/artifacts/contracts/types/Version.sol/VersionPartLib.json +0 -30
  498. package/contracts/components/BaseComponent.sol +0 -94
  499. package/contracts/components/Distribution.sol +0 -132
  500. package/contracts/components/IBaseComponent.sol +0 -19
  501. package/contracts/components/IDistributionComponent.sol +0 -47
  502. package/contracts/components/IPoolComponent.sol +0 -71
  503. package/contracts/components/IProductComponent.sol +0 -38
  504. package/contracts/components/Pool.sol +0 -235
  505. package/contracts/components/Product.sol +0 -227
  506. package/contracts/experiment/errors/Require.sol +0 -38
  507. package/contracts/experiment/errors/Revert.sol +0 -44
  508. package/contracts/experiment/inheritance/A.sol +0 -53
  509. package/contracts/experiment/inheritance/B.sol +0 -28
  510. package/contracts/experiment/inheritance/C.sol +0 -34
  511. package/contracts/experiment/inheritance/IA.sol +0 -13
  512. package/contracts/experiment/inheritance/IB.sol +0 -10
  513. package/contracts/experiment/inheritance/IC.sol +0 -12
  514. package/contracts/experiment/statemachine/Dummy.sol +0 -27
  515. package/contracts/experiment/statemachine/ISM.sol +0 -25
  516. package/contracts/experiment/statemachine/README.md +0 -112
  517. package/contracts/experiment/statemachine/SM.sol +0 -57
  518. package/contracts/experiment/statemachine/SimpleStateMachine.sol +0 -31
  519. package/contracts/experiment/types/TypeA.sol +0 -47
  520. package/contracts/experiment/types/TypeB.sol +0 -29
  521. package/contracts/instance/IInstanceLinked.sol +0 -8
  522. package/contracts/instance/base/ComponentServiceBase.sol +0 -42
  523. package/contracts/instance/base/IInstanceBase.sol +0 -22
  524. package/contracts/instance/base/IService.sol +0 -15
  525. package/contracts/instance/base/InstanceBase.sol +0 -91
  526. package/contracts/instance/base/ModuleBase.sol +0 -57
  527. package/contracts/instance/base/ServiceBase.sol +0 -37
  528. package/contracts/instance/module/access/Access.sol +0 -149
  529. package/contracts/instance/module/access/IAccess.sol +0 -53
  530. package/contracts/instance/module/bundle/BundleModule.sol +0 -134
  531. package/contracts/instance/module/bundle/IBundle.sol +0 -53
  532. package/contracts/instance/module/component/ComponentModule.sol +0 -70
  533. package/contracts/instance/module/component/IComponent.sol +0 -28
  534. package/contracts/instance/module/distribution/DistributionModule.sol +0 -17
  535. package/contracts/instance/module/distribution/IDistribution.sol +0 -10
  536. package/contracts/instance/module/policy/IPolicy.sol +0 -63
  537. package/contracts/instance/module/policy/PolicyModule.sol +0 -91
  538. package/contracts/instance/module/pool/IPoolModule.sol +0 -40
  539. package/contracts/instance/module/pool/PoolModule.sol +0 -90
  540. package/contracts/instance/module/risk/IRisk.sol +0 -26
  541. package/contracts/instance/module/risk/RiskModule.sol +0 -62
  542. package/contracts/instance/module/treasury/ITreasury.sol +0 -82
  543. package/contracts/instance/module/treasury/TokenHandler.sol +0 -48
  544. package/contracts/instance/module/treasury/TreasuryModule.sol +0 -138
  545. package/contracts/instance/service/ComponentOwnerService.sol +0 -157
  546. package/contracts/instance/service/DistributionService.sol +0 -59
  547. package/contracts/instance/service/IComponentOwnerService.sol +0 -22
  548. package/contracts/instance/service/IDistributionService.sol +0 -12
  549. package/contracts/instance/service/IPoolService.sol +0 -37
  550. package/contracts/instance/service/IProductService.sol +0 -107
  551. package/contracts/instance/service/PoolService.sol +0 -149
  552. package/contracts/instance/service/ProductService.sol +0 -509
  553. package/contracts/registry/IChainNft.sol +0 -21
  554. package/contracts/registry/IRegistryLinked.sol +0 -8
  555. package/contracts/registry/RegistryUpgradeable.sol +0 -416
  556. package/contracts/shared/IOwnable.sol +0 -6
  557. package/contracts/shared/Proxy.sol +0 -83
  558. package/contracts/shared/VersionableUpgradeable.sol +0 -108
  559. package/contracts/test/TestDistribution.sol +0 -21
  560. package/contracts/test/TestFee.sol +0 -25
  561. package/contracts/test/TestPool.sol +0 -25
  562. package/contracts/test/TestProduct.sol +0 -72
  563. package/contracts/test/TestRegisterable.sol +0 -19
  564. package/contracts/test/TestRoleId.sol +0 -14
  565. package/contracts/test/TestService.sol +0 -32
  566. package/contracts/test/TestToken.sol +0 -26
  567. package/contracts/test/TestVersion.sol +0 -44
  568. package/contracts/test/TestVersionable.sol +0 -17
  569. package/contracts/test/Usdc.sol +0 -26
  570. package/contracts/types/ChainId.sol +0 -38
  571. package/contracts/types/NftIdSet.sol +0 -60
  572. package/contracts/types/ReferralId.sol +0 -48
  573. package/contracts/types/RoleId.sol +0 -38
  574. /package/contracts/{types → type}/AddressSet.sol +0 -0
  575. /package/contracts/{types → type}/RiskId.sol +0 -0
@@ -0,0 +1,1288 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "BundleService",
4
+ "sourceName": "contracts/pool/BundleService.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": "policyNftId",
49
+ "type": "uint96"
50
+ }
51
+ ],
52
+ "name": "ErrorBundleManagerPolicyAlreadyActivated",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "NftId",
59
+ "name": "bundleNftId",
60
+ "type": "uint96"
61
+ },
62
+ {
63
+ "internalType": "StateId",
64
+ "name": "state",
65
+ "type": "uint8"
66
+ },
67
+ {
68
+ "internalType": "Timestamp",
69
+ "name": "expiredAt",
70
+ "type": "uint40"
71
+ }
72
+ ],
73
+ "name": "ErrorBundleServiceBundleNotOpen",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "NftId",
80
+ "name": "bundleNftId",
81
+ "type": "uint96"
82
+ },
83
+ {
84
+ "internalType": "NftId",
85
+ "name": "expectedPool",
86
+ "type": "uint96"
87
+ },
88
+ {
89
+ "internalType": "NftId",
90
+ "name": "actualPool",
91
+ "type": "uint96"
92
+ }
93
+ ],
94
+ "name": "ErrorBundleServiceBundlePoolMismatch",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "NftId",
101
+ "name": "bundleNftId",
102
+ "type": "uint96"
103
+ }
104
+ ],
105
+ "name": "ErrorBundleServiceBundleUnknown",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "NftId",
112
+ "name": "bundleNftId",
113
+ "type": "uint96"
114
+ },
115
+ {
116
+ "internalType": "uint256",
117
+ "name": "openPoliciesCount",
118
+ "type": "uint256"
119
+ }
120
+ ],
121
+ "name": "ErrorBundleServiceBundleWithOpenPolicies",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [
126
+ {
127
+ "internalType": "NftId",
128
+ "name": "bundleNftId",
129
+ "type": "uint96"
130
+ },
131
+ {
132
+ "internalType": "Amount",
133
+ "name": "capacityAmount",
134
+ "type": "uint96"
135
+ },
136
+ {
137
+ "internalType": "Amount",
138
+ "name": "collateralAmount",
139
+ "type": "uint96"
140
+ }
141
+ ],
142
+ "name": "ErrorBundleServiceCapacityInsufficient",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [
147
+ {
148
+ "internalType": "address",
149
+ "name": "bundleOwner",
150
+ "type": "address"
151
+ },
152
+ {
153
+ "internalType": "address",
154
+ "name": "tokenHandlerAddress",
155
+ "type": "address"
156
+ },
157
+ {
158
+ "internalType": "Amount",
159
+ "name": "amount",
160
+ "type": "uint96"
161
+ }
162
+ ],
163
+ "name": "ErrorBundleServiceInsufficientAllowance",
164
+ "type": "error"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "NftId",
170
+ "name": "policyNftId",
171
+ "type": "uint96"
172
+ }
173
+ ],
174
+ "name": "ErrorBundleServicePolicyNotCloseable",
175
+ "type": "error"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "component",
182
+ "type": "address"
183
+ }
184
+ ],
185
+ "name": "ErrorComponentServiceComponentLocked",
186
+ "type": "error"
187
+ },
188
+ {
189
+ "inputs": [
190
+ {
191
+ "internalType": "address",
192
+ "name": "component",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "internalType": "ObjectType",
197
+ "name": "expectedType",
198
+ "type": "uint8"
199
+ },
200
+ {
201
+ "internalType": "ObjectType",
202
+ "name": "foundType",
203
+ "type": "uint8"
204
+ }
205
+ ],
206
+ "name": "ErrorComponentServiceComponentTypeInvalid",
207
+ "type": "error"
208
+ },
209
+ {
210
+ "inputs": [
211
+ {
212
+ "internalType": "NftId",
213
+ "name": "instanceNftId",
214
+ "type": "uint96"
215
+ },
216
+ {
217
+ "internalType": "RoleId",
218
+ "name": "requiredRole",
219
+ "type": "uint64"
220
+ },
221
+ {
222
+ "internalType": "address",
223
+ "name": "sender",
224
+ "type": "address"
225
+ }
226
+ ],
227
+ "name": "ErrorComponentServiceExpectedRoleMissing",
228
+ "type": "error"
229
+ },
230
+ {
231
+ "inputs": [
232
+ {
233
+ "internalType": "address",
234
+ "name": "component",
235
+ "type": "address"
236
+ },
237
+ {
238
+ "internalType": "ObjectType",
239
+ "name": "requiredType",
240
+ "type": "uint8"
241
+ },
242
+ {
243
+ "internalType": "ObjectType",
244
+ "name": "componentType",
245
+ "type": "uint8"
246
+ }
247
+ ],
248
+ "name": "ErrorComponentServiceInvalidType",
249
+ "type": "error"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "address",
255
+ "name": "component",
256
+ "type": "address"
257
+ }
258
+ ],
259
+ "name": "ErrorComponentServiceNotComponent",
260
+ "type": "error"
261
+ },
262
+ {
263
+ "inputs": [
264
+ {
265
+ "internalType": "address",
266
+ "name": "component",
267
+ "type": "address"
268
+ },
269
+ {
270
+ "internalType": "address",
271
+ "name": "initialOwner",
272
+ "type": "address"
273
+ },
274
+ {
275
+ "internalType": "address",
276
+ "name": "sender",
277
+ "type": "address"
278
+ }
279
+ ],
280
+ "name": "ErrorComponentServiceSenderNotOwner",
281
+ "type": "error"
282
+ },
283
+ {
284
+ "inputs": [
285
+ {
286
+ "internalType": "address",
287
+ "name": "sender",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "name": "ErrorComponentServiceSenderNotService",
292
+ "type": "error"
293
+ },
294
+ {
295
+ "inputs": [
296
+ {
297
+ "internalType": "address",
298
+ "name": "target",
299
+ "type": "address"
300
+ }
301
+ ],
302
+ "name": "ErrorIAccessTargetLocked",
303
+ "type": "error"
304
+ },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "NftId",
309
+ "name": "nftId",
310
+ "type": "uint96"
311
+ }
312
+ ],
313
+ "name": "ErrorNftOwnableAlreadyLinked",
314
+ "type": "error"
315
+ },
316
+ {
317
+ "inputs": [
318
+ {
319
+ "internalType": "address",
320
+ "name": "contractAddress",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "name": "ErrorNftOwnableContractNotRegistered",
325
+ "type": "error"
326
+ },
327
+ {
328
+ "inputs": [],
329
+ "name": "ErrorNftOwnableInitialOwnerZero",
330
+ "type": "error"
331
+ },
332
+ {
333
+ "inputs": [
334
+ {
335
+ "internalType": "address",
336
+ "name": "account",
337
+ "type": "address"
338
+ }
339
+ ],
340
+ "name": "ErrorNftOwnableNotOwner",
341
+ "type": "error"
342
+ },
343
+ {
344
+ "inputs": [
345
+ {
346
+ "internalType": "address",
347
+ "name": "registryAddress",
348
+ "type": "address"
349
+ }
350
+ ],
351
+ "name": "ErrorNotRegistry",
352
+ "type": "error"
353
+ },
354
+ {
355
+ "inputs": [],
356
+ "name": "ErrorServiceNotImplemented",
357
+ "type": "error"
358
+ },
359
+ {
360
+ "inputs": [],
361
+ "name": "InvalidInitialization",
362
+ "type": "error"
363
+ },
364
+ {
365
+ "inputs": [],
366
+ "name": "NotInitializing",
367
+ "type": "error"
368
+ },
369
+ {
370
+ "anonymous": false,
371
+ "inputs": [
372
+ {
373
+ "indexed": false,
374
+ "internalType": "address",
375
+ "name": "authority",
376
+ "type": "address"
377
+ }
378
+ ],
379
+ "name": "AuthorityUpdated",
380
+ "type": "event"
381
+ },
382
+ {
383
+ "anonymous": false,
384
+ "inputs": [
385
+ {
386
+ "indexed": false,
387
+ "internalType": "uint64",
388
+ "name": "version",
389
+ "type": "uint64"
390
+ }
391
+ ],
392
+ "name": "Initialized",
393
+ "type": "event"
394
+ },
395
+ {
396
+ "anonymous": false,
397
+ "inputs": [
398
+ {
399
+ "indexed": false,
400
+ "internalType": "NftId",
401
+ "name": "bundleNftId",
402
+ "type": "uint96"
403
+ }
404
+ ],
405
+ "name": "LogBundleServiceBundleActivated",
406
+ "type": "event"
407
+ },
408
+ {
409
+ "anonymous": false,
410
+ "inputs": [
411
+ {
412
+ "indexed": false,
413
+ "internalType": "NftId",
414
+ "name": "bundleNftId",
415
+ "type": "uint96"
416
+ }
417
+ ],
418
+ "name": "LogBundleServiceBundleLocked",
419
+ "type": "event"
420
+ },
421
+ {
422
+ "inputs": [],
423
+ "name": "NAME",
424
+ "outputs": [
425
+ {
426
+ "internalType": "string",
427
+ "name": "",
428
+ "type": "string"
429
+ }
430
+ ],
431
+ "stateMutability": "view",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "inputs": [],
436
+ "name": "NFT_OWNABLE_STORAGE_LOCATION_V1",
437
+ "outputs": [
438
+ {
439
+ "internalType": "bytes32",
440
+ "name": "",
441
+ "type": "bytes32"
442
+ }
443
+ ],
444
+ "stateMutability": "view",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "REGISTERABLE_LOCATION_V1",
450
+ "outputs": [
451
+ {
452
+ "internalType": "bytes32",
453
+ "name": "",
454
+ "type": "bytes32"
455
+ }
456
+ ],
457
+ "stateMutability": "view",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [],
462
+ "name": "authority",
463
+ "outputs": [
464
+ {
465
+ "internalType": "address",
466
+ "name": "",
467
+ "type": "address"
468
+ }
469
+ ],
470
+ "stateMutability": "view",
471
+ "type": "function"
472
+ },
473
+ {
474
+ "inputs": [
475
+ {
476
+ "internalType": "contract IInstance",
477
+ "name": "instance",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "NftId",
482
+ "name": "bundleNftId",
483
+ "type": "uint96"
484
+ }
485
+ ],
486
+ "name": "close",
487
+ "outputs": [],
488
+ "stateMutability": "nonpayable",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "contract IInstance",
495
+ "name": "instance",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "internalType": "NftId",
500
+ "name": "poolNftId",
501
+ "type": "uint96"
502
+ },
503
+ {
504
+ "internalType": "address",
505
+ "name": "owner",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "components": [
510
+ {
511
+ "internalType": "UFixed",
512
+ "name": "fractionalFee",
513
+ "type": "uint256"
514
+ },
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "fixedFee",
518
+ "type": "uint256"
519
+ }
520
+ ],
521
+ "internalType": "struct Fee",
522
+ "name": "bundleFee",
523
+ "type": "tuple"
524
+ },
525
+ {
526
+ "internalType": "Amount",
527
+ "name": "stakingAmount",
528
+ "type": "uint96"
529
+ },
530
+ {
531
+ "internalType": "Seconds",
532
+ "name": "lifetime",
533
+ "type": "uint40"
534
+ },
535
+ {
536
+ "internalType": "bytes",
537
+ "name": "filter",
538
+ "type": "bytes"
539
+ }
540
+ ],
541
+ "name": "create",
542
+ "outputs": [
543
+ {
544
+ "internalType": "NftId",
545
+ "name": "bundleNftId",
546
+ "type": "uint96"
547
+ }
548
+ ],
549
+ "stateMutability": "nonpayable",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [],
554
+ "name": "getDomain",
555
+ "outputs": [
556
+ {
557
+ "internalType": "ObjectType",
558
+ "name": "",
559
+ "type": "uint8"
560
+ }
561
+ ],
562
+ "stateMutability": "pure",
563
+ "type": "function"
564
+ },
565
+ {
566
+ "inputs": [],
567
+ "name": "getInitialInfo",
568
+ "outputs": [
569
+ {
570
+ "components": [
571
+ {
572
+ "internalType": "NftId",
573
+ "name": "nftId",
574
+ "type": "uint96"
575
+ },
576
+ {
577
+ "internalType": "NftId",
578
+ "name": "parentNftId",
579
+ "type": "uint96"
580
+ },
581
+ {
582
+ "internalType": "ObjectType",
583
+ "name": "objectType",
584
+ "type": "uint8"
585
+ },
586
+ {
587
+ "internalType": "bool",
588
+ "name": "isInterceptor",
589
+ "type": "bool"
590
+ },
591
+ {
592
+ "internalType": "address",
593
+ "name": "objectAddress",
594
+ "type": "address"
595
+ },
596
+ {
597
+ "internalType": "address",
598
+ "name": "initialOwner",
599
+ "type": "address"
600
+ },
601
+ {
602
+ "internalType": "bytes",
603
+ "name": "data",
604
+ "type": "bytes"
605
+ }
606
+ ],
607
+ "internalType": "struct IRegistry.ObjectInfo",
608
+ "name": "info",
609
+ "type": "tuple"
610
+ }
611
+ ],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [],
617
+ "name": "getInstanceService",
618
+ "outputs": [
619
+ {
620
+ "internalType": "contract InstanceService",
621
+ "name": "",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "stateMutability": "view",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [],
630
+ "name": "getNftId",
631
+ "outputs": [
632
+ {
633
+ "internalType": "NftId",
634
+ "name": "",
635
+ "type": "uint96"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [],
643
+ "name": "getOwner",
644
+ "outputs": [
645
+ {
646
+ "internalType": "address",
647
+ "name": "",
648
+ "type": "address"
649
+ }
650
+ ],
651
+ "stateMutability": "view",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "getRegistry",
657
+ "outputs": [
658
+ {
659
+ "internalType": "contract IRegistry",
660
+ "name": "",
661
+ "type": "address"
662
+ }
663
+ ],
664
+ "stateMutability": "view",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [],
669
+ "name": "getRegistryService",
670
+ "outputs": [
671
+ {
672
+ "internalType": "contract IRegistryService",
673
+ "name": "",
674
+ "type": "address"
675
+ }
676
+ ],
677
+ "stateMutability": "view",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [],
682
+ "name": "getVersion",
683
+ "outputs": [
684
+ {
685
+ "internalType": "Version",
686
+ "name": "",
687
+ "type": "uint24"
688
+ }
689
+ ],
690
+ "stateMutability": "pure",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [
695
+ {
696
+ "internalType": "contract IInstance",
697
+ "name": "instance",
698
+ "type": "address"
699
+ },
700
+ {
701
+ "internalType": "NftId",
702
+ "name": "bundleNftId",
703
+ "type": "uint96"
704
+ },
705
+ {
706
+ "internalType": "Amount",
707
+ "name": "premiumAmount",
708
+ "type": "uint96"
709
+ }
710
+ ],
711
+ "name": "increaseBalance",
712
+ "outputs": [],
713
+ "stateMutability": "nonpayable",
714
+ "type": "function"
715
+ },
716
+ {
717
+ "inputs": [],
718
+ "name": "initializeERC165",
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [
725
+ {
726
+ "internalType": "address",
727
+ "name": "initialOwner",
728
+ "type": "address"
729
+ },
730
+ {
731
+ "internalType": "address",
732
+ "name": "registryAddress",
733
+ "type": "address"
734
+ }
735
+ ],
736
+ "name": "initializeNftOwnable",
737
+ "outputs": [],
738
+ "stateMutability": "nonpayable",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [
743
+ {
744
+ "internalType": "address",
745
+ "name": "registryAddress",
746
+ "type": "address"
747
+ },
748
+ {
749
+ "internalType": "NftId",
750
+ "name": "parentNftId",
751
+ "type": "uint96"
752
+ },
753
+ {
754
+ "internalType": "ObjectType",
755
+ "name": "objectType",
756
+ "type": "uint8"
757
+ },
758
+ {
759
+ "internalType": "bool",
760
+ "name": "isInterceptor",
761
+ "type": "bool"
762
+ },
763
+ {
764
+ "internalType": "address",
765
+ "name": "initialOwner",
766
+ "type": "address"
767
+ },
768
+ {
769
+ "internalType": "bytes",
770
+ "name": "registryData",
771
+ "type": "bytes"
772
+ }
773
+ ],
774
+ "name": "initializeRegisterable",
775
+ "outputs": [],
776
+ "stateMutability": "nonpayable",
777
+ "type": "function"
778
+ },
779
+ {
780
+ "inputs": [
781
+ {
782
+ "internalType": "address",
783
+ "name": "registryAddress",
784
+ "type": "address"
785
+ }
786
+ ],
787
+ "name": "initializeRegistryLinked",
788
+ "outputs": [],
789
+ "stateMutability": "nonpayable",
790
+ "type": "function"
791
+ },
792
+ {
793
+ "inputs": [
794
+ {
795
+ "internalType": "address",
796
+ "name": "registry",
797
+ "type": "address"
798
+ },
799
+ {
800
+ "internalType": "address",
801
+ "name": "authority",
802
+ "type": "address"
803
+ },
804
+ {
805
+ "internalType": "address",
806
+ "name": "initialOwner",
807
+ "type": "address"
808
+ }
809
+ ],
810
+ "name": "initializeService",
811
+ "outputs": [],
812
+ "stateMutability": "nonpayable",
813
+ "type": "function"
814
+ },
815
+ {
816
+ "inputs": [
817
+ {
818
+ "internalType": "address",
819
+ "name": "activatedBy",
820
+ "type": "address"
821
+ },
822
+ {
823
+ "internalType": "bytes",
824
+ "name": "data",
825
+ "type": "bytes"
826
+ }
827
+ ],
828
+ "name": "initializeVersionable",
829
+ "outputs": [],
830
+ "stateMutability": "nonpayable",
831
+ "type": "function"
832
+ },
833
+ {
834
+ "inputs": [],
835
+ "name": "isConsumingScheduledOp",
836
+ "outputs": [
837
+ {
838
+ "internalType": "bytes4",
839
+ "name": "",
840
+ "type": "bytes4"
841
+ }
842
+ ],
843
+ "stateMutability": "view",
844
+ "type": "function"
845
+ },
846
+ {
847
+ "inputs": [],
848
+ "name": "linkToRegisteredNftId",
849
+ "outputs": [],
850
+ "stateMutability": "nonpayable",
851
+ "type": "function"
852
+ },
853
+ {
854
+ "inputs": [
855
+ {
856
+ "internalType": "NftId",
857
+ "name": "bundleNftId",
858
+ "type": "uint96"
859
+ }
860
+ ],
861
+ "name": "lock",
862
+ "outputs": [],
863
+ "stateMutability": "nonpayable",
864
+ "type": "function"
865
+ },
866
+ {
867
+ "inputs": [
868
+ {
869
+ "internalType": "contract IInstance",
870
+ "name": "instance",
871
+ "type": "address"
872
+ },
873
+ {
874
+ "internalType": "NftId",
875
+ "name": "policyNftId",
876
+ "type": "uint96"
877
+ },
878
+ {
879
+ "internalType": "NftId",
880
+ "name": "bundleNftId",
881
+ "type": "uint96"
882
+ },
883
+ {
884
+ "internalType": "Amount",
885
+ "name": "collateralAmount",
886
+ "type": "uint96"
887
+ },
888
+ {
889
+ "internalType": "Amount",
890
+ "name": "premiumAmount",
891
+ "type": "uint96"
892
+ }
893
+ ],
894
+ "name": "lockCollateral",
895
+ "outputs": [],
896
+ "stateMutability": "nonpayable",
897
+ "type": "function"
898
+ },
899
+ {
900
+ "inputs": [
901
+ {
902
+ "internalType": "bytes4",
903
+ "name": "interfaceId",
904
+ "type": "bytes4"
905
+ }
906
+ ],
907
+ "name": "registerInterface",
908
+ "outputs": [],
909
+ "stateMutability": "nonpayable",
910
+ "type": "function"
911
+ },
912
+ {
913
+ "inputs": [
914
+ {
915
+ "internalType": "contract IInstance",
916
+ "name": "instance",
917
+ "type": "address"
918
+ },
919
+ {
920
+ "internalType": "NftId",
921
+ "name": "policyNftId",
922
+ "type": "uint96"
923
+ },
924
+ {
925
+ "internalType": "NftId",
926
+ "name": "bundleNftId",
927
+ "type": "uint96"
928
+ },
929
+ {
930
+ "internalType": "Amount",
931
+ "name": "collateralAmount",
932
+ "type": "uint96"
933
+ }
934
+ ],
935
+ "name": "releaseCollateral",
936
+ "outputs": [],
937
+ "stateMutability": "nonpayable",
938
+ "type": "function"
939
+ },
940
+ {
941
+ "inputs": [
942
+ {
943
+ "internalType": "address",
944
+ "name": "newAuthority",
945
+ "type": "address"
946
+ }
947
+ ],
948
+ "name": "setAuthority",
949
+ "outputs": [],
950
+ "stateMutability": "nonpayable",
951
+ "type": "function"
952
+ },
953
+ {
954
+ "inputs": [
955
+ {
956
+ "internalType": "NftId",
957
+ "name": "bundleNftId",
958
+ "type": "uint96"
959
+ },
960
+ {
961
+ "components": [
962
+ {
963
+ "internalType": "UFixed",
964
+ "name": "fractionalFee",
965
+ "type": "uint256"
966
+ },
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "fixedFee",
970
+ "type": "uint256"
971
+ }
972
+ ],
973
+ "internalType": "struct Fee",
974
+ "name": "fee",
975
+ "type": "tuple"
976
+ }
977
+ ],
978
+ "name": "setFee",
979
+ "outputs": [],
980
+ "stateMutability": "nonpayable",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [
985
+ {
986
+ "internalType": "bytes4",
987
+ "name": "interfaceId",
988
+ "type": "bytes4"
989
+ }
990
+ ],
991
+ "name": "supportsInterface",
992
+ "outputs": [
993
+ {
994
+ "internalType": "bool",
995
+ "name": "",
996
+ "type": "bool"
997
+ }
998
+ ],
999
+ "stateMutability": "view",
1000
+ "type": "function"
1001
+ },
1002
+ {
1003
+ "inputs": [
1004
+ {
1005
+ "internalType": "contract IInstance",
1006
+ "name": "instance",
1007
+ "type": "address"
1008
+ },
1009
+ {
1010
+ "internalType": "NftId",
1011
+ "name": "policyNftId",
1012
+ "type": "uint96"
1013
+ }
1014
+ ],
1015
+ "name": "unlinkPolicy",
1016
+ "outputs": [],
1017
+ "stateMutability": "nonpayable",
1018
+ "type": "function"
1019
+ },
1020
+ {
1021
+ "inputs": [
1022
+ {
1023
+ "internalType": "NftId",
1024
+ "name": "bundleNftId",
1025
+ "type": "uint96"
1026
+ }
1027
+ ],
1028
+ "name": "unlock",
1029
+ "outputs": [],
1030
+ "stateMutability": "nonpayable",
1031
+ "type": "function"
1032
+ },
1033
+ {
1034
+ "inputs": [
1035
+ {
1036
+ "internalType": "contract IInstance",
1037
+ "name": "instance",
1038
+ "type": "address"
1039
+ },
1040
+ {
1041
+ "internalType": "NftId",
1042
+ "name": "bundleNftId",
1043
+ "type": "uint96"
1044
+ },
1045
+ {
1046
+ "internalType": "Amount",
1047
+ "name": "feeAmount",
1048
+ "type": "uint96"
1049
+ }
1050
+ ],
1051
+ "name": "updateBundleFees",
1052
+ "outputs": [],
1053
+ "stateMutability": "nonpayable",
1054
+ "type": "function"
1055
+ },
1056
+ {
1057
+ "inputs": [
1058
+ {
1059
+ "internalType": "bytes",
1060
+ "name": "data",
1061
+ "type": "bytes"
1062
+ }
1063
+ ],
1064
+ "name": "upgradeVersionable",
1065
+ "outputs": [],
1066
+ "stateMutability": "nonpayable",
1067
+ "type": "function"
1068
+ }
1069
+ ],
1070
+ "bytecode": "0x60806040523480156200001157600080fd5b506200001c62000022565b620000d6565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000735760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d35780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61485980620000e66000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806376429bc01161011a578063ada9652e116100ad578063bf7e214f1161007c578063bf7e214f146104d2578063caf4e3d4146104f0578063cc9fc59a146104f8578063e283b4a914610500578063f7c34ee01461051357600080fd5b8063ada9652e14610488578063b5346af51461049d578063b68d1809146104b0578063b7565f9c146104bf57600080fd5b80638fb36037116100e95780638fb3603714610408578063a3f4df7e14610429578063aa9acb2c14610462578063ad328d9f1461047557600080fd5b806376429bc0146103c75780637a9e5e4b146103da578063893d20e8146103ed5780638e32e979146103f557600080fd5b806327bb7a331161019d57806349bb9e4b1161016c57806349bb9e4b146103375780635ab1bd531461034a5780635ed325671461036f578063644c45e014610382578063675393bf146103b457600080fd5b806327bb7a33146102f6578063329d6e741461030957806336fc697e1461031c578063377a6db71461032457600080fd5b8063138461e0116101d9578063138461e0146102935780631eff4b221461029b5780631f8e8f36146102d0578063214cdb80146102e357600080fd5b806301ffc9a71461020b57806306fa45651461024d5780630d8e6e2c146102625780630fec111c1461027e575b600080fd5b610238610219366004613805565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61026061025b366004613844565b610526565b005b61026a610716565b60405162ffffff9091168152602001610244565b6102866107a0565b60405161024491906138b1565b6102606108c1565b6102c27f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610244565b6102606102de366004613a42565b610ac8565b6102606102f1366004613805565b610d84565b610260610304366004613b1e565b610db1565b610260610317366004613bb6565b610e56565b610260610f9b565b610260610332366004613bea565b610fe1565b610260610345366004613c5b565b6113e0565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610244565b61026061037d366004613caa565b6114df565b6000805160206147c4833981519152546001600160601b03165b6040516001600160601b039091168152602001610244565b6102606103c2366004613cf5565b61167b565b6102606103d5366004613d12565b611789565b6102606103e8366004613cf5565b611948565b6103576119e2565b610260610403366004613d4b565b611b19565b610410611d52565b6040516001600160e01b03199091168152602001610244565b6104556040518060400160405280600d81526020016c42756e646c655365727669636560981b81525081565b6040516102449190613d8b565b610260610470366004613d12565b611d8a565b610260610483366004613d9e565b611fcb565b6102c26000805160206147c483398151915281565b6102606104ab366004613844565b612243565b60405160dc8152602001610244565b6102606104cd366004613caa565b61242a565b6000805160206147e4833981519152546001600160a01b0316610357565b61035761263a565b610357612646565b61039c61050e366004613e0d565b612652565b610260610521366004613eee565b612b59565b6000610532608c612bd0565b92505050806001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105989190613f1c565b6001600160a01b031663fe1f18d68360646040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b1580156105f257600080fd5b505af1158015610606573d6000803e3d6000fd5b505050506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa15801561064a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066e9190613f1c565b6040516306fa456560e01b81526001600160601b03851660048201529091506001600160a01b038216906306fa456590602401600060405180830381600087803b1580156106bb57600080fd5b505af11580156106cf573d6000803e3d6000fd5b50506040516001600160601b03861681527f87cfb697b5d649751f13ba6e2e51778a1fd0a1f260df7281952986c453708e71925060200190505b60405180910390a1505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$8eede297b65ed5a56eb3f84d8232ae93f5$__90632efe011390606401602060405180830381865af4158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b9190613f39565b905090565b6107a86137c7565b6040805160e081018252600081527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116602084015260ff600160601b8204811694840194909452600160681b90049092161515606082015230608082015260a0810161081d6119e2565b6001600160a01b0316815260200182600101805461083a90613f5e565b80601f016020809104026020016040519081016040528092919081815260200182805461086690613f5e565b80156108b35780601f10610888576101008083540402835291602001916108b3565b820191906000526020600020905b81548152906001019060200180831161089657829003601f168201915b505050505081525091505090565b60006000805160206147c483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109549190613fa8565b156109855780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306109986001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a049190613fa8565b610a2c5760405163b9304b0d60e01b81526001600160a01b038216600482015260240161097c565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610a80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa49190613fd0565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b600080610ad5608c612bd0565b92505091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e9190613f1c565b604051634793b4ab60e01b81526001600160601b03871660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa158015610b91573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bb9919081019061406d565b8051604051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af4158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b9190613fa8565b15610c64576040516349e9f38360e01b81526001600160601b038716600482015260240161097c565b80516001600160601b03858116911614610caf57805160405163dab86e4560e01b81526001600160601b0380891660048301529182166024820152908516604482015260640161097c565b848160200181905250826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1a9190613f1c565b6001600160a01b03166359852426878360ff6040518463ffffffff1660e01b8152600401610d4a93929190614238565b600060405180830381600087803b158015610d6457600080fd5b505af1158015610d78573d6000803e3d6000fd5b50505050505050505050565b610d8c612d72565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610db9612d72565b610dc38287612b59565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610e4c83826142b3565b5050505050505050565b73__$8eede297b65ed5a56eb3f84d8232ae93f5$__63a123b37c610e78610716565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edc9190614372565b6000805160206148048339815191528054600160401b900460ff1680610f0f575080546001600160401b03808416911610155b15610f2d5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610f5783612dab565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610709565b610fa3612d72565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b33610ff46001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa15801561103c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110609190613fa8565b6110885760405163ea8a77fd60e01b81526001600160a01b038216600482015260240161097c565b6000866001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ec9190613f1c565b905060006001600160a01b03821663a5961b4c73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038a1660dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af4158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061439b565b6040518263ffffffff1660e01b81526004016111b391815260200190565b60a060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f491906143de565b60200151604051634793b4ab60e01b81526001600160601b03881660048201529091506000906001600160a01b03841690634793b4ab90602401600060405180830381865afa15801561124b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611273919081019061406d565b905060ff8216606414158061130757506113078160e0015173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af41580156112d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f89190614471565b64ffffffffff90811691161090565b1561134c5760e081015160405163bf5b8f0960e01b81526001600160601b038916600482015260ff8416602482015264ffffffffff909116604482015260640161097c565b600061136961135f836060015188612db3565b8360800151612e42565b90506113758188612e8d565b156113ae5760405163826a5ff960e01b81526001600160601b03808a16600483015280831660248301528816604482015260640161097c565b6113bc826080015188612db3565b6001600160601b031660808301526113d68a898489612f14565b610d788a8a6130c2565b6000805160206148048339815191528054600160401b810460ff1615906001600160401b03166000811580156114135750825b90506000826001600160401b0316600114801561142f5750303b155b90508115801561143d575080155b1561145b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561148557845460ff60401b1916600160401b1785555b61148f8787613377565b83156114d657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b336114f26001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa15801561153a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155e9190613fa8565b6115865760405163ea8a77fd60e01b81526001600160a01b038216600482015260240161097c565b6000846001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ea9190613f1c565b604051634793b4ab60e01b81526001600160601b03861660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa15801561163d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611665919081019061406d565b905061167386868387612f14565b505050505050565b611683612d72565b806001600160a01b03163b6000036116b95760405163fdeac91f60e01b81526001600160a01b038216600482015260240161097c565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015611733575060408051601f3d908101601f1916820190925261173091810190613fa8565b60015b61175b5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161097c565b806117845760405163fdeac91f60e01b81526001600160a01b038316600482015260240161097c565b505b50565b816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117eb9190613f1c565b6040516375d357df60e01b81526001600160601b03831660048201526001600160a01b0391909116906375d357df90602401602060405180830381865afa15801561183a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185e9190613fa8565b611886576040516392bb4dff60e01b81526001600160601b038216600482015260240161097c565b816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e89190613f1c565b604051631351fccf60e31b81526001600160601b03831660048201526001600160a01b039190911690639a8fe67890602401600060405180830381600087803b15801561193457600080fd5b505af1158015611673573d6000803e3d6000fd5b336119686000805160206147e4833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146119a35760405162d1953b60e31b81526001600160a01b038216600482015260240161097c565b816001600160a01b03163b6000036119d9576040516361798f2f60e11b81526001600160a01b038316600482015260240161097c565b61178482613498565b6000806000805160206147c483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a769190613fa8565b15611b03576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611ad9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afd9190613f1c565b91505090565b54600160601b90046001600160a01b0316919050565b611b21612d72565b611ba183846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b879190613fd0565b603c60008560405180602001604052806000815250610db1565b6001600160a01b03821615611bbe57611bb9826134f9565b611d2d565b6000611bd26001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af4158015611c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c56919061448e565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611c9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbf9190613f1c565b9050611d2b816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d269190613f1c565b6134f9565b505b611d3d634a531f3360e01b610d84565b611d4d63b68d180960e01b610d84565b505050565b6000805160206147e4833981519152805460009190600160a01b900460ff16611d7c576000611afd565b638fb3603760e01b91505090565b816001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dec9190613f1c565b6001600160a01b031663fe1f18d68260c86040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b158015611e4657600080fd5b505af1158015611e5a573d6000803e3d6000fd5b505050506000826001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec29190613f1c565b6040516322cc1d4560e11b81526001600160601b03841660048201529091506000906001600160a01b038316906345983a8a90602401602060405180830381865afa158015611f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f39919061439b565b90508015611f6c576040516356a410b760e01b81526001600160601b03841660048201526024810182905260440161097c565b60405163b5346af560e01b81526001600160601b03841660048201526001600160a01b0383169063b5346af5906024015b600060405180830381600087803b158015611fb757600080fd5b505af1158015610e4c573d6000803e3d6000fd5b33611fde6001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa158015612026573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204a9190613fa8565b6120725760405163ea8a77fd60e01b81526001600160a01b038216600482015260240161097c565b6000856001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d69190613f1c565b604051634793b4ab60e01b81526001600160601b03861660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa158015612129573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612151919081019061406d565b9050612161816080015185612e42565b6001600160601b0316608082015260408051631a99b41b60e31b815290516001600160a01b0389169163d4cda0d89160048083019260209291908290030181865afa1580156121b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d89190613f1c565b6001600160a01b03166359852426868360ff6040518463ffffffff1660e01b815260040161220893929190614238565b600060405180830381600087803b15801561222257600080fd5b505af1158015612236573d6000803e3d6000fd5b5050505050505050505050565b600061224f608c612bd0565b92505050806001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b59190613f1c565b6001600160a01b031663fe1f18d683606e6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b15801561230f57600080fd5b505af1158015612323573d6000803e3d6000fd5b505050506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015612367573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238b9190613f1c565b60405163b5346af560e01b81526001600160601b03851660048201529091506001600160a01b0382169063b5346af590602401600060405180830381600087803b1580156123d857600080fd5b505af11580156123ec573d6000803e3d6000fd5b50506040516001600160601b03861681527f6764112d27879e5bb12f07fde08a48629ec22e603c75c9942ba62a06c95a55f492506020019050610709565b6000836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa15801561246a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248e9190613f1c565b604051634793b4ab60e01b81526001600160601b03851660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa1580156124dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612505919081019061406d565b60a081015160405163274acb3560e01b81526001600160601b039182166004820152908416602482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__9063274acb3590604401602060405180830381865af415801561256e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125929190613fd0565b6001600160601b031660a082015260408051631a99b41b60e31b815290516001600160a01b0386169163d4cda0d89160048083019260209291908290030181865afa1580156125e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126099190613f1c565b6001600160a01b03166359852426848360ff5b6040518463ffffffff1660e01b8152600401611f9d93929190614238565b600061079b602861350a565b600061079b604661350a565b600061265c61263a565b6001600160a01b031663c2bf08c86040518060e0016040528061267d600090565b6001600160601b031681526020018b6001600160601b031681526020016126a260dc90565b60ff16815260200160001515815260200160006001600160a01b031681526020018a6001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b815260040161270191906138b1565b6020604051808303816000875af1158015612720573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127449190613fd0565b9050886001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127a89190613f1c565b6001600160a01b03166397affbf5826040518061012001604052808c6001600160601b031681526020018a815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506001600160601b038a166020808301919091526040805163bc1b392d60e01b81528151919093019273__$3bac17678db7ae928afa209f2f44deec9c$__9263bc1b392d926004808401938290030181865af4158015612874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128989190613fd0565b6001600160601b0316815260200173__$3bac17678db7ae928afa209f2f44deec9c$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156128ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129139190613fd0565b6001600160601b031681526020018864ffffffffff16815260200173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015612977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299b9190614471565b6040516352bcc5a760e11b815264ffffffffff9182166004820152908a16602482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063a5798b4e90604401602060405180830381865af41580156129fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a1e9190614471565b64ffffffffff16815260006020909101526040516001600160e01b031960e085901b168152612a519291906004016144ab565b600060405180830381600087803b158015612a6b57600080fd5b505af1158015612a7f573d6000803e3d6000fd5b505050506000896001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613f1c565b6040516346f0e8a760e11b81526001600160601b03841660048201529091506001600160a01b03821690638de1d14e90602401600060405180830381600087803b158015612b3457600080fd5b505af1158015612b48573d6000803e3d6000fd5b505050505098975050505050505050565b612b61612d72565b612b6a8161167b565b612b72610f9b565b6001600160a01b038216612b995760405163f17ef42d60e01b815260040160405180910390fd5b506000805160206147c483398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b6000612bda6137c7565b6000612bee6001546001600160a01b031690565b604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa158015612c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c589190613fd0565b9250612c64838561361d565b8092508193505050806001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015612caa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cce9190613f1c565b6080830151604051629b7b3560e61b81526001600160a01b0391821660048201529116906326decd4090602401602060405180830381865afa158015612d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d3c9190613fa8565b15612d6b57608082015160405163d53987e560e01b81526001600160a01b03909116600482015260240161097c565b9193909250565b60008051602061480483398151915254600160401b900460ff16612da957604051631afcd79f60e31b815260040160405180910390fd5b565b610206612d72565b60405163274acb3560e01b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063274acb35906044015b602060405180830381865af4158015612e17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3b9190613fd0565b9392505050565b6040516363cf551160e11b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063c79eaa2290604401612dfa565b6040516304d40eb160e11b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__906309a81d6290604401602060405180830381865af4158015612ef0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3b9190613fa8565b6040516330b8415f60e01b81526001600160601b038216600482015273__$3bac17678db7ae928afa209f2f44deec9c$__906330b8415f90602401602060405180830381865af4158015612f6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f909190613fa8565b1561304957602082810151604051634f69237560e11b81528151600482015291015160248201526001600160601b038216604482015260009073__$58e11c6004c5796aaa8c56e718245e69a2$__90639ed246ea906064016040805180830381865af4158015613004573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061302891906144cd565b915050613039836060015182612db3565b6001600160601b03166060840152505b836001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015613087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130ab9190613f1c565b6001600160a01b03166359852426848460ff61261c565b6000826001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190613f1c565b60405163bd7d9d8560e01b81526001600160601b03841660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015613179573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131a19190810190614526565b6101c0810151604051638d38cd4b60e01b815264ffffffffff909116600482015290915073__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__90638d38cd4b90602401602060405180830381865af4158015613201573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132259190613fa8565b801561327e575061327e816101c0015173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af41580156112d4573d6000803e3d6000fd5b156132a757604051630cd0c0b560e31b81526001600160601b038416600482015260240161097c565b6000846001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330b9190613f1c565b604051630331f98560e21b81526001600160601b03861660048201529091506001600160a01b03821690630cc7e61490602401600060405180830381600087803b15801561335857600080fd5b505af115801561336c573d6000803e3d6000fd5b505050505050505050565b6000805160206148048339815191528054600160401b810460ff1615906001600160401b03166000811580156133aa5750825b90506000826001600160401b031660011480156133c65750303b155b9050811580156133d4575080155b156133f25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561341c57845460ff60401b1916600160401b1785555b6000808780602001905181019061343391906146c2565b90925090506134448260008b611b19565b613454630e1d6de360e41b610d84565b505083156114d657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020016114cd565b6000805160206147e483398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b613501612d72565b61178681613721565b600061351e6001546001600160a01b031690565b6001600160a01b031663d39e604383613535610716565b60405163c9e66e2960e01b815262ffffff909116600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__9063c9e66e2990602401602060405180830381865af415801561358a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ae919061448e565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa1580156135f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136179190613f1c565b92915050565b6136256137c7565b60006136396001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03861660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015613688573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136b091908101906146f1565b91506136c782604001518460ff9081169116141590565b1561370b57608082015160408084015190516304081d4960e41b81526001600160a01b03909216600483015260ff808616602484015216604482015260640161097c565b6137188260200151613732565b90509250929050565b613729612d72565b61178681613498565b60006137466001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015613795573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137bd91908101906146f1565b6080015192915050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561381757600080fd5b81356001600160e01b031981168114612e3b57600080fd5b6001600160601b038116811461178657600080fd5b60006020828403121561385657600080fd5b8135612e3b8161382f565b60005b8381101561387c578181015183820152602001613864565b50506000910152565b6000815180845261389d816020860160208601613861565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a083015161391a60c08401826001600160a01b03169052565b5060c083015160e080840152613934610100840182613885565b949350505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156139745761397461393c565b60405290565b60405161012081016001600160401b03811182821017156139745761397461393c565b60405161022081016001600160401b03811182821017156139745761397461393c565b60405160e081016001600160401b03811182821017156139745761397461393c565b604051601f8201601f191681016001600160401b0381118282101715613a0a57613a0a61393c565b604052919050565b600060408284031215613a2457600080fd5b613a2c613952565b9050813581526020820135602082015292915050565b60008060608385031215613a5557600080fd5b8235613a608161382f565b91506137188460208501613a12565b6001600160a01b038116811461178657600080fd5b60ff8116811461178657600080fd5b801515811461178657600080fd5b60006001600160401b03821115613aba57613aba61393c565b50601f01601f191660200190565b600082601f830112613ad957600080fd5b8135613aec613ae782613aa1565b6139e2565b818152846020838601011115613b0157600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613b3757600080fd5b8635613b4281613a6f565b95506020870135613b528161382f565b94506040870135613b6281613a84565b93506060870135613b7281613a93565b92506080870135613b8281613a6f565b915060a08701356001600160401b03811115613b9d57600080fd5b613ba989828a01613ac8565b9150509295509295509295565b600060208284031215613bc857600080fd5b81356001600160401b03811115613bde57600080fd5b61393484828501613ac8565b600080600080600060a08688031215613c0257600080fd5b8535613c0d81613a6f565b94506020860135613c1d8161382f565b93506040860135613c2d8161382f565b92506060860135613c3d8161382f565b91506080860135613c4d8161382f565b809150509295509295909350565b60008060408385031215613c6e57600080fd5b8235613c7981613a6f565b915060208301356001600160401b03811115613c9457600080fd5b613ca085828601613ac8565b9150509250929050565b600080600060608486031215613cbf57600080fd5b8335613cca81613a6f565b92506020840135613cda8161382f565b91506040840135613cea8161382f565b809150509250925092565b600060208284031215613d0757600080fd5b8135612e3b81613a6f565b60008060408385031215613d2557600080fd5b8235613d3081613a6f565b91506020830135613d408161382f565b809150509250929050565b600080600060608486031215613d6057600080fd5b8335613d6b81613a6f565b92506020840135613d7b81613a6f565b91506040840135613cea81613a6f565b602081526000612e3b6020830184613885565b60008060008060808587031215613db457600080fd5b8435613dbf81613a6f565b93506020850135613dcf8161382f565b92506040850135613ddf8161382f565b91506060850135613def8161382f565b939692955090935050565b64ffffffffff8116811461178657600080fd5b600080600080600080600080610100898b031215613e2a57600080fd5b8835613e3581613a6f565b97506020890135613e458161382f565b96506040890135613e5581613a6f565b9550613e648a60608b01613a12565b945060a0890135613e748161382f565b935060c0890135613e8481613dfa565b925060e08901356001600160401b0380821115613ea057600080fd5b818b0191508b601f830112613eb457600080fd5b813581811115613ec357600080fd5b8c6020828501011115613ed557600080fd5b6020830194508093505050509295985092959890939650565b60008060408385031215613f0157600080fd5b8235613f0c81613a6f565b91506020830135613d4081613a6f565b600060208284031215613f2e57600080fd5b8151612e3b81613a6f565b600060208284031215613f4b57600080fd5b815162ffffff81168114612e3b57600080fd5b600181811c90821680613f7257607f821691505b602082108103613f9257634e487b7160e01b600052602260045260246000fd5b50919050565b8051613fa381613a93565b919050565b600060208284031215613fba57600080fd5b8151612e3b81613a93565b8051613fa38161382f565b600060208284031215613fe257600080fd5b8151612e3b8161382f565b600060408284031215613fff57600080fd5b614007613952565b9050815181526020820151602082015292915050565b600082601f83011261402e57600080fd5b815161403c613ae782613aa1565b81815284602083860101111561405157600080fd5b613934826020830160208701613861565b8051613fa381613dfa565b60006020828403121561407f57600080fd5b81516001600160401b038082111561409657600080fd5b9083019061014082860312156140ab57600080fd5b6140b361397a565b6140bc83613fc5565b81526140cb8660208501613fed565b60208201526060830151828111156140e257600080fd5b6140ee8782860161401d565b60408301525061410060808401613fc5565b606082015261411160a08401613fc5565b608082015261412260c08401613fc5565b60a082015261413360e08401614062565b60c08201526101009150614148828401614062565b60e082015261415a6101208401614062565b91810191909152949350505050565b80516001600160601b0316825260006101406020838101518051868301529081015160408601525060408301518160608601526141a882860182613885565b91505060608301516141c560808601826001600160601b03169052565b5060808301516001600160601b03811660a08601525060a08301516001600160601b03811660c08601525060c083015164ffffffffff811660e08601525060e083015161010061421d8187018364ffffffffff169052565b84015164ffffffffff81166101208701529050509392505050565b6001600160601b038416815260606020820152600061425a6060830185614169565b905060ff83166040830152949350505050565b601f821115611d4d57600081815260208120601f850160051c810160208610156142945750805b601f850160051c820191505b81811015611673578281556001016142a0565b81516001600160401b038111156142cc576142cc61393c565b6142e0816142da8454613f5e565b8461426d565b602080601f83116001811461431557600084156142fd5750858301515b600019600386901b1c1916600185901b178555611673565b600085815260208120601f198616915b8281101561434457888601518255948401946001909101908401614325565b50858210156143625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561438457600080fd5b81516001600160401b0381168114612e3b57600080fd5b6000602082840312156143ad57600080fd5b5051919050565b8051613fa381613a84565b8051613fa381613a6f565b805163ffffffff81168114613fa357600080fd5b600060a082840312156143f057600080fd5b60405160a081018181106001600160401b03821117156144125761441261393c565b604052825161442081613a84565b8152602083015161443081613a84565b6020820152604083015161444381613a6f565b6040820152614454606084016143ca565b6060820152614465608084016143ca565b60808201529392505050565b60006020828403121561448357600080fd5b8151612e3b81613dfa565b6000602082840312156144a057600080fd5b8151612e3b81613a84565b6001600160601b03831681526040602082015260006139346040830184614169565b600080604083850312156144e057600080fd5b82516144eb8161382f565b6020840151909250613d408161382f565b80516001600160c01b031981168114613fa357600080fd5b805161ffff81168114613fa357600080fd5b60006020828403121561453857600080fd5b81516001600160401b038082111561454f57600080fd5b90830190610220828603121561456457600080fd5b61456c61399d565b61457583613fc5565b815261458360208401613fc5565b6020820152614594604084016144fc565b60408201526145a5606084016144fc565b60608201526145b660808401613fc5565b60808201526145c760a08401613fc5565b60a08201526145d860c08401613fc5565b60c08201526145e960e08401614062565b60e0820152610100808401518381111561460257600080fd5b61460e8882870161401d565b828401525050610120808401518381111561462857600080fd5b6146348882870161401d565b828401525050610140915061464a828401614514565b82820152610160915061465e828401614514565b828201526101809150614672828401613fc5565b828201526101a09150614686828401613fc5565b828201526101c0915061469a828401614062565b828201526101e091506146ae828401614062565b82820152610200915061415a828401614062565b600080604083850312156146d557600080fd5b82516146e081613a6f565b6020840151909250613d4081613a6f565b60006020828403121561470357600080fd5b81516001600160401b038082111561471a57600080fd5b9083019060e0828603121561472e57600080fd5b6147366139c0565b61473f83613fc5565b815261474d60208401613fc5565b602082015261475e604084016143b4565b604082015261476f60608401613f98565b6060820152614780608084016143bf565b608082015261479160a084016143bf565b60a082015260c0830151828111156147a857600080fd5b6147b48782860161401d565b60c0830152509594505050505056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220e5e2f20051fd4596de8591292e4aa7f68e217a2195d14e4da245113149bb78f764736f6c63430008140033",
1071
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102065760003560e01c806376429bc01161011a578063ada9652e116100ad578063bf7e214f1161007c578063bf7e214f146104d2578063caf4e3d4146104f0578063cc9fc59a146104f8578063e283b4a914610500578063f7c34ee01461051357600080fd5b8063ada9652e14610488578063b5346af51461049d578063b68d1809146104b0578063b7565f9c146104bf57600080fd5b80638fb36037116100e95780638fb3603714610408578063a3f4df7e14610429578063aa9acb2c14610462578063ad328d9f1461047557600080fd5b806376429bc0146103c75780637a9e5e4b146103da578063893d20e8146103ed5780638e32e979146103f557600080fd5b806327bb7a331161019d57806349bb9e4b1161016c57806349bb9e4b146103375780635ab1bd531461034a5780635ed325671461036f578063644c45e014610382578063675393bf146103b457600080fd5b806327bb7a33146102f6578063329d6e741461030957806336fc697e1461031c578063377a6db71461032457600080fd5b8063138461e0116101d9578063138461e0146102935780631eff4b221461029b5780631f8e8f36146102d0578063214cdb80146102e357600080fd5b806301ffc9a71461020b57806306fa45651461024d5780630d8e6e2c146102625780630fec111c1461027e575b600080fd5b610238610219366004613805565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b61026061025b366004613844565b610526565b005b61026a610716565b60405162ffffff9091168152602001610244565b6102866107a0565b60405161024491906138b1565b6102606108c1565b6102c27f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30081565b604051908152602001610244565b6102606102de366004613a42565b610ac8565b6102606102f1366004613805565b610d84565b610260610304366004613b1e565b610db1565b610260610317366004613bb6565b610e56565b610260610f9b565b610260610332366004613bea565b610fe1565b610260610345366004613c5b565b6113e0565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610244565b61026061037d366004613caa565b6114df565b6000805160206147c4833981519152546001600160601b03165b6040516001600160601b039091168152602001610244565b6102606103c2366004613cf5565b61167b565b6102606103d5366004613d12565b611789565b6102606103e8366004613cf5565b611948565b6103576119e2565b610260610403366004613d4b565b611b19565b610410611d52565b6040516001600160e01b03199091168152602001610244565b6104556040518060400160405280600d81526020016c42756e646c655365727669636560981b81525081565b6040516102449190613d8b565b610260610470366004613d12565b611d8a565b610260610483366004613d9e565b611fcb565b6102c26000805160206147c483398151915281565b6102606104ab366004613844565b612243565b60405160dc8152602001610244565b6102606104cd366004613caa565b61242a565b6000805160206147e4833981519152546001600160a01b0316610357565b61035761263a565b610357612646565b61039c61050e366004613e0d565b612652565b610260610521366004613eee565b612b59565b6000610532608c612bd0565b92505050806001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610574573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105989190613f1c565b6001600160a01b031663fe1f18d68360646040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b1580156105f257600080fd5b505af1158015610606573d6000803e3d6000fd5b505050506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa15801561064a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066e9190613f1c565b6040516306fa456560e01b81526001600160601b03851660048201529091506001600160a01b038216906306fa456590602401600060405180830381600087803b1580156106bb57600080fd5b505af11580156106cf573d6000803e3d6000fd5b50506040516001600160601b03861681527f87cfb697b5d649751f13ba6e2e51778a1fd0a1f260df7281952986c453708e71925060200190505b60405180910390a1505050565b604051632efe011360e01b815260036004820152600060248201819052604482018190529073__$8eede297b65ed5a56eb3f84d8232ae93f5$__90632efe011390606401602060405180830381865af4158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b9190613f39565b905090565b6107a86137c7565b6040805160e081018252600081527f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b038116602084015260ff600160601b8204811694840194909452600160681b90049092161515606082015230608082015260a0810161081d6119e2565b6001600160a01b0316815260200182600101805461083a90613f5e565b80601f016020809104026020016040519081016040528092919081815260200182805461086690613f5e565b80156108b35780601f10610888576101008083540402835291602001916108b3565b820191906000526020600020905b81548152906001019060200180831161089657829003601f168201915b505050505081525091505090565b60006000805160206147c483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015610930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109549190613fa8565b156109855780546040516301ab8b6760e21b81526001600160601b0390911660048201526024015b60405180910390fd5b306109986001546001600160a01b031690565b60405163c3c5a54760e01b81526001600160a01b038381166004830152919091169063c3c5a54790602401602060405180830381865afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a049190613fa8565b610a2c5760405163b9304b0d60e01b81526001600160a01b038216600482015260240161097c565b6001546001600160a01b0316604051636939560f60e11b81526001600160a01b038381166004830152919091169063d272ac1e90602401602060405180830381865afa158015610a80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa49190613fd0565b82546bffffffffffffffffffffffff19166001600160601b03919091161790915550565b600080610ad5608c612bd0565b92505091506000816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e9190613f1c565b604051634793b4ab60e01b81526001600160601b03871660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa158015610b91573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610bb9919081019061406d565b8051604051630a4d29dd60e31b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906352694ee890602401602060405180830381865af4158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b9190613fa8565b15610c64576040516349e9f38360e01b81526001600160601b038716600482015260240161097c565b80516001600160601b03858116911614610caf57805160405163dab86e4560e01b81526001600160601b0380891660048301529182166024820152908516604482015260640161097c565b848160200181905250826001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1a9190613f1c565b6001600160a01b03166359852426878360ff6040518463ffffffff1660e01b8152600401610d4a93929190614238565b600060405180830381600087803b158015610d6457600080fd5b505af1158015610d78573d6000803e3d6000fd5b50505050505050505050565b610d8c612d72565b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610db9612d72565b610dc38287612b59565b7f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa30080546001600160601b0387166cffffffffffffffffffffffffff1990911617600160601b60ff8716021760ff60681b1916600160681b851515021781557f6548007c3f4340f82f348c576c0ff69f4f529cadd5ad41f96aae61abceeaa301610e4c83826142b3565b5050505050505050565b73__$8eede297b65ed5a56eb3f84d8232ae93f5$__63a123b37c610e78610716565b6040516001600160e01b031960e084901b16815262ffffff9091166004820152602401602060405180830381865af4158015610eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edc9190614372565b6000805160206148048339815191528054600160401b900460ff1680610f0f575080546001600160401b03808416911610155b15610f2d5760405163f92ee8a960e01b815260040160405180910390fd5b805468ffffffffffffffffff19166001600160401b03831617600160401b178155610f5783612dab565b805460ff60401b191681556040516001600160401b03831681527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602001610709565b610fa3612d72565b6301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff19166001179055565b33610ff46001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa15801561103c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110609190613fa8565b6110885760405163ea8a77fd60e01b81526001600160a01b038216600482015260240161097c565b6000866001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ec9190613f1c565b905060006001600160a01b03821663a5961b4c73__$94a2c899be079b00d952d0d84fffaa5c34$__633889a4c86001600160601b038a1660dc6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401602060405180830381865af4158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061439b565b6040518263ffffffff1660e01b81526004016111b391815260200190565b60a060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f491906143de565b60200151604051634793b4ab60e01b81526001600160601b03881660048201529091506000906001600160a01b03841690634793b4ab90602401600060405180830381865afa15801561124b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611273919081019061406d565b905060ff8216606414158061130757506113078160e0015173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af41580156112d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f89190614471565b64ffffffffff90811691161090565b1561134c5760e081015160405163bf5b8f0960e01b81526001600160601b038916600482015260ff8416602482015264ffffffffff909116604482015260640161097c565b600061136961135f836060015188612db3565b8360800151612e42565b90506113758188612e8d565b156113ae5760405163826a5ff960e01b81526001600160601b03808a16600483015280831660248301528816604482015260640161097c565b6113bc826080015188612db3565b6001600160601b031660808301526113d68a898489612f14565b610d788a8a6130c2565b6000805160206148048339815191528054600160401b810460ff1615906001600160401b03166000811580156114135750825b90506000826001600160401b0316600114801561142f5750303b155b90508115801561143d575080155b1561145b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561148557845460ff60401b1916600160401b1785555b61148f8787613377565b83156114d657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020015b60405180910390a15b50505050505050565b336114f26001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa15801561153a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155e9190613fa8565b6115865760405163ea8a77fd60e01b81526001600160a01b038216600482015260240161097c565b6000846001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ea9190613f1c565b604051634793b4ab60e01b81526001600160601b03861660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa15801561163d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611665919081019061406d565b905061167386868387612f14565b505050505050565b611683612d72565b806001600160a01b03163b6000036116b95760405163fdeac91f60e01b81526001600160a01b038216600482015260240161097c565b600180546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b8152630a3888e560e31b60048201526301ffc9a790602401602060405180830381865afa925050508015611733575060408051601f3d908101601f1916820190925261173091810190613fa8565b60015b61175b5760405163fdeac91f60e01b81526001600160a01b038216600482015260240161097c565b806117845760405163fdeac91f60e01b81526001600160a01b038316600482015260240161097c565b505b50565b816001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117eb9190613f1c565b6040516375d357df60e01b81526001600160601b03831660048201526001600160a01b0391909116906375d357df90602401602060405180830381865afa15801561183a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185e9190613fa8565b611886576040516392bb4dff60e01b81526001600160601b038216600482015260240161097c565b816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e89190613f1c565b604051631351fccf60e31b81526001600160601b03831660048201526001600160a01b039190911690639a8fe67890602401600060405180830381600087803b15801561193457600080fd5b505af1158015611673573d6000803e3d6000fd5b336119686000805160206147e4833981519152546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146119a35760405162d1953b60e31b81526001600160a01b038216600482015260240161097c565b816001600160a01b03163b6000036119d9576040516361798f2f60e11b81526001600160a01b038316600482015260240161097c565b61178482613498565b6000806000805160206147c483398151915280546040516330b8415f60e01b81526001600160601b03909116600482015290915073__$94a2c899be079b00d952d0d84fffaa5c34$__906330b8415f90602401602060405180830381865af4158015611a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a769190613fa8565b15611b03576001546001600160a01b03168154604051631c5da14d60e11b81526001600160601b0390911660048201526001600160a01b0391909116906338bb429a90602401602060405180830381865afa158015611ad9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afd9190613f1c565b91505090565b54600160601b90046001600160a01b0316919050565b611b21612d72565b611ba183846001600160a01b031663644c45e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b879190613fd0565b603c60008560405180602001604052806000815250610db1565b6001600160a01b03821615611bbe57611bb9826134f9565b611d2d565b6000611bd26001546001600160a01b031690565b6001600160a01b031663d39e60436028604051632392b61b60e21b81526003600482015273__$b659da7d8a6d2d32aa6c1e17da23dc2174$__90638e4ad86c90602401602060405180830381865af4158015611c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c56919061448e565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa158015611c9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbf9190613f1c565b9050611d2b816001600160a01b031663bf7e214f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d269190613f1c565b6134f9565b505b611d3d634a531f3360e01b610d84565b611d4d63b68d180960e01b610d84565b505050565b6000805160206147e4833981519152805460009190600160a01b900460ff16611d7c576000611afd565b638fb3603760e01b91505090565b816001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dec9190613f1c565b6001600160a01b031663fe1f18d68260c86040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b158015611e4657600080fd5b505af1158015611e5a573d6000803e3d6000fd5b505050506000826001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec29190613f1c565b6040516322cc1d4560e11b81526001600160601b03841660048201529091506000906001600160a01b038316906345983a8a90602401602060405180830381865afa158015611f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f39919061439b565b90508015611f6c576040516356a410b760e01b81526001600160601b03841660048201526024810182905260440161097c565b60405163b5346af560e01b81526001600160601b03841660048201526001600160a01b0383169063b5346af5906024015b600060405180830381600087803b158015611fb757600080fd5b505af1158015610e4c573d6000803e3d6000fd5b33611fde6001546001600160a01b031690565b604051632b91e0a960e01b81526001600160a01b0383811660048301529190911690632b91e0a990602401602060405180830381865afa158015612026573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204a9190613fa8565b6120725760405163ea8a77fd60e01b81526001600160a01b038216600482015260240161097c565b6000856001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d69190613f1c565b604051634793b4ab60e01b81526001600160601b03861660048201529091506000906001600160a01b03831690634793b4ab90602401600060405180830381865afa158015612129573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612151919081019061406d565b9050612161816080015185612e42565b6001600160601b0316608082015260408051631a99b41b60e31b815290516001600160a01b0389169163d4cda0d89160048083019260209291908290030181865afa1580156121b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d89190613f1c565b6001600160a01b03166359852426868360ff6040518463ffffffff1660e01b815260040161220893929190614238565b600060405180830381600087803b15801561222257600080fd5b505af1158015612236573d6000803e3d6000fd5b5050505050505050505050565b600061224f608c612bd0565b92505050806001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b59190613f1c565b6001600160a01b031663fe1f18d683606e6040516001600160e01b031960e085901b1681526001600160601b03909216600483015260ff166024820152604401600060405180830381600087803b15801561230f57600080fd5b505af1158015612323573d6000803e3d6000fd5b505050506000816001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015612367573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238b9190613f1c565b60405163b5346af560e01b81526001600160601b03851660048201529091506001600160a01b0382169063b5346af590602401600060405180830381600087803b1580156123d857600080fd5b505af11580156123ec573d6000803e3d6000fd5b50506040516001600160601b03861681527f6764112d27879e5bb12f07fde08a48629ec22e603c75c9942ba62a06c95a55f492506020019050610709565b6000836001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa15801561246a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061248e9190613f1c565b604051634793b4ab60e01b81526001600160601b03851660048201526001600160a01b039190911690634793b4ab90602401600060405180830381865afa1580156124dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612505919081019061406d565b60a081015160405163274acb3560e01b81526001600160601b039182166004820152908416602482015290915073__$3bac17678db7ae928afa209f2f44deec9c$__9063274acb3590604401602060405180830381865af415801561256e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125929190613fd0565b6001600160601b031660a082015260408051631a99b41b60e31b815290516001600160a01b0386169163d4cda0d89160048083019260209291908290030181865afa1580156125e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126099190613f1c565b6001600160a01b03166359852426848360ff5b6040518463ffffffff1660e01b8152600401611f9d93929190614238565b600061079b602861350a565b600061079b604661350a565b600061265c61263a565b6001600160a01b031663c2bf08c86040518060e0016040528061267d600090565b6001600160601b031681526020018b6001600160601b031681526020016126a260dc90565b60ff16815260200160001515815260200160006001600160a01b031681526020018a6001600160a01b03168152602001604051806020016040528060008152508152506040518263ffffffff1660e01b815260040161270191906138b1565b6020604051808303816000875af1158015612720573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127449190613fd0565b9050886001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015612784573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127a89190613f1c565b6001600160a01b03166397affbf5826040518061012001604052808c6001600160601b031681526020018a815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506001600160601b038a166020808301919091526040805163bc1b392d60e01b81528151919093019273__$3bac17678db7ae928afa209f2f44deec9c$__9263bc1b392d926004808401938290030181865af4158015612874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128989190613fd0565b6001600160601b0316815260200173__$3bac17678db7ae928afa209f2f44deec9c$__63bc1b392d6040518163ffffffff1660e01b8152600401602060405180830381865af41580156128ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129139190613fd0565b6001600160601b031681526020018864ffffffffff16815260200173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af4158015612977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299b9190614471565b6040516352bcc5a760e11b815264ffffffffff9182166004820152908a16602482015273__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__9063a5798b4e90604401602060405180830381865af41580156129fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a1e9190614471565b64ffffffffff16815260006020909101526040516001600160e01b031960e085901b168152612a519291906004016144ab565b600060405180830381600087803b158015612a6b57600080fd5b505af1158015612a7f573d6000803e3d6000fd5b505050506000896001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613f1c565b6040516346f0e8a760e11b81526001600160601b03841660048201529091506001600160a01b03821690638de1d14e90602401600060405180830381600087803b158015612b3457600080fd5b505af1158015612b48573d6000803e3d6000fd5b505050505098975050505050505050565b612b61612d72565b612b6a8161167b565b612b72610f9b565b6001600160a01b038216612b995760405163f17ef42d60e01b815260040160405180910390fd5b506000805160206147c483398151915280546001600160601b0316600160601b6001600160a01b0390931692909202919091179055565b6000612bda6137c7565b6000612bee6001546001600160a01b031690565b604051636939560f60e11b81523360048201526001600160a01b03919091169063d272ac1e90602401602060405180830381865afa158015612c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c589190613fd0565b9250612c64838561361d565b8092508193505050806001600160a01b031663e5f6cd276040518163ffffffff1660e01b8152600401602060405180830381865afa158015612caa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cce9190613f1c565b6080830151604051629b7b3560e61b81526001600160a01b0391821660048201529116906326decd4090602401602060405180830381865afa158015612d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d3c9190613fa8565b15612d6b57608082015160405163d53987e560e01b81526001600160a01b03909116600482015260240161097c565b9193909250565b60008051602061480483398151915254600160401b900460ff16612da957604051631afcd79f60e31b815260040160405180910390fd5b565b610206612d72565b60405163274acb3560e01b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063274acb35906044015b602060405180830381865af4158015612e17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3b9190613fd0565b9392505050565b6040516363cf551160e11b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__9063c79eaa2290604401612dfa565b6040516304d40eb160e11b81526001600160601b0380841660048301528216602482015260009073__$3bac17678db7ae928afa209f2f44deec9c$__906309a81d6290604401602060405180830381865af4158015612ef0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3b9190613fa8565b6040516330b8415f60e01b81526001600160601b038216600482015273__$3bac17678db7ae928afa209f2f44deec9c$__906330b8415f90602401602060405180830381865af4158015612f6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f909190613fa8565b1561304957602082810151604051634f69237560e11b81528151600482015291015160248201526001600160601b038216604482015260009073__$58e11c6004c5796aaa8c56e718245e69a2$__90639ed246ea906064016040805180830381865af4158015613004573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061302891906144cd565b915050613039836060015182612db3565b6001600160601b03166060840152505b836001600160a01b031663d4cda0d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015613087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130ab9190613f1c565b6001600160a01b03166359852426848460ff61261c565b6000826001600160a01b03166302cd30716040518163ffffffff1660e01b8152600401602060405180830381865afa158015613102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131269190613f1c565b60405163bd7d9d8560e01b81526001600160601b03841660048201529091506000906001600160a01b0383169063bd7d9d8590602401600060405180830381865afa158015613179573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131a19190810190614526565b6101c0810151604051638d38cd4b60e01b815264ffffffffff909116600482015290915073__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__90638d38cd4b90602401602060405180830381865af4158015613201573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132259190613fa8565b801561327e575061327e816101c0015173__$91d01b1eccbca8d6f94a5eb2a0acb040e9$__63adb618326040518163ffffffff1660e01b8152600401602060405180830381865af41580156112d4573d6000803e3d6000fd5b156132a757604051630cd0c0b560e31b81526001600160601b038416600482015260240161097c565b6000846001600160a01b03166361f5f4206040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330b9190613f1c565b604051630331f98560e21b81526001600160601b03861660048201529091506001600160a01b03821690630cc7e61490602401600060405180830381600087803b15801561335857600080fd5b505af115801561336c573d6000803e3d6000fd5b505050505050505050565b6000805160206148048339815191528054600160401b810460ff1615906001600160401b03166000811580156133aa5750825b90506000826001600160401b031660011480156133c65750303b155b9050811580156133d4575080155b156133f25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561341c57845460ff60401b1916600160401b1785555b6000808780602001905181019061343391906146c2565b90925090506134448260008b611b19565b613454630e1d6de360e41b610d84565b505083156114d657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2906020016114cd565b6000805160206147e483398151915280546001600160a01b0383166001600160a01b03199091168117825560408051918252517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad9181900360200190a15050565b613501612d72565b61178681613721565b600061351e6001546001600160a01b031690565b6001600160a01b031663d39e604383613535610716565b60405163c9e66e2960e01b815262ffffff909116600482015273__$8eede297b65ed5a56eb3f84d8232ae93f5$__9063c9e66e2990602401602060405180830381865af415801561358a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ae919061448e565b6040516001600160e01b031960e085901b16815260ff928316600482015291166024820152604401602060405180830381865afa1580156135f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136179190613f1c565b92915050565b6136256137c7565b60006136396001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03861660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015613688573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136b091908101906146f1565b91506136c782604001518460ff9081169116141590565b1561370b57608082015160408084015190516304081d4960e41b81526001600160a01b03909216600483015260ff808616602484015216604482015260640161097c565b6137188260200151613732565b90509250929050565b613729612d72565b61178681613498565b60006137466001546001600160a01b031690565b6040516305247a1760e51b81526001600160601b03841660048201526001600160a01b03919091169063a48f42e090602401600060405180830381865afa158015613795573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137bd91908101906146f1565b6080015192915050565b6040805160e08101825260008082526020820181905291810182905260608082018390526080820183905260a082019290925260c081019190915290565b60006020828403121561381757600080fd5b81356001600160e01b031981168114612e3b57600080fd5b6001600160601b038116811461178657600080fd5b60006020828403121561385657600080fd5b8135612e3b8161382f565b60005b8381101561387c578181015183820152602001613864565b50506000910152565b6000815180845261389d816020860160208601613861565b601f01601f19169290920160200192915050565b6020815260006001600160601b038084511660208401528060208501511660408401525060ff604084015116606083015260608301511515608083015260018060a01b0360808401511660a083015260a083015161391a60c08401826001600160a01b03169052565b5060c083015160e080840152613934610100840182613885565b949350505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156139745761397461393c565b60405290565b60405161012081016001600160401b03811182821017156139745761397461393c565b60405161022081016001600160401b03811182821017156139745761397461393c565b60405160e081016001600160401b03811182821017156139745761397461393c565b604051601f8201601f191681016001600160401b0381118282101715613a0a57613a0a61393c565b604052919050565b600060408284031215613a2457600080fd5b613a2c613952565b9050813581526020820135602082015292915050565b60008060608385031215613a5557600080fd5b8235613a608161382f565b91506137188460208501613a12565b6001600160a01b038116811461178657600080fd5b60ff8116811461178657600080fd5b801515811461178657600080fd5b60006001600160401b03821115613aba57613aba61393c565b50601f01601f191660200190565b600082601f830112613ad957600080fd5b8135613aec613ae782613aa1565b6139e2565b818152846020838601011115613b0157600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060008060c08789031215613b3757600080fd5b8635613b4281613a6f565b95506020870135613b528161382f565b94506040870135613b6281613a84565b93506060870135613b7281613a93565b92506080870135613b8281613a6f565b915060a08701356001600160401b03811115613b9d57600080fd5b613ba989828a01613ac8565b9150509295509295509295565b600060208284031215613bc857600080fd5b81356001600160401b03811115613bde57600080fd5b61393484828501613ac8565b600080600080600060a08688031215613c0257600080fd5b8535613c0d81613a6f565b94506020860135613c1d8161382f565b93506040860135613c2d8161382f565b92506060860135613c3d8161382f565b91506080860135613c4d8161382f565b809150509295509295909350565b60008060408385031215613c6e57600080fd5b8235613c7981613a6f565b915060208301356001600160401b03811115613c9457600080fd5b613ca085828601613ac8565b9150509250929050565b600080600060608486031215613cbf57600080fd5b8335613cca81613a6f565b92506020840135613cda8161382f565b91506040840135613cea8161382f565b809150509250925092565b600060208284031215613d0757600080fd5b8135612e3b81613a6f565b60008060408385031215613d2557600080fd5b8235613d3081613a6f565b91506020830135613d408161382f565b809150509250929050565b600080600060608486031215613d6057600080fd5b8335613d6b81613a6f565b92506020840135613d7b81613a6f565b91506040840135613cea81613a6f565b602081526000612e3b6020830184613885565b60008060008060808587031215613db457600080fd5b8435613dbf81613a6f565b93506020850135613dcf8161382f565b92506040850135613ddf8161382f565b91506060850135613def8161382f565b939692955090935050565b64ffffffffff8116811461178657600080fd5b600080600080600080600080610100898b031215613e2a57600080fd5b8835613e3581613a6f565b97506020890135613e458161382f565b96506040890135613e5581613a6f565b9550613e648a60608b01613a12565b945060a0890135613e748161382f565b935060c0890135613e8481613dfa565b925060e08901356001600160401b0380821115613ea057600080fd5b818b0191508b601f830112613eb457600080fd5b813581811115613ec357600080fd5b8c6020828501011115613ed557600080fd5b6020830194508093505050509295985092959890939650565b60008060408385031215613f0157600080fd5b8235613f0c81613a6f565b91506020830135613d4081613a6f565b600060208284031215613f2e57600080fd5b8151612e3b81613a6f565b600060208284031215613f4b57600080fd5b815162ffffff81168114612e3b57600080fd5b600181811c90821680613f7257607f821691505b602082108103613f9257634e487b7160e01b600052602260045260246000fd5b50919050565b8051613fa381613a93565b919050565b600060208284031215613fba57600080fd5b8151612e3b81613a93565b8051613fa38161382f565b600060208284031215613fe257600080fd5b8151612e3b8161382f565b600060408284031215613fff57600080fd5b614007613952565b9050815181526020820151602082015292915050565b600082601f83011261402e57600080fd5b815161403c613ae782613aa1565b81815284602083860101111561405157600080fd5b613934826020830160208701613861565b8051613fa381613dfa565b60006020828403121561407f57600080fd5b81516001600160401b038082111561409657600080fd5b9083019061014082860312156140ab57600080fd5b6140b361397a565b6140bc83613fc5565b81526140cb8660208501613fed565b60208201526060830151828111156140e257600080fd5b6140ee8782860161401d565b60408301525061410060808401613fc5565b606082015261411160a08401613fc5565b608082015261412260c08401613fc5565b60a082015261413360e08401614062565b60c08201526101009150614148828401614062565b60e082015261415a6101208401614062565b91810191909152949350505050565b80516001600160601b0316825260006101406020838101518051868301529081015160408601525060408301518160608601526141a882860182613885565b91505060608301516141c560808601826001600160601b03169052565b5060808301516001600160601b03811660a08601525060a08301516001600160601b03811660c08601525060c083015164ffffffffff811660e08601525060e083015161010061421d8187018364ffffffffff169052565b84015164ffffffffff81166101208701529050509392505050565b6001600160601b038416815260606020820152600061425a6060830185614169565b905060ff83166040830152949350505050565b601f821115611d4d57600081815260208120601f850160051c810160208610156142945750805b601f850160051c820191505b81811015611673578281556001016142a0565b81516001600160401b038111156142cc576142cc61393c565b6142e0816142da8454613f5e565b8461426d565b602080601f83116001811461431557600084156142fd5750858301515b600019600386901b1c1916600185901b178555611673565b600085815260208120601f198616915b8281101561434457888601518255948401946001909101908401614325565b50858210156143625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561438457600080fd5b81516001600160401b0381168114612e3b57600080fd5b6000602082840312156143ad57600080fd5b5051919050565b8051613fa381613a84565b8051613fa381613a6f565b805163ffffffff81168114613fa357600080fd5b600060a082840312156143f057600080fd5b60405160a081018181106001600160401b03821117156144125761441261393c565b604052825161442081613a84565b8152602083015161443081613a84565b6020820152604083015161444381613a6f565b6040820152614454606084016143ca565b6060820152614465608084016143ca565b60808201529392505050565b60006020828403121561448357600080fd5b8151612e3b81613dfa565b6000602082840312156144a057600080fd5b8151612e3b81613a84565b6001600160601b03831681526040602082015260006139346040830184614169565b600080604083850312156144e057600080fd5b82516144eb8161382f565b6020840151909250613d408161382f565b80516001600160c01b031981168114613fa357600080fd5b805161ffff81168114613fa357600080fd5b60006020828403121561453857600080fd5b81516001600160401b038082111561454f57600080fd5b90830190610220828603121561456457600080fd5b61456c61399d565b61457583613fc5565b815261458360208401613fc5565b6020820152614594604084016144fc565b60408201526145a5606084016144fc565b60608201526145b660808401613fc5565b60808201526145c760a08401613fc5565b60a08201526145d860c08401613fc5565b60c08201526145e960e08401614062565b60e0820152610100808401518381111561460257600080fd5b61460e8882870161401d565b828401525050610120808401518381111561462857600080fd5b6146348882870161401d565b828401525050610140915061464a828401614514565b82820152610160915061465e828401614514565b828201526101809150614672828401613fc5565b828201526101a09150614686828401613fc5565b828201526101c0915061469a828401614062565b828201526101e091506146ae828401614062565b82820152610200915061415a828401614062565b600080604083850312156146d557600080fd5b82516146e081613a6f565b6020840151909250613d4081613a6f565b60006020828403121561470357600080fd5b81516001600160401b038082111561471a57600080fd5b9083019060e0828603121561472e57600080fd5b6147366139c0565b61473f83613fc5565b815261474d60208401613fc5565b602082015261475e604084016143b4565b604082015261476f60608401613f98565b6060820152614780608084016143bf565b608082015261479160a084016143bf565b60a082015260c0830151828111156147a857600080fd5b6147b48782860161401d565b60c0830152509594505050505056fe07ebcf49758b6ed3af50fa146bec0abe157c0218fe65dc0874c286e9d5da4f00f3177357ab46d8af007ab3fdb9af81da189e1068fefdc0073dca88a2cab40a00f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220e5e2f20051fd4596de8591292e4aa7f68e217a2195d14e4da245113149bb78f764736f6c63430008140033",
1072
+ "linkReferences": {
1073
+ "contracts/type/Amount.sol": {
1074
+ "AmountLib": [
1075
+ {
1076
+ "length": 20,
1077
+ "start": 9754
1078
+ },
1079
+ {
1080
+ "length": 20,
1081
+ "start": 10529
1082
+ },
1083
+ {
1084
+ "length": 20,
1085
+ "start": 10638
1086
+ },
1087
+ {
1088
+ "length": 20,
1089
+ "start": 11970
1090
+ },
1091
+ {
1092
+ "length": 20,
1093
+ "start": 12113
1094
+ },
1095
+ {
1096
+ "length": 20,
1097
+ "start": 12188
1098
+ },
1099
+ {
1100
+ "length": 20,
1101
+ "start": 12312
1102
+ }
1103
+ ]
1104
+ },
1105
+ "contracts/type/Fee.sol": {
1106
+ "FeeLib": [
1107
+ {
1108
+ "length": 20,
1109
+ "start": 12465
1110
+ }
1111
+ ]
1112
+ },
1113
+ "contracts/type/NftId.sol": {
1114
+ "NftIdLib": [
1115
+ {
1116
+ "length": 20,
1117
+ "start": 2524
1118
+ },
1119
+ {
1120
+ "length": 20,
1121
+ "start": 3267
1122
+ },
1123
+ {
1124
+ "length": 20,
1125
+ "start": 4583
1126
+ },
1127
+ {
1128
+ "length": 20,
1129
+ "start": 6910
1130
+ }
1131
+ ]
1132
+ },
1133
+ "contracts/type/Timestamp.sol": {
1134
+ "TimestampLib": [
1135
+ {
1136
+ "length": 20,
1137
+ "start": 4979
1138
+ },
1139
+ {
1140
+ "length": 20,
1141
+ "start": 10774
1142
+ },
1143
+ {
1144
+ "length": 20,
1145
+ "start": 10918
1146
+ },
1147
+ {
1148
+ "length": 20,
1149
+ "start": 12973
1150
+ },
1151
+ {
1152
+ "length": 20,
1153
+ "start": 13085
1154
+ }
1155
+ ]
1156
+ },
1157
+ "contracts/type/Version.sol": {
1158
+ "VersionLib": [
1159
+ {
1160
+ "length": 20,
1161
+ "start": 2083
1162
+ },
1163
+ {
1164
+ "length": 20,
1165
+ "start": 3902
1166
+ },
1167
+ {
1168
+ "length": 20,
1169
+ "start": 13878
1170
+ }
1171
+ ],
1172
+ "VersionPartLib": [
1173
+ {
1174
+ "length": 20,
1175
+ "start": 7390
1176
+ }
1177
+ ]
1178
+ }
1179
+ },
1180
+ "deployedLinkReferences": {
1181
+ "contracts/type/Amount.sol": {
1182
+ "AmountLib": [
1183
+ {
1184
+ "length": 20,
1185
+ "start": 9524
1186
+ },
1187
+ {
1188
+ "length": 20,
1189
+ "start": 10299
1190
+ },
1191
+ {
1192
+ "length": 20,
1193
+ "start": 10408
1194
+ },
1195
+ {
1196
+ "length": 20,
1197
+ "start": 11740
1198
+ },
1199
+ {
1200
+ "length": 20,
1201
+ "start": 11883
1202
+ },
1203
+ {
1204
+ "length": 20,
1205
+ "start": 11958
1206
+ },
1207
+ {
1208
+ "length": 20,
1209
+ "start": 12082
1210
+ }
1211
+ ]
1212
+ },
1213
+ "contracts/type/Fee.sol": {
1214
+ "FeeLib": [
1215
+ {
1216
+ "length": 20,
1217
+ "start": 12235
1218
+ }
1219
+ ]
1220
+ },
1221
+ "contracts/type/NftId.sol": {
1222
+ "NftIdLib": [
1223
+ {
1224
+ "length": 20,
1225
+ "start": 2294
1226
+ },
1227
+ {
1228
+ "length": 20,
1229
+ "start": 3037
1230
+ },
1231
+ {
1232
+ "length": 20,
1233
+ "start": 4353
1234
+ },
1235
+ {
1236
+ "length": 20,
1237
+ "start": 6680
1238
+ }
1239
+ ]
1240
+ },
1241
+ "contracts/type/Timestamp.sol": {
1242
+ "TimestampLib": [
1243
+ {
1244
+ "length": 20,
1245
+ "start": 4749
1246
+ },
1247
+ {
1248
+ "length": 20,
1249
+ "start": 10544
1250
+ },
1251
+ {
1252
+ "length": 20,
1253
+ "start": 10688
1254
+ },
1255
+ {
1256
+ "length": 20,
1257
+ "start": 12743
1258
+ },
1259
+ {
1260
+ "length": 20,
1261
+ "start": 12855
1262
+ }
1263
+ ]
1264
+ },
1265
+ "contracts/type/Version.sol": {
1266
+ "VersionLib": [
1267
+ {
1268
+ "length": 20,
1269
+ "start": 1853
1270
+ },
1271
+ {
1272
+ "length": 20,
1273
+ "start": 3672
1274
+ },
1275
+ {
1276
+ "length": 20,
1277
+ "start": 13648
1278
+ }
1279
+ ],
1280
+ "VersionPartLib": [
1281
+ {
1282
+ "length": 20,
1283
+ "start": 7160
1284
+ }
1285
+ ]
1286
+ }
1287
+ }
1288
+ }