MainchainGatewayV3

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xb466133e at 20619267
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 49 additional slots
9 additional variables

No balances found for "MainchainGatewayV3"

No transactions found for "MainchainGatewayV3"


Functions
Getter at block 20793296
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DOMAIN_SEPARATOR(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
WITHDRAWAL_UNLOCKER_ROLE(view returns (bytes32)
0x5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e4
_MAX_PERCENTAGE(view returns (uint256)
1000000
depositCount(view returns (uint256)
0
emergencyPauser(view returns (address)
0x0000000000000000000000000000000000000000
getHighTierVoteWeightThreshold(view returns (uint256uint256)
(0, 0)
getThreshold(view returns (uint256 num_uint256 denom_)
(num_=0, denom_=0)
 
minimumVoteWeight(view returns (uint256)
nonce(view returns (uint256)
0
paused(view returns (bool)
false
roninChainId(view returns (uint256)
0
wrappedNativeToken(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
checkHighTierVoteWeightThreshold(uint256 _voteWeightview returns (bool)
checkThreshold(uint256 _voteWeightview returns (bool)
dailyWithdrawalLimit(addressview returns (uint256)
getContract(uint8 contractTypeview returns (address contract_)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
getRoninToken(address mainchainTokenview returns (struct MappedTokenConsumerMappedToken token)
hasRole(bytes32 roleaddress accountview returns (bool)
highTierThreshold(addressview returns (uint256)
lastDateSynced(addressview returns (uint256)
lastSyncedWithdrawal(addressview returns (uint256)
lockedThreshold(addressview returns (uint256)
reachedWithdrawalLimit(address _tokenuint256 _quantityview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
unlockFeePercentages(addressview returns (uint256)
withdrawalHash(uint256view returns (bytes32)
withdrawalLocked(uint256view returns (bool)
State-modifying
grantRole(bytes32 roleaddress account
initialize(address _roleSetteraddress _wrappedTokenuint256 _roninChainIduint256 _numeratoruint256 _highTierVWNumeratoruint256 _denominatoraddress[][3] _addressesuint256[][4] _thresholdsuint8[] _standardspayable 
initializeV2(address bridgeManagerContract
initializeV3(
initializeV4(address
mapTokens(address[] _mainchainTokensaddress[] _roninTokensuint8[] _standards
mapTokensAndThresholds(address[] _mainchainTokensaddress[] _roninTokensuint8[] _standardsuint256[][4] _thresholds
onBridgeOperatorsAdded(address[] operatorsuint96[] weightsbool[] addedsreturns (bytes4)
onBridgeOperatorsRemoved(address[] operatorsbool[] removedsreturns (bytes4)
onERC1155BatchReceived(addressaddressuint256[]uint256[]bytesreturns (bytes4)
onERC1155Received(addressaddressuint256uint256bytesreturns (bytes4)
pause(
receiveEther(payable 
renounceRole(bytes32 roleaddress account
requestDepositFor(struct TransferRequest _requestpayable 
revokeRole(bytes32 roleaddress account
setContract(uint8 contractTypeaddress addr
setDailyWithdrawalLimits(address[] _tokensuint256[] _limits
setEmergencyPauser(address _addr
setHighTierThresholds(address[] _tokensuint256[] _thresholds
setHighTierVoteWeightThreshold(uint256 _numeratoruint256 _denominatorreturns (uint256 _previousNumuint256 _previousDenom)
setLockedThresholds(address[] _tokensuint256[] _thresholds
setThreshold(uint256 numuint256 denom
setUnlockFeePercentages(address[] _tokensuint256[] _percentages
setWrappedNativeTokenContract(address _wrappedToken
submitWithdrawal(struct TransferReceipt _receiptstruct SignatureConsumerSignature[] _signaturesreturns (bool _locked)
unlockWithdrawal(struct TransferReceipt receipt
unpause(
Events
ContractUpdated(uint8 indexed contractTypeaddress indexed addr
DailyWithdrawalLimitsUpdated(address[] tokensuint256[] limits
DepositRequested(bytes32 receiptHashstruct TransferReceipt receipt
HighTierThresholdsUpdated(address[] tokensuint256[] thresholds
HighTierVoteWeightThresholdUpdated(uint256 indexed nonceuint256 indexed numeratoruint256 indexed denominatoruint256 previousNumeratoruint256 previousDenominator
Initialized(uint8 version
LockedThresholdsUpdated(address[] tokensuint256[] thresholds
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
ThresholdUpdated(uint256 indexed nonceuint256 indexed numeratoruint256 indexed denominatoruint256 previousNumeratoruint256 previousDenominator
TokenMapped(address[] mainchainTokensaddress[] roninTokensuint8[] standards
UnlockFeePercentagesUpdated(address[] tokensuint256[] percentages
Unpaused(address account
WithdrawalLocked(bytes32 receiptHashstruct TransferReceipt receipt
WithdrawalUnlocked(bytes32 receiptHashstruct TransferReceipt receipt
Withdrew(bytes32 receiptHashstruct TransferReceipt receipt
WrappedNativeTokenContractUpdated(address weth
Constructor
constructor(
Fallback and receive
fallback(
receive(
Errors
ErrContractTypeNotFound(uint8 contractType
ErrERC1155MintingFailed(
ErrERC20MintingFailed(
ErrERC721MintingFailed(
ErrEmptyArray(
ErrInvalidChainId(bytes4 msgSiguint256 actualuint256 expected
ErrInvalidInfo(
ErrInvalidOrder(bytes4 msgSig
ErrInvalidPercentage(
ErrInvalidReceipt(
ErrInvalidReceiptKind(
ErrInvalidRequest(
ErrInvalidSigner(address signeruint256 weightstruct SignatureConsumerSignature sig
ErrInvalidThreshold(bytes4 msgSig
ErrInvalidTokenStandard(
ErrLengthMismatch(bytes4 msgSig
ErrNullHighTierVoteWeightProvided(bytes4 msgSig
ErrNullMinVoteWeightProvided(bytes4 msgSig
ErrNullTotalWeightProvided(bytes4 msgSig
ErrQueryForApprovedWithdrawal(
ErrQueryForInsufficientVoteWeight(
ErrQueryForProcessedWithdrawal(
ErrReachedDailyWithdrawalLimit(
ErrTokenCouldNotTransfer(struct TokenInfo tokenInfoaddress toaddress token
ErrTokenCouldNotTransferFrom(struct TokenInfo tokenInfoaddress fromaddress toaddress token
ErrUnauthorized(bytes4 msgSiguint8 expectedRole
ErrUnexpectedInternalCall(bytes4 msgSiguint8 expectedContractTypeaddress actual
ErrUnsupportedStandard(
ErrUnsupportedToken(
ErrZeroCodeContract(address addr