diff --git a/src/main/tjava/com/r35157/cryptowallet/solana/SolanaWallet.tjava b/src/main/tjava/com/r35157/cryptowallet/solana/SolanaWallet.tjava index e9bd819..b8a0341 100644 --- a/src/main/tjava/com/r35157/cryptowallet/solana/SolanaWallet.tjava +++ b/src/main/tjava/com/r35157/cryptowallet/solana/SolanaWallet.tjava @@ -88,44 +88,6 @@ public interface SolanaWallet { @NotNull ΩSolanaWalletIdΩ recipient ) throws IOException, InterruptedException; - /** - * Builds an unsigned transaction that transfers a specific amount of SOL. - * - *
The current wallet is used as fee payer and required signer. This - * method does not sign or submit the transaction.
- * - * @param recipient the wallet that should receive the SOL - * @param amount the amount of SOL to transfer - * @return the unsigned serialized transfer transaction - * @throws IllegalArgumentException if the recipient or amount is invalid - * @throws IOException if a recent blockhash cannot be fetched - * @throws InterruptedException if the calling thread is interrupted - */ - @NotNull - SolanaUnsignedTransaction buildSolanaTransferTransaction( - @NotNull ΩSolanaWalletIdΩ recipient, - @NotNull ΩSolanaAmountΩ amount - ) throws IOException, InterruptedException; - - /** - * Builds an unsigned transaction that transfers the wallet's complete - * native SOL balance after paying the exact transaction fee. - * - *The current wallet is used as fee payer and required signer. This - * method does not sign or submit the transaction.
- * - * @param recipient the wallet that should receive the SOL - * @return the unsigned serialized transfer transaction - * @throws IllegalArgumentException if the recipient is invalid - * @throws IllegalStateException if the balance cannot cover a transfer - * @throws IOException if the balance, blockhash or fee cannot be fetched - * @throws InterruptedException if the calling thread is interrupted - */ - @NotNull - SolanaUnsignedTransaction buildSolanaTransferAllTransaction( - @NotNull ΩSolanaWalletIdΩ recipient - ) throws IOException, InterruptedException; - /** * Signs an unsigned Solana transaction. * diff --git a/src/main/tjava/com/r35157/cryptowallet/solana/impl/ref/SolanaWalletImpl.tjava b/src/main/tjava/com/r35157/cryptowallet/solana/impl/ref/SolanaWalletImpl.tjava index 373b7c1..db5899d 100644 --- a/src/main/tjava/com/r35157/cryptowallet/solana/impl/ref/SolanaWalletImpl.tjava +++ b/src/main/tjava/com/r35157/cryptowallet/solana/impl/ref/SolanaWalletImpl.tjava @@ -86,28 +86,6 @@ public class SolanaWalletImpl implements SolanaWallet { return solanaBlockChain.sendTransaction(signedTransaction); } - @Override - public @NotNull SolanaUnsignedTransaction buildSolanaTransferTransaction( - @NotNull ΩSolanaWalletIdΩ recipient, - @NotNull ΩSolanaAmountΩ amount - ) throws IOException, InterruptedException { - return solanaBlockChain.buildSolanaTransferTransaction( - address, - recipient, - amount - ); - } - - @Override - public @NotNull SolanaUnsignedTransaction buildSolanaTransferAllTransaction( - @NotNull ΩSolanaWalletIdΩ recipient - ) throws IOException, InterruptedException { - return solanaBlockChain.buildSolanaTransferAllTransaction( - address, - recipient - ); - } - @Override public @NotNull SolanaSignedTransaction signTransaction( @NotNull SolanaUnsignedTransaction transaction