PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-near/dist/src/lib

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

import * as NearAPI from 'near-api-js';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { StorageDepositInput } from './iface';
import { Transaction } from './transaction';
import { TransactionBuilder } from './transactionBuilder';
export declare class FungibleTokenTransferBuilder extends TransactionBuilder {
    private contractCallWrapper;
    constructor(_coinConfig: Readonly<CoinConfig>);
    /**
     * Check if a transaction is a fungible token transfer
     *
     * @param {NearAPI.transactions.Action[]} actions near transaction actions
     * @returns {Boolean} true if more than 1 action present or first action method name is ft transfer
     */
    static isFungibleTokenTransferTransaction(actions: NearAPI.transactions.Action[]): boolean;
    /**
     * Initialize the transaction builder fields using the decoded transaction data
     *
     * @param {Transaction} tx the transaction data
     */
    initBuilder(tx: Transaction): void;
    /**
     * Sets the gas of this transaction.
     *
     * @param {String} gas the gas of this transaction
     * @returns {TransactionBuilder} This transaction builder
     */
    gas(gas: string): this;
    /**
     * Sets the deposit of at-least 1 yoctoNear
     *
     * @param {string} deposit the deposit in the minimum unit (1 Near = 1e24 yoctoNear) of this transaction
     * @returns {TransactionBuilder} This transaction builder
     */
    deposit(deposit: string): this;
    /**
     * Sets the actual receiver account id inside args
     *
     * @param accountId the receiver account id
     */
    ftReceiverId(accountId: string): this;
    /**
     * Sets the ft amount to be transferred
     *
     * @param amount the amount of fungible token to be transferred
     */
    amount(amount: string): this;
    /**
     * Sets the optional memo for the transfer
     *
     * @param memo
     */
    memo(memo: string): this;
    /**
     * Sets the storage deposit action
     *
     * @param {StorageDepositInput} input contains the deposit value, gas and optional account id
     * if account id is not provided then it is self transfer
     */
    addStorageDeposit(input: StorageDepositInput): void;
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=fungibleTokenTransferBuilder.d.ts.map

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


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