@skalenetwork/ima-js
Version:
Simple TS/JS library to interact with SKALE IMA
42 lines (41 loc) • 1.75 kB
TypeScript
/**
* @license
* SKALE ima-js
*
* This program 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.
*
* This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @file constants.ts
* @copyright SKALE Labs 2021-Present
*/
export declare const PRIVATE_KEY_REGEX: RegExp;
export declare const errorMessages: {
FAILED_TRANSACTION: string;
REVERTED_TRANSACTION: string;
INVALID_KEYPAIR: string;
INVALID_PRIVATEKEY: string;
};
export declare const DEFAULT_GAS_LIMIT = 10000000n;
export declare const DEFAULT_GAS_MULTIPLIER = 1.2;
export declare const GAS_PRICE_MULTIPLIER = 1.3;
export declare const MAX_APPROVAL_AMOUNT = "999999999999000000000000000000";
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
export declare const DEFAULT_SLEEP = 6000;
export declare const DEFAULT_ITERATIONS = 60;
export declare const MAINNET_CHAIN_NAME = "Mainnet";
export declare const DEFAULT_CONFIRMATIONS_NUM = 1;
export declare const TOKEN_MANAGER_ERC20_MAPPING_LENGTH_SLOT = 212;
export declare const TOKEN_MANAGER_ERC721_MAPPING_LENGTH_SLOT = 211;
export declare const TOKEN_MANAGER_ERC1155_MAPPING_LENGTH_SLOT = 211;
export declare const ADDRESS_LENGTH_BYTES = 20;