PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-staking/dist/src/babylon
Просмотр файла: stakingParams.d.ts
import * as t from 'io-ts';
import * as tt from 'io-ts-types';
import * as utxolib from '@bitgo/utxo-lib';
import { StakerInfo, StakingInputs, StakingParams, VersionedStakingParams } from '@bitgo/babylonlabs-io-btc-staking-ts';
export { getBabylonParamByVersion, getBabylonParamByBtcHeight } from '@bitgo/babylonlabs-io-btc-staking-ts';
import { BabylonDescriptorBuilder } from './descriptor';
import { BabylonNetworkLike } from './network';
declare const BabylonParamsJSON: t.TypeC<{
covenant_pks: t.ArrayC<t.StringC>;
covenant_quorum: t.NumberC;
min_staking_value_sat: tt.NumberFromStringC;
max_staking_value_sat: tt.NumberFromStringC;
min_staking_time_blocks: t.NumberC;
max_staking_time_blocks: t.NumberC;
slashing_pk_script: t.StringC;
min_slashing_tx_fee_sat: tt.NumberFromStringC;
slashing_rate: t.StringC;
unbonding_time_blocks: t.NumberC;
unbonding_fee_sat: tt.NumberFromStringC;
min_commission_rate: tt.NumberFromStringC;
delegation_creation_base_gas_fee: tt.NumberFromStringC;
allow_list_expiration_height: tt.NumberFromStringC;
btc_activation_height: t.NumberC;
}>;
type BabylonParamsJSON = t.TypeOf<typeof BabylonParamsJSON>;
export declare function toVersionedParams(ps: BabylonParamsJSON[]): VersionedStakingParams[];
export declare const mainnetStakingParams: readonly VersionedStakingParams[];
export declare const testnetStakingParams: readonly VersionedStakingParams[];
export declare function getStakingParams(network: BabylonNetworkLike): VersionedStakingParams[];
export declare const testnetFinalityProvider0: Buffer<ArrayBuffer>;
type DescriptorStakingParams = Pick<StakingParams, 'covenantNoCoordPks' | 'covenantQuorum' | 'minStakingTimeBlocks' | 'unbondingTime'>;
export declare function getDescriptorBuilderForParams(userKey: utxolib.BIP32Interface | utxolib.ECPairInterface | Buffer, finalityProviderKeys: Buffer[], stakingTimelock: number, params: DescriptorStakingParams): BabylonDescriptorBuilder;
export declare function getDescriptorProviderForStakingParams(stakerBtcInfo: Pick<StakerInfo, 'publicKeyNoCoordHex'>, stakingInput: StakingInputs, stakingParams: DescriptorStakingParams): BabylonDescriptorBuilder;
export declare function getTestnetDescriptorBuilder(userKey: utxolib.BIP32Interface | utxolib.ECPairInterface | Buffer, { finalityProviderKeys, params, stakingTimelock, }?: {
finalityProviderKeys?: Buffer[];
params?: StakingParams;
stakingTimelock?: number;
}): BabylonDescriptorBuilder;
//# sourceMappingURL=stakingParams.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!