WormholeFacet

Verified contract

Implementation

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

No balances found for "WormholeFacet"

No transactions found for "WormholeFacet"


Functions
Getter at block 20890937
RAY(view returns (uint256)
1000000000000000000000000000
 
getWormholeMessageFee(view returns (uint256)
Read-only
decodeNormalizedWormholeData(bytes wormholeDatapure returns (struct WormholeFacetNormalizedWormholeData)
decodeWormholePayload(bytes wormholeDatapure returns (uint256uint256struct ISoNormalizedSoDatastruct LibSwapNormalizedSwapData[])
encodeNormalizedWormholeData(struct WormholeFacetNormalizedWormholeData datapure returns (bytes)
encodeWormholePayload(uint256 dstMaxGasPriceuint256 dstMaxGasstruct ISoNormalizedSoData soDatastruct LibSwapNormalizedSwapData[] swapDataDstpure returns (bytes)
estimateCompleteSoSwapGas(struct ISoNormalizedSoData soDatastruct WormholeFacetNormalizedWormholeData wormholeDatastruct LibSwapNormalizedSwapData[] swapDataDstview returns (uint256)
estimateRelayerFee(struct ISoNormalizedSoData soDatastruct WormholeFacetNormalizedWormholeData wormholeDatastruct LibSwapNormalizedSwapData[] swapDataDstview returns (uint256)
getSoFee(uint256 amountview returns (uint256)
State-modifying
checkRelayerFee(struct ISoNormalizedSoData soDatastruct WormholeFacetNormalizedWormholeData wormholeDatastruct LibSwapNormalizedSwapData[] swapDataDstreturns (booluint256uint256uint256)
completeSoSwap(bytes encodeVm
completeTransferAndUnwrapETHWithPayload(bytes encodeVm
completeTransferWithPayload(bytes encodeVm
deposit(address _currentAssetIdaddress _expectAssetIduint256 _amountpayable 
executeAndCheckSwaps(struct ISoSoData _soDatastruct LibSwapSwapData[] _swapDatareturns (uint256)
initWormhole(address tokenBridgeuint16 wormholeChainId
setWormholeGas(uint16 dstWormholeChainIduint256 baseGasuint256 gasPerBytes
setWormholeReserve(uint256 actualReserveuint256 estimateReserve
soSwapViaWormhole(struct ISoNormalizedSoData soDataNostruct LibSwapNormalizedSwapData[] swapDataSrcNostruct WormholeFacetNormalizedWormholeData wormholeDataNostruct LibSwapNormalizedSwapData[] swapDataDstNopayable 
withdraw(address _currentAssetIdaddress _expectAssetIduint256 _amountaddress _receiver
Events
InitWormholeEvent(address tokenBridgeuint16 srcWormholeChainId
SoTransferCompleted(bytes32 indexed transactionIdaddress receivingAssetIdaddress receiveruint256 receiveAmountuint256 timestampstruct ISoSoData soData
SoTransferFailed(bytes32 indexed transactionIdstring revertReasonbytes otherReasonstruct ISoSoData soData
SoTransferStarted(bytes32 indexed transactionIdstring bridgebool hasSourceSwapbool hasDestinationSwapstruct ISoSoData soData
TransferFromWormhole(uint16 srcWormholeChainIduint16 dstWormholeChainIduint64 sequence
UpdateWormholeGas(uint16 dstWormholeChainIduint256 baseGasuint256 gasPerBytes
UpdateWormholeReserve(uint256 actualReserveuint256 estimateReserve
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
ContractCallNotAllowed(
InvalidAmount(
InvalidContract(
NativeAssetTransferFailed(
NoSwapDataProvided(
NoSwapFromZeroBalance(
NoTransferToNullAddress(
NotSupportedSwapRouter(
NullAddrIsNotAValidSpender(
NullAddrIsNotAnERC20Token(