swapnet-sdk-test-4
Version:
TypeScript SDK for SwapNet API.
18 lines (17 loc) • 682 B
TypeScript
import type { EthCallOverride } from "./types.js";
export declare class AddressAsIf {
readonly address: string;
protected _field: "balance" | "nonce" | "code" | "stateDiff" | "state" | undefined;
protected _slot: string | undefined;
protected _value: string | undefined;
protected _registeredPromises: Array<Promise<void>>;
constructor(address: string);
balance(): AddressAsIf;
nonce(): AddressAsIf;
code(): AddressAsIf;
stateDiff(slot: string): AddressAsIf;
state(slot: string): AddressAsIf;
is(value: any): AddressAsIf;
valueAsync(): Promise<EthCallOverride>;
}
export declare const addressAt: (address: string) => AddressAsIf;