orb.store.model module

class orb.store.model.Alias(*args, **kwargs)

Bases: Model

DoesNotExist

alias of AliasDoesNotExist

alias = <CharField: Alias.alias>
id = <AutoField: Alias.id>
pk = <CharField: Alias.pk>
class orb.store.model.Attempt(*args, **kwargs)

Bases: Model

DoesNotExist

alias of AttemptDoesNotExist

code = <IntegerField: Attempt.code>
hops
id = <AutoField: Attempt.id>
payment = <ForeignKeyField: Attempt.payment>
payment_id = <ForeignKeyField: Attempt.payment>
succeeded = <BooleanField: Attempt.succeeded>
class orb.store.model.ChannelStats(*args, **kwargs)

Bases: Model

DoesNotExist

alias of ChannelStatsDoesNotExist

chan_id = <CharField: ChannelStats.chan_id>
debt_msat = <IntegerField: ChannelStats.debt_msat>
earned_msat = <IntegerField: ChannelStats.earned_msat>
helped_earn_msat = <IntegerField: ChannelStats.helped_earn_msat>
id = <AutoField: ChannelStats.id>
class orb.store.model.ForwardEvent(*args, **kwargs)

Bases: Model

DoesNotExist

alias of ForwardEventDoesNotExist

amt_in = <IntegerField: ForwardEvent.amt_in>
amt_in_msat = <IntegerField: ForwardEvent.amt_in_msat>
amt_out = <IntegerField: ForwardEvent.amt_out>
amt_out_msat = <IntegerField: ForwardEvent.amt_out_msat>
chan_id_in = <CharField: ForwardEvent.chan_id_in>
chan_id_out = <CharField: ForwardEvent.chan_id_out>
fee = <IntegerField: ForwardEvent.fee>
fee_msat = <IntegerField: ForwardEvent.fee_msat>
id = <AutoField: ForwardEvent.id>
this_month()
this_week()
timestamp = <IntegerField: ForwardEvent.timestamp>
timestamp_ns = <IntegerField: ForwardEvent.timestamp_ns>
today()
class orb.store.model.Hop(*args, **kwargs)

Bases: Model

DoesNotExist

alias of HopDoesNotExist

attempt = <ForeignKeyField: Hop.attempt>
attempt_id = <ForeignKeyField: Hop.attempt>
id = <AutoField: Hop.id>
pk = <CharField: Hop.pk>
succeeded = <BooleanField: Hop.succeeded>
class orb.store.model.Htlc(*args, **kwargs)

Bases: Model

DoesNotExist

alias of HtlcDoesNotExist

event_outcome = <CharField: Htlc.event_outcome>
event_outcome_info = <JSONField: Htlc.event_outcome_info>
event_type = <CharField: Htlc.event_type>
id = <AutoField: Htlc.id>
incoming_channel_id = <IntegerField: Htlc.incoming_channel_id>
incoming_htlc_id = <IntegerField: Htlc.incoming_htlc_id>
outgoing_channel_id = <IntegerField: Htlc.outgoing_channel_id>
outgoing_htlc_id = <IntegerField: Htlc.outgoing_htlc_id>
timestamp = <IntegerField: Htlc.timestamp>
class orb.store.model.Invoice(*args, **kwargs)

Bases: Model

DoesNotExist

alias of InvoiceDoesNotExist

description = <CharField: Invoice.description>
destination = <CharField: Invoice.destination>
expired()

——|---------|———————————–

ts ts + e

expiry = <IntegerField: Invoice.expiry>
id = <AutoField: Invoice.id>
num_satoshis = <IntegerField: Invoice.num_satoshis>
paid = <BooleanField: Invoice.paid>
raw = <CharField: Invoice.raw>
timestamp = <IntegerField: Invoice.timestamp>
class orb.store.model.LNDAttemptRoute(*args, **kwargs)

Bases: Model

DoesNotExist

alias of LNDAttemptRouteDoesNotExist

