launchpad: Fix distribution msg types

This commit is contained in:
willclarktech 2021-01-28 12:59:33 +00:00
parent c6ba4174d2
commit b3b7b91f63
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 10 additions and 6 deletions

View File

@ -72,7 +72,8 @@ export function isMsgVerifyInvariant(msg: Msg): msg is MsgVerifyInvariant {
/** Changes the withdraw address for a delegator (or validator self-delegation) */
export interface MsgSetWithdrawAddress extends Msg {
readonly type: "cosmos-sdk/MsgSetWithdrawAddress";
// NOTE: Type string and names diverge here!
readonly type: "cosmos-sdk/MsgModifyWithdrawAddress";
readonly value: {
/** Bech32 account address */
readonly delegator_address: string;
@ -82,12 +83,14 @@ export interface MsgSetWithdrawAddress extends Msg {
}
export function isMsgSetWithdrawAddress(msg: Msg): msg is MsgSetWithdrawAddress {
return (msg as MsgSetWithdrawAddress).type === "cosmos-sdk/MsgSetWithdrawAddress";
// NOTE: Type string and names diverge here!
return (msg as MsgSetWithdrawAddress).type === "cosmos-sdk/MsgModifyWithdrawAddress";
}
/** Message for delegation withdraw from a single validator */
export interface MsgWithdrawDelegatorReward extends Msg {
readonly type: "cosmos-sdk/MsgWithdrawDelegatorReward";
// NOTE: Type string and names diverge here!
readonly type: "cosmos-sdk/MsgWithdrawDelegationReward";
readonly value: {
/** Bech32 account address */
readonly delegator_address: string;
@ -97,7 +100,8 @@ export interface MsgWithdrawDelegatorReward extends Msg {
}
export function isMsgWithdrawDelegatorReward(msg: Msg): msg is MsgWithdrawDelegatorReward {
return (msg as MsgWithdrawDelegatorReward).type === "cosmos-sdk/MsgWithdrawDelegatorReward";
// NOTE: Type string and names diverge here!
return (msg as MsgWithdrawDelegatorReward).type === "cosmos-sdk/MsgWithdrawDelegationReward";
}
/** Message for validator withdraw */

View File

@ -47,7 +47,7 @@ export interface MsgVerifyInvariant extends Msg {
export declare function isMsgVerifyInvariant(msg: Msg): msg is MsgVerifyInvariant;
/** Changes the withdraw address for a delegator (or validator self-delegation) */
export interface MsgSetWithdrawAddress extends Msg {
readonly type: "cosmos-sdk/MsgSetWithdrawAddress";
readonly type: "cosmos-sdk/MsgModifyWithdrawAddress";
readonly value: {
/** Bech32 account address */
readonly delegator_address: string;
@ -58,7 +58,7 @@ export interface MsgSetWithdrawAddress extends Msg {
export declare function isMsgSetWithdrawAddress(msg: Msg): msg is MsgSetWithdrawAddress;
/** Message for delegation withdraw from a single validator */
export interface MsgWithdrawDelegatorReward extends Msg {
readonly type: "cosmos-sdk/MsgWithdrawDelegatorReward";
readonly type: "cosmos-sdk/MsgWithdrawDelegationReward";
readonly value: {
/** Bech32 account address */
readonly delegator_address: string;