UNPKG

hyperspace-sdk

Version:

An unofficial SDK for Hyperspace NFT Marketplace on Avalanche

13 lines (12 loc) 954 B
import { ethers, Wallet } from "ethers"; import { JsonRpcProvider } from "@ethersproject/providers"; export declare const getWavaxBalance: (provider: JsonRpcProvider, address: string) => Promise<string>; export declare const getWavaxApprovalStatus: (provider: JsonRpcProvider, address: string, balance: string) => Promise<boolean>; export declare const approveWavax: (wallet: ethers.Wallet) => Promise<any>; export declare const getNftApprovalStatus: (provider: JsonRpcProvider, address: string, contractAddress: string) => Promise<boolean>; export declare const approveNft: (wallet: ethers.Wallet, contractAddress: string) => Promise<any>; export declare const handleSignTransaction: (txInput: any, wallet: ethers.Wallet) => Promise<{ transactionBlockBytes: string; signature: string; }>; export declare const handleSignAndExecute: (wallet: Wallet, gasPriceMultiplier: number, gasLimitMultiplier: number, transactionInput: any) => Promise<any>;