UNPKG

@secux/app-eth

Version:
124 lines (120 loc) 3.98 kB
/*! Copyright 2022 SecuX Technology Inc Copyright Chen Wei-En Copyright Wu Tsung-Yu Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ export type PrefixedHexString = string; export type JsonString = string; export declare const ow_address: import("ow").StringPredicate; export declare const ow_hexString32: import("ow").StringPredicate; export declare const ow_gasPriceUnit: import("ow").AnyPredicate<string | number>; export interface tx155_base { chainId: number | PrefixedHexString; nonce: number | PrefixedHexString; gasPrice: number | PrefixedHexString; gasLimit: number | PrefixedHexString; to: string; value: number | PrefixedHexString; } export interface tx1559_base { chainId: number | PrefixedHexString; nonce: number | PrefixedHexString; maxPriorityFeePerGas: number | PrefixedHexString; maxFeePerGas: number | PrefixedHexString; gasLimit: number | PrefixedHexString; to: string; value: number | PrefixedHexString; accessList?: any[]; } export interface tx155 extends tx155_base { data?: PrefixedHexString; } export interface tx1559 extends tx1559_base { data?: PrefixedHexString; } export type baseData = tx155_base | tx1559_base; export declare const ow_tx155_base: import("ow").ObjectPredicate<{ chainId: string | number; nonce: string | number; gasPrice: string | number; gasLimit: string | number; to: string; value: string | number; }>; export declare const ow_tx155: import("ow").ObjectPredicate<{ data: string | undefined; chainId: string | number; nonce: string | number; gasPrice: string | number; gasLimit: string | number; to: string; value: string | number; }>; export declare const ow_tx1559_base: import("ow").ObjectPredicate<{ chainId: string | number; nonce: string | number; maxPriorityFeePerGas: string | number; maxFeePerGas: string | number; gasLimit: string | number; to: string; value: string | number | undefined; accessList: unknown[] | undefined; }>; export declare const ow_tx1559: import("ow").ObjectPredicate<{ data: string | undefined; chainId: string | number; nonce: string | number; maxPriorityFeePerGas: string | number; maxFeePerGas: string | number; gasLimit: string | number; to: string; value: string | number | undefined; accessList: unknown[] | undefined; }>; export declare const ow_baseData: import("ow").AnyPredicate<{ chainId: string | number; nonce: string | number; gasPrice: string | number; gasLimit: string | number; to: string; value: string | number; } | { chainId: string | number; nonce: string | number; maxPriorityFeePerGas: string | number; maxFeePerGas: string | number; gasLimit: string | number; to: string; value: string | number | undefined; accessList: unknown[] | undefined; }>; export declare const ow_TypedDataV1: import("ow").ObjectPredicate<{ name: string; type: string; value: string; }>; export declare const ow_EIP712TypedData: import("ow").ObjectPredicate<{ name: string; type: string; }>; export declare const ow_TypedMessage: import("ow").ObjectPredicate<{ types: object; primaryType: string; domain: { name: string | undefined; version: string | undefined; chainId: number | undefined; verifyingContract: string | undefined; }; message: object; }>; export declare function isJsonString(str: string): boolean;