From 501b58c700c710d53d69b72eee0b2d6afea3466a Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Thu, 11 Mar 2021 17:31:09 +1300 Subject: [PATCH 1/2] wip --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 7c0be78..cc08312 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,27 @@ Kind: *Trusted Indication*. Errors: +### `Staking` + +Send staking related messages. All the messages should be executed sequentially and applied atomically. + +- `messages: Vec` + +Kin: *Meta*. + +Errors: + +#### `StakingMessage` Types + +##### `Bond` +##### `Unbond` +##### `Rebond` +##### `SetPayee` +##### `WithdrawUnbonded` +##### `Nominate` +##### `Chill` +##### `PayoutStakers` + ## `Order` Types ### `Null` From caf5297085c84bbfe2b988b07f3aa2bbc6c064b9 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Thu, 11 Mar 2021 17:22:03 +1300 Subject: [PATCH 2/2] add StakingMessage --- README.md | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc08312..37ebe88 100644 --- a/README.md +++ b/README.md @@ -186,21 +186,56 @@ Send staking related messages. All the messages should be executed sequentially - `messages: Vec` -Kin: *Meta*. +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`