
1Shot Gas Station V2 (Avalanche)
0x949E...7680DeFiLiFix402
Contract Level Prompt
Foundational semantic layer for AI interpretation.
This is the 1Shot Gas Station V2 smart contract for the Avalanche network. It lets users swap EIP-3009 compatible tokens for native tokens (cross-chain) without having to pay the gas fees themselves.
callDiamondWithEIP3009SignatureToNative()
nonpayableFunctional Prompt
Swaps EIP-3009 compatible token for native token given a valid authorization from the `from` address.
Input Parameters
input
tokenAddressaddress
The address of the EIP-3009 compatible token to swap
input
fromaddress
The address which provided the signed authorization
input
valueuint256
The amount of token to swap in atomic units
input
validAfteruint256
The unix timestamp after which the authorization is valid
input
validBeforeuint256
The unix timestamp before which the authorization is valid
input
noncebytes32
The authorization nonce to prevent replays
input
vuint8
The `v` component of the user signature
input
rbytes32
The `r` component of the user signature
input
sbytes32
The `s` component of the user signature
input
diamondCalldatabytes
Swap calldata returned from the Li.Fi quote API
Output Parameters
output
output0bytes
Output of type bytes