Expand description
Module defining various Ethereum transaction payload generators for the actions.
This module defines the basic PayloadGenerator trait that describes how an action is translated into a [TypedTransaction] that can be submitted on-chain (via an RPC provider) using a TransactionExecutor.
There are two main implementations:
- BasicPayloadGenerator which implements generation of a direct EIP1559 transaction payload. This is currently not used by a HOPR node.
- SafePayloadGenerator which implements generation of a payload that embeds the transaction data into the SAFE transaction. This is currently the main mode of HOPR node operation.
Structs§
- Basic
Payload Generator - Generates transaction payloads that do not use Safe-compliant ABI
- Safe
Payload Generator - Payload generator that generates Safe-compliant ABI
Constants§
Traits§
- Payload
Generator - Trait for various implementations of generators of common on-chain transaction payloads.
Functions§
- convert_
acknowledged_ ticket - Convert off-chain representation of acknowledged ticket to representation that the smart contract understands
- convert_
vrf_ parameters - Converts off-chain representation of VRF parameters into a representation that the smart contract understands