PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-near/src/lib
Просмотр файла: iface.ts
import BN from 'bn.js';
import { TransactionType, TransactionExplanation as BaseTransactionExplanation } from '@bitgo/sdk-core';
export interface TransactionExplanation extends BaseTransactionExplanation {
type: TransactionType;
}
export enum KeyType {
ED25519 = 0,
}
export interface Signature {
keyType: KeyType;
data: Uint8Array;
}
export interface Transfer {
deposit: BN;
}
/** Interface with parameters needed to perform FunctionCall to a contract */
export interface FunctionCall {
methodName: string;
args: Record<string, unknown>;
gas: string;
deposit: string;
}
/**
* Actions implemented on Near account-lib
* add here as more are implemented.
*/
export interface Action {
transfer?: Transfer;
functionCall?: FunctionCall;
}
export interface TxData {
id?: string;
signerId: string;
publicKey: string;
nonce: number;
receiverId: string;
actions: Action[];
signature?: Signature;
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!