UNPKG

@ajna-finance/sdk

Version:

A typescript SDK that can be used to create Dapps in Ajna ecosystem.

10 lines (9 loc) 911 B
import { Address, SignerOrProvider, WrappedTransaction } from '../types'; import { BigNumber, Contract, Signer } from 'ethers'; export declare const getErc20Contract: (contractAddress: Address, provider: SignerOrProvider) => Contract; export declare const getDSTokenContract: (contractAddress: Address, provider: SignerOrProvider) => Contract; export declare const getAjnaTokenContract: (provider: SignerOrProvider) => Contract; export declare function getBalance(signer: SignerOrProvider, account: Address, contractAddress: Address): Promise<BigNumber>; export declare function transfer(signer: Signer, to: Address, amount: BigNumber, contractAddress: Address): Promise<WrappedTransaction>; export declare function getAjnaBalance(signer: SignerOrProvider, account: Address): Promise<BigNumber>; export declare function transferAjna(signer: Signer, to: Address, amount: BigNumber): Promise<WrappedTransaction>;