Options
All
  • Public
  • Public/Protected
  • All
Menu

libsushi

Index

Type aliases

CodedEthersError<T>: T extends "UNKNOWN_ERROR" ? UnknownError : T extends "NOT_IMPLEMENTED" ? NotImplementedError : T extends "UNSUPPORTED_OPERATION" ? UnsupportedOperationError : T extends "NETWORK_ERROR" ? NetworkError : T extends "SERVER_ERROR" ? ServerError : T extends "TIMEOUT" ? TimeoutError : T extends "BAD_DATA" ? BadDataError : T extends "BUFFER_OVERRUN" ? BufferOverrunError : T extends "NUMERIC_FAULT" ? NumericFaultError : T extends "INVALID_ARGUMENT" ? InvalidArgumentError : T extends "MISSING_ARGUMENT" ? MissingArgumentError : T extends "UNEXPECTED_ARGUMENT" ? UnexpectedArgumentError : T extends "CALL_EXCEPTION" ? CallExceptionError : T extends "INSUFFICIENT_FUNDS" ? InsufficientFundsError : T extends "NONCE_EXPIRED" ? NonceExpiredError : T extends "OFFCHAIN_FAULT" ? OffchainFaultError : T extends "REPLACEMENT_UNDERPRICED" ? ReplacementUnderpricedError : T extends "TRANSACTION_REPLACED" ? TransactionReplacedError : T extends "UNCONFIGURED_NAME" ? UnconfiguredNameError : T extends "UNPREDICTABLE_GAS_LIMIT" ? UnpredictableGasLimitError : never
export

CodedEthersError

Type parameters

  • T

ErrorAccessList: { address: string; storageKeys: string[] }[]
ErrorCode: "UNKNOWN_ERROR" | "NOT_IMPLEMENTED" | "UNSUPPORTED_OPERATION" | "NETWORK_ERROR" | "SERVER_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUFFER_OVERRUN" | "NUMERIC_FAULT" | "INVALID_ARGUMENT" | "MISSING_ARGUMENT" | "UNEXPECTED_ARGUMENT" | "VALUE_MISMATCH" | "CALL_EXCEPTION" | "INSUFFICIENT_FUNDS" | "NONCE_EXPIRED" | "REPLACEMENT_UNDERPRICED" | "TRANSACTION_REPLACED" | "UNPREDICTABLE_GAS_LIMIT" | "UNCONFIGURED_NAME" | "OFFCHAIN_FAULT"
export

ErrorCode

summary

EthersJs ErrorCode

ErrorSignature: { networkV: bigint; r: string; s: string; yParity: 0 | 1 }

Type declaration

  • networkV: bigint
  • r: string
  • s: string
  • yParity: 0 | 1
IJsonRpcResponse<T>: IJsonRpcSuccess<T> | IJsonRpcError

Type parameters

  • T

JsonRpcMethod: "eth_accounts" | "eth_blockNumber" | "eth_call" | "eth_chainId" | "eth_coinbase" | "eth_estimateGas" | "eth_gasPrice" | "eth_getBalance" | "eth_getBlockByHash" | "eth_getBlockByNumber" | "eth_getBlockTransactionCountByHash" | "eth_getBlockTransactionCountByNumber" | "eth_getCode" | "eth_getLogs" | "eth_getProof" | "eth_getStorageAt" | "eth_getTransactionByBlockHashAndIndex" | "eth_getTransactionByBlockNumberAndIndex" | "eth_getTransactionByHash" | "eth_getTransactionCount" | "eth_getTransactionReceipt" | "eth_getUncleByBlockHashAndIndex" | "eth_getUncleByBlockNumberAndIndex" | "eth_getUncleCountByBlockHash" | "eth_getUncleCountByBlockNumber" | "eth_protocolVersion" | "eth_sendRawTransaction" | "eth_sendTransaction" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData" | "eth_syncing"
RelayResponses: Record<string, RelayResponse>

Variables

AddressZero: "0x0000000000000000000000000000000000000000" = '0x0000000000000000000000000000000000000000'
BURN_ADDRESS: "0x000000000000000000000000000000000000dead" = '0x000000000000000000000000000000000000dead'
DeadAddress: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000" = '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000'
EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA: "\u0019\u0001" = ...
addTransaction: ActionCreatorWithOptionalPayload<{ approval?: { spender: string; tokenAddress: string }; chainId: MAINNET; claim?: { recipient: string }; from: string; hash: string; summary?: string }, string> = ...
checkedTransaction: ActionCreatorWithOptionalPayload<{ blockNumber: number; chainId: MAINNET; hash: string }, string> = ...
clearAllTransactions: ActionCreatorWithOptionalPayload<{ chainId: MAINNET }, string> = ...
finalizeTransaction: ActionCreatorWithOptionalPayload<{ chainId: MAINNET; hash: string; receipt: SerializableTransactionReceipt }, string> = ...
updatePrivateTxStatus: ActionCreatorWithOptionalPayload<{ chainId: MAINNET; hash: string; status: PrivateTxStatus }, string> = ...

Functions

  • getTransactionError(tx: TransactionResponse, receipt: TransactionReceipt, provider: Provider): Promise<string>
  • #getTransactionError

    Parameters

    • tx: TransactionResponse
    • receipt: TransactionReceipt
    • provider: Provider

    Returns Promise<string>

  • isError<K, T>(error: any, code: K): error is T
  • parseReasonCode(messageData: string): string
  • privateTx(privateTx: any): any

Generated using TypeDoc