@magiceden/magiceden-sdk
Version:
A TypeScript SDK for interacting with Magic Eden's API across multiple chains.
26 lines (25 loc) • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockSolanaWalletProvider = void 0;
const solanaWalletProvider_1 = require("./solanaWalletProvider");
class MockSolanaWalletProvider extends solanaWalletProvider_1.SolanaWalletProvider {
constructor() {
super();
this.getAddress = () => '0x123';
this.getBalance = async () => BigInt(1000000);
this.signMessage = async (message) => '0x123';
this.signTransaction = async (transaction) => transaction;
this.sendTransaction = async () => '0x123';
this.signAndSendTransaction = async () => '0x123';
this.waitForTransactionConfirmation = async (txIdentifier) => ({
txId: txIdentifier,
status: 'confirmed',
});
this.getConnection = () => ({});
this.getSignatureStatus = async (signature) => ({
context: { slot: 1 },
value: { slot: 1, confirmations: 1, err: null, confirmationStatus: 'confirmed' },
});
}
}
exports.MockSolanaWalletProvider = MockSolanaWalletProvider;