Skip to main content

almanak_library.models.action_bundle

json

uuid

datetime

Any

Dict

List

Optional

pytz

HexBytes

BaseModel

Field

Chain

ExecutionStatus

Network

Action

Transaction

PersistentStateBase

StrategyConfigBase

deserialize_timestamp

get_web3_by_network_and_chain

serialize_timestamp

default_list

def default_list()

ActionBundle Objects

class ActionBundle(BaseModel)

actions

network

chain

id

transactions

signed_transactions

raw_transactions

transaction_hashes

cached_receipts

deadline

created_at

executed_at

status

strategy_id

config

persistent_state

Config Objects

class Config()

arbitrary_types_allowed

json_encoders

__init__

def __init__(**data)

get_actions

def get_actions() -> List[Action]

get_network

def get_network() -> Network

get_chain

def get_chain() -> Chain

get_transactions

def get_transactions() -> Optional[List[Transaction]]

get_signed_transactions

def get_signed_transactions() -> Optional[List[dict]]

get_raw_transactions

def get_raw_transactions() -> Optional[List[str]]

get_transaction_hashes

def get_transaction_hashes() -> Optional[List[str]]

get_receipts

def get_receipts() -> Optional[List[dict]]

get_deadline

def get_deadline() -> Optional[float]

get_created_at

def get_created_at() -> float

get_executed_at

def get_executed_at() -> Optional[float]

get_status

def get_status() -> Optional[ExecutionStatus]

get_action_types

def get_action_types()

add_transaction

def add_transaction(transaction: Transaction)

add_transactions

def add_transactions(transactions: List[Transaction])

add_signed_transaction

def add_signed_transaction(signed_transaction: dict)

__str__

def __str__()

model_dump

def model_dump(*args, **kwargs)

model_validate

@classmethod
def model_validate(cls, obj)

from_json

@classmethod
def from_json(cls, json_str: str)

summary

def summary()