CrossbellGatewayStorage

Git Source

Storage of deposit and withdraw information.

State Variables

_deposits

Mapping from chainId => depositId => DepositEntry

mapping(uint256 => mapping(uint256 => DataTypes.DepositEntry)) internal _deposits;

_withdrawalCounter

Mapping from chainId => withdrawCount

mapping(uint256 => uint256) internal _withdrawalCounter;

_withdrawals

Mapping from chainId => withdrawalId => WithdrawalEntry

mapping(uint256 => mapping(uint256 => DataTypes.WithdrawalEntry)) internal _withdrawals;

_withdrawalSig

Mapping from chainId => withdrawalId => signature

mapping(uint256 => mapping(uint256 => mapping(address => bytes))) internal _withdrawalSig;

_withdrawalSigners

Mapping from chainId => withdrawalId => address[]

mapping(uint256 => mapping(uint256 => address[])) internal _withdrawalSigners;

_mainchainTokens

Mapping from token address => chain id => mainchain token address

mapping(address => mapping(uint256 => DataTypes.MappedToken)) internal _mainchainTokens;

_validator

address internal _validator;

_validatorAck

Mapping from chainId => id => validator => data hash

mapping(uint256 => mapping(uint256 => mapping(address => bytes32))) internal _validatorAck;

_ackCount

Mapping from chainId => id => data hash => ack count

mapping(uint256 => mapping(uint256 => mapping(bytes32 => uint256))) internal _ackCount;

_ackStatus

Mapping from chainId => id => data hash => ack status

mapping(uint256 => mapping(uint256 => mapping(bytes32 => DataTypes.Status))) internal _ackStatus;