sparrow-controllers
Version:
Collection of platform-agnostic modules for creating secure data models for cryptocurrency wallets
64 lines (63 loc) • 1.87 kB
TypeScript
import { TransactionMeta } from '../TransactionController';
export declare const ethTxsMock: (ethTxHash: string) => ({
blockNumber: string;
confirmations: string;
contractAddress: string;
cumulativeGasUsed: string;
from: string;
gas: string;
gasPrice: string;
gasUsed: string;
hash: string;
input: string;
isError: string;
nonce: string;
timeStamp: string;
to: string;
transactionIndex: string;
txreceipt_status: string;
value: string;
} | {
blockNumber: string;
confirmations: string;
contractAddress: string;
cumulativeGasUsed: string;
from: string;
gas: string;
gasPrice: string;
gasUsed: string;
hash: string;
input: string;
isError: string;
nonce: string;
timeStamp: string;
transactionIndex: string;
txreceipt_status: string;
value: string;
to?: undefined;
})[];
export declare const tokenTxsMock: (tokenTxHash: string) => {
blockNumber: string;
timeStamp: string;
hash: string;
nonce: string;
blockHash: string;
from: string;
contractAddress: string;
to: string;
value: string;
tokenName: string;
tokenSymbol: string;
tokenDecimal: string;
transactionIndex: string;
gas: string;
gasPrice: string;
gasUsed: string;
cumulativeGasUsed: string;
input: string;
confirmations: string;
}[];
export declare const txsInStateMock: (ethTxHash: string, tokenTxHash: string) => TransactionMeta[];
export declare const txsInStateWithOutdatedStatusMock: (ethTxHash: string, tokenTxHash: string) => TransactionMeta[];
export declare const txsInStateWithOutdatedGasDataMock: (ethTxHash: string, tokenTxHash: string) => TransactionMeta[];
export declare const txsInStateWithOutdatedStatusAndGasDataMock: (ethTxHash: string, tokenTxHash: string) => TransactionMeta[];