@unspent/phi
Version:
a collection of anyone can spend contracts
26 lines • 1.44 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 Mine extends BaseUtxPhiContract implements UtxPhiIface {
period: bigint | number;
payout: bigint | number;
difficulty: bigint | number;
canary: string;
options: ContractOptions;
static c: string;
private static fn;
static minPayout: bigint;
constructor(period?: bigint | number, payout?: bigint | number, difficulty?: bigint | number, canary?: string, options?: ContractOptions);
static fromString(str: string, network?: string): Mine;
static fromOpReturn(opReturn: Uint8Array | string, network?: string): Mine;
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;
toOpReturn(hex?: boolean): string | Uint8Array;
getNonce(verbose?: boolean): Promise<string>;
getOutputLockingBytecodes(hex?: boolean): never[];
isSpecial(): boolean;
execute(exAddress?: string, fee?: bigint, utxos?: Utxo[], debug?: boolean, nonce?: string | Uint8Array, verbose?: boolean): Promise<string>;
}
//# sourceMappingURL=Mine.d.ts.map