wowok
Version:
Wowok Blockchain TypeScript API
28 lines (27 loc) • 1.46 kB
TypeScript
import type { Transaction, TransactionObjectArgument } from "../../transactions/index.js";
import type { CallEnv, PassportObject, PaymentObject, TypeNamedObject, PaymentAddress, CoinParam } from "../common.js";
import type { AccountOrMark_Address } from "../local/index.js";
import type { PaymentInfo } from "../query/object.js";
import type { CallResult } from "./base.js";
import { CallBase } from "./base.js";
export interface CallPayment_Data {
object: TypeNamedObject;
revenue: Revenue[];
info: PaymentInfo;
}
export declare class CallPayment extends CallBase {
data: CallPayment_Data;
constructor(data: CallPayment_Data);
call(env: CallEnv): Promise<CallResult>;
operate(env: CallEnv, tx: Transaction, _passport?: PassportObject): Promise<void>;
}
export declare function paymentFn(name: string): string;
export declare const MAX_RECIPIENT_COUNT = 200;
export interface Revenue {
recipient: AccountOrMark_Address;
amount: CoinParam;
}
export declare function receiveToMyself(tx: Transaction, type: string, received_object: string): void;
export declare function paymentInfo(env: CallEnv, tx: Transaction, info: PaymentInfo): Promise<TransactionObjectArgument>;
export declare const newPayment: (env: CallEnv, tx: Transaction, allocation_type: string, revenue: Revenue[], info: PaymentInfo) => Promise<PaymentObject>;
export declare function create(tx: Transaction, type: string, payment: PaymentObject): PaymentAddress;