StargateFacet
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
8
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 4 additional slots
Balances ($0.00)
No balances found for "StargateFacet"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "StargateFacet"
ABI
ABI objects
Getter at block 22900698
INTERDELIMITER() view returns (uint8)
59
getStargateBasicBeneficiary() view returns (address)
0x0000000000000000000000000000000000000000
getStargateBasicFee() view returns (uint256)
0
getTransferGas() view returns (uint256)
30000
Read-only
decodeStargatePayload(bytes stargatePayload) pure returns (struct ISoNormalizedSoData soData, struct LibSwapNormalizedSwapData[] swapDataDst)
encodeStargatePayload(struct ISoNormalizedSoData soData, struct LibSwapNormalizedSwapData[] swapDataDst) pure returns (bytes)
estimateStargateFinalAmount(struct StargateFacetStargateData stargateData, uint256 amount) view returns (uint256)
getAmountBeforeSoFee(uint256 amount) view returns (uint256)
getSgReceiveForGasPayload(struct ISoNormalizedSoData soDataNo, struct LibSwapNormalizedSwapData[] swapDataDstNo) pure returns (bytes)
getStargateFee(struct ISoNormalizedSoData soDataNo, struct StargateFacetStargateData stargateData, struct LibSwapNormalizedSwapData[] swapDataDstNo) view returns (uint256)
getStargateSoFee(uint256 amount) view returns (uint256)
State-modifying
Events executeAndCheckSwaps(struct ISoSoData soData, struct LibSwapSwapData[] swapData) returns (uint256)
executeAndCheckSwapsV2(struct ISoSoData soData, struct LibSwapSwapData[] swapData) returns (uint256)
initStargate(address stargate, uint16 chainId)
libSwap(bytes32 transactionId, struct LibSwapSwapData _swapData)
remoteSoSwap(address token, uint256 amount, struct ISoSoData soData, struct LibSwapSwapData[] swapDataDst)
setAllowedAddress(address router, bool isAllowed)
sgReceive(uint16, bytes, uint256, address token, uint256 amount, bytes payload)
sgReceiveForGas(struct ISoNormalizedSoData soDataNo, uint256 dstStargatePoolId, struct LibSwapNormalizedSwapData[] swapDataDstNo)
soSwapViaStargate(struct ISoNormalizedSoData soDataNo, struct LibSwapNormalizedSwapData[] swapDataSrcNo, struct StargateFacetStargateData stargateData, struct LibSwapNormalizedSwapData[] swapDataDstNo) payable
SetAllowedList(address router, bool isAllowed)
SoTransferCompleted(bytes32 indexed transactionId, uint256 receiveAmount)
SoTransferFailed(bytes32 indexed transactionId, string revertReason, bytes otherReason)
SoTransferStarted(bytes32 indexed transactionId)
StargateInitialized(address stargate, uint256 chainId)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
CannotBridgeToSameNetwork()
ContractCallNotAllowed()
InvalidAmount()
InvalidConfig()
InvalidContract()
NativeAssetTransferFailed()
NoSwapDataProvided()
NoSwapFromZeroBalance()
NoTransferToNullAddress()
NotSupportedSwapRouter()
NullAddrIsNotAValidSpender()
NullAddrIsNotAnERC20Token()
ReentrancyError()