@unspent/phi
Version:
a collection of anyone can spend contracts
26 lines • 1.35 kB
TypeScript
import type { Utxo, NetworkProvider } from "cashscript";
import type { UtxPhiIface, ContractOptions } from "../../common/interface.js";
import { BaseUtxPhiContract } from "../../common/contract.js";
export declare class Faucet extends BaseUtxPhiContract implements UtxPhiIface {
period: bigint | number;
payout: bigint | number;
index: bigint | number;
options: ContractOptions;
static c: string;
private static fn;
static minPayout: bigint;
constructor(period?: bigint | number, payout?: bigint | number, index?: bigint | number, options?: ContractOptions);
refresh(): void;
static fromString(str: string, network?: string): Faucet;
static fromOpReturn(opReturn: Uint8Array | string, network?: string): Faucet;
static getSpendableBalance(opReturn: Uint8Array | string, network: string | undefined, networkProvider: NetworkProvider, blockHeight: number): Promise<bigint>;
static getExecutorAllowance(opReturn: Uint8Array | string, network?: string): bigint;
toString(): string;
asText(): string;
asCommand(): string;
toOpReturn(hex?: boolean): string | Uint8Array;
getOutputLockingBytecodes(hex?: boolean): never[];
isSpecial(): boolean;
execute(exAddress?: string, fee?: bigint, utxos?: Utxo[], debug?: boolean): Promise<string>;
}
//# sourceMappingURL=Faucet.d.ts.map