@unspent/phi
Version:
a collection of anyone can spend contracts
27 lines • 1.37 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 Divide extends BaseUtxPhiContract implements UtxPhiIface {
executorAllowance: bigint | number;
payees: string[];
options: ContractOptions;
private static c;
private static fn;
private payeeLocks;
divisor: bigint;
static minAllowance: bigint;
constructor(executorAllowance: bigint | number, payees: string[], options?: ContractOptions);
refresh(): void;
static fromString(str: string, network?: string): Divide;
static fromOpReturn(opReturn: Uint8Array | string, network?: string): Divide;
static getExecutorAllowance(opReturn: Uint8Array | string, network?: string): bigint;
static getSpendableBalance(opReturn: Uint8Array | string, network: string | undefined, networkProvider: NetworkProvider, blockHeight: number): Promise<bigint>;
toString(): string;
asText(): string;
asCommand(): string;
toOpReturn(hex?: boolean): string | Uint8Array;
getOutputLockingBytecodes(hex?: boolean): string[] | Uint8Array[];
isSpecial(): boolean;
execute(exAddress?: string, fee?: bigint, utxos?: Utxo[], debug?: boolean): Promise<string>;
}
//# sourceMappingURL=Divide.d.ts.map