@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,1761 +0,0 @@
1
- export const LBTC_ABI = [
2
- {
3
- inputs: [],
4
- stateMutability: 'nonpayable',
5
- type: 'constructor',
6
- },
7
- {
8
- inputs: [
9
- {
10
- internalType: 'uint256',
11
- name: 'dustLimit',
12
- type: 'uint256',
13
- },
14
- ],
15
- name: 'AmountBelowDustLimit',
16
- type: 'error',
17
- },
18
- {
19
- inputs: [
20
- {
21
- internalType: 'uint256',
22
- name: 'fee',
23
- type: 'uint256',
24
- },
25
- ],
26
- name: 'AmountLessThanCommission',
27
- type: 'error',
28
- },
29
- {
30
- inputs: [],
31
- name: 'ECDSAInvalidSignature',
32
- type: 'error',
33
- },
34
- {
35
- inputs: [
36
- {
37
- internalType: 'uint256',
38
- name: 'length',
39
- type: 'uint256',
40
- },
41
- ],
42
- name: 'ECDSAInvalidSignatureLength',
43
- type: 'error',
44
- },
45
- {
46
- inputs: [
47
- {
48
- internalType: 'bytes32',
49
- name: 's',
50
- type: 'bytes32',
51
- },
52
- ],
53
- name: 'ECDSAInvalidSignatureS',
54
- type: 'error',
55
- },
56
- {
57
- inputs: [
58
- {
59
- internalType: 'address',
60
- name: 'spender',
61
- type: 'address',
62
- },
63
- {
64
- internalType: 'uint256',
65
- name: 'allowance',
66
- type: 'uint256',
67
- },
68
- {
69
- internalType: 'uint256',
70
- name: 'needed',
71
- type: 'uint256',
72
- },
73
- ],
74
- name: 'ERC20InsufficientAllowance',
75
- type: 'error',
76
- },
77
- {
78
- inputs: [
79
- {
80
- internalType: 'address',
81
- name: 'sender',
82
- type: 'address',
83
- },
84
- {
85
- internalType: 'uint256',
86
- name: 'balance',
87
- type: 'uint256',
88
- },
89
- {
90
- internalType: 'uint256',
91
- name: 'needed',
92
- type: 'uint256',
93
- },
94
- ],
95
- name: 'ERC20InsufficientBalance',
96
- type: 'error',
97
- },
98
- {
99
- inputs: [
100
- {
101
- internalType: 'address',
102
- name: 'approver',
103
- type: 'address',
104
- },
105
- ],
106
- name: 'ERC20InvalidApprover',
107
- type: 'error',
108
- },
109
- {
110
- inputs: [
111
- {
112
- internalType: 'address',
113
- name: 'receiver',
114
- type: 'address',
115
- },
116
- ],
117
- name: 'ERC20InvalidReceiver',
118
- type: 'error',
119
- },
120
- {
121
- inputs: [
122
- {
123
- internalType: 'address',
124
- name: 'sender',
125
- type: 'address',
126
- },
127
- ],
128
- name: 'ERC20InvalidSender',
129
- type: 'error',
130
- },
131
- {
132
- inputs: [
133
- {
134
- internalType: 'address',
135
- name: 'spender',
136
- type: 'address',
137
- },
138
- ],
139
- name: 'ERC20InvalidSpender',
140
- type: 'error',
141
- },
142
- {
143
- inputs: [
144
- {
145
- internalType: 'uint256',
146
- name: 'deadline',
147
- type: 'uint256',
148
- },
149
- ],
150
- name: 'ERC2612ExpiredSignature',
151
- type: 'error',
152
- },
153
- {
154
- inputs: [
155
- {
156
- internalType: 'address',
157
- name: 'signer',
158
- type: 'address',
159
- },
160
- {
161
- internalType: 'address',
162
- name: 'owner',
163
- type: 'address',
164
- },
165
- ],
166
- name: 'ERC2612InvalidSigner',
167
- type: 'error',
168
- },
169
- {
170
- inputs: [],
171
- name: 'EnforcedPause',
172
- type: 'error',
173
- },
174
- {
175
- inputs: [],
176
- name: 'ExpectedPause',
177
- type: 'error',
178
- },
179
- {
180
- inputs: [],
181
- name: 'FeeGreaterThanAmount',
182
- type: 'error',
183
- },
184
- {
185
- inputs: [
186
- {
187
- internalType: 'address',
188
- name: 'account',
189
- type: 'address',
190
- },
191
- {
192
- internalType: 'uint256',
193
- name: 'currentNonce',
194
- type: 'uint256',
195
- },
196
- ],
197
- name: 'InvalidAccountNonce',
198
- type: 'error',
199
- },
200
- {
201
- inputs: [],
202
- name: 'InvalidDustFeeRate',
203
- type: 'error',
204
- },
205
- {
206
- inputs: [],
207
- name: 'InvalidInitialization',
208
- type: 'error',
209
- },
210
- {
211
- inputs: [],
212
- name: 'InvalidInputLength',
213
- type: 'error',
214
- },
215
- {
216
- inputs: [],
217
- name: 'InvalidUserSignature',
218
- type: 'error',
219
- },
220
- {
221
- inputs: [],
222
- name: 'KnownDestination',
223
- type: 'error',
224
- },
225
- {
226
- inputs: [],
227
- name: 'NotInitializing',
228
- type: 'error',
229
- },
230
- {
231
- inputs: [
232
- {
233
- internalType: 'address',
234
- name: 'owner',
235
- type: 'address',
236
- },
237
- ],
238
- name: 'OwnableInvalidOwner',
239
- type: 'error',
240
- },
241
- {
242
- inputs: [
243
- {
244
- internalType: 'address',
245
- name: 'account',
246
- type: 'address',
247
- },
248
- ],
249
- name: 'OwnableUnauthorizedAccount',
250
- type: 'error',
251
- },
252
- {
253
- inputs: [],
254
- name: 'PayloadAlreadyUsed',
255
- type: 'error',
256
- },
257
- {
258
- inputs: [],
259
- name: 'ReentrancyGuardReentrantCall',
260
- type: 'error',
261
- },
262
- {
263
- inputs: [],
264
- name: 'ScriptPubkeyUnsupported',
265
- type: 'error',
266
- },
267
- {
268
- inputs: [
269
- {
270
- internalType: 'address',
271
- name: 'account',
272
- type: 'address',
273
- },
274
- ],
275
- name: 'UnauthorizedAccount',
276
- type: 'error',
277
- },
278
- {
279
- inputs: [
280
- {
281
- internalType: 'bytes4',
282
- name: 'action',
283
- type: 'bytes4',
284
- },
285
- ],
286
- name: 'UnexpectedAction',
287
- type: 'error',
288
- },
289
- {
290
- inputs: [],
291
- name: 'UnknownDestination',
292
- type: 'error',
293
- },
294
- {
295
- inputs: [
296
- {
297
- internalType: 'uint256',
298
- name: 'fromChainId',
299
- type: 'uint256',
300
- },
301
- {
302
- internalType: 'address',
303
- name: 'fromContract',
304
- type: 'address',
305
- },
306
- ],
307
- name: 'UnknownOriginContract',
308
- type: 'error',
309
- },
310
- {
311
- inputs: [
312
- {
313
- internalType: 'uint256',
314
- name: 'expiry',
315
- type: 'uint256',
316
- },
317
- ],
318
- name: 'UserSignatureExpired',
319
- type: 'error',
320
- },
321
- {
322
- inputs: [],
323
- name: 'WithdrawalsDisabled',
324
- type: 'error',
325
- },
326
- {
327
- inputs: [],
328
- name: 'WrongChainId',
329
- type: 'error',
330
- },
331
- {
332
- inputs: [],
333
- name: 'ZeroAddress',
334
- type: 'error',
335
- },
336
- {
337
- inputs: [],
338
- name: 'ZeroAddress',
339
- type: 'error',
340
- },
341
- {
342
- inputs: [],
343
- name: 'ZeroAmount',
344
- type: 'error',
345
- },
346
- {
347
- inputs: [],
348
- name: 'ZeroChainId',
349
- type: 'error',
350
- },
351
- {
352
- inputs: [],
353
- name: 'ZeroContractHash',
354
- type: 'error',
355
- },
356
- {
357
- inputs: [],
358
- name: 'ZeroFee',
359
- type: 'error',
360
- },
361
- {
362
- anonymous: false,
363
- inputs: [
364
- {
365
- indexed: true,
366
- internalType: 'address',
367
- name: 'owner',
368
- type: 'address',
369
- },
370
- {
371
- indexed: true,
372
- internalType: 'address',
373
- name: 'spender',
374
- type: 'address',
375
- },
376
- {
377
- indexed: false,
378
- internalType: 'uint256',
379
- name: 'value',
380
- type: 'uint256',
381
- },
382
- ],
383
- name: 'Approval',
384
- type: 'event',
385
- },
386
- {
387
- anonymous: false,
388
- inputs: [
389
- {
390
- indexed: true,
391
- internalType: 'address',
392
- name: 'prevVal',
393
- type: 'address',
394
- },
395
- {
396
- indexed: true,
397
- internalType: 'address',
398
- name: 'newVal',
399
- type: 'address',
400
- },
401
- ],
402
- name: 'BasculeChanged',
403
- type: 'event',
404
- },
405
- {
406
- anonymous: false,
407
- inputs: [
408
- {
409
- indexed: true,
410
- internalType: 'address',
411
- name: 'prevVal',
412
- type: 'address',
413
- },
414
- {
415
- indexed: true,
416
- internalType: 'address',
417
- name: 'newVal',
418
- type: 'address',
419
- },
420
- ],
421
- name: 'BridgeChanged',
422
- type: 'event',
423
- },
424
- {
425
- anonymous: false,
426
- inputs: [
427
- {
428
- indexed: true,
429
- internalType: 'uint64',
430
- name: 'prevValue',
431
- type: 'uint64',
432
- },
433
- {
434
- indexed: true,
435
- internalType: 'uint64',
436
- name: 'newValue',
437
- type: 'uint64',
438
- },
439
- ],
440
- name: 'BurnCommissionChanged',
441
- type: 'event',
442
- },
443
- {
444
- anonymous: false,
445
- inputs: [
446
- {
447
- indexed: true,
448
- internalType: 'address',
449
- name: 'claimer',
450
- type: 'address',
451
- },
452
- {
453
- indexed: false,
454
- internalType: 'bool',
455
- name: 'isClaimer',
456
- type: 'bool',
457
- },
458
- ],
459
- name: 'ClaimerUpdated',
460
- type: 'event',
461
- },
462
- {
463
- anonymous: false,
464
- inputs: [
465
- {
466
- indexed: true,
467
- internalType: 'address',
468
- name: 'prevVal',
469
- type: 'address',
470
- },
471
- {
472
- indexed: true,
473
- internalType: 'address',
474
- name: 'newVal',
475
- type: 'address',
476
- },
477
- ],
478
- name: 'ConsortiumChanged',
479
- type: 'event',
480
- },
481
- {
482
- anonymous: false,
483
- inputs: [
484
- {
485
- indexed: true,
486
- internalType: 'uint256',
487
- name: 'oldRate',
488
- type: 'uint256',
489
- },
490
- {
491
- indexed: true,
492
- internalType: 'uint256',
493
- name: 'newRate',
494
- type: 'uint256',
495
- },
496
- ],
497
- name: 'DustFeeRateChanged',
498
- type: 'event',
499
- },
500
- {
501
- anonymous: false,
502
- inputs: [],
503
- name: 'EIP712DomainChanged',
504
- type: 'event',
505
- },
506
- {
507
- anonymous: false,
508
- inputs: [
509
- {
510
- indexed: true,
511
- internalType: 'uint256',
512
- name: 'oldFee',
513
- type: 'uint256',
514
- },
515
- {
516
- indexed: true,
517
- internalType: 'uint256',
518
- name: 'newFee',
519
- type: 'uint256',
520
- },
521
- ],
522
- name: 'FeeChanged',
523
- type: 'event',
524
- },
525
- {
526
- anonymous: false,
527
- inputs: [
528
- {
529
- indexed: true,
530
- internalType: 'uint256',
531
- name: 'fee',
532
- type: 'uint256',
533
- },
534
- {
535
- indexed: false,
536
- internalType: 'bytes',
537
- name: 'userSignature',
538
- type: 'bytes',
539
- },
540
- ],
541
- name: 'FeeCharged',
542
- type: 'event',
543
- },
544
- {
545
- anonymous: false,
546
- inputs: [
547
- {
548
- indexed: false,
549
- internalType: 'uint64',
550
- name: 'version',
551
- type: 'uint64',
552
- },
553
- ],
554
- name: 'Initialized',
555
- type: 'event',
556
- },
557
- {
558
- anonymous: false,
559
- inputs: [
560
- {
561
- indexed: true,
562
- internalType: 'address',
563
- name: 'recipient',
564
- type: 'address',
565
- },
566
- {
567
- indexed: true,
568
- internalType: 'bytes32',
569
- name: 'payloadHash',
570
- type: 'bytes32',
571
- },
572
- {
573
- indexed: false,
574
- internalType: 'bytes',
575
- name: 'payload',
576
- type: 'bytes',
577
- },
578
- ],
579
- name: 'MintProofConsumed',
580
- type: 'event',
581
- },
582
- {
583
- anonymous: false,
584
- inputs: [
585
- {
586
- indexed: true,
587
- internalType: 'address',
588
- name: 'minter',
589
- type: 'address',
590
- },
591
- {
592
- indexed: false,
593
- internalType: 'bool',
594
- name: 'isMinter',
595
- type: 'bool',
596
- },
597
- ],
598
- name: 'MinterUpdated',
599
- type: 'event',
600
- },
601
- {
602
- anonymous: false,
603
- inputs: [
604
- {
605
- indexed: false,
606
- internalType: 'string',
607
- name: 'name',
608
- type: 'string',
609
- },
610
- {
611
- indexed: false,
612
- internalType: 'string',
613
- name: 'symbol',
614
- type: 'string',
615
- },
616
- ],
617
- name: 'NameAndSymbolChanged',
618
- type: 'event',
619
- },
620
- {
621
- anonymous: false,
622
- inputs: [
623
- {
624
- indexed: true,
625
- internalType: 'address',
626
- name: 'previousOwner',
627
- type: 'address',
628
- },
629
- {
630
- indexed: true,
631
- internalType: 'address',
632
- name: 'newOwner',
633
- type: 'address',
634
- },
635
- ],
636
- name: 'OwnershipTransferStarted',
637
- type: 'event',
638
- },
639
- {
640
- anonymous: false,
641
- inputs: [
642
- {
643
- indexed: true,
644
- internalType: 'address',
645
- name: 'previousOwner',
646
- type: 'address',
647
- },
648
- {
649
- indexed: true,
650
- internalType: 'address',
651
- name: 'newOwner',
652
- type: 'address',
653
- },
654
- ],
655
- name: 'OwnershipTransferred',
656
- type: 'event',
657
- },
658
- {
659
- anonymous: false,
660
- inputs: [
661
- {
662
- indexed: false,
663
- internalType: 'address',
664
- name: 'account',
665
- type: 'address',
666
- },
667
- ],
668
- name: 'Paused',
669
- type: 'event',
670
- },
671
- {
672
- anonymous: false,
673
- inputs: [
674
- {
675
- indexed: true,
676
- internalType: 'address',
677
- name: 'previousPauser',
678
- type: 'address',
679
- },
680
- {
681
- indexed: true,
682
- internalType: 'address',
683
- name: 'newPauser',
684
- type: 'address',
685
- },
686
- ],
687
- name: 'PauserRoleTransferred',
688
- type: 'event',
689
- },
690
- {
691
- anonymous: false,
692
- inputs: [
693
- {
694
- indexed: true,
695
- internalType: 'address',
696
- name: 'from',
697
- type: 'address',
698
- },
699
- {
700
- indexed: true,
701
- internalType: 'address',
702
- name: 'to',
703
- type: 'address',
704
- },
705
- {
706
- indexed: false,
707
- internalType: 'uint256',
708
- name: 'value',
709
- type: 'uint256',
710
- },
711
- ],
712
- name: 'Transfer',
713
- type: 'event',
714
- },
715
- {
716
- anonymous: false,
717
- inputs: [
718
- {
719
- indexed: true,
720
- internalType: 'address',
721
- name: 'prevValue',
722
- type: 'address',
723
- },
724
- {
725
- indexed: true,
726
- internalType: 'address',
727
- name: 'newValue',
728
- type: 'address',
729
- },
730
- ],
731
- name: 'TreasuryAddressChanged',
732
- type: 'event',
733
- },
734
- {
735
- anonymous: false,
736
- inputs: [
737
- {
738
- indexed: false,
739
- internalType: 'address',
740
- name: 'account',
741
- type: 'address',
742
- },
743
- ],
744
- name: 'Unpaused',
745
- type: 'event',
746
- },
747
- {
748
- anonymous: false,
749
- inputs: [
750
- {
751
- indexed: true,
752
- internalType: 'address',
753
- name: 'fromAddress',
754
- type: 'address',
755
- },
756
- {
757
- indexed: false,
758
- internalType: 'bytes',
759
- name: 'scriptPubKey',
760
- type: 'bytes',
761
- },
762
- {
763
- indexed: false,
764
- internalType: 'uint256',
765
- name: 'amount',
766
- type: 'uint256',
767
- },
768
- ],
769
- name: 'UnstakeRequest',
770
- type: 'event',
771
- },
772
- {
773
- anonymous: false,
774
- inputs: [
775
- {
776
- indexed: false,
777
- internalType: 'bool',
778
- name: '',
779
- type: 'bool',
780
- },
781
- ],
782
- name: 'WithdrawalsEnabled',
783
- type: 'event',
784
- },
785
- {
786
- inputs: [],
787
- name: 'Bascule',
788
- outputs: [
789
- {
790
- internalType: 'contract IBascule',
791
- name: '',
792
- type: 'address',
793
- },
794
- ],
795
- stateMutability: 'view',
796
- type: 'function',
797
- },
798
- {
799
- inputs: [],
800
- name: 'DOMAIN_SEPARATOR',
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: 'acceptOwnership',
814
- outputs: [],
815
- stateMutability: 'nonpayable',
816
- type: 'function',
817
- },
818
- {
819
- inputs: [
820
- {
821
- internalType: 'address',
822
- name: 'newClaimer',
823
- type: 'address',
824
- },
825
- ],
826
- name: 'addClaimer',
827
- outputs: [],
828
- stateMutability: 'nonpayable',
829
- type: 'function',
830
- },
831
- {
832
- inputs: [
833
- {
834
- internalType: 'address',
835
- name: 'newMinter',
836
- type: 'address',
837
- },
838
- ],
839
- name: 'addMinter',
840
- outputs: [],
841
- stateMutability: 'nonpayable',
842
- type: 'function',
843
- },
844
- {
845
- inputs: [
846
- {
847
- internalType: 'address',
848
- name: 'owner',
849
- type: 'address',
850
- },
851
- {
852
- internalType: 'address',
853
- name: 'spender',
854
- type: 'address',
855
- },
856
- ],
857
- name: 'allowance',
858
- outputs: [
859
- {
860
- internalType: 'uint256',
861
- name: '',
862
- type: 'uint256',
863
- },
864
- ],
865
- stateMutability: 'view',
866
- type: 'function',
867
- },
868
- {
869
- inputs: [
870
- {
871
- internalType: 'address',
872
- name: 'spender',
873
- type: 'address',
874
- },
875
- {
876
- internalType: 'uint256',
877
- name: 'value',
878
- type: 'uint256',
879
- },
880
- ],
881
- name: 'approve',
882
- outputs: [
883
- {
884
- internalType: 'bool',
885
- name: '',
886
- type: 'bool',
887
- },
888
- ],
889
- stateMutability: 'nonpayable',
890
- type: 'function',
891
- },
892
- {
893
- inputs: [
894
- {
895
- internalType: 'address',
896
- name: 'account',
897
- type: 'address',
898
- },
899
- ],
900
- name: 'balanceOf',
901
- outputs: [
902
- {
903
- internalType: 'uint256',
904
- name: '',
905
- type: 'uint256',
906
- },
907
- ],
908
- stateMutability: 'view',
909
- type: 'function',
910
- },
911
- {
912
- inputs: [
913
- {
914
- internalType: 'address[]',
915
- name: 'to',
916
- type: 'address[]',
917
- },
918
- {
919
- internalType: 'uint256[]',
920
- name: 'amount',
921
- type: 'uint256[]',
922
- },
923
- ],
924
- name: 'batchMint',
925
- outputs: [],
926
- stateMutability: 'nonpayable',
927
- type: 'function',
928
- },
929
- {
930
- inputs: [
931
- {
932
- internalType: 'bytes[]',
933
- name: 'payload',
934
- type: 'bytes[]',
935
- },
936
- {
937
- internalType: 'bytes[]',
938
- name: 'proof',
939
- type: 'bytes[]',
940
- },
941
- ],
942
- name: 'batchMint',
943
- outputs: [],
944
- stateMutability: 'nonpayable',
945
- type: 'function',
946
- },
947
- {
948
- inputs: [
949
- {
950
- internalType: 'bytes[]',
951
- name: 'mintPayload',
952
- type: 'bytes[]',
953
- },
954
- {
955
- internalType: 'bytes[]',
956
- name: 'proof',
957
- type: 'bytes[]',
958
- },
959
- {
960
- internalType: 'bytes[]',
961
- name: 'feePayload',
962
- type: 'bytes[]',
963
- },
964
- {
965
- internalType: 'bytes[]',
966
- name: 'userSignature',
967
- type: 'bytes[]',
968
- },
969
- ],
970
- name: 'batchMintWithFee',
971
- outputs: [],
972
- stateMutability: 'nonpayable',
973
- type: 'function',
974
- },
975
- {
976
- inputs: [
977
- {
978
- internalType: 'uint256',
979
- name: 'amount',
980
- type: 'uint256',
981
- },
982
- ],
983
- name: 'burn',
984
- outputs: [],
985
- stateMutability: 'nonpayable',
986
- type: 'function',
987
- },
988
- {
989
- inputs: [
990
- {
991
- internalType: 'address',
992
- name: 'from',
993
- type: 'address',
994
- },
995
- {
996
- internalType: 'uint256',
997
- name: 'amount',
998
- type: 'uint256',
999
- },
1000
- ],
1001
- name: 'burn',
1002
- outputs: [],
1003
- stateMutability: 'nonpayable',
1004
- type: 'function',
1005
- },
1006
- {
1007
- inputs: [
1008
- {
1009
- internalType: 'bytes',
1010
- name: 'scriptPubkey',
1011
- type: 'bytes',
1012
- },
1013
- {
1014
- internalType: 'uint256',
1015
- name: 'amount',
1016
- type: 'uint256',
1017
- },
1018
- ],
1019
- name: 'calcUnstakeRequestAmount',
1020
- outputs: [
1021
- {
1022
- internalType: 'uint256',
1023
- name: 'amountAfterFee',
1024
- type: 'uint256',
1025
- },
1026
- {
1027
- internalType: 'bool',
1028
- name: 'isAboveDust',
1029
- type: 'bool',
1030
- },
1031
- ],
1032
- stateMutability: 'view',
1033
- type: 'function',
1034
- },
1035
- {
1036
- inputs: [
1037
- {
1038
- internalType: 'address',
1039
- name: 'newVal',
1040
- type: 'address',
1041
- },
1042
- ],
1043
- name: 'changeBascule',
1044
- outputs: [],
1045
- stateMutability: 'nonpayable',
1046
- type: 'function',
1047
- },
1048
- {
1049
- inputs: [
1050
- {
1051
- internalType: 'address',
1052
- name: 'newBridge',
1053
- type: 'address',
1054
- },
1055
- ],
1056
- name: 'changeBridge',
1057
- outputs: [],
1058
- stateMutability: 'nonpayable',
1059
- type: 'function',
1060
- },
1061
- {
1062
- inputs: [
1063
- {
1064
- internalType: 'uint64',
1065
- name: 'newValue',
1066
- type: 'uint64',
1067
- },
1068
- ],
1069
- name: 'changeBurnCommission',
1070
- outputs: [],
1071
- stateMutability: 'nonpayable',
1072
- type: 'function',
1073
- },
1074
- {
1075
- inputs: [
1076
- {
1077
- internalType: 'address',
1078
- name: 'newVal',
1079
- type: 'address',
1080
- },
1081
- ],
1082
- name: 'changeConsortium',
1083
- outputs: [],
1084
- stateMutability: 'nonpayable',
1085
- type: 'function',
1086
- },
1087
- {
1088
- inputs: [
1089
- {
1090
- internalType: 'uint256',
1091
- name: 'newRate',
1092
- type: 'uint256',
1093
- },
1094
- ],
1095
- name: 'changeDustFeeRate',
1096
- outputs: [],
1097
- stateMutability: 'nonpayable',
1098
- type: 'function',
1099
- },
1100
- {
1101
- inputs: [
1102
- {
1103
- internalType: 'string',
1104
- name: 'name_',
1105
- type: 'string',
1106
- },
1107
- {
1108
- internalType: 'string',
1109
- name: 'symbol_',
1110
- type: 'string',
1111
- },
1112
- ],
1113
- name: 'changeNameAndSymbol',
1114
- outputs: [],
1115
- stateMutability: 'nonpayable',
1116
- type: 'function',
1117
- },
1118
- {
1119
- inputs: [
1120
- {
1121
- internalType: 'address',
1122
- name: 'newValue',
1123
- type: 'address',
1124
- },
1125
- ],
1126
- name: 'changeTreasuryAddress',
1127
- outputs: [],
1128
- stateMutability: 'nonpayable',
1129
- type: 'function',
1130
- },
1131
- {
1132
- inputs: [],
1133
- name: 'consortium',
1134
- outputs: [
1135
- {
1136
- internalType: 'address',
1137
- name: '',
1138
- type: 'address',
1139
- },
1140
- ],
1141
- stateMutability: 'view',
1142
- type: 'function',
1143
- },
1144
- {
1145
- inputs: [],
1146
- name: 'decimals',
1147
- outputs: [
1148
- {
1149
- internalType: 'uint8',
1150
- name: '',
1151
- type: 'uint8',
1152
- },
1153
- ],
1154
- stateMutability: 'view',
1155
- type: 'function',
1156
- },
1157
- {
1158
- inputs: [],
1159
- name: 'eip712Domain',
1160
- outputs: [
1161
- {
1162
- internalType: 'bytes1',
1163
- name: 'fields',
1164
- type: 'bytes1',
1165
- },
1166
- {
1167
- internalType: 'string',
1168
- name: 'name',
1169
- type: 'string',
1170
- },
1171
- {
1172
- internalType: 'string',
1173
- name: 'version',
1174
- type: 'string',
1175
- },
1176
- {
1177
- internalType: 'uint256',
1178
- name: 'chainId',
1179
- type: 'uint256',
1180
- },
1181
- {
1182
- internalType: 'address',
1183
- name: 'verifyingContract',
1184
- type: 'address',
1185
- },
1186
- {
1187
- internalType: 'bytes32',
1188
- name: 'salt',
1189
- type: 'bytes32',
1190
- },
1191
- {
1192
- internalType: 'uint256[]',
1193
- name: 'extensions',
1194
- type: 'uint256[]',
1195
- },
1196
- ],
1197
- stateMutability: 'view',
1198
- type: 'function',
1199
- },
1200
- {
1201
- inputs: [],
1202
- name: 'getBurnCommission',
1203
- outputs: [
1204
- {
1205
- internalType: 'uint64',
1206
- name: '',
1207
- type: 'uint64',
1208
- },
1209
- ],
1210
- stateMutability: 'view',
1211
- type: 'function',
1212
- },
1213
- {
1214
- inputs: [],
1215
- name: 'getDustFeeRate',
1216
- outputs: [
1217
- {
1218
- internalType: 'uint256',
1219
- name: '',
1220
- type: 'uint256',
1221
- },
1222
- ],
1223
- stateMutability: 'view',
1224
- type: 'function',
1225
- },
1226
- {
1227
- inputs: [],
1228
- name: 'getMintFee',
1229
- outputs: [
1230
- {
1231
- internalType: 'uint256',
1232
- name: '',
1233
- type: 'uint256',
1234
- },
1235
- ],
1236
- stateMutability: 'view',
1237
- type: 'function',
1238
- },
1239
- {
1240
- inputs: [],
1241
- name: 'getTreasury',
1242
- outputs: [
1243
- {
1244
- internalType: 'address',
1245
- name: '',
1246
- type: 'address',
1247
- },
1248
- ],
1249
- stateMutability: 'view',
1250
- type: 'function',
1251
- },
1252
- {
1253
- inputs: [
1254
- {
1255
- internalType: 'address',
1256
- name: 'consortium_',
1257
- type: 'address',
1258
- },
1259
- {
1260
- internalType: 'uint64',
1261
- name: 'burnCommission_',
1262
- type: 'uint64',
1263
- },
1264
- {
1265
- internalType: 'address',
1266
- name: 'owner_',
1267
- type: 'address',
1268
- },
1269
- ],
1270
- name: 'initialize',
1271
- outputs: [],
1272
- stateMutability: 'nonpayable',
1273
- type: 'function',
1274
- },
1275
- {
1276
- inputs: [
1277
- {
1278
- internalType: 'address',
1279
- name: 'claimer',
1280
- type: 'address',
1281
- },
1282
- ],
1283
- name: 'isClaimer',
1284
- outputs: [
1285
- {
1286
- internalType: 'bool',
1287
- name: '',
1288
- type: 'bool',
1289
- },
1290
- ],
1291
- stateMutability: 'view',
1292
- type: 'function',
1293
- },
1294
- {
1295
- inputs: [
1296
- {
1297
- internalType: 'address',
1298
- name: 'minter',
1299
- type: 'address',
1300
- },
1301
- ],
1302
- name: 'isMinter',
1303
- outputs: [
1304
- {
1305
- internalType: 'bool',
1306
- name: '',
1307
- type: 'bool',
1308
- },
1309
- ],
1310
- stateMutability: 'view',
1311
- type: 'function',
1312
- },
1313
- {
1314
- inputs: [
1315
- {
1316
- internalType: 'address',
1317
- name: 'to',
1318
- type: 'address',
1319
- },
1320
- {
1321
- internalType: 'uint256',
1322
- name: 'amount',
1323
- type: 'uint256',
1324
- },
1325
- ],
1326
- name: 'mint',
1327
- outputs: [],
1328
- stateMutability: 'nonpayable',
1329
- type: 'function',
1330
- },
1331
- {
1332
- inputs: [
1333
- {
1334
- internalType: 'bytes',
1335
- name: 'payload',
1336
- type: 'bytes',
1337
- },
1338
- {
1339
- internalType: 'bytes',
1340
- name: 'proof',
1341
- type: 'bytes',
1342
- },
1343
- ],
1344
- name: 'mint',
1345
- outputs: [],
1346
- stateMutability: 'nonpayable',
1347
- type: 'function',
1348
- },
1349
- {
1350
- inputs: [
1351
- {
1352
- internalType: 'bytes',
1353
- name: 'mintPayload',
1354
- type: 'bytes',
1355
- },
1356
- {
1357
- internalType: 'bytes',
1358
- name: 'proof',
1359
- type: 'bytes',
1360
- },
1361
- {
1362
- internalType: 'bytes',
1363
- name: 'feePayload',
1364
- type: 'bytes',
1365
- },
1366
- {
1367
- internalType: 'bytes',
1368
- name: 'userSignature',
1369
- type: 'bytes',
1370
- },
1371
- ],
1372
- name: 'mintWithFee',
1373
- outputs: [],
1374
- stateMutability: 'nonpayable',
1375
- type: 'function',
1376
- },
1377
- {
1378
- inputs: [],
1379
- name: 'name',
1380
- outputs: [
1381
- {
1382
- internalType: 'string',
1383
- name: '',
1384
- type: 'string',
1385
- },
1386
- ],
1387
- stateMutability: 'view',
1388
- type: 'function',
1389
- },
1390
- {
1391
- inputs: [
1392
- {
1393
- internalType: 'address',
1394
- name: 'owner',
1395
- type: 'address',
1396
- },
1397
- ],
1398
- name: 'nonces',
1399
- outputs: [
1400
- {
1401
- internalType: 'uint256',
1402
- name: '',
1403
- type: 'uint256',
1404
- },
1405
- ],
1406
- stateMutability: 'view',
1407
- type: 'function',
1408
- },
1409
- {
1410
- inputs: [],
1411
- name: 'owner',
1412
- outputs: [
1413
- {
1414
- internalType: 'address',
1415
- name: '',
1416
- type: 'address',
1417
- },
1418
- ],
1419
- stateMutability: 'view',
1420
- type: 'function',
1421
- },
1422
- {
1423
- inputs: [],
1424
- name: 'pause',
1425
- outputs: [],
1426
- stateMutability: 'nonpayable',
1427
- type: 'function',
1428
- },
1429
- {
1430
- inputs: [],
1431
- name: 'paused',
1432
- outputs: [
1433
- {
1434
- internalType: 'bool',
1435
- name: '',
1436
- type: 'bool',
1437
- },
1438
- ],
1439
- stateMutability: 'view',
1440
- type: 'function',
1441
- },
1442
- {
1443
- inputs: [],
1444
- name: 'pauser',
1445
- outputs: [
1446
- {
1447
- internalType: 'address',
1448
- name: '',
1449
- type: 'address',
1450
- },
1451
- ],
1452
- stateMutability: 'view',
1453
- type: 'function',
1454
- },
1455
- {
1456
- inputs: [],
1457
- name: 'pendingOwner',
1458
- outputs: [
1459
- {
1460
- internalType: 'address',
1461
- name: '',
1462
- type: 'address',
1463
- },
1464
- ],
1465
- stateMutability: 'view',
1466
- type: 'function',
1467
- },
1468
- {
1469
- inputs: [
1470
- {
1471
- internalType: 'address',
1472
- name: 'owner',
1473
- type: 'address',
1474
- },
1475
- {
1476
- internalType: 'address',
1477
- name: 'spender',
1478
- type: 'address',
1479
- },
1480
- {
1481
- internalType: 'uint256',
1482
- name: 'value',
1483
- type: 'uint256',
1484
- },
1485
- {
1486
- internalType: 'uint256',
1487
- name: 'deadline',
1488
- type: 'uint256',
1489
- },
1490
- {
1491
- internalType: 'uint8',
1492
- name: 'v',
1493
- type: 'uint8',
1494
- },
1495
- {
1496
- internalType: 'bytes32',
1497
- name: 'r',
1498
- type: 'bytes32',
1499
- },
1500
- {
1501
- internalType: 'bytes32',
1502
- name: 's',
1503
- type: 'bytes32',
1504
- },
1505
- ],
1506
- name: 'permit',
1507
- outputs: [],
1508
- stateMutability: 'nonpayable',
1509
- type: 'function',
1510
- },
1511
- {
1512
- inputs: [
1513
- {
1514
- internalType: 'bytes',
1515
- name: 'scriptPubkey',
1516
- type: 'bytes',
1517
- },
1518
- {
1519
- internalType: 'uint256',
1520
- name: 'amount',
1521
- type: 'uint256',
1522
- },
1523
- ],
1524
- name: 'redeem',
1525
- outputs: [],
1526
- stateMutability: 'nonpayable',
1527
- type: 'function',
1528
- },
1529
- {
1530
- inputs: [],
1531
- name: 'reinitialize',
1532
- outputs: [],
1533
- stateMutability: 'nonpayable',
1534
- type: 'function',
1535
- },
1536
- {
1537
- inputs: [
1538
- {
1539
- internalType: 'address',
1540
- name: 'oldClaimer',
1541
- type: 'address',
1542
- },
1543
- ],
1544
- name: 'removeClaimer',
1545
- outputs: [],
1546
- stateMutability: 'nonpayable',
1547
- type: 'function',
1548
- },
1549
- {
1550
- inputs: [
1551
- {
1552
- internalType: 'address',
1553
- name: 'oldMinter',
1554
- type: 'address',
1555
- },
1556
- ],
1557
- name: 'removeMinter',
1558
- outputs: [],
1559
- stateMutability: 'nonpayable',
1560
- type: 'function',
1561
- },
1562
- {
1563
- inputs: [],
1564
- name: 'renounceOwnership',
1565
- outputs: [],
1566
- stateMutability: 'nonpayable',
1567
- type: 'function',
1568
- },
1569
- {
1570
- inputs: [
1571
- {
1572
- internalType: 'uint256',
1573
- name: 'fee',
1574
- type: 'uint256',
1575
- },
1576
- ],
1577
- name: 'setMintFee',
1578
- outputs: [],
1579
- stateMutability: 'nonpayable',
1580
- type: 'function',
1581
- },
1582
- {
1583
- inputs: [],
1584
- name: 'symbol',
1585
- outputs: [
1586
- {
1587
- internalType: 'string',
1588
- name: '',
1589
- type: 'string',
1590
- },
1591
- ],
1592
- stateMutability: 'view',
1593
- type: 'function',
1594
- },
1595
- {
1596
- inputs: [],
1597
- name: 'toggleWithdrawals',
1598
- outputs: [],
1599
- stateMutability: 'nonpayable',
1600
- type: 'function',
1601
- },
1602
- {
1603
- inputs: [],
1604
- name: 'totalSupply',
1605
- outputs: [
1606
- {
1607
- internalType: 'uint256',
1608
- name: '',
1609
- type: 'uint256',
1610
- },
1611
- ],
1612
- stateMutability: 'view',
1613
- type: 'function',
1614
- },
1615
- {
1616
- inputs: [
1617
- {
1618
- internalType: 'address',
1619
- name: 'to',
1620
- type: 'address',
1621
- },
1622
- {
1623
- internalType: 'uint256',
1624
- name: 'value',
1625
- type: 'uint256',
1626
- },
1627
- ],
1628
- name: 'transfer',
1629
- outputs: [
1630
- {
1631
- internalType: 'bool',
1632
- name: '',
1633
- type: 'bool',
1634
- },
1635
- ],
1636
- stateMutability: 'nonpayable',
1637
- type: 'function',
1638
- },
1639
- {
1640
- inputs: [
1641
- {
1642
- internalType: 'address',
1643
- name: 'from',
1644
- type: 'address',
1645
- },
1646
- {
1647
- internalType: 'address',
1648
- name: 'to',
1649
- type: 'address',
1650
- },
1651
- {
1652
- internalType: 'uint256',
1653
- name: 'value',
1654
- type: 'uint256',
1655
- },
1656
- ],
1657
- name: 'transferFrom',
1658
- outputs: [
1659
- {
1660
- internalType: 'bool',
1661
- name: '',
1662
- type: 'bool',
1663
- },
1664
- ],
1665
- stateMutability: 'nonpayable',
1666
- type: 'function',
1667
- },
1668
- {
1669
- inputs: [
1670
- {
1671
- internalType: 'address',
1672
- name: 'newOwner',
1673
- type: 'address',
1674
- },
1675
- ],
1676
- name: 'transferOwnership',
1677
- outputs: [],
1678
- stateMutability: 'nonpayable',
1679
- type: 'function',
1680
- },
1681
- {
1682
- inputs: [
1683
- {
1684
- internalType: 'address',
1685
- name: 'newPauser',
1686
- type: 'address',
1687
- },
1688
- ],
1689
- name: 'transferPauserRole',
1690
- outputs: [],
1691
- stateMutability: 'nonpayable',
1692
- type: 'function',
1693
- },
1694
- {
1695
- inputs: [],
1696
- name: 'unpause',
1697
- outputs: [],
1698
- stateMutability: 'nonpayable',
1699
- type: 'function',
1700
- },
1701
- {
1702
- inputs: [
1703
- {
1704
- components: [
1705
- {
1706
- internalType: 'uint256',
1707
- name: 'fromChain',
1708
- type: 'uint256',
1709
- },
1710
- {
1711
- internalType: 'address',
1712
- name: 'fromContract',
1713
- type: 'address',
1714
- },
1715
- {
1716
- internalType: 'uint256',
1717
- name: 'toChain',
1718
- type: 'uint256',
1719
- },
1720
- {
1721
- internalType: 'address',
1722
- name: 'toContract',
1723
- type: 'address',
1724
- },
1725
- {
1726
- internalType: 'address',
1727
- name: 'recipient',
1728
- type: 'address',
1729
- },
1730
- {
1731
- internalType: 'uint64',
1732
- name: 'amount',
1733
- type: 'uint64',
1734
- },
1735
- {
1736
- internalType: 'bytes32',
1737
- name: 'uniqueActionData',
1738
- type: 'bytes32',
1739
- },
1740
- ],
1741
- internalType: 'struct Actions.DepositBridgeAction',
1742
- name: 'action',
1743
- type: 'tuple',
1744
- },
1745
- {
1746
- internalType: 'bytes32',
1747
- name: '',
1748
- type: 'bytes32',
1749
- },
1750
- {
1751
- internalType: 'bytes',
1752
- name: '',
1753
- type: 'bytes',
1754
- },
1755
- ],
1756
- name: 'withdraw',
1757
- outputs: [],
1758
- stateMutability: 'nonpayable',
1759
- type: 'function',
1760
- },
1761
- ] as const;