packages.valory.skills.transaction_
settlement_
abci.payload_
tools
Tools for payload serialization and deserialization.
VerificationStatus Objects
class VerificationStatus(Enum)
Tx verification status enumeration.
PayloadDeserializationError Objects
class PayloadDeserializationError(Exception)
Exception for payload deserialization errors.
__
init__
def __init__(*args: Any) -> None
Initialize the exception.
Arguments:
args
: extra arguments to pass to the constructor ofException
.
tx_
hist_
payload_
to_
hex
def tx_hist_payload_to_hex(verification: VerificationStatus,
tx_hash: Optional[str] = None) -> str
Serialise history payload to a hex string.
tx_
hist_
hex_
to_
payload
def tx_hist_hex_to_payload(
payload: str) -> Tuple[VerificationStatus, Optional[str]]
Decode history payload.
hash_
payload_
to_
hex
def hash_payload_to_hex(safe_tx_hash: str,
ether_value: int,
safe_tx_gas: int,
to_address: str,
data: bytes,
operation: int = SafeOperation.CALL.value,
base_gas: int = 0,
safe_gas_price: int = 0,
gas_token: str = NULL_ADDRESS,
refund_receiver: str = NULL_ADDRESS,
use_flashbots: bool = False) -> str
Serialise to a hex string.
skill_
input_
hex_
to_
payload
def skill_input_hex_to_payload(payload: str) -> dict
Decode payload.