PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-polyx/dist/src
Просмотр файла: polyx.d.ts
import { AuditDecryptedKeyParams, BaseCoin, BitGoBase, MPCRecoveryOptions, MPCSweepTxs, MPCTx, MPCSweepRecoveryOptions, MPCTxs, TokenEnablementConfig } from '@bitgo/sdk-core';
import { ApiPromise } from '@polkadot/api';
import { BaseCoin as StaticsBaseCoin } from '@bitgo/statics';
import { SubstrateCoin, Interface } from '@bitgo/abstract-substrate';
import { BatchStakingBuilder } from './lib/batchStakingBuilder';
import { BondExtraBuilder } from './lib/bondExtraBuilder';
import { TransactionBuilderFactory } from './lib';
export declare class Polyx extends SubstrateCoin {
protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
protected constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
protected static nodeApiInitialized: boolean;
protected static API: ApiPromise;
static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
getBuilder(): TransactionBuilderFactory;
/**
* Factor between the coin's base unit and its smallest subdivison
*/
getBaseFactor(): number;
getChain(): string;
getFullName(): string;
/** @inheritDoc */
auditDecryptedKey({ publicKey, prv, multiSigType }: AuditDecryptedKeyParams): void;
stakingBatch(): BatchStakingBuilder;
bondExtra(): BondExtraBuilder;
/**
* Retrieves the address format for Polyx.
*
* @returns {number} The address format as a number for Polyx.
* @override
*/
protected getAddressFormat(): number;
protected getInitializedNodeAPI(): Promise<ApiPromise>;
protected getAccountInfo(walletAddr: string): Promise<{
nonce: number;
freeBalance: number;
}>;
protected getFee(destAddr: string, srcAddr: string, amount: number): Promise<number>;
protected getHeaderInfo(): Promise<{
headerNumber: number;
headerHash: string;
}>;
protected getMaterial(): Promise<Interface.Material>;
/**
* Builds a funds recovery transaction without BitGo
* @param {MPCRecoveryOptions} params parameters needed to construct and
* (maybe) sign the transaction
*
* @returns {MPCTx} the serialized transaction hex string and index
* of the address being swept
*/
recover(params: MPCRecoveryOptions): Promise<MPCTx | MPCSweepTxs>;
/** inherited doc */
createBroadcastableSweepTransaction(params: MPCSweepRecoveryOptions): Promise<MPCTxs>;
/**
* Gets config for how token enablements work for this coin
* @returns
* requiresTokenEnablement: True if tokens need to be enabled for this coin
* supportsMultipleTokenEnablements: True if multiple tokens can be enabled in one transaction
* validateWallet: Function to validate wallet type for token enablement
*/
getTokenEnablementConfig(): TokenEnablementConfig;
}
//# sourceMappingURL=polyx.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!