web3-eth
Version:
Web3 module to interact with the Ethereum blockchain and smart contracts.
28 lines (22 loc) • 1 kB
text/typescript
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
import { AbiEventFragment, FMT_BYTES, FMT_NUMBER } from 'web3-types';
export const ALL_EVENTS = 'ALLEVENTS';
export const ALL_EVENTS_ABI = {
name: ALL_EVENTS,
signature: '',
type: 'event',
inputs: [],
} as AbiEventFragment & { signature: string };
export const NUMBER_DATA_FORMAT = { bytes: FMT_BYTES.HEX, number: FMT_NUMBER.NUMBER } as const;