@unique.vc/udm.js
Version:
UDM - Unique Delegation Manager is a simple yet efficient solution allowing to bridge self-custody and user experience, have best from both worlds and potentially extend the reach of the industry.
9 lines (7 loc) • 368 B
text/typescript
import type { PublicKey, Transaction } from '@solana/web3.js';
import { Wallet } from '@project-serum/anchor/dist/cjs/provider';
export const emptyWallet = (publicKey: PublicKey): Wallet => ({
signTransaction: async (tx: Transaction) => new Promise(() => tx),
signAllTransactions: async (txs: Transaction[]) => new Promise(() => txs),
publicKey: publicKey,
});