PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/micro-eth-signer/lib

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

export declare const CHAIN_TYPES: {
    mainnet: number;
    ropsten: number;
    rinkeby: number;
    goerli: number;
    kovan: number;
};
export declare const TRANSACTION_TYPES: {
    legacy: number;
    eip2930: number;
    eip1559: number;
};
export declare function add0x(hex: string): string;
export declare function strip0x(hex: string): string;
export declare function hexToBytes(hex: string): Uint8Array;
export declare function numberTo0xHex(num: number | bigint): string;
type Chain = keyof typeof CHAIN_TYPES;
type Type = keyof typeof TRANSACTION_TYPES;
declare const FIELDS: readonly ["nonce", "gasPrice", "gasLimit", "to", "value", "data", "v", "r", "s"];
declare const FIELDS2930: readonly ["chainId", "nonce", "gasPrice", "gasLimit", "to", "value", "data", "accessList", "yParity", "r", "s"];
declare const FIELDS1559: readonly ["chainId", "nonce", "maxPriorityFeePerGas", "maxFeePerGas", "gasLimit", "to", "value", "data", "accessList", "yParity", "r", "s"];
export type Field = (typeof FIELDS)[number] | (typeof FIELDS2930)[number] | (typeof FIELDS1559)[number] | 'address' | 'storageKey';
type str = string;
export type AccessList = [str, str[]][];
export type RawTxLegacy = [str, str, str, str, str, str, str, str, str];
export type RawTx2930 = [str, str, str, str, str, str, AccessList, str, str, str];
export type RawTx1559 = [str, str, str, str, str, str, str, AccessList, str, str, str];
export type RawTx = RawTxLegacy | RawTx2930 | RawTx1559;
export type RawTxMap = {
    chainId?: string;
    nonce: string;
    gasPrice?: string;
    maxPriorityFeePerGas?: string;
    maxFeePerGas?: string;
    gasLimit: string;
    to: string;
    value: string;
    data: string;
    accessList?: AccessList;
    yParity?: string;
    v?: string;
    r: string;
    s: string;
};
export declare const Address: {
    fromPrivateKey(key: string | Uint8Array): string;
    fromPublicKey(key: string | Uint8Array): string;
    checksum(nonChecksummedAddress: string): string;
    verifyChecksum(address: string): boolean;
};
export declare class Transaction {
    readonly hardfork: string;
    static DEFAULT_HARDFORK: string;
    static DEFAULT_CHAIN: Chain;
    static DEFAULT_TYPE: Type;
    readonly hex: string;
    readonly raw: RawTxMap;
    readonly isSigned: boolean;
    readonly type: Type;
    constructor(data: string | Uint8Array | RawTx | RawTxMap, chain?: Chain, hardfork?: string, type?: Type);
    private isNew;
    get bytes(): Uint8Array;
    equals(other: Transaction): boolean;
    get chain(): Chain | undefined;
    get sender(): string;
    get gasPrice(): bigint;
    get maxFeePerGas(): bigint;
    get maxPriorityFeePerGas(): bigint;
    get gasLimit(): bigint;
    get amount(): bigint;
    get fee(): bigint;
    get upfrontCost(): bigint;
    get to(): string;
    get nonce(): number;
    private supportsReplayProtection;
    getMessageToSign(signed?: boolean): string;
    get hash(): string;
    sign(privateKey: string | Uint8Array, extraEntropy?: boolean): Transaction;
    recoverSenderPublicKey(): Uint8Array | undefined;
}
export {};
//# sourceMappingURL=index.d.ts.map

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


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