almanak_library.models.receipt
uuid
ABC
abstractmethod
Any
Dict
Optional
Set
BaseModel
ActionType
SwapSide
Receipt Objects
class Receipt(BaseModel, ABC)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
Config Objects
class Config()
arbitrary_types_allowed
json_encoders
model_dump
def model_dump(exclude: Set[str] = set()) -> Dict[str, Any]
__str__
@abstractmethod
def __str__() -> str
from_dict
@classmethod
def from_dict(cls, data: Dict[str, Any]) -> "Receipt"
WrapReceipt Objects
class WrapReceipt(Receipt)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
amount
__str__
def __str__() -> str
UnwrapReceipt Objects
class UnwrapReceipt(Receipt)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
amount
__str__
def __str__() -> str
ApproveReceipt Objects
class ApproveReceipt(Receipt)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
__str__
def __str__()
OpenPositionReceipt Objects
class OpenPositionReceipt(Receipt)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
token0_symbol
token1_symbol
amount0
amount1
position_id
bound_tick_lower
bound_tick_upper
bound_price_lower
bound_price_upper
pool_tick
pool_spot_rate
__str__
def __str__() -> str
SwapReceipt Objects
class SwapReceipt(Receipt)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
side
tokenIn_symbol
tokenOut_symbol
amountIn
amountOut
__str__
def __str__() -> str
model_dump
def model_dump(*args, **kwargs)
ClosePositionReceipt Objects
class ClosePositionReceipt(Receipt)
type
action_id
bundle_id
tx_hash
tx_cost
gas_used
block_number
position_id
token0_symbol
token1_symbol
amount0
amount1
liquidity0
liquidity1
fees0
fees1
pool_tick
pool_spot_rate
__str__
def __str__() -> str