hadeswap-sdk
Version:
HadeSwap SDK for interacting with protocol
14 lines (13 loc) • 566 B
TypeScript
import { web3 } from '@project-serum/anchor';
export interface Wallet {
publicKey: web3.PublicKey;
signTransaction(tx: web3.Transaction): Promise<web3.Transaction>;
signAllTransactions(txs: web3.Transaction[]): Promise<web3.Transaction[]>;
}
export declare class NodeWallet implements Wallet {
readonly payer: web3.Keypair;
constructor(payer: web3.Keypair);
signTransaction(tx: web3.Transaction): Promise<web3.Transaction>;
signAllTransactions(txs: web3.Transaction[]): Promise<web3.Transaction[]>;
get publicKey(): web3.PublicKey;
}