MainchainGatewayStorage

Git Source

Storage of deposit and withdraw information.

State Variables

_domainSeparator

Domain separator

bytes32 internal _domainSeparator;

_validator

Validator contract address

address internal _validator;

_depositCounter

Total deposit count

uint256 internal _depositCounter;

_withdrawalHash

Mapping from withdrawal id => withdrawal hash

mapping(uint256 => bytes32) internal _withdrawalHash;

_dailyWithdrawalMaxQuota

for withdrawal restriction

Mapping from mainchain token => daily max amount for withdrawal

mapping(address => uint256) internal _dailyWithdrawalMaxQuota;

_lastSyncedWithdrawal

Mapping from token address => today withdrawal amount

mapping(address => uint256) internal _lastSyncedWithdrawal;

_lastDateSynced

Mapping from token address => last date synced to record the _lastSyncedWithdrawal

mapping(address => uint256) internal _lastDateSynced;

_crossbellTokens

Mapping from mainchain token => token address on crossbell network

mapping(address => DataTypes.MappedToken) internal _crossbellTokens;