mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +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);
|
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(
|
public async delegateTokens(
|
||||||
delegatorAddress: string,
|
delegatorAddress: string,
|
||||||
validatorAddress: string,
|
validatorAddress: string,
|
||||||
|
@ -214,26 +214,6 @@ export class SigningStargateClient extends StargateClient {
|
|||||||
return this.signAndBroadcast(senderAddress, [sendMsg], fee, memo);
|
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(
|
public async delegateTokens(
|
||||||
delegatorAddress: string,
|
delegatorAddress: string,
|
||||||
validatorAddress: string,
|
validatorAddress: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user