Skip to content

Commit

Permalink
changelog added and fomatted properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtlofgren committed Nov 10, 2023
1 parent 21e3382 commit 0b55e9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/unreleased/SDK/2140-sdk-redelegate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- A high level function new_redelegate is added to the sdk to allow developers
to make and submit redelegation functions from the minimum number of arguments
required ([\#2140](https://github.com/anoma/namada/pull/2140))
9 changes: 5 additions & 4 deletions sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ use crate::token::DenominatedAmount;
use crate::tx::{
ProcessTxResponse, TX_BOND_WASM, TX_BRIDGE_POOL_WASM,
TX_CHANGE_COMMISSION_WASM, TX_IBC_WASM, TX_INIT_PROPOSAL,
TX_INIT_VALIDATOR_WASM, TX_RESIGN_STEWARD, TX_REVEAL_PK, TX_TRANSFER_WASM,
TX_UNBOND_WASM, TX_UNJAIL_VALIDATOR_WASM, TX_UPDATE_ACCOUNT_WASM,
TX_UPDATE_STEWARD_COMMISSION, TX_VOTE_PROPOSAL, TX_WITHDRAW_WASM,
VP_USER_WASM, TX_REDELEGATE_WASM,
TX_INIT_VALIDATOR_WASM, TX_REDELEGATE_WASM, TX_RESIGN_STEWARD,
TX_REVEAL_PK, TX_TRANSFER_WASM, TX_UNBOND_WASM, TX_UNJAIL_VALIDATOR_WASM,
TX_UPDATE_ACCOUNT_WASM, TX_UPDATE_STEWARD_COMMISSION, TX_VOTE_PROPOSAL,
TX_WITHDRAW_WASM, VP_USER_WASM,
};
use crate::wallet::{Wallet, WalletIo, WalletStorage};

Expand Down Expand Up @@ -217,6 +217,7 @@ pub trait Namada<'a>: Sized {
}
}

// Make a Tx Redelegation for the given minimum set of arguments
fn new_redelegation(
&self,
source: Address,
Expand Down
1 change: 1 addition & 0 deletions sdk/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub const TX_RESIGN_STEWARD: &str = "tx_resign_steward.wasm";
/// Update steward commission WASM path
pub const TX_UPDATE_STEWARD_COMMISSION: &str =
"tx_update_steward_commission.wasm";
/// Redelegat WASM path
pub const TX_REDELEGATE_WASM: &str = "tx_redelegate.wasm";

/// Default timeout in seconds for requests to the `/accepted`
Expand Down

0 comments on commit 0b55e9b

Please sign in to comment.