/*! * @license :@maticnetwork/maticjs - V3.9.1 - 06/08/2024 * https://github.com/maticnetwork/matic.js * Copyright (c) 2024 @Polygon Labs; Licensed MIT */ /*! * @license :@maticnetwork/maticjs-staking - V1.2.0-beta.5 - 21/05/2025 * https://github.com/maticnetwork/maticjs-staking * Copyright (c) 2025 @polygon; Licensed ISC */ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /*! . */ /*! .. */ /*! ../abstracts */ /*! ../config */ /*! ../constant */ /*! ../default */ /*! ../enums */ /*! ../implementation */ /*! ../services */ /*! ../utils */ /*! ../utils/buffer-utils */ /*! ../utils/error_helper */ /*! ./_assert.js */ /*! ./_u64.js */ /*! ./abi_manager */ /*! ./abi_service */ /*! ./abstracts */ /*! ./allowance_transaction_option */ /*! ./approve_transaction_option */ /*! ./base_big_number */ /*! ./base_client_config */ /*! ./base_contract */ /*! ./base_token */ /*! ./base_web3_client */ /*! ./block */ /*! ./block_with_transaction */ /*! ./bn */ /*! ./bridge_client */ /*! ./bridge_transaction_option */ /*! ./bridge_util */ /*! ./buffer-utils */ /*! ./constant */ /*! ./contract_init_param */ /*! ./contract_method */ /*! ./converter */ /*! ./default */ /*! ./enums */ /*! ./erc1155 */ /*! ./erc20 */ /*! ./erc721 */ /*! ./error */ /*! ./error_helper */ /*! ./error_type */ /*! ./event_bus */ /*! ./exit_transaction_option */ /*! ./exit_util */ /*! ./gas_swapper */ /*! ./http_request */ /*! ./interfaces */ /*! ./keccak */ /*! ./log_event_signature */ /*! ./logger */ /*! ./map_promise */ /*! ./map_promise_option */ /*! ./merge */ /*! ./merkle_tree */ /*! ./method */ /*! ./network_service */ /*! ./not_implemented */ /*! ./plugin */ /*! ./pos */ /*! ./pos_client_config */ /*! ./pos_contracts */ /*! ./pos_erc1155_deposit_param */ /*! ./pos_erc1155_transfer_param */ /*! ./pos_token */ /*! ./promise_resolve */ /*! ./proof_util */ /*! ./resolve */ /*! ./root_block_info */ /*! ./root_chain */ /*! ./root_chain_manager */ /*! ./rpc_request_payload */ /*! ./rpc_response_payload */ /*! ./services */ /*! ./set_proof_api_url */ /*! ./transaction_config */ /*! ./transaction_data */ /*! ./transaction_option */ /*! ./transaction_result */ /*! ./transaction_write_result */ /*! ./tx_receipt */ /*! ./types */ /*! ./use */ /*! ./utils */ /*! ./utils.js */ /*! ./web3_side_chain_client */ /*! ./zkevm */ /*! ./zkevm_bridge */ /*! ./zkevm_bridge_client */ /*! ./zkevm_client_config */ /*! ./zkevm_contracts */ /*! ./zkevm_custom_bridge */ /*! ./zkevm_token */ /*! ./zkevm_wrapper */ /*! @ethereumjs/block */ /*! @ethereumjs/common */ /*! @ethereumjs/trie */ /*! @ethereumjs/util */ /*! @noble/hashes/_assert */ /*! @noble/hashes/crypto */ /*! @noble/hashes/sha3 */ /*! @noble/hashes/utils */ /*! bn.js */ /*! buffer */ /*! ethereum-cryptography/keccak */ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ /*! node-fetch */ /*! rlp */ /*! safe-buffer */ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ /*!**********************!*\ !*** ./src/index.ts ***! \**********************/ /*!**********************!*\ !*** external "rlp" ***! \**********************/ /*!***********************!*\ !*** ./src/config.ts ***! \***********************/ /*!************************!*\ !*** ./src/default.ts ***! \************************/ /*!************************!*\ !*** external "bn.js" ***! \************************/ /*!*************************!*\ !*** ./src/constant.ts ***! \*************************/ /*!*************************!*\ !*** external "buffer" ***! \*************************/ /*!**************************!*\ !*** ./src/pos/erc20.ts ***! \**************************/ /*!**************************!*\ !*** ./src/pos/index.ts ***! \**************************/ /*!**************************!*\ !*** ./src/utils/use.ts ***! \**************************/ /*!***************************!*\ !*** ./src/pos/erc721.ts ***! \***************************/ /*!****************************!*\ !*** ./src/enums/index.ts ***! \****************************/ /*!****************************!*\ !*** ./src/pos/erc1155.ts ***! \****************************/ /*!****************************!*\ !*** ./src/types/index.ts ***! \****************************/ /*!****************************!*\ !*** ./src/utils/index.ts ***! \****************************/ /*!****************************!*\ !*** ./src/utils/merge.ts ***! \****************************/ /*!****************************!*\ !*** ./src/utils/types.ts ***! \****************************/ /*!****************************!*\ !*** ./src/zkevm/erc20.ts ***! \****************************/ /*!****************************!*\ !*** ./src/zkevm/index.ts ***! \****************************/ /*!*****************************!*\ !*** ./src/utils/keccak.ts ***! \*****************************/ /*!*****************************!*\ !*** ./src/utils/logger.ts ***! \*****************************/ /*!*****************************!*\ !*** external "node-fetch" ***! \*****************************/ /*!******************************!*\ !*** ./src/pos/exit_util.ts ***! \******************************/ /*!******************************!*\ !*** ./src/pos/pos_token.ts ***! \******************************/ /*!******************************!*\ !*** ./src/utils/resolve.ts ***! \******************************/ /*!*******************************!*\ !*** ./src/pos/root_chain.ts ***! \*******************************/ /*!*******************************!*\ !*** ./src/services/index.ts ***! \*******************************/ /*!********************************!*\ !*** ./src/abstracts/index.ts ***! \********************************/ /*!********************************!*\ !*** ./src/pos/gas_swapper.ts ***! \********************************/ /*!********************************!*\ !*** ./src/utils/converter.ts ***! \********************************/ /*!********************************!*\ !*** ./src/utils/event_bus.ts ***! \********************************/ /*!*********************************!*\ !*** ./src/enums/error_type.ts ***! \*********************************/ /*!*********************************!*\ !*** ./src/interfaces/block.ts ***! \*********************************/ /*!*********************************!*\ !*** ./src/interfaces/error.ts ***! \*********************************/ /*!*********************************!*\ !*** ./src/interfaces/index.ts ***! \*********************************/ /*!*********************************!*\ !*** ./src/utils/base_token.ts ***! \*********************************/ /*!*********************************!*\ !*** ./src/utils/proof_util.ts ***! \*********************************/ /*!**********************************!*\ !*** ./src/implementation/bn.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/interfaces/method.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/interfaces/plugin.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/utils/abi_manager.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/utils/map_promise.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/utils/merkle_tree.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/zkevm/bridge_util.ts ***! \**********************************/ /*!**********************************!*\ !*** ./src/zkevm/zkevm_token.ts ***! \**********************************/ /*!***********************************!*\ !*** ./src/utils/buffer-utils.ts ***! \***********************************/ /*!***********************************!*\ !*** ./src/utils/error_helper.ts ***! \***********************************/ /*!***********************************!*\ !*** ./src/utils/http_request.ts ***! \***********************************/ /*!***********************************!*\ !*** ./src/zkevm/zkevm_bridge.ts ***! \***********************************/ /*!***********************************!*\ !*** external "@ethereumjs/trie" ***! \***********************************/ /*!***********************************!*\ !*** external "@ethereumjs/util" ***! \***********************************/ /*!************************************!*\ !*** ./src/utils/bridge_client.ts ***! \************************************/ /*!************************************!*\ !*** ./src/zkevm/zkevm_wrapper.ts ***! \************************************/ /*!************************************!*\ !*** external "@ethereumjs/block" ***! \************************************/ /*!*************************************!*\ !*** ./src/implementation/index.ts ***! \*************************************/ /*!*************************************!*\ !*** ./src/services/abi_service.ts ***! \*************************************/ /*!*************************************!*\ !*** external "@ethereumjs/common" ***! \*************************************/ /*!**************************************!*\ !*** ./src/interfaces/tx_receipt.ts ***! \**************************************/ /*!**************************************!*\ !*** ./src/utils/not_implemented.ts ***! \**************************************/ /*!**************************************!*\ !*** ./src/utils/promise_resolve.ts ***! \**************************************/ /*!***************************************!*\ !*** ./src/pos/root_chain_manager.ts ***! \***************************************/ /*!****************************************!*\ !*** ./src/abstracts/base_contract.ts ***! \****************************************/ /*!****************************************!*\ !*** ./src/utils/set_proof_api_url.ts ***! \****************************************/ /*!*****************************************!*\ !*** ./src/interfaces/pos_contracts.ts ***! \*****************************************/ /*!*****************************************!*\ !*** ./src/services/network_service.ts ***! \*****************************************/ /*!******************************************!*\ !*** ./src/abstracts/base_big_number.ts ***! \******************************************/ /*!******************************************!*\ !*** ./src/abstracts/contract_method.ts ***! \******************************************/ /*!******************************************!*\ !*** ./src/enums/log_event_signature.ts ***! \******************************************/ /*!******************************************!*\ !*** ./src/utils/zkevm_bridge_client.ts ***! \******************************************/ /*!******************************************!*\ !*** ./src/zkevm/zkevm_custom_bridge.ts ***! \******************************************/ /*!*******************************************!*\ !*** ./node_modules/safe-buffer/index.js ***! \*******************************************/ /*!*******************************************!*\ !*** ./src/abstracts/base_web3_client.ts ***! \*******************************************/ /*!*******************************************!*\ !*** ./src/interfaces/root_block_info.ts ***! \*******************************************/ /*!*******************************************!*\ !*** ./src/interfaces/zkevm_contracts.ts ***! \*******************************************/ /*!********************************************!*\ !*** ./src/interfaces/transaction_data.ts ***! \********************************************/ /*!*********************************************!*\ !*** ./src/interfaces/pos_client_config.ts ***! \*********************************************/ /*!*********************************************!*\ !*** ./src/utils/web3_side_chain_client.ts ***! \*********************************************/ /*!**********************************************!*\ !*** ./src/interfaces/base_client_config.ts ***! \**********************************************/ /*!**********************************************!*\ !*** ./src/interfaces/map_promise_option.ts ***! \**********************************************/ /*!**********************************************!*\ !*** ./src/interfaces/transaction_config.ts ***! \**********************************************/ /*!**********************************************!*\ !*** ./src/interfaces/transaction_option.ts ***! \**********************************************/ /*!**********************************************!*\ !*** ./src/interfaces/transaction_result.ts ***! \**********************************************/ /*!***********************************************!*\ !*** ./src/interfaces/contract_init_param.ts ***! \***********************************************/ /*!***********************************************!*\ !*** ./src/interfaces/rpc_request_payload.ts ***! \***********************************************/ /*!***********************************************!*\ !*** ./src/interfaces/zkevm_client_config.ts ***! \***********************************************/ /*!************************************************!*\ !*** ./node_modules/@noble/hashes/esm/_u64.js ***! \************************************************/ /*!************************************************!*\ !*** ./node_modules/@noble/hashes/esm/sha3.js ***! \************************************************/ /*!************************************************!*\ !*** ./src/interfaces/rpc_response_payload.ts ***! \************************************************/ /*!************************************************!*\ !*** ./src/types/pos_erc1155_deposit_param.ts ***! \************************************************/ /*!*************************************************!*\ !*** ./node_modules/@noble/hashes/esm/utils.js ***! \*************************************************/ /*!*************************************************!*\ !*** ./src/types/pos_erc1155_transfer_param.ts ***! \*************************************************/ /*!**************************************************!*\ !*** ./node_modules/@noble/hashes/esm/crypto.js ***! \**************************************************/ /*!**************************************************!*\ !*** ./src/interfaces/block_with_transaction.ts ***! \**************************************************/ /*!***************************************************!*\ !*** ./node_modules/@noble/hashes/esm/_assert.js ***! \***************************************************/ /*!***************************************************!*\ !*** ./src/interfaces/exit_transaction_option.ts ***! \***************************************************/ /*!****************************************************!*\ !*** ./src/interfaces/transaction_write_result.ts ***! \****************************************************/ /*!*****************************************************!*\ !*** ./src/interfaces/bridge_transaction_option.ts ***! \*****************************************************/ /*!******************************************************!*\ !*** ./src/interfaces/approve_transaction_option.ts ***! \******************************************************/ /*!********************************************************!*\ !*** ./src/interfaces/allowance_transaction_option.ts ***! \********************************************************/ /*!*********************************************************!*\ !*** ./node_modules/ethereum-cryptography/esm/utils.js ***! \*********************************************************/ /*!**********************************************************!*\ !*** ./node_modules/ethereum-cryptography/esm/keccak.js ***! \**********************************************************/