diff --git a/README.md b/README.md index 7c0be78..37ebe88 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,13 @@ Where message `type` must be one of: - `4`: `Transact` - `5`: `RelayTo` - `6`: `RelayedFrom` +- `7`: `HrmpNewChannelOpenRequest` +- `8`: `HrmpChannelAccepted` +- `9`: `HrmpChannelClosing` +- `10`: `HrmpInitOpenChannel` +- `11`: `HrmpAcceptOpenChannel` +- `12`: `HrmpCloseChannel` +- `13`: `Staking` Within XCM, there is an internal datatype `Order`, which encodes an operation on the holding account. It is defined as: @@ -173,6 +180,62 @@ Kind: *Trusted Indication*. Errors: +### `Staking` + +Send staking related messages. All the messages should be executed sequentially and applied atomically. + +- `messages: Vec` + +Kind: *Meta*. + +Errors: + +#### `StakingMessage` Types + +##### `Bond` + +- `value: Compact`: The amount of token to bond. + +Kind: *Instruction*. + +##### `Unbond` + +- `value: Compact`: The amount of token to unbond. + +Kind: *Instruction*. + +##### `Rebond` + +- `value: Compact`: The amount of token to bond. + +Kind: *Instruction*. + +##### `SetPayee` + +- `payee: RewardDestination`: The destination account for payment. + +TODO: How are we going to define RewardDestination type?? + +Kind: *Instruction*. + +##### `WithdrawUnbonded` + +Kind: *Instruction*. + +##### `Nominate` + +- `targets: Vec`: Declare the desire to nominate `targets`. + +Kind: *Instruction*. + +##### `Chill` + +Kind: *Instruction*. + +##### `PayoutStakers` + +Kind: *Instruction*. + ## `Order` Types ### `Null`