UNPKG

@funkit/fun-relay

Version:
12 lines 976 B
import type { AdaptedWallet } from '@relayprotocol/relay-sdk'; import { type Connection, type VersionedTransaction } from '@solana/web3.js'; type Base58 = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'J' | 'K' | 'L' | 'M' | 'N' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z'; export type SolanaAddress = `${Base58}${string}`; export type SolanaTxHash = `${Base58}${string}`; export type SolanaWallet = { address(): Promise<SolanaAddress>; vmType: 'svm'; } & AdaptedWallet; export declare function getSolanaWallet(walletAddress: SolanaAddress, connection: Connection, signTransaction: (transaction: VersionedTransaction) => Promise<VersionedTransaction>, payerKey?: SolanaAddress): SolanaWallet; export {}; //# sourceMappingURL=solana.d.ts.map