@descent-protocol/sdk
Version:
A Typescript library for interacting with the Descent Protocol
27 lines (26 loc) • 1.5 kB
TypeScript
import { Signer } from 'ethers';
import { ICollateral } from '../types';
import { Transaction } from '../libs/transactions';
import { Internal } from '../libs/internal';
export declare enum VaultHealthFactor {
UNSAFE = "UNSAFE",
SAFE = "SAFE"
}
export declare enum VaultOperations {
Invalid = 0,
DepositCollateral = 1,
WithdrawCollateral = 2,
MintCurrency = 3,
BurnCurrency = 4,
Permit2_PermitTransferFrom = 5,
Permit2_Permit = 5,
Permit2_TransferFrom = 6,
ERC20_Permit = 7,
ERC20_TransferFrom = 8
}
declare const setupVault: (owner: string, chainId: string, transaction: Transaction, internal: Internal) => Promise<string>;
declare const collateralizeVault: (amount: string, collateral: ICollateral, owner: string, chainId: string, transaction: Transaction, internal: Internal) => Promise<string>;
declare const withdrawCollateral: (amount: string, collateral: ICollateral, owner: string, chainId: string, transaction: Transaction, internal: Internal, signer: Signer) => Promise<string>;
declare const mintCurrency: (amount: string, collateral: ICollateral, owner: string, chainId: string, transaction: Transaction, internal: Internal, signer: Signer) => Promise<string>;
declare const burnCurrency: (amount: string, collateral: ICollateral, owner: string, chainId: string, transaction: Transaction, internal: Internal, signer: Signer) => Promise<string>;
export { collateralizeVault, withdrawCollateral, mintCurrency, burnCurrency, setupVault };