mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 13:47:12 +00:00
fix: remove cancelUnbondingDelegation helper functions
This commit is contained in:
parent
fee9377f53
commit
9d21d7aee0
@ -537,26 +537,6 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
||||
return this.signAndBroadcast(senderAddress, [sendMsg], fee, memo);
|
||||
}
|
||||
|
||||
public async cancelUnbondingDelegation(
|
||||
delegatorAddress: string,
|
||||
validatorAddress: string,
|
||||
amount: Coin,
|
||||
creationHeight: bigint | undefined,
|
||||
fee: StdFee | "auto" | number,
|
||||
memo = "",
|
||||
): Promise<DeliverTxResponse> {
|
||||
const cancelUnbondingDelegationMsg: MsgCancelUnbondingDelegationEncodeObject = {
|
||||
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
||||
value: MsgCancelUnbondingDelegation.fromPartial({
|
||||
delegatorAddress: delegatorAddress,
|
||||
validatorAddress: validatorAddress,
|
||||
amount: amount,
|
||||
creationHeight: creationHeight,
|
||||
}),
|
||||
};
|
||||
return this.signAndBroadcast(delegatorAddress, [cancelUnbondingDelegationMsg], fee, memo);
|
||||
}
|
||||
|
||||
public async delegateTokens(
|
||||
delegatorAddress: string,
|
||||
validatorAddress: string,
|
||||
|
@ -214,26 +214,6 @@ export class SigningStargateClient extends StargateClient {
|
||||
return this.signAndBroadcast(senderAddress, [sendMsg], fee, memo);
|
||||
}
|
||||
|
||||
public async cancelUnbondingDelegation(
|
||||
delegatorAddress: string,
|
||||
validatorAddress: string,
|
||||
amount: Coin,
|
||||
creationHeight: bigint | undefined,
|
||||
fee: StdFee | "auto" | number,
|
||||
memo = "",
|
||||
): Promise<DeliverTxResponse> {
|
||||
const cancelUnbondingDelegationMsg: MsgCancelUnbondingDelegationEncodeObject = {
|
||||
typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",
|
||||
value: MsgCancelUnbondingDelegation.fromPartial({
|
||||
delegatorAddress: delegatorAddress,
|
||||
validatorAddress: validatorAddress,
|
||||
amount: amount,
|
||||
creationHeight: creationHeight,
|
||||
}),
|
||||
};
|
||||
return this.signAndBroadcast(delegatorAddress, [cancelUnbondingDelegationMsg], fee, memo);
|
||||
}
|
||||
|
||||
public async delegateTokens(
|
||||
delegatorAddress: string,
|
||||
validatorAddress: string,
|
||||
|
Loading…
x
Reference in New Issue
Block a user