pub struct State {
    pub from: Address,
    pub to: Address,
    pub to_send: TokenAmount,
    pub settling_at: ChainEpoch,
    pub min_settle_height: ChainEpoch,
    pub lane_states: Cid,
}
Expand description

A given payment channel actor is established by from to enable off-chain microtransactions to to address to be reconciled and tallied on chain.

Fields

from: Address

Channel owner, who has funded the actor.

to: Address

Recipient of payouts from channel.

to_send: TokenAmount

Amount successfully redeemed through the payment channel, paid out on Collect.

settling_at: ChainEpoch

Height at which the channel can be collected.

min_settle_height: ChainEpoch

Height before which the channel ToSend cannot be collected.

lane_states: Cid

Collections of lane states for the channel, maintained in ID order.

Implementations

Trait Implementations

Marshalls cbor encodable object into cbor bytes

Unmarshals cbor encoded bytes to object

Returns the content identifier of the raw block of data Default is Blake2b256 hash Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.