Versions in this module Expand all Collapse all v0 v0.1.0 Oct 22, 2023 Changes in this version + type AdjRequest = struct + Allocation []Amount + ChallengeDuration Duration + Channel ChannelId + Finalized bool + Nonce Nonce + Participants []L2Account + Sigs []Signature + Version uint64 + type Agent struct + func NewAgent(canisterId principal.Principal, config agent.Config) (*Agent, error) + func (a Agent) Conclude(arg0 AdjRequest) (Error, error) + func (a Agent) Deposit(arg0 Funding) (*Error, error) + func (a Agent) Dispute(arg0 AdjRequest) (Error, error) + func (a Agent) QueryEvents(arg0 ChannelTime) (EventTxt, error) + func (a Agent) QueryHoldings(arg0 Funding) (**Amount, error) + func (a Agent) QueryState(arg0 ChannelId) (*RegisteredState, error) + func (a Agent) RegisterEvent(arg0 FundMem) error + func (a Agent) TransactionNotification(arg0 uint64) (**Amount, error) + func (a Agent) Withdraw(arg0 WithdrawalRequest) (Error, error) + type Amount = idl.Nat + func NewBigNat(b *big.Int) Amount + type ChannelId = [32]byte + type ChannelTime = struct + Channel ChannelId + Timestamp Timestamp + type Duration = uint64 + type Error = string + type Event = struct + type EventTxt = string + type FullySignedState = struct + Sigs [][]byte + State State + type FundMem = struct + Channel ChannelId + Memo uint64 + Participant L2Account + type Funding = struct + Channel ChannelId + Participant L2Account + type Hash = []uint8 + type L2Account = []uint8 + type Nonce = [32]byte + type Params = struct + ChallengeDuration Duration + Nonce Nonce + Participants []L2Account + type RegisteredState = struct + State State + Timeout Timestamp + type Signature = Hash + type State = struct + Allocation []Amount + Channel ChannelId + Finalized bool + Version uint64 + type Timestamp = uint64 + type WithdrawalRequest = struct + Channel ChannelId + Participant L2Account + Receiver principal.Principal + Sig Signature + Timestamp Timestamp