Skip to content

Commit

Permalink
fix: amino types (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherbrumm authored Jul 30, 2024
1 parent 6b32c2d commit 7bf5a69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions common/sdk/src/amino/delegation.amino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { isNotEmpty } from "../utils";
export const createDelegationAminoConverters = (): AminoConverters => {
return {
"/kyve.delegation.v1beta1.MsgDelegate": {
aminoType: "kyve/delegation/MsgDelegate",
aminoType: "/kyve.delegation.v1beta1.MsgDelegate",
toAmino: (msg: MsgDelegate) => ({
creator: msg.creator,
staker: msg.staker,
Expand All @@ -24,7 +24,7 @@ export const createDelegationAminoConverters = (): AminoConverters => {
}),
},
"/kyve.delegation.v1beta1.MsgWithdrawRewards": {
aminoType: "kyve/delegation/MsgWithdrawRewards",
aminoType: "/kyve.delegation.v1beta1.MsgWithdrawRewards",
toAmino: (msg: MsgWithdrawRewards) => ({
creator: msg.creator,
staker: msg.staker,
Expand All @@ -35,7 +35,7 @@ export const createDelegationAminoConverters = (): AminoConverters => {
}),
},
"/kyve.delegation.v1beta1.MsgRedelegate": {
aminoType: "kyve/delegation/MsgRedelegate",
aminoType: "/kyve.delegation.v1beta1.MsgRedelegate",
toAmino: (msg: MsgRedelegate) => ({
creator: msg.creator,
from_staker: msg.from_staker,
Expand All @@ -50,7 +50,7 @@ export const createDelegationAminoConverters = (): AminoConverters => {
}),
},
"/kyve.delegation.v1beta1.MsgUndelegate": {
aminoType: "kyve/delegation/MsgUndelegate",
aminoType: "/kyve.delegation.v1beta1.MsgUndelegate",
toAmino: (msg: MsgUndelegate) => ({
creator: msg.creator,
staker: msg.staker,
Expand Down
8 changes: 4 additions & 4 deletions common/sdk/src/amino/funders.amino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { isNotEmpty } from "../utils";
export const createFundersAminoConverters = (): AminoConverters => {
return {
"/kyve.funders.v1beta1.MsgFundPool": {
aminoType: "kyve/funders/MsgFundPool",
aminoType: "/kyve.funders.v1beta1.MsgFundPool",
toAmino: (msg: MsgFundPool) => ({
creator: msg.creator,
...(isNotEmpty(msg.pool_id) && { pool_id: msg.pool_id }),
Expand All @@ -26,7 +26,7 @@ export const createFundersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.funders.v1beta1.MsgDefundPool": {
aminoType: "kyve/funders/MsgDefundPool",
aminoType: "/kyve.funders.v1beta1.MsgDefundPool",
toAmino: (msg: MsgDefundPool) => ({
creator: msg.creator,
...(isNotEmpty(msg.pool_id) && { id: msg.pool_id }),
Expand All @@ -39,7 +39,7 @@ export const createFundersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.funders.v1beta1.MsgCreateFunder": {
aminoType: "kyve/funders/MsgCreateFunder",
aminoType: "/kyve.funders.v1beta1.MsgCreateFunder",
toAmino: (msg: MsgCreateFunder) => ({
creator: msg.creator,
...(isNotEmpty(msg.moniker) && { moniker: msg.moniker }),
Expand All @@ -58,7 +58,7 @@ export const createFundersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.funders.v1beta1.MsgUpdateFunder": {
aminoType: "kyve/funders/MsgUpdateFunder",
aminoType: "/kyve.funders.v1beta1.MsgUpdateFunder",
toAmino: (msg: MsgUpdateFunder) => ({
creator: msg.creator,
...(isNotEmpty(msg.moniker) && { moniker: msg.moniker }),
Expand Down
12 changes: 6 additions & 6 deletions common/sdk/src/amino/stakers.amino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function jsonDecimalToProto(decimal: string): string {
export const createStakersAminoConverters = (): AminoConverters => {
return {
"/kyve.stakers.v1beta1.MsgCreateStaker": {
aminoType: "kyve/stakers/MsgCreateStaker",
aminoType: "/kyve.stakers.v1beta1.MsgCreateStaker",
toAmino: (msg: MsgCreateStaker) => ({
creator: msg.creator,
...(isNotEmpty(msg.amount) && { amount: msg.amount }),
Expand All @@ -38,7 +38,7 @@ export const createStakersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.stakers.v1beta1.MsgUpdateMetadata": {
aminoType: "kyve/stakers/MsgUpdateMetadata",
aminoType: "/kyve.stakers.v1beta1.MsgUpdateMetadata",
toAmino: (msg: MsgUpdateMetadata) => ({
creator: msg.creator,
...(isNotEmpty(msg.moniker) && { moniker: msg.moniker }),
Expand All @@ -59,7 +59,7 @@ export const createStakersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.stakers.v1beta1.MsgUpdateCommission": {
aminoType: "kyve/stakers/MsgUpdateCommission",
aminoType: "/kyve.stakers.v1beta1.MsgUpdateCommission",
toAmino: (msg: MsgUpdateCommission) => ({
creator: msg.creator,
commission: protoDecimalToJson(msg.commission),
Expand All @@ -70,7 +70,7 @@ export const createStakersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.stakers.v1beta1.MsgClaimCommissionRewards": {
aminoType: "kyve/stakers/MsgClaimCommissionRewards",
aminoType: "/kyve.stakers.v1beta1.MsgClaimCommissionRewards",
toAmino: (msg: MsgClaimCommissionRewards) => ({
creator: msg.creator,
amounts: [...msg.amounts],
Expand All @@ -81,7 +81,7 @@ export const createStakersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.stakers.v1beta1.MsgJoinPool": {
aminoType: "kyve/stakers/MsgJoinPool",
aminoType: "/kyve.stakers.v1beta1.MsgJoinPool",
toAmino: (msg: MsgJoinPool) => ({
creator: msg.creator,
...(isNotEmpty(msg.pool_id) && { pool_id: msg.pool_id }),
Expand All @@ -96,7 +96,7 @@ export const createStakersAminoConverters = (): AminoConverters => {
}),
},
"/kyve.stakers.v1beta1.MsgLeavePool": {
aminoType: "kyve/stakers/MsgLeavePool",
aminoType: "/kyve.stakers.v1beta1.MsgLeavePool",
toAmino: (msg: MsgLeavePool) => ({
creator: msg.creator,
...(isNotEmpty(msg.pool_id) && { pool_id: msg.pool_id }),
Expand Down

0 comments on commit 7bf5a69

Please sign in to comment.