
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
tokenAddressaddress
The address of the EIP-3009 compatible token to swap
fromaddress
The address which provided the signed authorization
valueuint256
The amount of token to swap in atomic units
validAfteruint256
The unix timestamp after which the authorization is valid
validBeforeuint256
The unix timestamp before which the authorization is valid
noncebytes32
The authorization nonce to prevent replays
vuint8
The `v` component of the user signature
rbytes32
The `r` component of the user signature
sbytes32
The `s` component of the user signature
diamondCalldatabytes
Swap calldata returned from the Li.Fi quote API
Output Parameters
output0bytes
Output of type bytes