Peer Protocol
Peer Protocol for Channel Management
To exemplify the protocols as we define them, we will assume there exists a multisignature wallet shared between two parties, Alice and Bob. This is the only required re-usable on-chain component (with the exception of supporting libraries) to execute each of the protocols below.
Type Definitions and Global Variables
Global Variables:
Variable Name | Type | Description |
|
| The deployed on-chain address of the |
|
| The deployed on-chain address of the |
Type: Terms
Field | Type | Description |
|
| A value in the enum of |
|
| The exact total budget that an application can spend |
|
| If |
Type: CfAppInterface
Field | Type | Description |
|
| The on-chain address of the |
|
| If |
|
| The ABIEncoderV2 representation of the application's state encoding (e.g., |
TODO: The name
getTurnTaker
needs to be standardized
Type: PeerBalance
Field | Type | Description |
|
| The address of a party that deposited into an application |
|
| The amount deposited into the application |
TODO: This type needs to be abstracted to mirror the
Terms
type more closely such that arbitrary assets can be better represented
Last updated