Documentation ¶
Overview ¶
Package icperun contains functions to communicate to the Perun canister
Index ¶
- type AdjRequest
- type Agent
- 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
- type ChannelId
- type ChannelTime
- type Duration
- type Error
- type Event
- type EventTxt
- type FullySignedState
- type FundMem
- type Funding
- type Hash
- type L2Account
- type Nonce
- type Params
- type RegisteredState
- type Signature
- type State
- type Timestamp
- type WithdrawalRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjRequest ¶
type AdjRequest = struct { Nonce Nonce `ic:"nonce"` Participants []L2Account `ic:"participants"` ChallengeDuration Duration `ic:"challenge_duration"` Channel ChannelId `ic:"channel"` Version uint64 `ic:"version"` Allocation []Amount `ic:"allocation"` Finalized bool `ic:"finalized"` Sigs []Signature `ic:"sigs"` }
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (Agent) QueryEvents ¶
func (a Agent) QueryEvents(arg0 ChannelTime) (EventTxt, error)
func (Agent) QueryState ¶
func (a Agent) QueryState(arg0 ChannelId) (*RegisteredState, error)
func (Agent) RegisterEvent ¶
func (Agent) TransactionNotification ¶
type ChannelTime ¶
type FullySignedState ¶
type RegisteredState ¶
Click to show internal directories.
Click to hide internal directories.