@descent-protocol/sdk
Version:
A Typescript library for interacting with the Descent Protocol
15 lines (14 loc) • 1.13 kB
TypeScript
import { AddressLike, BytesLike, Signer } from 'ethers';
import { Internal } from '../libs/internal';
import { ICollateral } from '../types';
import { Transaction } from '../libs/transactions';
export type StaticcallStruct = {
target: AddressLike;
callData: BytesLike;
};
declare const approveCollateralToken: (collateral: ICollateral, owner: string, amount: string, chainId: string, internal: Internal, transaction: Transaction) => Promise<string>;
declare const approveCurrencyToken: (owner: string, amount: string, chainId: string, internal: Internal, transaction: Transaction) => Promise<string>;
declare const getCurrencyTokenBalance: (owner: string, chainId: string, signer: Signer) => Promise<string>;
declare const getCollateralTokenBalance: (collateral: ICollateral, owner: string, chainId: string, signer: Signer) => Promise<string>;
declare const getCollateralTokenAllowance: (collateral: ICollateral, owner: string, chainId: string, signer: Signer) => Promise<string>;
export { getCollateralTokenBalance, getCurrencyTokenBalance, getCollateralTokenAllowance, approveCollateralToken, approveCurrencyToken, };