@lombard.finance/sdk 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/common/feature-config.d.ts.map +1 -1
  3. package/dist/index2.cjs +6 -6
  4. package/dist/index2.js +762 -754
  5. package/package.json +7 -8
  6. package/src/__tests__/AssetNamespace.spec.ts +0 -234
  7. package/src/__tests__/helpers/createTestConfig.ts +0 -90
  8. package/src/__tests__/integration/automint-fee.integration.test.ts +0 -74
  9. package/src/__tests__/integration/btc-deposit.integration.test.ts +0 -109
  10. package/src/__tests__/integration/btc-stake-and-deploy.integration.test.ts +0 -96
  11. package/src/__tests__/integration/btc-stake.integration.test.ts +0 -466
  12. package/src/__tests__/integration/evm-actions.integration.test.ts +0 -932
  13. package/src/__tests__/integration/evm-deploy.integration.test.ts +0 -122
  14. package/src/__tests__/integration/evm-redeem.integration.test.ts +0 -157
  15. package/src/__tests__/integration/faq-patterns.integration.test.ts +0 -465
  16. package/src/__tests__/integration/getLBTCMintingFee.integration.test.ts +0 -195
  17. package/src/__tests__/real-wallet/btc/btc-stake.real.test.ts +0 -70
  18. package/src/__tests__/real-wallet/evm/evm-stake.real.test.ts +0 -47
  19. package/src/__tests__/real-wallet/evm/evm-unstake.real.test.ts +0 -49
  20. package/src/__tests__/real-wallet/non-evm/solana-unstake.real.test.ts +0 -19
  21. package/src/__tests__/real-wallet/non-evm/starknet-unstake.real.test.ts +0 -19
  22. package/src/__tests__/real-wallet/non-evm/sui-unstake.real.test.ts +0 -19
  23. package/src/__tests__/services/ApiService.test.ts +0 -62
  24. package/src/__tests__/services/BtcService.test.ts +0 -30
  25. package/src/__tests__/services/EvmService.test.ts +0 -39
  26. package/src/__tests__/setup.ts +0 -16
  27. package/src/__tests__/test-utils/eip1193-adapter.ts +0 -48
  28. package/src/__tests__/test-utils/evm-wallet.ts +0 -38
  29. package/src/__tests__/test-utils/solana-wallet.ts +0 -22
  30. package/src/__tests__/test-utils/starknet-wallet.ts +0 -9
  31. package/src/__tests__/test-utils/sui-wallet.ts +0 -14
  32. package/src/__tests__/test-utils/test-constraints.ts +0 -110
  33. package/src/__tests__/unit/btc/BtcDeposit.test.ts +0 -253
  34. package/src/__tests__/unit/btc/BtcDepositAndDeploy.test.ts +0 -174
  35. package/src/__tests__/unit/btc/BtcDepositConfig.test.ts +0 -143
  36. package/src/__tests__/unit/btc/BtcDepositStatusTransition.test.ts +0 -221
  37. package/src/__tests__/unit/btc/BtcStakeAndDeploy.test.ts +0 -194
  38. package/src/__tests__/unit/btc/ExistingSignatureHandling.test.ts +0 -301
  39. package/src/__tests__/unit/btc/StakeAndBakeRatioConversion.test.ts +0 -200
  40. package/src/__tests__/unit/btc/StakeAndBakeSignatureRestore.test.ts +0 -216
  41. package/src/__tests__/unit/btc/TokenParameterConsistency.test.ts +0 -184
  42. package/src/__tests__/unit/btc/btc-deposit-token.test.ts +0 -191
  43. package/src/__tests__/unit/catalog/AssetCatalog.test.ts +0 -293
  44. package/src/__tests__/unit/config/ChainConfig.test.ts +0 -47
  45. package/src/__tests__/unit/config/FeeAuthConfig.test.ts +0 -76
  46. package/src/__tests__/unit/contract-functions/getLBTCMintingFee.test.ts +0 -128
  47. package/src/__tests__/unit/core/chain-parsing.test.ts +0 -257
  48. package/src/__tests__/unit/defi/AvailableProtocols.test.ts +0 -100
  49. package/src/__tests__/unit/defi/DefiRegistry.test.ts +0 -25
  50. package/src/__tests__/unit/evm/EvmDeploy.test.ts +0 -224
  51. package/src/__tests__/unit/evm/EvmRedeem.test.ts +0 -207
  52. package/src/__tests__/unit/evm/EvmRedeemFeeAuth.test.ts +0 -93
  53. package/src/__tests__/unit/evm/EvmStake.test.ts +0 -207
  54. package/src/__tests__/unit/evm/EvmStakeFeeAuth.test.ts +0 -193
  55. package/src/__tests__/unit/evm/EvmUnstakeAllowance.test.ts +0 -69
  56. package/src/__tests__/unit/evm/EvmUnstakeConfig.test.ts +0 -203
  57. package/src/__tests__/unit/fee-signature-expiration.test.ts +0 -76
  58. package/src/__tests__/unit/modules/CapabilityRegistry.test.ts +0 -55
  59. package/src/__tests__/unit/shared/BaseAction.test.ts +0 -122
  60. package/src/__tests__/unit/shared/BaseBtcAction.test.ts +0 -114
  61. package/src/__tests__/unit/solana/SolanaUnstake.test.ts +0 -314
  62. package/src/__tests__/unit/starknet/StarknetUnstake.test.ts +0 -318
  63. package/src/__tests__/unit/sui/SuiUnstake.test.ts +0 -310
  64. package/src/__tests__/unit/utils/satoshi.test.ts +0 -27
  65. package/src/__tests__/unit/validation/address-validation.test.ts +0 -350
  66. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx +0 -71
  67. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +0 -235
  68. package/src/api-functions/generateDepositBtcAddress/index.ts +0 -1
  69. package/src/api-functions/get-badges-by-address/get-badges-by-address.ts +0 -13
  70. package/src/api-functions/get-badges-by-address/index.ts +0 -1
  71. package/src/api-functions/getDepositAddressReferrer/getDepositAddressReferrer.ts +0 -38
  72. package/src/api-functions/getDepositAddressReferrer/index.ts +0 -1
  73. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +0 -59
  74. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +0 -265
  75. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +0 -167
  76. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.tsx +0 -58
  77. package/src/api-functions/getDepositBtcAddress/index.ts +0 -1
  78. package/src/api-functions/getDepositBtcAddress/make-request.ts +0 -59
  79. package/src/api-functions/getDepositBtcAddress/types.ts +0 -106
  80. package/src/api-functions/getDepositsByAddress/getDepositsByAddress.stories.tsx +0 -51
  81. package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +0 -502
  82. package/src/api-functions/getDepositsByAddress/index.ts +0 -1
  83. package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.tsx +0 -48
  84. package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.ts +0 -59
  85. package/src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.stories.tsx +0 -55
  86. package/src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.ts +0 -75
  87. package/src/api-functions/getLBTCExchangeRate/index.ts +0 -2
  88. package/src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.tsx +0 -59
  89. package/src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.ts +0 -116
  90. package/src/api-functions/getNetworkFeeSignature/index.ts +0 -1
  91. package/src/api-functions/getPointsByAddress/getPointsByAddress.stories.tsx +0 -51
  92. package/src/api-functions/getPointsByAddress/getPointsByAddress.ts +0 -304
  93. package/src/api-functions/getPointsByAddress/index.ts +0 -1
  94. package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.stories.tsx +0 -51
  95. package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +0 -368
  96. package/src/api-functions/getUnstakesByAddress/index.ts +0 -1
  97. package/src/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.tsx +0 -70
  98. package/src/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.ts +0 -91
  99. package/src/api-functions/getUserStakeAndBakeSignature/index.ts +0 -1
  100. package/src/api-functions/index.ts +0 -11
  101. package/src/api-functions/setReferral/index.ts +0 -1
  102. package/src/api-functions/setReferral/setReferral.ts +0 -67
  103. package/src/api-functions/storeNetworkFeeSignature/index.ts +0 -1
  104. package/src/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.tsx +0 -57
  105. package/src/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.ts +0 -75
  106. package/src/api-functions/storeStakeAndBakeSignature/index.ts +0 -1
  107. package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.tsx +0 -57
  108. package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +0 -61
  109. package/src/bridge/abi/CCIP_BRIDGE_ADAPTER_ABI.json +0 -704
  110. package/src/bridge/abi/CCIP_ROUTER_ABI.json +0 -702
  111. package/src/bridge/abi/OFT_BRIDGE_ADAPTER_ABI.json +0 -912
  112. package/src/bridge/index.ts +0 -16
  113. package/src/bridge/lib/bridge.stories.tsx +0 -90
  114. package/src/bridge/lib/bridge.ts +0 -115
  115. package/src/bridge/lib/ccip-bridge.stories.tsx +0 -91
  116. package/src/bridge/lib/ccip-bridge.ts +0 -214
  117. package/src/bridge/lib/ccip-config.ts +0 -54
  118. package/src/bridge/lib/config.ts +0 -384
  119. package/src/bridge/lib/oft-bridge.stories.tsx +0 -90
  120. package/src/bridge/lib/oft-bridge.ts +0 -217
  121. package/src/chains/btc/BtcActions.ts +0 -192
  122. package/src/chains/btc/actions/deposit/BtcDeposit.ts +0 -388
  123. package/src/chains/btc/actions/deposit/config/evm.ts +0 -197
  124. package/src/chains/btc/actions/deposit/config/index.ts +0 -53
  125. package/src/chains/btc/actions/deposit/config/types.ts +0 -108
  126. package/src/chains/btc/actions/deposit/factory.ts +0 -53
  127. package/src/chains/btc/actions/deposit/index.ts +0 -23
  128. package/src/chains/btc/actions/deposit/types.ts +0 -120
  129. package/src/chains/btc/actions/depositAndDeploy/BtcDepositAndDeploy.ts +0 -366
  130. package/src/chains/btc/actions/depositAndDeploy/config/evm.ts +0 -105
  131. package/src/chains/btc/actions/depositAndDeploy/config/index.ts +0 -111
  132. package/src/chains/btc/actions/depositAndDeploy/config/types.ts +0 -67
  133. package/src/chains/btc/actions/depositAndDeploy/factory.ts +0 -38
  134. package/src/chains/btc/actions/depositAndDeploy/index.ts +0 -24
  135. package/src/chains/btc/actions/depositAndDeploy/types.ts +0 -120
  136. package/src/chains/btc/actions/index.ts +0 -14
  137. package/src/chains/btc/actions/shared/BaseBtcAction.ts +0 -495
  138. package/src/chains/btc/actions/shared/index.ts +0 -28
  139. package/src/chains/btc/actions/shared/tokenUtils.ts +0 -68
  140. package/src/chains/btc/actions/shared/validation.ts +0 -180
  141. package/src/chains/btc/actions/stake/BtcStake.ts +0 -433
  142. package/src/chains/btc/actions/stake/__tests__/BtcStake.test.ts +0 -247
  143. package/src/chains/btc/actions/stake/config/evm.ts +0 -183
  144. package/src/chains/btc/actions/stake/config/index.ts +0 -122
  145. package/src/chains/btc/actions/stake/config/solana.ts +0 -96
  146. package/src/chains/btc/actions/stake/config/starknet.ts +0 -66
  147. package/src/chains/btc/actions/stake/config/sui.ts +0 -61
  148. package/src/chains/btc/actions/stake/config/types.ts +0 -165
  149. package/src/chains/btc/actions/stake/factory.ts +0 -53
  150. package/src/chains/btc/actions/stake/index.ts +0 -22
  151. package/src/chains/btc/actions/stake/types.ts +0 -175
  152. package/src/chains/btc/actions/stakeAndDeploy/BtcStakeAndDeploy.ts +0 -415
  153. package/src/chains/btc/actions/stakeAndDeploy/config/evm.ts +0 -135
  154. package/src/chains/btc/actions/stakeAndDeploy/config/index.ts +0 -119
  155. package/src/chains/btc/actions/stakeAndDeploy/config/types.ts +0 -93
  156. package/src/chains/btc/actions/stakeAndDeploy/factory.ts +0 -54
  157. package/src/chains/btc/actions/stakeAndDeploy/index.ts +0 -26
  158. package/src/chains/btc/actions/stakeAndDeploy/types.ts +0 -118
  159. package/src/chains/btc/client/getCurrentBlockHeight.ts +0 -28
  160. package/src/chains/btc/client/mempool/error.ts +0 -24
  161. package/src/chains/btc/client/mempool/mempool.ts +0 -23
  162. package/src/chains/btc/index.ts +0 -71
  163. package/src/chains/evm/EvmActions.ts +0 -185
  164. package/src/chains/evm/actions/deploy/EvmDeploy.ts +0 -256
  165. package/src/chains/evm/actions/deploy/config/evm.ts +0 -80
  166. package/src/chains/evm/actions/deploy/config/index.ts +0 -8
  167. package/src/chains/evm/actions/deploy/config/types.ts +0 -43
  168. package/src/chains/evm/actions/deploy/factory.ts +0 -44
  169. package/src/chains/evm/actions/deploy/index.ts +0 -17
  170. package/src/chains/evm/actions/deploy/types.ts +0 -74
  171. package/src/chains/evm/actions/deposit/EvmDeposit.ts +0 -159
  172. package/src/chains/evm/actions/deposit/config/evm.ts +0 -100
  173. package/src/chains/evm/actions/deposit/config/index.ts +0 -8
  174. package/src/chains/evm/actions/deposit/config/types.ts +0 -39
  175. package/src/chains/evm/actions/deposit/factory.ts +0 -44
  176. package/src/chains/evm/actions/deposit/index.ts +0 -17
  177. package/src/chains/evm/actions/deposit/types.ts +0 -87
  178. package/src/chains/evm/actions/index.ts +0 -67
  179. package/src/chains/evm/actions/redeem/EvmRedeem.ts +0 -263
  180. package/src/chains/evm/actions/redeem/config/evm.ts +0 -85
  181. package/src/chains/evm/actions/redeem/config/index.ts +0 -8
  182. package/src/chains/evm/actions/redeem/config/types.ts +0 -39
  183. package/src/chains/evm/actions/redeem/factory.ts +0 -43
  184. package/src/chains/evm/actions/redeem/index.ts +0 -17
  185. package/src/chains/evm/actions/redeem/types.ts +0 -93
  186. package/src/chains/evm/actions/stake/EvmStake.ts +0 -339
  187. package/src/chains/evm/actions/stake/config/evm.ts +0 -89
  188. package/src/chains/evm/actions/stake/config/index.ts +0 -8
  189. package/src/chains/evm/actions/stake/config/types.ts +0 -89
  190. package/src/chains/evm/actions/stake/factory.ts +0 -52
  191. package/src/chains/evm/actions/stake/index.ts +0 -30
  192. package/src/chains/evm/actions/stake/types.ts +0 -104
  193. package/src/chains/evm/actions/unstake/EvmUnstake.ts +0 -258
  194. package/src/chains/evm/actions/unstake/config/evm.ts +0 -123
  195. package/src/chains/evm/actions/unstake/config/index.ts +0 -13
  196. package/src/chains/evm/actions/unstake/config/types.ts +0 -37
  197. package/src/chains/evm/actions/unstake/factory.ts +0 -44
  198. package/src/chains/evm/actions/unstake/index.ts +0 -22
  199. package/src/chains/evm/actions/unstake/types.ts +0 -87
  200. package/src/chains/evm/index.ts +0 -16
  201. package/src/chains/evm/shared/feeAuth.ts +0 -198
  202. package/src/chains/evm/shared/index.ts +0 -7
  203. package/src/chains/solana/SolanaActions.ts +0 -85
  204. package/src/chains/solana/actions/index.ts +0 -7
  205. package/src/chains/solana/actions/unstake/SolanaUnstake.ts +0 -151
  206. package/src/chains/solana/actions/unstake/config/btc.ts +0 -47
  207. package/src/chains/solana/actions/unstake/config/index.ts +0 -8
  208. package/src/chains/solana/actions/unstake/config/solana.ts +0 -47
  209. package/src/chains/solana/actions/unstake/config/types.ts +0 -35
  210. package/src/chains/solana/actions/unstake/factory.ts +0 -34
  211. package/src/chains/solana/actions/unstake/index.ts +0 -14
  212. package/src/chains/solana/actions/unstake/types.ts +0 -58
  213. package/src/chains/solana/index.ts +0 -8
  214. package/src/chains/starknet/StarknetActions.ts +0 -85
  215. package/src/chains/starknet/actions/index.ts +0 -7
  216. package/src/chains/starknet/actions/unstake/StarknetUnstake.ts +0 -128
  217. package/src/chains/starknet/actions/unstake/config/btc.ts +0 -43
  218. package/src/chains/starknet/actions/unstake/config/index.ts +0 -8
  219. package/src/chains/starknet/actions/unstake/config/starknet.ts +0 -43
  220. package/src/chains/starknet/actions/unstake/config/types.ts +0 -27
  221. package/src/chains/starknet/actions/unstake/factory.ts +0 -32
  222. package/src/chains/starknet/actions/unstake/index.ts +0 -14
  223. package/src/chains/starknet/actions/unstake/types.ts +0 -57
  224. package/src/chains/starknet/index.ts +0 -8
  225. package/src/chains/sui/SuiActions.ts +0 -82
  226. package/src/chains/sui/actions/index.ts +0 -7
  227. package/src/chains/sui/actions/unstake/SuiUnstake.ts +0 -146
  228. package/src/chains/sui/actions/unstake/config/btc.ts +0 -43
  229. package/src/chains/sui/actions/unstake/config/index.ts +0 -8
  230. package/src/chains/sui/actions/unstake/config/sui.ts +0 -43
  231. package/src/chains/sui/actions/unstake/config/types.ts +0 -27
  232. package/src/chains/sui/actions/unstake/factory.ts +0 -32
  233. package/src/chains/sui/actions/unstake/index.ts +0 -14
  234. package/src/chains/sui/actions/unstake/types.ts +0 -57
  235. package/src/chains/sui/index.ts +0 -8
  236. package/src/client/ApiNamespace.ts +0 -302
  237. package/src/client/AssetNamespace.ts +0 -112
  238. package/src/client/LombardSDK.ts +0 -212
  239. package/src/client/PartnerConfiguration.ts +0 -50
  240. package/src/client/createConfig.ts +0 -90
  241. package/src/client/createLombardSDK.ts +0 -130
  242. package/src/clients/evm-signer-adapter.ts +0 -313
  243. package/src/clients/public-client.ts +0 -49
  244. package/src/clients/rpc-url-config.ts +0 -64
  245. package/src/clients/wallet-client.ts +0 -34
  246. package/src/common/api-config.ts +0 -48
  247. package/src/common/blockchain-identifier.ts +0 -217
  248. package/src/common/chains.stories.tsx +0 -68
  249. package/src/common/chains.ts +0 -449
  250. package/src/common/constants.ts +0 -1
  251. package/src/common/contract-info.ts +0 -9
  252. package/src/common/feature-config.ts +0 -79
  253. package/src/common/fee-requirements.ts +0 -34
  254. package/src/common/parameters.ts +0 -89
  255. package/src/config/defaults.ts +0 -49
  256. package/src/config/index.ts +0 -12
  257. package/src/config/providers.ts +0 -81
  258. package/src/config/types.ts +0 -216
  259. package/src/config/validation.ts +0 -69
  260. package/src/contract-functions/approveLBTC/approveLBTC.stories.tsx +0 -79
  261. package/src/contract-functions/approveLBTC/approveLBTC.ts +0 -66
  262. package/src/contract-functions/approveLBTC/index.ts +0 -1
  263. package/src/contract-functions/approveToken/approveToken.ts +0 -126
  264. package/src/contract-functions/approveToken/index.ts +0 -1
  265. package/src/contract-functions/claimLBTC/claimLBTC.stories.tsx +0 -82
  266. package/src/contract-functions/claimLBTC/claimLBTC.ts +0 -159
  267. package/src/contract-functions/claimLBTC/index.ts +0 -1
  268. package/src/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.ts +0 -95
  269. package/src/contract-functions/claimUnstakeRedeem/index.ts +0 -1
  270. package/src/contract-functions/deposit/depositToken.stories.tsx +0 -83
  271. package/src/contract-functions/deposit/depositToken.ts +0 -214
  272. package/src/contract-functions/deposit/index.ts +0 -1
  273. package/src/contract-functions/getBasculeDepositStatus/decodeBasculeDepositStatus.ts +0 -170
  274. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +0 -62
  275. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +0 -211
  276. package/src/contract-functions/getBasculeDepositStatus/index.ts +0 -2
  277. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +0 -61
  278. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.ts +0 -193
  279. package/src/contract-functions/getLBTCMintingFee/index.ts +0 -1
  280. package/src/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.stories.tsx +0 -51
  281. package/src/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.ts +0 -40
  282. package/src/contract-functions/getLBTCTotalSupply/index.ts +0 -1
  283. package/src/contract-functions/getPermitNonce/getPermitNonce.stories.tsx +0 -56
  284. package/src/contract-functions/getPermitNonce/getPermitNonce.ts +0 -50
  285. package/src/contract-functions/getPermitNonce/index.ts +0 -1
  286. package/src/contract-functions/getShareValue/getShareValue.stories.tsx +0 -58
  287. package/src/contract-functions/getShareValue/getShareValue.ts +0 -59
  288. package/src/contract-functions/getShareValue/index.ts +0 -1
  289. package/src/contract-functions/getSharesByAddress/getSharesByAddress.stories.tsx +0 -65
  290. package/src/contract-functions/getSharesByAddress/getSharesByAddress.ts +0 -86
  291. package/src/contract-functions/getSharesByAddress/index.ts +0 -4
  292. package/src/contract-functions/getStakeAndBakeFee/__tests__/getStakeAndBakeFee.test.ts +0 -167
  293. package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.tsx +0 -180
  294. package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.tsx +0 -101
  295. package/src/contract-functions/getStakeAndBakeFee/index.ts +0 -1
  296. package/src/contract-functions/index.ts +0 -21
  297. package/src/contract-functions/signLbtcDestionationAddr/index.ts +0 -1
  298. package/src/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.ts +0 -32
  299. package/src/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.tsx +0 -64
  300. package/src/contract-functions/signNetworkFee/getTypedData.ts +0 -41
  301. package/src/contract-functions/signNetworkFee/index.ts +0 -1
  302. package/src/contract-functions/signNetworkFee/signNetworkFee.stories.tsx +0 -94
  303. package/src/contract-functions/signNetworkFee/signNetworkFee.ts +0 -106
  304. package/src/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.ts +0 -888
  305. package/src/contract-functions/signStakeAndBake/handleApprove.ts +0 -81
  306. package/src/contract-functions/signStakeAndBake/handlePermit.ts +0 -28
  307. package/src/contract-functions/signStakeAndBake/index.ts +0 -2
  308. package/src/contract-functions/signStakeAndBake/signStakeAndBake.stories.tsx +0 -202
  309. package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +0 -160
  310. package/src/contract-functions/signStakeAndBake/typed-data-builder.ts +0 -137
  311. package/src/contract-functions/signStakeAndBake/utils.ts +0 -61
  312. package/src/contract-functions/signStakeAndBake/validation.ts +0 -124
  313. package/src/contract-functions/unstakeLBTC/index.ts +0 -1
  314. package/src/contract-functions/unstakeLBTC/unstakeLBTC.stories.tsx +0 -92
  315. package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +0 -396
  316. package/src/contracts/abis/index.ts +0 -29
  317. package/src/contracts/index.ts +0 -63
  318. package/src/contracts/types.ts +0 -143
  319. package/src/contracts/utils.ts +0 -288
  320. package/src/core/assets/catalog.ts +0 -343
  321. package/src/core/assets/index.ts +0 -40
  322. package/src/core/assets/types.ts +0 -142
  323. package/src/core/assets/utils.ts +0 -287
  324. package/src/core/chains/catalog.ts +0 -396
  325. package/src/core/chains/index.ts +0 -39
  326. package/src/core/chains/types.ts +0 -193
  327. package/src/core/chains/utils.ts +0 -245
  328. package/src/core/index.ts +0 -72
  329. package/src/core/types.ts +0 -126
  330. package/src/debug-api/btc-script-to-address.ts +0 -20
  331. package/src/debug-api/btc-tx-info.ts +0 -32
  332. package/src/debug-api/evm-by-btc-address.ts +0 -26
  333. package/src/debug-api/index.ts +0 -3
  334. package/src/defi/README.md +0 -517
  335. package/src/defi/defi-registry.stories.tsx +0 -527
  336. package/src/defi/defi-registry.ts +0 -295
  337. package/src/defi/index.ts +0 -17
  338. package/src/index.ts +0 -336
  339. package/src/metrics/get-additional-rewards.ts +0 -69
  340. package/src/metrics/get-lbtc-apy.ts +0 -74
  341. package/src/metrics/get-lbtc-stats.stories.tsx +0 -57
  342. package/src/metrics/get-lbtc-stats.ts +0 -59
  343. package/src/metrics/get-positions-summary.stories.tsx +0 -58
  344. package/src/metrics/get-positions-summary.ts +0 -132
  345. package/src/modules/CapabilityRegistry.ts +0 -125
  346. package/src/modules/apiModule.ts +0 -51
  347. package/src/modules/btcModule.ts +0 -43
  348. package/src/modules/evmModule.ts +0 -48
  349. package/src/modules/index.ts +0 -60
  350. package/src/referrals/ReferralsClient.ts +0 -34
  351. package/src/referrals/index.ts +0 -1
  352. package/src/services/ApiService.ts +0 -152
  353. package/src/services/BtcService.ts +0 -29
  354. package/src/services/EvmService.ts +0 -127
  355. package/src/services/index.ts +0 -43
  356. package/src/shared/__tests__/errors.test.ts +0 -185
  357. package/src/shared/__tests__/events.test.ts +0 -120
  358. package/src/shared/__tests__/types.test.ts +0 -155
  359. package/src/shared/actions/BaseAction.ts +0 -497
  360. package/src/shared/actions/__tests__/BaseAction.test.ts +0 -292
  361. package/src/shared/actions/index.ts +0 -9
  362. package/src/shared/constants/statusConstants.ts +0 -108
  363. package/src/shared/context/ContextBuilder.ts +0 -149
  364. package/src/shared/context/index.ts +0 -8
  365. package/src/shared/context/types.ts +0 -156
  366. package/src/shared/deposits/depositStatus.ts +0 -402
  367. package/src/shared/deposits/index.ts +0 -29
  368. package/src/shared/errors.ts +0 -405
  369. package/src/shared/events.ts +0 -260
  370. package/src/shared/evm/switchChain.ts +0 -109
  371. package/src/shared/index.ts +0 -54
  372. package/src/shared/monitoring/__tests__/createEventEmitter.test.ts +0 -150
  373. package/src/shared/monitoring/createEventEmitter.ts +0 -160
  374. package/src/shared/monitoring/createProgressEmitter.ts +0 -46
  375. package/src/shared/monitoring/depositMonitor.ts +0 -211
  376. package/src/shared/monitoring/index.ts +0 -25
  377. package/src/shared/validation/index.ts +0 -411
  378. package/src/stories/arg-types.ts +0 -38
  379. package/src/stories/components/Badge.tsx +0 -27
  380. package/src/stories/components/Button/Button.css +0 -10
  381. package/src/stories/components/Button/Button.tsx +0 -52
  382. package/src/stories/components/Button/index.ts +0 -1
  383. package/src/stories/components/Card.tsx +0 -18
  384. package/src/stories/components/CodeBlock/CodeBlock.tsx +0 -27
  385. package/src/stories/components/CodeBlock/CodeBlockStyles.css +0 -3
  386. package/src/stories/components/CodeBlock/index.ts +0 -1
  387. package/src/stories/components/ConnectButton/connect-button.tsx +0 -248
  388. package/src/stories/components/ConnectButton/index.ts +0 -1
  389. package/src/stories/components/JsonPreview.tsx +0 -84
  390. package/src/stories/components/Spinner/Spinner.tsx +0 -27
  391. package/src/stories/components/Spinner/index.ts +0 -1
  392. package/src/stories/components/StatsCard.tsx +0 -30
  393. package/src/stories/components/StatusIndicator.tsx +0 -37
  394. package/src/stories/components/TreeNode.tsx +0 -47
  395. package/src/stories/components/decorators/function-type.tsx +0 -63
  396. package/src/stories/components/decorators/index.ts +0 -2
  397. package/src/stories/components/decorators/wagmi-decorator.tsx +0 -92
  398. package/src/stories/components/error-block.tsx +0 -21
  399. package/src/stories/components/index.ts +0 -11
  400. package/src/stories/constants.ts +0 -3
  401. package/src/stories/hooks/useConnection.ts +0 -63
  402. package/src/stories/hooks/useQuery.ts +0 -57
  403. package/src/tokens/__tests__/token-addresses.test.ts +0 -551
  404. package/src/tokens/abi/ASSET_ROUTER_ABI.ts +0 -1966
  405. package/src/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.ts +0 -1405
  406. package/src/tokens/abi/BTCK_ABI.ts +0 -1092
  407. package/src/tokens/abi/KATANA_BASCULE_ABI.ts +0 -653
  408. package/src/tokens/abi/LBTC_ABI.json +0 -1761
  409. package/src/tokens/abi/LBTC_ABI.ts +0 -1761
  410. package/src/tokens/abi/LBTC_BASCULE_ABI.json +0 -850
  411. package/src/tokens/abi/NATIVE_LBTC_ABI.ts +0 -1147
  412. package/src/tokens/abi/STLBTC_ABI.ts +0 -1062
  413. package/src/tokens/cross-chain-addresses.stories.tsx +0 -236
  414. package/src/tokens/denomination-utils.stories.tsx +0 -176
  415. package/src/tokens/getLbtcContractAddresses.stories.tsx +0 -158
  416. package/src/tokens/getTokenByAddress.stories.tsx +0 -172
  417. package/src/tokens/getTokenContractInfo.stories.tsx +0 -148
  418. package/src/tokens/getTokenInfo.stories.tsx +0 -133
  419. package/src/tokens/isUpgradedContract.stories.tsx +0 -124
  420. package/src/tokens/lbtc-addresses.ts +0 -18
  421. package/src/tokens/token-addresses.ts +0 -477
  422. package/src/tokens/tokens.ts +0 -249
  423. package/src/tokens/types.ts +0 -80
  424. package/src/utils/array.ts +0 -31
  425. package/src/utils/block.ts +0 -23
  426. package/src/utils/chain.ts +0 -152
  427. package/src/utils/consoleLogger.ts +0 -140
  428. package/src/utils/ensureNotSanctionedAddress.ts +0 -11
  429. package/src/utils/env.ts +0 -20
  430. package/src/utils/err.ts +0 -83
  431. package/src/utils/evmAccount.ts +0 -47
  432. package/src/utils/gas.ts +0 -36
  433. package/src/utils/hex.ts +0 -9
  434. package/src/utils/http.ts +0 -224
  435. package/src/utils/numbers.ts +0 -37
  436. package/src/utils/pagination.ts +0 -70
  437. package/src/utils/satoshi.ts +0 -41
  438. package/src/utils/time.ts +0 -12
  439. package/src/utils/transaction-executor.ts +0 -299
  440. package/src/vaults/abi/SILO_VAULT_SPENDER_ABI.json +0 -793
  441. package/src/vaults/abi/VEDA_VAULT_ABI.json +0 -452
  442. package/src/vaults/abi/VEDA_VAULT_ACCOUNTANT_ABI.json +0 -591
  443. package/src/vaults/abi/VEDA_VAULT_BASE_ASSET_ABI.json +0 -296
  444. package/src/vaults/abi/VEDA_VAULT_BORING_WITHDRAW_QUEUE_ABI.json +0 -502
  445. package/src/vaults/abi/VEDA_VAULT_LENS_ABI.json +0 -175
  446. package/src/vaults/abi/VEDA_VAULT_SPENDER_ABI.json +0 -408
  447. package/src/vaults/abi/VEDA_VAULT_TELLER_ABI.json +0 -700
  448. package/src/vaults/abi/index.ts +0 -4
  449. package/src/vaults/index.ts +0 -46
  450. package/src/vaults/lib/config.ts +0 -184
  451. package/src/vaults/lib/metrics/get-vault-apy.stories.tsx +0 -58
  452. package/src/vaults/lib/metrics/get-vault-apy.ts +0 -176
  453. package/src/vaults/lib/metrics/get-vault-points.stories.tsx +0 -60
  454. package/src/vaults/lib/metrics/get-vault-points.ts +0 -74
  455. package/src/vaults/lib/metrics/get-vault-tvl.stories.tsx +0 -58
  456. package/src/vaults/lib/metrics/get-vault-tvl.ts +0 -121
  457. package/src/vaults/lib/ops/cancel-withdraw.stories.tsx +0 -80
  458. package/src/vaults/lib/ops/deposit.stories.tsx +0 -82
  459. package/src/vaults/lib/ops/deposit.ts +0 -152
  460. package/src/vaults/lib/ops/get-vault-deposits.stories.tsx +0 -65
  461. package/src/vaults/lib/ops/get-vault-deposits.ts +0 -209
  462. package/src/vaults/lib/ops/get-vault-withdrawals.stories.tsx +0 -67
  463. package/src/vaults/lib/ops/get-vault-withdrawals.ts +0 -349
  464. package/src/vaults/lib/ops/withdraw.stories.tsx +0 -82
  465. package/src/vaults/lib/ops/withdraw.ts +0 -225
  466. package/src/version.ts +0 -56
  467. package/src/vite-env.d.ts +0 -1
