UNPKG

@dojima-wallet/connection

Version:

Initialise and connection for layer 1&2 blockchain

17 lines (16 loc) 844 B
import { Dojima } from "./types"; import { Wallet } from "@project-serum/anchor"; import * as web3 from "@solana/web3.js"; export declare const IDL: Dojima; export declare const lamportsToBase: (asset: number, decimal: number) => number; export declare const baseToLamports: (base: number, decimal: number) => number; export declare const convertDateToTimestamp: (date: string) => number; export declare const convertTimestampToDate: (timestamp: number) => string; export declare const convertISOtoUTC: (date: string) => string; export declare class SOLNodeWallet 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; }