Build
Architecture
contracts
contracts
zevm
testing
SystemContractMock.sol
Contract.systemcontractmock

Git Source (opens in a new tab)

Inherits: SystemContractErrors

gasPriceByChainId

mapping(uint256 => uint256) public gasPriceByChainId;

gasCoinZRC20ByChainId

mapping(uint256 => address) public gasCoinZRC20ByChainId;

gasZetaPoolByChainId

mapping(uint256 => address) public gasZetaPoolByChainId;

wZetaContractAddress

address public wZetaContractAddress;

uniswapv2FactoryAddress

address public uniswapv2FactoryAddress;

uniswapv2Router02Address

address public uniswapv2Router02Address;

constructor

constructor(address wzeta_, address uniswapv2Factory_, address uniswapv2Router02_);

setGasPrice

function setGasPrice(uint256 chainID, uint256 price) external;

setGasCoinZRC20

function setGasCoinZRC20(uint256 chainID, address zrc20) external;

setWZETAContractAddress

function setWZETAContractAddress(address addr) external;

sortTokens

function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1);

uniswapv2PairFor

function uniswapv2PairFor(address factory, address tokenA, address tokenB) public pure returns (address pair);

onCrossChainCall

function onCrossChainCall(address target, address zrc20, uint256 amount, bytes calldata message) external;

SystemContractDeployed

event SystemContractDeployed();

SetGasPrice

event SetGasPrice(uint256, uint256);

SetGasCoin

event SetGasCoin(uint256, address);

SetGasZetaPool

event SetGasZetaPool(uint256, address);

SetWZeta

event SetWZeta(address);