Skip to content

Instantly share code, notes, and snippets.

@jtriley-eth
Created January 26, 2022 17:38
Show Gist options
  • Save jtriley-eth/349d49f9507346a21e372b1c2357c7b5 to your computer and use it in GitHub Desktop.
Save jtriley-eth/349d49f9507346a21e372b1c2357c7b5 to your computer and use it in GitHub Desktop.
ERC20 Forward Request Struct
interface IForwarder {
/// @dev Full ERC20 Forward Request, Not all fields are relevant
/// @param from Account that signs the metatransaction (sender)
/// @param to Target address to execute function call (Superfluid host)
/// @param token Token to collect meta-tx fees in (not applicable)
/// @param txGas Gas provided for call execution
/// @param tokenGasPrice Token amount for meta-tx fee (not applicable)
/// @param batchId Unique ID of meta-tx batch
/// @param batchNonce Nonce unique to `from` and `batchId`
/// @param deadliine Execution deadline timestamp (zero for no deadline)
/// @param data Arbitrary data to execute on `to` (call agreement)
struct ERC20ForwardRequest {
address from;
address to;
address token;
uint256 txGas;
uint256 tokenGasPrice;
uint256 batchId;
uint256 batchNonce;
uint256 deadline;
bytes data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment