TokenMessaging

Verified contract

Active on Base with 222,349 txns
Deployed by via 0x44948eec at 15023838
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x2a8207595aa15e4a904eaa828f56c2590b022eb434163040fe34740911476e06
0x2308442b9c770be82677bbb9930e57cc9e9ea656a561580036cc46dac622243b
0x69190b35a02fb1cd61378f8a3a26891f23a30c413351ec36534f6185a53a29df
0xa9aaf5179749bf81a0da36fc24107a31c481ea67aea764a01ea1bc390dacc75a
0xeda33497a050043d557531434448e9086c22f5a5c3060df7b2801298f7824c89
0x176cb7bdca90e3429d2387bffec9de5dd9ab3504a3a86022b3152eac79190042
0xd4f816bf56c4de5010094dfff0e137bdc08821d19d71a4e8c9eeab7d537d3e66
0xae56b77cea1c7686e60cf26bfc167af33279a9fdf74c493c635ffb7e4f97e99b
0xa7063c1c9983205ddd5825b28977e79e54837a4b46393b42a335c40c023bf2ae
0x1ac57fa4a15d06e82904dd1517d503ea47d0dd5b8bf0da4a84c119b99a8ea711

Functions
Getter at block 22723680
MSG_TYPE_BUS(view returns (uint8)
2
MSG_TYPE_TAXI(view returns (uint8)
1
endpoint(view returns (address)
0x1a44076050125825900e736c501f859c50fe728c
getTransferGasLimit(view returns (uint256)
2300
maxAssetId(view returns (uint16)
13
oApp(view returns (address)
0x5634c4a5fed09819e3c46d86a965dd9447d86e47
oAppVersion(pure returns (uint64 senderVersionuint64 receiverVersion)
(senderVersion=1, receiverVersion=2)
owner(view returns (address)
0x81eab64e630c4a2e3e849268a6b64cb76d1c8109
planner(view returns (address)
0xe37f7c80ced04c4f243c0fd04a5510d663cb88b5
preCrime(view returns (address)
0x0000000000000000000000000000000000000000
queueCapacity(view returns (uint16)
512
Read-only
allowInitializePath(struct Origin originview returns (bool)
assetIds(address stargateImplview returns (uint16 assetId)
busQueues(uint32 dstEidview returns (uint8 maxNumPassengersuint80 busFareuint80 busAndNativeDropFareuint16 qLengthuint72 nextTicketId)
combineOptions(uint32 _eiduint16 _msgTypebytes _extraOptionsview returns (bytes)
enforcedOptions(uint32 eiduint16 msgTypeview returns (bytes enforcedOption)
gasLimits(uint32 eidview returns (uint128 gasLimituint128 nativeDropGasLimit)
getPassengerHash(uint32 _dstEiduint16 _indexview returns (bytes32 hash)
isComposeMsgSender(struct Originbytes _messageaddress _senderview returns (bool)
isPeer(uint32 _eidbytes32 _peerview returns (bool)
nativeDropAmounts(uint32 dstEidview returns (uint128 nativeDropAmount)
nextNonce(uint32bytes32view returns (uint64 nonce)
peers(uint32 eidview returns (bytes32 peer)
quoteDriveBus(uint32 _dstEidbytes _passengersview returns (struct MessagingFee fee)
quoteFares(uint32 _dstEiduint8 _numPassengersview returns (uint256 busFareuint256 busAndNativeDropFare)
quoteRideBus(uint32 _dstEidbool _airdropview returns (struct MessagingFee fee)
quoteTaxi(struct TaxiParams _paramsbool _payInLzTokenview returns (struct MessagingFee fee)
stargateImpls(uint16 assetIdview returns (address stargateImpl)
State-modifying
driveBus(uint32 _dstEidbytes _passengerspayable returns (struct MessagingReceipt receipt)
initializeBusQueueStorage(uint32[] _dstEidsuint16 _startSlotuint16 _endSlot
lzReceive(struct Origin _originbytes32 _guidbytes _messageaddress _executorbytes _extraDatapayable 
lzReceiveAndRevert(struct InboundPacket[] _packetspayable 
lzReceiveSimulate(struct Origin _originbytes32 _guidbytes _messageaddress _executorbytes _extraDatapayable 
renounceOwnership(
rideBus(struct RideBusParams _paramsreturns (struct MessagingReceipt receiptstruct Ticket ticket)
setAssetId(address _stargateImpluint16 _assetId
setDelegate(address _delegate
setEnforcedOptions(struct EnforcedOptionParam[] _enforcedOptions
setFares(uint32 _dstEiduint80 _busFareuint80 _busAndNativeDropFare
setGasLimit(uint32 _eiduint128 _gasLimituint128 _nativeDropGasLimit
setMaxAssetId(uint16 _maxAssetId
setMaxNumPassengers(uint32 _dstEiduint8 _maxNumPassengers
setNativeDropAmount(uint32 _dstEiduint128 _nativeDropAmount
setPeer(uint32 _eidbytes32 _peer
setPlanner(address _planner
setPreCrime(address _preCrime
setTransferGasLimit(uint256 _gasLimit
taxi(struct TaxiParams _paramsstruct MessagingFee _messagingFeeaddress _refundAddresspayable returns (struct MessagingReceipt receipt)
transferOwnership(address newOwner
Events
AssetIdSet(address stargateImpluint16 assetId
BusDriven(uint32 dstEiduint72 startTicketIduint8 numPassengersbytes32 guid
BusQueueStorageInitialized(uint32 dstEiduint16 startSlotuint16 endSlot
BusRode(uint32 dstEiduint72 ticketIduint80 farebytes passenger
EnforcedOptionSet(struct EnforcedOptionParam[] _enforcedOptions
FaresSet(uint32 dstEiduint80 busFareuint80 busAndNativeDropFare
GasLimitSet(uint32 eiduint128 gasLimituint128 nativeDropGasLimit
MaxAssetIdSet(uint16 maxAssetId
MaxNumPassengersSet(uint32 dstEiduint8 maxNumPassengers
NativeDropAmountSet(uint32 dstEiduint128 nativeDropAmount
NativeDropApplied(address receiveruint128 amount
NativeDropFailed(address receiveruint128 amount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PeerSet(uint32 eidbytes32 peer
PlannerSet(address planner
PreCrimeSet(address preCrimeAddress
Constructor
constructor(address _endpointaddress _owneruint16 _queueCapacity
Fallback and receive

This contract contains no fallback and receive objects.

Errors
BusCodec_InvalidBusBytesLength(
BusCodec_InvalidMessage(
BusCodec_InvalidPassengersBytesLength(
Bus_InvalidFare(bool nativeDrop
Bus_InvalidNumPassengers(uint8 numPassengers
Bus_InvalidPassenger(
Bus_QueueFull(
InvalidDelegate(
InvalidEndpointCall(
InvalidOptions(bytes options
LzTokenUnavailable(
MessagingOptions_ZeroGasLimit(
Messaging_InvalidAssetId(
Messaging_InvalidEid(
Messaging_InvalidMsgValue(
Messaging_InvalidQueueCapacity(
Messaging_MaxNumPassengersExceedsQueueCapacity(
Messaging_NotEnoughPassengers(
Messaging_Unauthorized(
Messaging_Unavailable(
NoPeer(uint32 eid
NotEnoughNative(uint256 msgValue
OnlyEndpoint(address addr
OnlyPeer(uint32 eidbytes32 sender
OnlySelf(
SimulationResult(bytes result
TaxiCodec_InvalidMessage(
Transfer_ApproveFailed(
Transfer_TransferFailed(