PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-trx/dist/src/lib
Просмотр файла: unfreezeBalanceTxBuilder.d.ts
import { TransactionType, BaseKey } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionBuilder } from './transactionBuilder';
import { Transaction } from './transaction';
import { TransactionReceipt, UnfreezeBalanceV2Contract } from './iface';
export declare class UnfreezeBalanceTxBuilder extends TransactionBuilder {
protected _signingKeys: BaseKey[];
private _unfreezeBalance;
private _resource;
constructor(_coinConfig: Readonly<CoinConfig>);
/** @inheritdoc */
protected get transactionType(): TransactionType;
/**
* Set the unfrozen balance amount
*
* @param amount amount in TRX to unfreeze
* @returns the builder with the new parameter set
*/
setUnfreezeBalance(amount: string): this;
/**
* Set the resource type
*
* @param resource resource type to unfreeze
* @returns the builder with the new parameter set
*/
setResource(resource: string): this;
/** @inheritdoc */
extendValidTo(extensionMs: number): void;
initBuilder(rawTransaction: TransactionReceipt | string): this;
/**
* Initialize the freeze contract call specific data
*
* @param {UnfreezeBalanceV2Contract} unfreezeContractCall object with freeze txn data
*/
protected initUnfreezeContractCall(unfreezeContractCall: UnfreezeBalanceV2Contract): void;
protected buildImplementation(): Promise<Transaction>;
/**
* Helper method to create the freeze balance transaction
*/
private createUnfreezeBalanceTransaction;
/**
* Helper method to get the unfreeze balance transaction raw data hex
*
* @returns {string} the freeze balance transaction raw data hex
*/
private getUnfreezeRawDataHex;
/** @inheritdoc */
protected signImplementation(key: BaseKey): Transaction;
private applySignatures;
/**
* Validates the transaction
*
* @param {Transaction} transaction - The transaction to validate
* @throws {BuildTransactionError} when the transaction is invalid
*/
validateTransaction(transaction: Transaction): void;
/**
* Validates if the transaction is a valid unfreeze transaction
*
* @param {TransactionReceipt} transaction - The transaction to validate
* @throws {BuildTransactionError} when the transaction is invalid
*/
private validateFreezeTransactionFields;
}
//# sourceMappingURL=unfreezeBalanceTxBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!