@unspent/phi
Version:
a collection of anyone can spend contracts
29 lines • 1.53 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 Annuity extends BaseUtxPhiContract implements UtxPhiIface {
period: bigint | number;
recipientAddress: any;
installment: bigint | number;
executorAllowance: bigint | number;
options: ContractOptions;
static c: string;
private static fn;
static minAllowance: bigint;
recipientLockingBytecode: Uint8Array;
constructor(period: bigint | number, recipientAddress: any, installment: bigint | number, executorAllowance?: bigint | number, options?: ContractOptions);
refresh(): void;
static fromString(str: string, network?: string): Annuity;
static fromOpReturn(opReturn: Uint8Array | string, network?: string): Annuity;
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;
asSeries(): Promise<any>;
execute(exAddress?: string, fee?: bigint, utxos?: Utxo[], debug?: boolean): Promise<string>;
}
//# sourceMappingURL=Annuity.d.ts.map