PHP WebShell

Текущая директория: /opt/BitGoJS/modules/utxo-core/dist/src

Просмотр файла: Output.d.ts

export type Output<TValue = bigint> = {
    script: Buffer;
    value: TValue;
};
export type MaxOutput = Output<'max'>;
type ValueBigInt = {
    value: bigint;
};
type ValueMax = {
    value: 'max';
};
/**
 * @return true if the output is a max output
 */
export declare function isMaxOutput<A extends ValueBigInt, B extends ValueMax>(output: A | B): output is B;
/**
 * @return the max output if there is one
 * @throws if there are multiple max outputs
 */
export declare function getMaxOutput<A extends ValueBigInt, B extends ValueMax>(outputs: (A | B)[]): B | undefined;
/**
 * @return the sum of the outputs
 */
export declare function getOutputSum(outputs: ValueBigInt[]): bigint;
/**
 * @return the sum of the outputs that are not 'max'
 */
export declare function getFixedOutputSum(outputs: (ValueBigInt | ValueMax)[]): bigint;
/**
 * @param outputs
 * @param params
 * @return the outputs with the 'max' output replaced with the max amount
 */
export declare function toFixedOutputs<A extends ValueBigInt, B extends ValueMax>(outputs: (A | B)[], params: {
    maxAmount: bigint;
}): A[];
export type PrevOutput = {
    hash: string;
    index: number;
    witnessUtxo: Output;
};
export {};
//# sourceMappingURL=Output.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!