@ajna-finance/sdk
Version:
A typescript SDK that can be used to create Dapps in Ajna ecosystem.
7 lines (6 loc) • 631 B
TypeScript
import { Address, SignerOrProvider, WrappedTransaction } from '../types';
import { BigNumber, Contract, Signer } from 'ethers';
export declare const getNftContract: (contractAddress: string, provider: SignerOrProvider) => Contract;
export declare function transferFrom(signer: Signer, from: Address, to: Address, amount: BigNumber, contractAddress: Address): Promise<WrappedTransaction>;
export declare function ownerOf(signer: SignerOrProvider, tokenId: number, contractAddress: Address): Promise<Address>;
export declare function balanceOf(signer: SignerOrProvider, owner: Address, contractAddress: Address): Promise<BigNumber>;