PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-staking/dist/src/coreDao
Просмотр файла: transaction.d.ts
import { Output } from '@bitgo/utxo-core';
import { Descriptor } from '@bitgo/wasm-miniscript';
import { OpReturnParams } from './opReturn';
type StakingParams = {
amount: bigint;
descriptor: Descriptor;
index?: number;
};
/**
* Create the staking outputs for a CoreDAO staking transaction. This is the ordering
* in which to add into the transaction.
* @param stakingParams how to create the timelocked stake output
* @param stakingParams.descriptor if stakingParams.index is not provided, then this is assumed to be a `definite` descriptor.
* If stakingParams.index is provided, then this is assumed to be a `derivable` descriptor.
* @param opReturnParams to create the OP_RETURN output
*/
export declare function createStakingOutputsCore(stakingParams: StakingParams, opReturnParams: OpReturnParams): Output<bigint>[];
type LegacyOutput = {
script: Buffer;
amount: bigint;
};
/**
* @see createStakingOutputsCore
* @deprecated - use createStakingOutputsCore instead
*/
export declare function createStakingOutputs(stakingParams: StakingParams, opReturnParams: OpReturnParams): LegacyOutput[];
export {};
//# sourceMappingURL=transaction.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!