# Functions
ApplyL1ToL2Alias converts the address of smart contract that submitted a transaction to the inbox on L1 to the `msg.sender` viewed on L2.
CheckBaseCost checks if the provided base cost is greater than the provided value.
Deprecated: Will be removed in the future releases.
Deprecated: Will be removed in the future releases.
Create2Address generates a future-proof contract address using salt plus bytecode which allows determination of an address before deployment.
Deprecated: Will be removed in the future releases.
CreateAddress generates a contract address from deployer's account and nonce.
CreateETH creates ETH token with appropriate Name, Symbol and Decimals values.
Deprecated: Will be removed in the future releases.
EncodeCreate encodes the constructor data for CREATE method used for smart contract deployment.
EncodeCreate2 returns the encoded constructor data for CREATE2 method used for smart contract deployment.
EncodeCreate2Account encodes the constructor data for CREATE2 method used for smart account deployment.
EncodeCreateAccount encodes the constructor data for CREATE method used for smart account deployment.
Erc20BridgeCalldata returns the calldata that will be sent by an L1 ERC20 bridge to its L2 counterpart during bridging of a token.
Erc20DefaultBridgeData Returns the data needed for correct initialization of an L1 token counterpart on L2.
GetApprovalBasedPaymasterInput returns encoded input for an approval-based paymaster.
GetGeneralPaymasterInput returns encoded input for a general-based paymaster.
GetPaymasterParams returns a correctly-formed paymaster parameters for common paymaster flows.
HashBytecode returns the hash of given bytecode.
HashedL2ToL1Msg returns a `keccak` encoded message with a given sender address and block number from the L1 messenger contract.
IsMessageSignatureCorrect checks whether the message ECDSA signature is correct.
IsTypedDataSignatureCorrect checks whether the typed data ECDSA signature is correct.
No description provided by the author
No description provided by the author
No description provided by the author
ReadStandardJson reads standard-json file generated as output from zksolc.
ScaleGasLimit scales the provided gas limit using a coefficient to ensure acceptance of L1->L2 transactions.
Deprecated: Will be removed in the future releases.
UndoL1ToL2Alias converts the address of smart contract that submitted a transaction to the inbox on L2 to the `msg.sender` viewed on L1.
# Variables
No description provided by the author
BootloaderFormalAddress The formal address for the Bootloader.
ContractDeployerAddress The address of the Contract deployer.
DefaultGasPerPubdataLimit The large L2 gas per pubdata to sign.
No description provided by the author
EthAddress The address of the L1 ETH token.
EthAddressInContracts In the contracts the zero address can not be used, use one instead.
L1MessengerAddress The address of the L1 messenger.
L1RecommendedMinErc20DepositGasLimit This gas limit will be used for displaying the error messages when the users do not have enough fee.
L1RecommendedMinEthDepositGasLimit This gas limit will be used for displaying the error messages when the users do not have enough fee.
L1ToL2AliasOffset Used for applying and undoing aliases on contract addresses during bridging from L1 to L2.
L2BaseTokenAddress The address of the base token.
L2EthTokenAddress The address of the L2 `ETH` token.
LegacyEthAddress The address of the L1 ETH token.
MaxPriorityFeePerGas is fixed because L2 node does not support eth_maxPriorityFeePerGas method.
NonceHolderAddress The address of the Nonce holder.
RequiredL1ToL2GasPerPubdataLimit It is possible to provide practically any gasPerPubdataByte for L1->L2 transactions, since the cost per gas will be adjusted respectively.