attempt = <ForeignKeyField: LNDAttemptRoute.attempt>
attempt_id = <ForeignKeyField: LNDAttemptRoute.attempt>
hops
id = <AutoField: LNDAttemptRoute.id>
total_amt = <IntegerField: LNDAttemptRoute.total_amt>
total_amt_msat = <IntegerField: LNDAttemptRoute.total_amt_msat>
total_fees = <IntegerField: LNDAttemptRoute.total_fees>
total_fees_msat = <IntegerField: LNDAttemptRoute.total_fees_msat>
total_time_lock = <IntegerField: LNDAttemptRoute.total_time_lock>
class orb.store.model.LNDHop(*args, **kwargs)

Bases: Model

DoesNotExist

alias of LNDHopDoesNotExist

amt_to_forward = <IntegerField: LNDHop.amt_to_forward>
amt_to_forward_msat = <IntegerField: LNDHop.amt_to_forward_msat>
chan_capacity = <IntegerField: LNDHop.chan_capacity>
chan_id = <CharField: LNDHop.chan_id>
custom_records = <JSONField: LNDHop.custom_records>
expiry = <IntegerField: LNDHop.expiry>
fee = <IntegerField: LNDHop.fee>
fee_msat = <IntegerField: LNDHop.fee_msat>
id = <AutoField: LNDHop.id>
pub_key = <CharField: LNDHop.pub_key>
route = <ForeignKeyField: LNDHop.route>
route_id = <ForeignKeyField: LNDHop.route>
tlv_payload = <BooleanField: LNDHop.tlv_payload>
class orb.store.model.LNDPayment(*args, **kwargs)

Bases: Model

DoesNotExist

alias of LNDPaymentDoesNotExist

creation_date = <IntegerField: LNDPayment.creation_date>
creation_time_ns = <IntegerField: LNDPayment.creation_time_ns>
dest_pubkey = <CharField: LNDPayment.dest_pubkey>
failure_reason = <CharField: LNDPayment.failure_reason>
fee = <IntegerField: LNDPayment.fee>
fee_msat = <IntegerField: LNDPayment.fee_msat>
fee_sat = <IntegerField: LNDPayment.fee_sat>
first_hop_chanid = <IntegerField: LNDPayment.first_hop_chanid>
first_hop_pubkey = <CharField: LNDPayment.first_hop_pubkey>
htlcs
id = <AutoField: LNDPayment.id>
last_hop_chanid = <IntegerField: LNDPayment.last_hop_chanid>
last_hop_pubkey = <CharField: LNDPayment.last_hop_pubkey>
payment_hash = <CharField: LNDPayment.payment_hash>
payment_index = <IntegerField: LNDPayment.payment_index>
payment_preimage = <CharField: LNDPayment.payment_preimage>
payment_request = <CharField: LNDPayment.payment_request>
status = <CharField: LNDPayment.status>
this_month()
this_week()
today()
total_fees_msat = <IntegerField: LNDPayment.total_fees_msat>
value = <IntegerField: LNDPayment.value>
value_msat = <IntegerField: LNDPayment.value_msat>
value_sat = <IntegerField: LNDPayment.value_sat>
class orb.store.model.LNDPaymentAttempt(*args, **kwargs)

Bases: Model

DoesNotExist

alias of LNDPaymentAttemptDoesNotExist

attempt_id = <IntegerField: LNDPaymentAttempt.attempt_id>
attempt_time_ns = <IntegerField: LNDPaymentAttempt.attempt_time_ns>
id = <AutoField: LNDPaymentAttempt.id>
payment = <ForeignKeyField: LNDPaymentAttempt.payment>
payment_id = <ForeignKeyField: LNDPaymentAttempt.payment>
preimage = <CharField: LNDPaymentAttempt.preimage>
resolve_time_ns = <IntegerField: LNDPaymentAttempt.resolve_time_ns>
route
status = <CharField: LNDPaymentAttempt.status>
class orb.store.model.Payment(*args, **kwargs)

Bases: Model

DoesNotExist

alias of PaymentDoesNotExist

amount = <IntegerField: Payment.amount>
attempts
dest = <CharField: Payment.dest>
fees = <IntegerField: Payment.fees>
id = <AutoField: Payment.id>
succeeded = <BooleanField: Payment.succeeded>
timestamp = <IntegerField: Payment.timestamp>