dev3-sdk
Version:
SDK for interacting with the 0xDev3 platform.
50 lines (49 loc) • 1.8 kB
TypeScript
import { ContractCallAction } from "../../core/actions/ContractCallAction";
import { UpkeepInfo } from "../../core/types";
import { TransactionResponse } from 'ethers';
export declare class Upkeep {
id: string;
balance: string;
minBalance: string;
targetContract: string;
admin: string;
executeGas: string;
maxValidBlockNumber: string;
lastPerformBlockNumber: string;
amountSpent: string;
paused: boolean;
checkData: string;
offchainConfig: string;
keeperRegistryContractAddress: string;
chainlinkTokenContractAddress: string;
private constructor();
static fromUpkeepId(subId: string): Promise<Upkeep>;
getInfo(subId?: string): Promise<UpkeepInfo>;
fund(amount: string, options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
pauseUpkeep(options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
unpauseUpkeep(options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
setGasLimit(limit: string, options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
setUpkeepOffchainConfig(offchainConfig: string, options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
cancel(options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
transferUpkeepAdmin(newOwner: string, options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
acceptUpkeepAdmin(options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
withdrawFunds(address: string, options?: {
pk?: string;
}): Promise<ContractCallAction | TransactionResponse>;
}