@@ -1,1966 +0,0 @@
1
- export default [
2
- {
3
- inputs: [],
4
- stateMutability: 'nonpayable',
5
- type: 'constructor',
6
- },
7
- {
8
- inputs: [],
9
- name: 'AccessControlBadConfirmation',
10
- type: 'error',
11
- },
12
- {
13
- inputs: [
14
- {
15
- internalType: 'uint48',
16
- name: 'schedule',
17
- type: 'uint48',
18
- },
19
- ],
20
- name: 'AccessControlEnforcedDefaultAdminDelay',
21
- type: 'error',
22
- },
23
- {
24
- inputs: [],
25
- name: 'AccessControlEnforcedDefaultAdminRules',
26
- type: 'error',
27
- },
28
- {
29
- inputs: [
30
- {
31
- internalType: 'address',
32
- name: 'defaultAdmin',
33
- type: 'address',
34
- },
35
- ],
36
- name: 'AccessControlInvalidDefaultAdmin',
37
- type: 'error',
38
- },
39
- {
40
- inputs: [
41
- {
42
- internalType: 'address',
43
- name: 'account',
44
- type: 'address',
45
- },
46
- {
47
- internalType: 'bytes32',
48
- name: 'neededRole',
49
- type: 'bytes32',
50
- },
51
- ],
52
- name: 'AccessControlUnauthorizedAccount',
53
- type: 'error',
54
- },
55
- {
56
- inputs: [
57
- {
58
- internalType: 'uint256',
59
- name: 'dustLimit',
60
- type: 'uint256',
61
- },
62
- ],
63
- name: 'AmountBelowMinLimit',
64
- type: 'error',
65
- },
66
- {
67
- inputs: [
68
- {
69
- internalType: 'uint256',
70
- name: 'fee',
71
- type: 'uint256',
72
- },
73
- ],
74
- name: 'AmountLessThanCommission',
75
- type: 'error',
76
- },
77
- {
78
- inputs: [],
79
- name: 'AssertRouter_UnauthorizedAccount',
80
- type: 'error',
81
- },
82
- {
83
- inputs: [],
84
- name: 'AssertRouter_WrongRedeemDestinationChain',
85
- type: 'error',
86
- },
87
- {
88
- inputs: [],
89
- name: 'AssertRouter_WrongRouteType',
90
- type: 'error',
91
- },
92
- {
93
- inputs: [],
94
- name: 'AssertRouter_WrongToken',
95
- type: 'error',
96
- },
97
- {
98
- inputs: [],
99
- name: 'AssetOperation_DepositNotAllowed',
100
- type: 'error',
101
- },
102
- {
103
- inputs: [],
104
- name: 'AssetOperation_RedeemNotAllowed',
105
- type: 'error',
106
- },
107
- {
108
- inputs: [],
109
- name: 'AssetRouter_FeeGreaterThanAmount',
110
- type: 'error',
111
- },
112
- {
113
- inputs: [],
114
- name: 'AssetRouter_MailboxExpected',
115
- type: 'error',
116
- },
117
- {
118
- inputs: [],
119
- name: 'AssetRouter_MintProcessingError',
120
- type: 'error',
121
- },
122
- {
123
- inputs: [],
124
- name: 'AssetRouter_PayloadAlreadyUsed',
125
- type: 'error',
126
- },
127
- {
128
- inputs: [],
129
- name: 'AssetRouter_Unauthorized',
130
- type: 'error',
131
- },
132
- {
133
- inputs: [],
134
- name: 'AssetRouter_WrongNativeToken',
135
- type: 'error',
136
- },
137
- {
138
- inputs: [],
139
- name: 'AssetRouter_WrongOperation',
140
- type: 'error',
141
- },
142
- {
143
- inputs: [],
144
- name: 'AssetRouter_WrongSender',
145
- type: 'error',
146
- },
147
- {
148
- inputs: [],
149
- name: 'AssetRouter_ZeroAddress',
150
- type: 'error',
151
- },
152
- {
153
- inputs: [],
154
- name: 'AssetRouter_ZeroMailbox',
155
- type: 'error',
156
- },
157
- {
158
- inputs: [
159
- {
160
- internalType: 'uint256',
161
- name: 'expected',
162
- type: 'uint256',
163
- },
164
- {
165
- internalType: 'uint256',
166
- name: 'actual',
167
- type: 'uint256',
168
- },
169
- ],
170
- name: 'Assets_InvalidPayloadSize',
171
- type: 'error',
172
- },
173
- {
174
- inputs: [
175
- {
176
- internalType: 'bytes4',
177
- name: 'expected',
178
- type: 'bytes4',
179
- },
180
- {
181
- internalType: 'bytes4',
182
- name: 'actual',
183
- type: 'bytes4',
184
- },
185
- ],
186
- name: 'Assets_InvalidSelector',
187
- type: 'error',
188
- },
189
- {
190
- inputs: [],
191
- name: 'Assets_ZeroAmount',
192
- type: 'error',
193
- },
194
- {
195
- inputs: [],
196
- name: 'Assets_ZeroRecipient',
197
- type: 'error',
198
- },
199
- {
200
- inputs: [],
201
- name: 'Assets_ZeroToToken',
202
- type: 'error',
203
- },
204
- {
205
- inputs: [],
206
- name: 'ECDSAInvalidSignature',
207
- type: 'error',
208
- },
209
- {
210
- inputs: [
211
- {
212
- internalType: 'uint256',
213
- name: 'length',
214
- type: 'uint256',
215
- },
216
- ],
217
- name: 'ECDSAInvalidSignatureLength',
218
- type: 'error',
219
- },
220
- {
221
- inputs: [
222
- {
223
- internalType: 'bytes32',
224
- name: 's',
225
- type: 'bytes32',
226
- },
227
- ],
228
- name: 'ECDSAInvalidSignatureS',
229
- type: 'error',
230
- },
231
- {
232
- inputs: [],
233
- name: 'GMP_InvalidAddess',
234
- type: 'error',
235
- },
236
- {
237
- inputs: [
238
- {
239
- internalType: 'bytes4',
240
- name: 'expected',
241
- type: 'bytes4',
242
- },
243
- {
244
- internalType: 'bytes4',
245
- name: 'actual',
246
- type: 'bytes4',
247
- },
248
- ],
249
- name: 'InvalidAction',
250
- type: 'error',
251
- },
252
- {
253
- inputs: [],
254
- name: 'InvalidFeeApprovalSignature',
255
- type: 'error',
256
- },
257
- {
258
- inputs: [],
259
- name: 'InvalidInitialization',
260
- type: 'error',
261
- },
262
- {
263
- inputs: [
264
- {
265
- internalType: 'uint256',
266
- name: 'expected',
267
- type: 'uint256',
268
- },
269
- {
270
- internalType: 'uint256',
271
- name: 'actual',
272
- type: 'uint256',
273
- },
274
- ],
275
- name: 'InvalidPayloadSize',
276
- type: 'error',
277
- },
278
- {
279
- inputs: [
280
- {
281
- internalType: 'uint256',
282
- name: 'a',
283
- type: 'uint256',
284
- },
285
- {
286
- internalType: 'uint256',
287
- name: 'b',
288
- type: 'uint256',
289
- },
290
- ],
291
- name: 'NonEqualLength',
292
- type: 'error',
293
- },
294
- {
295
- inputs: [],
296
- name: 'NotInitializing',
297
- type: 'error',
298
- },
299
- {
300
- inputs: [],
301
- name: 'NotStakingToken',
302
- type: 'error',
303
- },
304
- {
305
- inputs: [],
306
- name: 'ReentrancyGuardReentrantCall',
307
- type: 'error',
308
- },
309
- {
310
- inputs: [
311
- {
312
- internalType: 'uint8',
313
- name: 'bits',
314
- type: 'uint8',
315
- },
316
- {
317
- internalType: 'uint256',
318
- name: 'value',
319
- type: 'uint256',
320
- },
321
- ],
322
- name: 'SafeCastOverflowedUintDowncast',
323
- type: 'error',
324
- },
325
- {
326
- inputs: [],
327
- name: 'ScriptPubkeyUnsupported',
328
- type: 'error',
329
- },
330
- {
331
- inputs: [
332
- {
333
- internalType: 'uint256',
334
- name: 'expiry',
335
- type: 'uint256',
336
- },
337
- ],
338
- name: 'UserSignatureExpired',
339
- type: 'error',
340
- },
341
- {
342
- inputs: [],
343
- name: 'ZeroFee',
344
- type: 'error',
345
- },
346
- {
347
- anonymous: false,
348
- inputs: [
349
- {
350
- indexed: true,
351
- internalType: 'address',
352
- name: 'prevVal',
353
- type: 'address',
354
- },
355
- {
356
- indexed: true,
357
- internalType: 'address',
358
- name: 'newVal',
359
- type: 'address',
360
- },
361
- ],
362
- name: 'AssetRouter_BasculeChanged',
363
- type: 'event',
364
- },
365
- {
366
- anonymous: false,
367
- inputs: [
368
- {
369
- indexed: true,
370
- internalType: 'bytes32',
371
- name: 'payloadHash',
372
- type: 'bytes32',
373
- },
374
- {
375
- indexed: false,
376
- internalType: 'string',
377
- name: 'reason',
378
- type: 'string',
379
- },
380
- {
381
- indexed: false,
382
- internalType: 'bytes',
383
- name: 'customError',
384
- type: 'bytes',
385
- },
386
- ],
387
- name: 'AssetRouter_BatchMintError',
388
- type: 'event',
389
- },
390
- {
391
- anonymous: false,
392
- inputs: [
393
- {
394
- indexed: true,
395
- internalType: 'uint256',
396
- name: 'oldRate',
397
- type: 'uint256',
398
- },
399
- {
400
- indexed: true,
401
- internalType: 'uint256',
402
- name: 'newRate',
403
- type: 'uint256',
404
- },
405
- ],
406
- name: 'AssetRouter_DustFeeRateChanged',
407
- type: 'event',
408
- },
409
- {
410
- anonymous: false,
411
- inputs: [
412
- {
413
- indexed: true,
414
- internalType: 'uint256',
415
- name: 'fee',
416
- type: 'uint256',
417
- },
418
- {
419
- indexed: false,
420
- internalType: 'bytes',
421
- name: 'userSignature',
422
- type: 'bytes',
423
- },
424
- ],
425
- name: 'AssetRouter_FeeCharged',
426
- type: 'event',
427
- },
428
- {
429
- anonymous: false,
430
- inputs: [
431
- {
432
- indexed: true,
433
- internalType: 'address',
434
- name: 'prevVal',
435
- type: 'address',
436
- },
437
- {
438
- indexed: true,
439
- internalType: 'address',
440
- name: 'newVal',
441
- type: 'address',
442
- },
443
- ],
444
- name: 'AssetRouter_MailboxChanged',
445
- type: 'event',
446
- },
447
- {
448
- anonymous: false,
449
- inputs: [
450
- {
451
- indexed: true,
452
- internalType: 'uint256',
453
- name: 'oldFee',
454
- type: 'uint256',
455
- },
456
- {
457
- indexed: true,
458
- internalType: 'uint256',
459
- name: 'newFee',
460
- type: 'uint256',
461
- },
462
- ],
463
- name: 'AssetRouter_MintFeeChanged',
464
- type: 'event',
465
- },
466
- {
467
- anonymous: false,
468
- inputs: [
469
- {
470
- indexed: true,
471
- internalType: 'address',
472
- name: 'oldAddress',
473
- type: 'address',
474
- },
475
- {
476
- indexed: true,
477
- internalType: 'address',
478
- name: 'newAddress',
479
- type: 'address',
480
- },
481
- ],
482
- name: 'AssetRouter_NativeTokenChanged',
483
- type: 'event',
484
- },
485
- {
486
- anonymous: false,
487
- inputs: [
488
- {
489
- indexed: true,
490
- internalType: 'address',
491
- name: 'prevVal',
492
- type: 'address',
493
- },
494
- {
495
- indexed: true,
496
- internalType: 'address',
497
- name: 'newVal',
498
- type: 'address',
499
- },
500
- ],
501
- name: 'AssetRouter_OracleChanged',
502
- type: 'event',
503
- },
504
- {
505
- anonymous: false,
506
- inputs: [
507
- {
508
- indexed: true,
509
- internalType: 'address',
510
- name: 'token',
511
- type: 'address',
512
- },
513
- {
514
- indexed: false,
515
- internalType: 'bool',
516
- name: 'enabled',
517
- type: 'bool',
518
- },
519
- ],
520
- name: 'AssetRouter_RedeemEnabled',
521
- type: 'event',
522
- },
523
- {
524
- anonymous: false,
525
- inputs: [
526
- {
527
- indexed: true,
528
- internalType: 'address',
529
- name: 'token',
530
- type: 'address',
531
- },
532
- {
533
- indexed: false,
534
- internalType: 'uint256',
535
- name: 'oldFee',
536
- type: 'uint256',
537
- },
538
- {
539
- indexed: false,
540
- internalType: 'uint256',
541
- name: 'newFee',
542
- type: 'uint256',
543
- },
544
- ],
545
- name: 'AssetRouter_RedeemFeeChanged',
546
- type: 'event',
547
- },
548
- {
549
- anonymous: false,
550
- inputs: [
551
- {
552
- indexed: true,
553
- internalType: 'address',
554
- name: 'token',
555
- type: 'address',
556
- },
557
- {
558
- indexed: false,
559
- internalType: 'uint256',
560
- name: 'oldMinAmount',
561
- type: 'uint256',
562
- },
563
- {
564
- indexed: false,
565
- internalType: 'uint256',
566
- name: 'newMinAmount',
567
- type: 'uint256',
568
- },
569
- ],
570
- name: 'AssetRouter_RedeemForBtcMinAmountChanged',
571
- type: 'event',
572
- },
573
- {
574
- anonymous: false,
575
- inputs: [
576
- {
577
- indexed: true,
578
- internalType: 'bytes32',
579
- name: 'fromToken',
580
- type: 'bytes32',
581
- },
582
- {
583
- indexed: true,
584
- internalType: 'bytes32',
585
- name: 'fromChainId',
586
- type: 'bytes32',
587
- },
588
- {
589
- indexed: true,
590
- internalType: 'bytes32',
591
- name: 'toToken',
592
- type: 'bytes32',
593
- },
594
- {
595
- indexed: false,
596
- internalType: 'bytes32',
597
- name: 'toChainId',
598
- type: 'bytes32',
599
- },
600
- ],
601
- name: 'AssetRouter_RouteRemoved',
602
- type: 'event',
603
- },
604
- {
605
- anonymous: false,
606
- inputs: [
607
- {
608
- indexed: true,
609
- internalType: 'bytes32',
610
- name: 'fromToken',
611
- type: 'bytes32',
612
- },
613
- {
614
- indexed: true,
615
- internalType: 'bytes32',
616
- name: 'fromChainId',
617
- type: 'bytes32',
618
- },
619
- {
620
- indexed: true,
621
- internalType: 'bytes32',
622
- name: 'toToken',
623
- type: 'bytes32',
624
- },
625
- {
626
- indexed: false,
627
- internalType: 'bytes32',
628
- name: 'toChainId',
629
- type: 'bytes32',
630
- },
631
- {
632
- indexed: false,
633
- internalType: 'enum IAssetRouter.RouteType',
634
- name: 'routeType',
635
- type: 'uint8',
636
- },
637
- ],
638
- name: 'AssetRouter_RouteSet',
639
- type: 'event',
640
- },
641
- {
642
- anonymous: false,
643
- inputs: [
644
- {
645
- indexed: true,
646
- internalType: 'uint256',
647
- name: 'oldCommission',
648
- type: 'uint256',
649
- },
650
- {
651
- indexed: true,
652
- internalType: 'uint256',
653
- name: 'newCommission',
654
- type: 'uint256',
655
- },
656
- ],
657
- name: 'AssetRouter_ToNativeCommissionChanged',
658
- type: 'event',
659
- },
660
- {
661
- anonymous: false,
662
- inputs: [],
663
- name: 'DefaultAdminDelayChangeCanceled',
664
- type: 'event',
665
- },
666
- {
667
- anonymous: false,
668
- inputs: [
669
- {
670
- indexed: false,
671
- internalType: 'uint48',
672
- name: 'newDelay',
673
- type: 'uint48',
674
- },
675
- {
676
- indexed: false,
677
- internalType: 'uint48',
678
- name: 'effectSchedule',
679
- type: 'uint48',
680
- },
681
- ],
682
- name: 'DefaultAdminDelayChangeScheduled',
683
- type: 'event',
684
- },
685
- {
686
- anonymous: false,
687
- inputs: [],
688
- name: 'DefaultAdminTransferCanceled',
689
- type: 'event',
690
- },
691
- {
692
- anonymous: false,
693
- inputs: [
694
- {
695
- indexed: true,
696
- internalType: 'address',
697
- name: 'newAdmin',
698
- type: 'address',
699
- },
700
- {
701
- indexed: false,
702
- internalType: 'uint48',
703
- name: 'acceptSchedule',
704
- type: 'uint48',
705
- },
706
- ],
707
- name: 'DefaultAdminTransferScheduled',
708
- type: 'event',
709
- },
710
- {
711
- anonymous: false,
712
- inputs: [
713
- {
714
- indexed: false,
715
- internalType: 'uint64',
716
- name: 'version',
717
- type: 'uint64',
718
- },
719
- ],
720
- name: 'Initialized',
721
- type: 'event',
722
- },
723
- {
724
- anonymous: false,
725
- inputs: [
726
- {
727
- indexed: true,
728
- internalType: 'bytes32',
729
- name: 'role',
730
- type: 'bytes32',
731
- },
732
- {
733
- indexed: true,
734
- internalType: 'bytes32',
735
- name: 'previousAdminRole',
736
- type: 'bytes32',
737
- },
738
- {
739
- indexed: true,
740
- internalType: 'bytes32',
741
- name: 'newAdminRole',
742
- type: 'bytes32',
743
- },
744
- ],
745
- name: 'RoleAdminChanged',
746
- type: 'event',
747
- },
748
- {
749
- anonymous: false,
750
- inputs: [
751
- {
752
- indexed: true,
753
- internalType: 'bytes32',
754
- name: 'role',
755
- type: 'bytes32',
756
- },
757
- {
758
- indexed: true,
759
- internalType: 'address',
760
- name: 'account',
761
- type: 'address',
762
- },
763
- {
764
- indexed: true,
765
- internalType: 'address',
766
- name: 'sender',
767
- type: 'address',
768
- },
769
- ],
770
- name: 'RoleGranted',
771
- type: 'event',
772
- },
773
- {
774
- anonymous: false,
775
- inputs: [
776
- {
777
- indexed: true,
778
- internalType: 'bytes32',
779
- name: 'role',
780
- type: 'bytes32',
781
- },
782
- {
783
- indexed: true,
784
- internalType: 'address',
785
- name: 'account',
786
- type: 'address',
787
- },
788
- {
789
- indexed: true,
790
- internalType: 'address',
791
- name: 'sender',
792
- type: 'address',
793
- },
794
- ],
795
- name: 'RoleRevoked',
796
- type: 'event',
797
- },
798
- {
799
- inputs: [],
800
- name: 'CALLER_ROLE',
801
- outputs: [
802
- {
803
- internalType: 'bytes32',
804
- name: '',
805
- type: 'bytes32',
806
- },
807
- ],
808
- stateMutability: 'view',
809
- type: 'function',
810
- },
811
- {
812
- inputs: [],
813
- name: 'CLAIMER_ROLE',
814
- outputs: [
815
- {
816
- internalType: 'bytes32',
817
- name: '',
818
- type: 'bytes32',
819
- },
820
- ],
821
- stateMutability: 'view',
822
- type: 'function',
823
- },
824
- {
825
- inputs: [],
826
- name: 'DEFAULT_ADMIN_ROLE',
827
- outputs: [
828
- {
829
- internalType: 'bytes32',
830
- name: '',
831
- type: 'bytes32',
832
- },
833
- ],
834
- stateMutability: 'view',
835
- type: 'function',
836
- },
837
- {
838
- inputs: [],
839
- name: 'OPERATOR_ROLE',
840
- outputs: [
841
- {
842
- internalType: 'bytes32',
843
- name: '',
844
- type: 'bytes32',
845
- },
846
- ],
847
- stateMutability: 'view',
848
- type: 'function',
849
- },
850
- {
851
- inputs: [],
852
- name: 'acceptDefaultAdminTransfer',
853
- outputs: [],
854
- stateMutability: 'nonpayable',
855
- type: 'function',
856
- },
857
- {
858
- inputs: [],
859
- name: 'bascule',
860
- outputs: [
861
- {
862
- internalType: 'contract IBascule',
863
- name: '',
864
- type: 'address',
865
- },
866
- ],
867
- stateMutability: 'view',
868
- type: 'function',
869
- },
870
- {
871
- inputs: [
872
- {
873
- internalType: 'bytes[]',
874
- name: 'payload',
875
- type: 'bytes[]',
876
- },
877
- {
878
- internalType: 'bytes[]',
879
- name: 'proof',
880
- type: 'bytes[]',
881
- },
882
- ],
883
- name: 'batchMint',
884
- outputs: [],
885
- stateMutability: 'nonpayable',
886
- type: 'function',
887
- },
888
- {
889
- inputs: [
890
- {
891
- internalType: 'bytes[]',
892
- name: 'mintPayload',
893
- type: 'bytes[]',
894
- },
895
- {
896
- internalType: 'bytes[]',
897
- name: 'proof',
898
- type: 'bytes[]',
899
- },
900
- {
901
- internalType: 'bytes[]',
902
- name: 'feePayload',
903
- type: 'bytes[]',
904
- },
905
- {
906
- internalType: 'bytes[]',
907
- name: 'userSignature',
908
- type: 'bytes[]',
909
- },
910
- ],
911
- name: 'batchMintWithFee',
912
- outputs: [],
913
- stateMutability: 'nonpayable',
914
- type: 'function',
915
- },
916
- {
917
- inputs: [
918
- {
919
- internalType: 'address',
920
- name: 'newAdmin',
921
- type: 'address',
922
- },
923
- ],
924
- name: 'beginDefaultAdminTransfer',
925
- outputs: [],
926
- stateMutability: 'nonpayable',
927
- type: 'function',
928
- },
929
- {
930
- inputs: [],
931
- name: 'bitcoinChainId',
932
- outputs: [
933
- {
934
- internalType: 'bytes32',
935
- name: '',
936
- type: 'bytes32',
937
- },
938
- ],
939
- stateMutability: 'view',
940
- type: 'function',
941
- },
942
- {
943
- inputs: [
944
- {
945
- internalType: 'address',
946
- name: 'token',
947
- type: 'address',
948
- },
949
- {
950
- internalType: 'bytes',
951
- name: 'scriptPubkey',
952
- type: 'bytes',
953
- },
954
- {
955
- internalType: 'uint256',
956
- name: 'amount',
957
- type: 'uint256',
958
- },
959
- ],
960
- name: 'calcUnstakeRequestAmount',
961
- outputs: [
962
- {
963
- internalType: 'uint256',
964
- name: 'amountAfterFee',
965
- type: 'uint256',
966
- },
967
- {
968
- internalType: 'bool',
969
- name: 'isAboveMinLimit',
970
- type: 'bool',
971
- },
972
- ],
973
- stateMutability: 'view',
974
- type: 'function',
975
- },
976
- {
977
- inputs: [],
978
- name: 'cancelDefaultAdminTransfer',
979
- outputs: [],
980
- stateMutability: 'nonpayable',
981
- type: 'function',
982
- },
983
- {
984
- inputs: [
985
- {
986
- internalType: 'address',
987
- name: 'newVal',
988
- type: 'address',
989
- },
990
- ],
991
- name: 'changeBascule',
992
- outputs: [],
993
- stateMutability: 'nonpayable',
994
- type: 'function',
995
- },
996
- {
997
- inputs: [
998
- {
999
- internalType: 'uint48',
1000
- name: 'newDelay',
1001
- type: 'uint48',
1002
- },
1003
- ],
1004
- name: 'changeDefaultAdminDelay',
1005
- outputs: [],
1006
- stateMutability: 'nonpayable',
1007
- type: 'function',
1008
- },
1009
- {
1010
- inputs: [
1011
- {
1012
- internalType: 'address',
1013
- name: 'newVal',
1014
- type: 'address',
1015
- },
1016
- ],
1017
- name: 'changeMailbox',
1018
- outputs: [],
1019
- stateMutability: 'nonpayable',
1020
- type: 'function',
1021
- },
1022
- {
1023
- inputs: [
1024
- {
1025
- internalType: 'address',
1026
- name: 'newValue',
1027
- type: 'address',
1028
- },
1029
- ],
1030
- name: 'changeNativeToken',
1031
- outputs: [],
1032
- stateMutability: 'nonpayable',
1033
- type: 'function',
1034
- },
1035
- {
1036
- inputs: [
1037
- {
1038
- internalType: 'address',
1039
- name: 'token',
1040
- type: 'address',
1041
- },
1042
- {
1043
- internalType: 'address',
1044
- name: 'newVal',
1045
- type: 'address',
1046
- },
1047
- ],
1048
- name: 'changeOracle',
1049
- outputs: [],
1050
- stateMutability: 'nonpayable',
1051
- type: 'function',
1052
- },
1053
- {
1054
- inputs: [
1055
- {
1056
- internalType: 'address',
1057
- name: 'token',
1058
- type: 'address',
1059
- },
1060
- {
1061
- internalType: 'uint256',
1062
- name: 'fee',
1063
- type: 'uint256',
1064
- },
1065
- ],
1066
- name: 'changeRedeemFee',
1067
- outputs: [],
1068
- stateMutability: 'nonpayable',
1069
- type: 'function',
1070
- },
1071
- {
1072
- inputs: [
1073
- {
1074
- internalType: 'uint256',
1075
- name: 'fee',
1076
- type: 'uint256',
1077
- },
1078
- ],
1079
- name: 'changeRedeemFee',
1080
- outputs: [],
1081
- stateMutability: 'nonpayable',
1082
- type: 'function',
1083
- },
1084
- {
1085
- inputs: [
1086
- {
1087
- internalType: 'address',
1088
- name: 'token',
1089
- type: 'address',
1090
- },
1091
- {
1092
- internalType: 'uint256',
1093
- name: 'minAmount',
1094
- type: 'uint256',
1095
- },
1096
- ],
1097
- name: 'changeRedeemForBtcMinAmount',
1098
- outputs: [],
1099
- stateMutability: 'nonpayable',
1100
- type: 'function',
1101
- },
1102
- {
1103
- inputs: [
1104
- {
1105
- internalType: 'uint256',
1106
- name: 'minAmount',
1107
- type: 'uint256',
1108
- },
1109
- ],
1110
- name: 'changeRedeemForBtcMinAmount',
1111
- outputs: [],
1112
- stateMutability: 'nonpayable',
1113
- type: 'function',
1114
- },
1115
- {
1116
- inputs: [
1117
- {
1118
- internalType: 'address',
1119
- name: 'token',
1120
- type: 'address',
1121
- },
1122
- {
1123
- internalType: 'uint64',
1124
- name: 'newValue',
1125
- type: 'uint64',
1126
- },
1127
- ],
1128
- name: 'changeToNativeCommission',
1129
- outputs: [],
1130
- stateMutability: 'nonpayable',
1131
- type: 'function',
1132
- },
1133
- {
1134
- inputs: [
1135
- {
1136
- internalType: 'address',
1137
- name: 'token',
1138
- type: 'address',
1139
- },
1140
- {
1141
- internalType: 'uint256',
1142
- name: 'redeemFee',
1143
- type: 'uint256',
1144
- },
1145
- {
1146
- internalType: 'uint256',
1147
- name: 'redeemForBtcMinAmount',
1148
- type: 'uint256',
1149
- },
1150
- {
1151
- internalType: 'bool',
1152
- name: 'redeemEnabled',
1153
- type: 'bool',
1154
- },
1155
- ],
1156
- name: 'changeTokenConfig',
1157
- outputs: [],
1158
- stateMutability: 'nonpayable',
1159
- type: 'function',
1160
- },
1161
- {
1162
- inputs: [
1163
- {
1164
- internalType: 'address',
1165
- name: 'token',
1166
- type: 'address',
1167
- },
1168
- {
1169
- internalType: 'uint256',
1170
- name: 'redeemFee',
1171
- type: 'uint256',
1172
- },
1173
- {
1174
- internalType: 'uint256',
1175
- name: 'redeemForBtcMinAmount',
1176
- type: 'uint256',
1177
- },
1178
- {
1179
- internalType: 'address',
1180
- name: 'oracle_',
1181
- type: 'address',
1182
- },
1183
- {
1184
- internalType: 'uint256',
1185
- name: 'maximumMintCommission_',
1186
- type: 'uint256',
1187
- },
1188
- {
1189
- internalType: 'uint64',
1190
- name: 'toNativeCommission_',
1191
- type: 'uint64',
1192
- },
1193
- ],
1194
- name: 'changeTokenConfigExt',
1195
- outputs: [],
1196
- stateMutability: 'nonpayable',
1197
- type: 'function',
1198
- },
1199
- {
1200
- inputs: [],
1201
- name: 'defaultAdmin',
1202
- outputs: [
1203
- {
1204
- internalType: 'address',
1205
- name: '',
1206
- type: 'address',
1207
- },
1208
- ],
1209
- stateMutability: 'view',
1210
- type: 'function',
1211
- },
1212
- {
1213
- inputs: [],
1214
- name: 'defaultAdminDelay',
1215
- outputs: [
1216
- {
1217
- internalType: 'uint48',
1218
- name: '',
1219
- type: 'uint48',
1220
- },
1221
- ],
1222
- stateMutability: 'view',
1223
- type: 'function',
1224
- },
1225
- {
1226
- inputs: [],
1227
- name: 'defaultAdminDelayIncreaseWait',
1228
- outputs: [
1229
- {
1230
- internalType: 'uint48',
1231
- name: '',
1232
- type: 'uint48',
1233
- },
1234
- ],
1235
- stateMutability: 'view',
1236
- type: 'function',
1237
- },
1238
- {
1239
- inputs: [
1240
- {
1241
- internalType: 'address',
1242
- name: 'fromAddress',
1243
- type: 'address',
1244
- },
1245
- {
1246
- internalType: 'address',
1247
- name: 'toToken',
1248
- type: 'address',
1249
- },
1250
- {
1251
- internalType: 'uint256',
1252
- name: 'amount',
1253
- type: 'uint256',
1254
- },
1255
- ],
1256
- name: 'deposit',
1257
- outputs: [],
1258
- stateMutability: 'nonpayable',
1259
- type: 'function',
1260
- },
1261
- {
1262
- inputs: [
1263
- {
1264
- internalType: 'bytes32',
1265
- name: 'tolChainId',
1266
- type: 'bytes32',
1267
- },
1268
- {
1269
- internalType: 'bytes32',
1270
- name: 'toToken',
1271
- type: 'bytes32',
1272
- },
1273
- {
1274
- internalType: 'bytes32',
1275
- name: 'recipient',
1276
- type: 'bytes32',
1277
- },
1278
- {
1279
- internalType: 'uint256',
1280
- name: 'amount',
1281
- type: 'uint256',
1282
- },
1283
- ],
1284
- name: 'deposit',
1285
- outputs: [],
1286
- stateMutability: 'nonpayable',
1287
- type: 'function',
1288
- },
1289
- {
1290
- inputs: [
1291
- {
1292
- internalType: 'address',
1293
- name: 'token',
1294
- type: 'address',
1295
- },
1296
- ],
1297
- name: 'getRate',
1298
- outputs: [
1299
- {
1300
- internalType: 'uint256',
1301
- name: '',
1302
- type: 'uint256',
1303
- },
1304
- ],
1305
- stateMutability: 'view',
1306
- type: 'function',
1307
- },
1308
- {
1309
- inputs: [
1310
- {
1311
- internalType: 'bytes32',
1312
- name: 'role',
1313
- type: 'bytes32',
1314
- },
1315
- ],
1316
- name: 'getRoleAdmin',
1317
- outputs: [
1318
- {
1319
- internalType: 'bytes32',
1320
- name: '',
1321
- type: 'bytes32',
1322
- },
1323
- ],
1324
- stateMutability: 'view',
1325
- type: 'function',
1326
- },
1327
- {
1328
- inputs: [
1329
- {
1330
- internalType: 'bytes32',
1331
- name: 'fromToken',
1332
- type: 'bytes32',
1333
- },
1334
- {
1335
- internalType: 'bytes32',
1336
- name: 'fromChainId',
1337
- type: 'bytes32',
1338
- },
1339
- {
1340
- internalType: 'bytes32',
1341
- name: 'toChainId',
1342
- type: 'bytes32',
1343
- },
1344
- {
1345
- internalType: 'bytes32',
1346
- name: 'toToken',
1347
- type: 'bytes32',
1348
- },
1349
- ],
1350
- name: 'getRouteType',
1351
- outputs: [
1352
- {
1353
- internalType: 'enum IAssetRouter.RouteType',
1354
- name: '',
1355
- type: 'uint8',
1356
- },
1357
- ],
1358
- stateMutability: 'view',
1359
- type: 'function',
1360
- },
1361
- {
1362
- inputs: [
1363
- {
1364
- internalType: 'bytes32',
1365
- name: 'role',
1366
- type: 'bytes32',
1367
- },
1368
- {
1369
- internalType: 'address',
1370
- name: 'account',
1371
- type: 'address',
1372
- },
1373
- ],
1374
- name: 'grantRole',
1375
- outputs: [],
1376
- stateMutability: 'nonpayable',
1377
- type: 'function',
1378
- },
1379
- {
1380
- inputs: [
1381
- {
1382
- components: [
1383
- {
1384
- internalType: 'bytes32',
1385
- name: 'id',
1386
- type: 'bytes32',
1387
- },
1388
- {
1389
- internalType: 'bytes32',
1390
- name: 'msgPath',
1391
- type: 'bytes32',
1392
- },
1393
- {
1394
- internalType: 'uint256',
1395
- name: 'msgNonce',
1396
- type: 'uint256',
1397
- },
1398
- {
1399
- internalType: 'bytes32',
1400
- name: 'msgSender',
1401
- type: 'bytes32',
1402
- },
1403
- {
1404
- internalType: 'address',
1405
- name: 'msgRecipient',
1406
- type: 'address',
1407
- },
1408
- {
1409
- internalType: 'address',
1410
- name: 'msgDestinationCaller',
1411
- type: 'address',
1412
- },
1413
- {
1414
- internalType: 'bytes',
1415
- name: 'msgBody',
1416
- type: 'bytes',
1417
- },
1418
- ],
1419
- internalType: 'struct GMPUtils.Payload',
1420
- name: 'payload',
1421
- type: 'tuple',
1422
- },
1423
- ],
1424
- name: 'handlePayload',
1425
- outputs: [
1426
- {
1427
- internalType: 'bytes',
1428
- name: '',
1429
- type: 'bytes',
1430
- },
1431
- ],
1432
- stateMutability: 'nonpayable',
1433
- type: 'function',
1434
- },
1435
- {
1436
- inputs: [
1437
- {
1438
- internalType: 'bytes32',
1439
- name: 'role',
1440
- type: 'bytes32',
1441
- },
1442
- {
1443
- internalType: 'address',
1444
- name: 'account',
1445
- type: 'address',
1446
- },
1447
- ],
1448
- name: 'hasRole',
1449
- outputs: [
1450
- {
1451
- internalType: 'bool',
1452
- name: '',
1453
- type: 'bool',
1454
- },
1455
- ],
1456
- stateMutability: 'view',
1457
- type: 'function',
1458
- },
1459
- {
1460
- inputs: [
1461
- {
1462
- internalType: 'address',
1463
- name: 'owner_',
1464
- type: 'address',
1465
- },
1466
- {
1467
- internalType: 'uint48',
1468
- name: 'initialOwnerDelay_',
1469
- type: 'uint48',
1470
- },
1471
- {
1472
- internalType: 'bytes32',
1473
- name: 'ledgerChainId_',
1474
- type: 'bytes32',
1475
- },
1476
- {
1477
- internalType: 'bytes32',
1478
- name: 'bitcoinChainId_',
1479
- type: 'bytes32',
1480
- },
1481
- {
1482
- internalType: 'address',
1483
- name: 'mailbox_',
1484
- type: 'address',
1485
- },
1486
- {
1487
- internalType: 'address',
1488
- name: 'bascule_',
1489
- type: 'address',
1490
- },
1491
- ],
1492
- name: 'initialize',
1493
- outputs: [],
1494
- stateMutability: 'nonpayable',
1495
- type: 'function',
1496
- },
1497
- {
1498
- inputs: [],
1499
- name: 'mailbox',
1500
- outputs: [
1501
- {
1502
- internalType: 'contract IMailbox',
1503
- name: '',
1504
- type: 'address',
1505
- },
1506
- ],
1507
- stateMutability: 'view',
1508
- type: 'function',
1509
- },
1510
- {
1511
- inputs: [
1512
- {
1513
- internalType: 'address',
1514
- name: 'token',
1515
- type: 'address',
1516
- },
1517
- ],
1518
- name: 'maxMintCommission',
1519
- outputs: [
1520
- {
1521
- internalType: 'uint256',
1522
- name: '',
1523
- type: 'uint256',
1524
- },
1525
- ],
1526
- stateMutability: 'view',
1527
- type: 'function',
1528
- },
1529
- {
1530
- inputs: [
1531
- {
1532
- internalType: 'bytes',
1533
- name: 'rawPayload',
1534
- type: 'bytes',
1535
- },
1536
- {
1537
- internalType: 'bytes',
1538
- name: 'proof',
1539
- type: 'bytes',
1540
- },
1541
- ],
1542
- name: 'mint',
1543
- outputs: [
1544
- {
1545
- internalType: 'address',
1546
- name: '',
1547
- type: 'address',
1548
- },
1549
- ],
1550
- stateMutability: 'nonpayable',
1551
- type: 'function',
1552
- },
1553
- {
1554
- inputs: [
1555
- {
1556
- internalType: 'bytes',
1557
- name: 'mintPayload',
1558
- type: 'bytes',
1559
- },
1560
- {
1561
- internalType: 'bytes',
1562
- name: 'proof',
1563
- type: 'bytes',
1564
- },
1565
- {
1566
- internalType: 'bytes',
1567
- name: 'feePayload',
1568
- type: 'bytes',
1569
- },
1570
- {
1571
- internalType: 'bytes',
1572
- name: 'userSignature',
1573
- type: 'bytes',
1574
- },
1575
- ],
1576
- name: 'mintWithFee',
1577
- outputs: [],
1578
- stateMutability: 'nonpayable',
1579
- type: 'function',
1580
- },
1581
- {
1582
- inputs: [],
1583
- name: 'nativeToken',
1584
- outputs: [
1585
- {
1586
- internalType: 'address',
1587
- name: '',
1588
- type: 'address',
1589
- },
1590
- ],
1591
- stateMutability: 'view',
1592
- type: 'function',
1593
- },
1594
- {
1595
- inputs: [
1596
- {
1597
- internalType: 'address',
1598
- name: 'token',
1599
- type: 'address',
1600
- },
1601
- ],
1602
- name: 'oracle',
1603
- outputs: [
1604
- {
1605
- internalType: 'contract IOracle',
1606
- name: '',
1607
- type: 'address',
1608
- },
1609
- ],
1610
- stateMutability: 'view',
1611
- type: 'function',
1612
- },
1613
- {
1614
- inputs: [],
1615
- name: 'owner',
1616
- outputs: [
1617
- {
1618
- internalType: 'address',
1619
- name: '',
1620
- type: 'address',
1621
- },
1622
- ],
1623
- stateMutability: 'view',
1624
- type: 'function',
1625
- },
1626
- {
1627
- inputs: [],
1628
- name: 'pendingDefaultAdmin',
1629
- outputs: [
1630
- {
1631
- internalType: 'address',
1632
- name: 'newAdmin',
1633
- type: 'address',
1634
- },
1635
- {
1636
- internalType: 'uint48',
1637
- name: 'schedule',
1638
- type: 'uint48',
1639
- },
1640
- ],
1641
- stateMutability: 'view',
1642
- type: 'function',
1643
- },
1644
- {
1645
- inputs: [],
1646
- name: 'pendingDefaultAdminDelay',
1647
- outputs: [
1648
- {
1649
- internalType: 'uint48',
1650
- name: 'newDelay',
1651
- type: 'uint48',
1652
- },
1653
- {
1654
- internalType: 'uint48',
1655
- name: 'schedule',
1656
- type: 'uint48',
1657
- },
1658
- ],
1659
- stateMutability: 'view',
1660
- type: 'function',
1661
- },
1662
- {
1663
- inputs: [
1664
- {
1665
- internalType: 'address',
1666
- name: 'token',
1667
- type: 'address',
1668
- },
1669
- ],
1670
- name: 'ratio',
1671
- outputs: [
1672
- {
1673
- internalType: 'uint256',
1674
- name: '',
1675
- type: 'uint256',
1676
- },
1677
- ],
1678
- stateMutability: 'view',
1679
- type: 'function',
1680
- },
1681
- {
1682
- inputs: [
1683
- {
1684
- internalType: 'address',
1685
- name: 'fromAddress',
1686
- type: 'address',
1687
- },
1688
- {
1689
- internalType: 'address',
1690
- name: 'fromToken',
1691
- type: 'address',
1692
- },
1693
- {
1694
- internalType: 'uint256',
1695
- name: 'amount',
1696
- type: 'uint256',
1697
- },
1698
- ],
1699
- name: 'redeem',
1700
- outputs: [],
1701
- stateMutability: 'nonpayable',
1702
- type: 'function',
1703
- },
1704
- {
1705
- inputs: [
1706
- {
1707
- internalType: 'address',
1708
- name: 'fromAddress',
1709
- type: 'address',
1710
- },
1711
- {
1712
- internalType: 'bytes32',
1713
- name: 'tolChainId',
1714
- type: 'bytes32',
1715
- },
1716
- {
1717
- internalType: 'address',
1718
- name: 'fromToken',
1719
- type: 'address',
1720
- },
1721
- {
1722
- internalType: 'bytes32',
1723
- name: 'toToken',
1724
- type: 'bytes32',
1725
- },
1726
- {
1727
- internalType: 'bytes32',
1728
- name: 'recipient',
1729
- type: 'bytes32',
1730
- },
1731
- {
1732
- internalType: 'uint256',
1733
- name: 'amount',
1734
- type: 'uint256',
1735
- },
1736
- ],
1737
- name: 'redeem',
1738
- outputs: [],
1739
- stateMutability: 'nonpayable',
1740
- type: 'function',
1741
- },
1742
- {
1743
- inputs: [
1744
- {
1745
- internalType: 'address',
1746
- name: 'fromAddress',
1747
- type: 'address',
1748
- },
1749
- {
1750
- internalType: 'address',
1751
- name: 'fromToken',
1752
- type: 'address',
1753
- },
1754
- {
1755
- internalType: 'bytes',
1756
- name: 'recipient',
1757
- type: 'bytes',
1758
- },
1759
- {
1760
- internalType: 'uint256',
1761
- name: 'amount',
1762
- type: 'uint256',
1763
- },
1764
- ],
1765
- name: 'redeemForBtc',
1766
- outputs: [],
1767
- stateMutability: 'nonpayable',
1768
- type: 'function',
1769
- },
1770
- {
1771
- inputs: [
1772
- {
1773
- internalType: 'bytes32',
1774
- name: 'fromToken',
1775
- type: 'bytes32',
1776
- },
1777
- {
1778
- internalType: 'bytes32',
1779
- name: 'fromChainId',
1780
- type: 'bytes32',
1781
- },
1782
- {
1783
- internalType: 'bytes32',
1784
- name: 'toToken',
1785
- type: 'bytes32',
1786
- },
1787
- {
1788
- internalType: 'bytes32',
1789
- name: 'toChainId',
1790
- type: 'bytes32',
1791
- },
1792
- ],
1793
- name: 'removeRoute',
1794
- outputs: [],
1795
- stateMutability: 'nonpayable',
1796
- type: 'function',
1797
- },
1798
- {
1799
- inputs: [
1800
- {
1801
- internalType: 'bytes32',
1802
- name: 'role',
1803
- type: 'bytes32',
1804
- },
1805
- {
1806
- internalType: 'address',
1807
- name: 'account',
1808
- type: 'address',
1809
- },
1810
- ],
1811
- name: 'renounceRole',
1812
- outputs: [],
1813
- stateMutability: 'nonpayable',
1814
- type: 'function',
1815
- },
1816
- {
1817
- inputs: [
1818
- {
1819
- internalType: 'bytes32',
1820
- name: 'role',
1821
- type: 'bytes32',
1822
- },
1823
- {
1824
- internalType: 'address',
1825
- name: 'account',
1826
- type: 'address',
1827
- },
1828
- ],
1829
- name: 'revokeRole',
1830
- outputs: [],
1831
- stateMutability: 'nonpayable',
1832
- type: 'function',
1833
- },
1834
- {
1835
- inputs: [],
1836
- name: 'rollbackDefaultAdminDelay',
1837
- outputs: [],
1838
- stateMutability: 'nonpayable',
1839
- type: 'function',
1840
- },
1841
- {
1842
- inputs: [
1843
- {
1844
- internalType: 'address',
1845
- name: 'token',
1846
- type: 'address',
1847
- },
1848
- {
1849
- internalType: 'uint256',
1850
- name: 'fee',
1851
- type: 'uint256',
1852
- },
1853
- ],
1854
- name: 'setMaxMintCommission',
1855
- outputs: [],
1856
- stateMutability: 'nonpayable',
1857
- type: 'function',
1858
- },
1859
- {
1860
- inputs: [
1861
- {
1862
- internalType: 'bytes32',
1863
- name: 'fromToken',
1864
- type: 'bytes32',
1865
- },
1866
- {
1867
- internalType: 'bytes32',
1868
- name: 'fromChainId',
1869
- type: 'bytes32',
1870
- },
1871
- {
1872
- internalType: 'bytes32',
1873
- name: 'toToken',
1874
- type: 'bytes32',
1875
- },
1876
- {
1877
- internalType: 'bytes32',
1878
- name: 'toChainId',
1879
- type: 'bytes32',
1880
- },
1881
- {
1882
- internalType: 'enum IAssetRouter.RouteType',
1883
- name: 'routeType',
1884
- type: 'uint8',
1885
- },
1886
- ],
1887
- name: 'setRoute',
1888
- outputs: [],
1889
- stateMutability: 'nonpayable',
1890
- type: 'function',
1891
- },
1892
- {
1893
- inputs: [
1894
- {
1895
- internalType: 'bytes4',
1896
- name: 'interfaceId',
1897
- type: 'bytes4',
1898
- },
1899
- ],
1900
- name: 'supportsInterface',
1901
- outputs: [
1902
- {
1903
- internalType: 'bool',
1904
- name: '',
1905
- type: 'bool',
1906
- },
1907
- ],
1908
- stateMutability: 'view',
1909
- type: 'function',
1910
- },
1911
- {
1912
- inputs: [
1913
- {
1914
- internalType: 'address',
1915
- name: 'token',
1916
- type: 'address',
1917
- },
1918
- ],
1919
- name: 'toNativeCommission',
1920
- outputs: [
1921
- {
1922
- internalType: 'uint64',
1923
- name: '',
1924
- type: 'uint64',
1925
- },
1926
- ],
1927
- stateMutability: 'view',
1928
- type: 'function',
1929
- },
1930
- {
1931
- inputs: [],
1932
- name: 'toggleRedeem',
1933
- outputs: [],
1934
- stateMutability: 'nonpayable',
1935
- type: 'function',
1936
- },
1937
- {
1938
- inputs: [
1939
- {
1940
- internalType: 'address',
1941
- name: 'token',
1942
- type: 'address',
1943
- },
1944
- ],
1945
- name: 'tokenConfig',
1946
- outputs: [
1947
- {
1948
- internalType: 'uint256',
1949
- name: 'redeemFee',
1950
- type: 'uint256',
1951
- },
1952
- {
1953
- internalType: 'uint256',
1954
- name: 'redeemForBtcMinAmount',
1955
- type: 'uint256',
1956
- },
1957
- {
1958
- internalType: 'bool',
1959
- name: 'isRedeemEnabled',
1960
- type: 'bool',
1961
- },
1962
- ],
1963
- stateMutability: 'view',
1964
- type: 'function',
1965
- },
1966
- ];