Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Asset = &asset{}
Asset is the unique asset that is supported by the chain.
Functions ¶
This section is empty.
Types ¶
type ChannelDatum ¶
type ChannelDatum struct { ChannelParameters ChannelParameters ChannelToken ChannelToken ChannelState ChannelState Time time.Time FundingBalances []Balance Funded bool Disputed bool }
ChannelDatum is the perun-cardano-backend's representation of an on-chain datum.
type ChannelParameters ¶
type ChannelParameters struct { Parties []address.Address Nonce channel.Nonce Timeout time.Duration }
ChannelParameters is the cardano backend equivalent to go-perun's channel.Params.
func MakeChannelParameters ¶
func MakeChannelParameters(params channel.Params) (ChannelParameters, error)
MakeChannelParameters constructs ChannelParameters from a go-perun channel.Params.
func (ChannelParameters) Equal ¶
func (cp ChannelParameters) Equal(other ChannelParameters) bool
type ChannelState ¶
ChannelState is the cardano backend equivalent to go-perun's channel.State.
func ConvertChannelState ¶
func ConvertChannelState(state channel.State) (ChannelState, error)
ConvertChannelState converts a go-perun channel.State to a ChannelState.
func MakeChannelState ¶
func (ChannelState) Equal ¶
func (cs ChannelState) Equal(other ChannelState) bool
type ChannelToken ¶
ChannelToken is the backends representation of our channel's on-chain ThreadToken NFT. It is used to establish channel uniqueness and to identify the channel on-chain.
type DecodeEventError ¶
func NewDecodeEventError ¶
func NewDecodeEventError(tag string, expectedLen int, actualLen int) *DecodeEventError
func (DecodeEventError) Error ¶
func (e DecodeEventError) Error() string
type ExtendedWalletBackend ¶
type ExtendedWalletBackend interface { wallet.Backend VerifyChannelStateSignature(state ChannelState, sig wallet.Sig, a wallet.Address) (bool, error) CalculateChannelID(parameters ChannelParameters) (pchannel.ID, error) ToChannelStateSigningAccount(account wallet.Account) (ChannelStateSigningAccount, error) }
Click to show internal directories.
Click to hide internal directories.